1 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
3 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
4 non-portable '-n' echo option.
5 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
7 * util/grub.d/10_linux.in: Likewise (closes 43668).
8 * util/grub.d/20_linux_xen.in: Likewise.
9 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
10 non-portable 'echo -n'.
12 2014-12-07 Curtis Larsen <larsen@dixie.edu>
14 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
15 free when multiple empty segments were received (closes 42765).
17 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
19 * tests/util/grub-shell.in: Support --files also for netboot.
20 * tests/file_filter_test.in: New file with file filters tests.
21 * Makefile.util.def: Add file_filter_test.
22 * conf/Makefile.extra-dist: ... and here.
23 * tests/file_filter/file.gz: Test file for file_filter_test.
24 * tests/file_filter/file.gz.sig: Likewise.
25 * tests/file_filter/file.lzop: Likewise.
26 * tests/file_filter/file.lzop.sig: Likewise.
27 * tests/file_filter/file.xz: Likewise.
28 * tests/file_filter/file.xz.sig: Likewise.
29 * tests/file_filter/keys: Likewise.
30 * tests/file_filter/keys.pub: Likewise.
31 * tests/file_filter/test.cfg: Likewise.
32 * grub-core/commands/verify.c: Fix memory corruption doing
33 signature check for network files (closes 43601).
35 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
37 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
38 memory leak (CID 73645, 73782).
39 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
42 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
44 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
45 inline array (CID 73610).
47 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
49 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
50 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
51 (Coverity CID 73813, 73710)
52 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
53 and use after free (Coverity CID 73813, 73710, 73730)
54 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
56 * util/grub-install-common.c (grub_install_get_target): Check return
57 value of grub_util_fd_read (Coverity CID 73819).
58 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
59 to hd.magic (Coverity CID 73587, 73888, bug 43690).
61 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
63 * tests/util/grub-fs-tester.in: Consistently print output
64 of grub ls if test fails.
66 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
68 * grub-core/kern/efi/init.c: check value of *path before
71 2014-11-03 Michael Chang <mchang@suse.com>
73 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
74 of neighbor solicitation packet in grub_netbuff_pull.
76 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
78 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
79 avoid fatal warnings with older gcc (probably before 4.7).
80 * grub-core/loader/arm64/linux.c: Likewise.
81 * grub-core/loader/i386/linux.c: Likewise.
82 * grub-core/loader/i386/pc/linux.c: Likewise.
83 * grub-core/loader/ia64/efi/linux.c: Likewise.
84 * grub-core/loader/mips/linux.c: Likewise.
85 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
86 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
88 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
90 Fix in-tree --platform=none
92 * configure.ac: Only remove include/grub/cpu and
93 include/grub/machine in the --platform=none case, not all of
96 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
98 Add a new "none" platform that only builds utilities
100 * configure.ac: Add "none" platform. Default to it for unsupported
101 CPUs rather than stopping with a fatal error. Don't downgrade
102 x86_64-none to i386. Define COND_real_platform Automake conditional
103 if the platform is anything other than "none". Don't do any include
104 directory linking for "none".
105 * Makefile.am: Skip building grub-core and all bootcheck targets if
107 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
110 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
112 Use grub_cpu_to_XXX_compile_time for constants.
114 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
116 The AML parser implements only a small subset of possible AML
117 opcodes. On the Fujitsu Lifebook E744 this and another bug in
118 the parser (incorrect handling of TermArg data types) would lead
119 to the laptop not turning off (_S5 not found).
121 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
122 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
123 aren't always simply strings!); Add function to skip TermArgs
124 * include/grub/acpi.h: Add new opcodes
126 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
128 * grub-core/normal/main.c: Don't drop to rescue console in
129 case of password-protected prompt and no menu entries.
131 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
133 * grub-core/commands/keylayouts.c: Ignore unknown keys.
135 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
137 * grub-core/gmodule.pl.in: Accept newer binutils which output
138 empty column rather than 0x0.
140 2014-09-21 Michael Chang <mchang@suse.com>
142 * grub-core/osdep/unix/config.c: Remove extraneous comma.
144 2014-09-21 Peter Jones <pjones@redhat.com>
146 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
147 we don't free a random pointer from the stack.
148 * grub-core/loader/arm64/linux.c: Likewise.
149 * grub-core/loader/i386/linux.c: Likewise.
150 * grub-core/loader/i386/pc/linux.c: Likewise.
151 * grub-core/loader/ia64/efi/linux.c: Likewise.
152 * grub-core/loader/mips/linux.c: Likewise.
153 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
154 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
156 2014-09-15 Khem Raj <raj.khem@gmail.com>
158 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
159 _BSD_SOURCE to avoid warnings under glibc 2.20+.
161 2014-09-08 Michael Chang <mchang@suse.com>
163 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
164 check; comparing &data->extent against addresses in the region it
165 points to is unpredictable.
167 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
169 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
171 * configure.ac: Remove -m64 from checks for -mcmodel=large and
172 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
173 already in TARGET_CFLAGS at this point, and they produce incorrect
174 results when building for x32.
175 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
176 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
177 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
178 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
180 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
182 * configure.ac: Remove several unnecessary semicolons.
184 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
186 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
187 Initialise pend to pacify GCC.
189 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
191 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
194 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
196 * grub-core/term/at_keyboard.c: Retry probing keyboard if
197 scancode setup failed.
199 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
201 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
203 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
205 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
206 safety to avoid triggerring VirtualBox bug.
208 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
210 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
212 Fixes hang on virtualbox.
214 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
216 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
217 kernels whose paths contain regex metacharacters.
218 * util/grub.d/10_kfreebsd.in: Likewise.
219 * util/grub.d/10_linux.in: Likewise.
220 * util/grub.d/20_linux_xen.in: Likewise.
222 Reported by: Heimo Stranner.
224 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
226 * docs/grub-dev.texi (Finding your way around): The build system no
227 longer uses AutoGen directly.
229 2014-06-21 Роман Пехов <roman_pekhov>
231 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
233 2014-06-21 Glenn Washburn <development@efficientek.com>
235 * util/grub-install.c: Fix handling of --disk-module.
237 2014-06-21 Stephane Rochoy <sheda>
239 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
242 2014-06-21 Stephane Rochoy <sheda>
244 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
245 EFI system table physical address.
247 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
249 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
251 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
253 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
255 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
257 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
260 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
262 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
264 Reported by: Yves Blusseau <blusseau@zetam.org>.
266 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
268 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
269 GDT in conventional memory.
271 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
273 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
274 UUID. Other parts of grub-mkconfig tolerate these, they were
275 previously allowed here up to commit
276 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
277 practice when the system has active LVM snapshots.
278 Fixes Ubuntu bug #1287436.
280 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
282 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
283 "logical_volumes" block a little more accurately.
285 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
287 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
289 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
291 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
294 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
296 Replace few instances of memcmp/memcpy in the code that should be
297 grub_memcmp/grub_memcpy.
299 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
301 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
304 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
306 btrfs: fix get_root key comparison failures due to endianness
308 * grub-core/fs/btrfs.c (get_root): Convert
309 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
311 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
313 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
315 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
316 no longer to be forgiving of trailing spaces on grub-probe output
317 lines, which among other things means that util/grub.d/10_linux.in
318 no longer detects LVM. To fix this, make grub-probe's output
319 delimiting more consistent. As a bonus, this improves the coverage
322 Fixes Debian bug #735935.
324 * grub-core/disk/cryptodisk.c
325 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
326 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
328 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
330 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
331 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
332 probe_mods): Adjust for extra user-data arguments.
333 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
334 probe_abstraction): Use configured delimiter. Update callers.
336 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
338 * util/grub-probe,c (options): Make -0 work again (broken by
340 (main): Simplify logic.
342 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
344 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
346 2014-03-26 Fu Wei <fu.wei@linaro.org>
348 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
350 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
352 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
353 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
355 Suggested by: Markus Müller.
357 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
359 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
360 if E820 failed to return any regions.
362 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
364 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
365 tables for low memory calculations.
367 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
369 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
372 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
374 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
377 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
379 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
382 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
384 Add bootpath parser for open firmware.
386 It enables net boot even when there is no bootp/dhcp server.
388 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
389 and call it at grub_ieee1275_net_config_real.
390 * grub-core/kern/ieee1275/init.c: Add bootpath to
391 grub_ieee1275_net_config.
392 * include/grub/ieee1275/ieee1275.h: Likewise.
395 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
397 Add grub_env_set_net_property function.
399 * grub-core/net/bootp.c: Remove set_env_limn_ro.
400 * grub-core/net/net.c: Add grub_env_set_net_property.
401 * include/grub/net.h: Likewise.
403 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
405 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
407 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
409 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
411 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
413 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
414 7 seconds to recover if last poweroff was bad.
416 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
418 * grub-core/disk/ahci.c: Properly handle transactions with no
421 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
423 * grub-core/disk/ahci.c: Add safety cleanups.
425 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
427 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
428 slots to avoid pointing to uninited area.
430 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
432 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
433 enabling busmaster for the end.
435 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
437 * util/grub-mkfont.c: Downgrade warnings about unhandled features
440 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
442 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
444 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
446 * .gitignore: add missing files and .exe variants.
448 2014-01-26 Mike Gilbert <floppym@gentoo.org>
450 grub-install: support for partitioned partx loop devices.
452 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
453 /dev/loopX as being the parent of /dev/loopXpY.
455 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
457 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
458 Ensure that pointers are inited to NULL and that pointers are not
461 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
463 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
464 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
465 * include/grub/emu/misc.h: ... and here.
466 * include/grub/err.h: ... and here.
467 * util/import_gcry.py: ... and here (in files g10lib.h).
469 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
471 * util/grub-mkimage.c: Make prefix argument mandatory.
473 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
475 Fix several translatable strings.
477 Suggested by: D. Prévot.
479 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
481 * util/grub-install.c: List available targets.
483 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
485 * util/grub-install.c (write_to_disk): Add an info message.
487 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
489 * Makefile.am: Allow adding extra files to generated Windows ZIP
490 archive by setting GRUB_WINDOWS_EXTRA_DIST.
492 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
494 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
495 Show detected font path in summary.
497 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
499 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
501 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
502 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
503 * grub-core/net/tftp.c (tftp_open): Likewise.
504 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
506 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
508 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
511 In net/net.c there is a while (1) that only exits if there is a stop
512 condition and more then 10 packages or if there is no package received.
514 If GRUB is idle and enter in this loop, the only condition to leave is
515 if it doesn't have incoming packages. In a network with heavy traffic
518 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
520 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
521 EPERM when modifying kern.geom.debugflags. It is only a problem for
522 such things as installing GRUB to the MBR, in which case there'll be
523 an error later anyway, not for opening files during tests.
525 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
527 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
528 instead of MOD_FILES.
529 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
530 both with and without .exe.
531 * grub-core/genemuinitheader.sh: Same.
533 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
535 * util/grub-install.c: Fix a typo.
537 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
539 * grub-core/normal/main.c (read_config_file): Buffer config file.
542 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
544 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
545 symbolic link to directory. It fails in Msys shell on Windows 2003.
547 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
549 * Makefile.am (default_payload.elf): Add modules
550 multiboot cbmemc linux16 gzio echo help.
552 2014-01-18 Mike Gilbert <floppym@gentoo.org>
554 * Makefile.util.def: Link grub-ofpathname with zfs libs.
556 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
558 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
561 Reported by: Andrey Borzenkov.
563 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
565 * include/grub/misc.h: Move macros for compiler features to ...
566 * include/grub/compiler.h: ... new file.
567 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
568 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
569 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
570 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
571 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
572 * grub-core/video/capture.c: Include <grub/misc.h>.
573 * include/grub/command.h: Include <grub/misc.h>.
574 * include/grub/dl.h: Include <grub/misc.h>.
575 * include/grub/procfs.h: Include <grub/misc.h>.
577 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
579 * configure.ac: Add support for BUILD_EXEEXT and use it ...
580 * Makefile.am: ... here.
581 * Makefile.util.def: ... and here.
582 * grub-core/Makefile.am: ... and here.
584 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
586 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
587 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
589 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
591 * grub-core/term/terminfo.c: Recognize keys F1-F12.
593 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
595 * configure.ac: Add support for BUILD_LDFLAGS.
596 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
597 * grub-core/Makefile.am: ... and here.
598 * INSTALL: Mention BUILD_LDFLAGS.
600 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
602 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
604 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
606 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
609 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
611 * NEWS: Add few missing entries.
613 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
615 * util/grub.d/00_header.in (make_timeout): Use && rather than test
617 * util/grub.d/10_windows.in: Likewise.
618 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
620 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
623 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
625 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
626 redundant preprocessor conditional.
628 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
630 * Makefile.util.def (grub-macbless): Change mansection to 8.
632 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
634 * grub-core/loader/arm64/linux.c: correctly set device path end length.
636 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
638 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
639 arm64 to comply with EFI specification. Also use grubaa64.efi for
641 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
643 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
645 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
646 on MinGW-64 when compiling for 32 bits.
648 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
650 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
652 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
654 * NEWS: Add few missing entries. Correct existing ones.
656 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
658 Don't abort() on unavailable coreboot tables if not running on coreboot.
660 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
662 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
665 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
667 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
668 mention of it from 2.02.
670 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
672 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
674 As these functions are used on pre-ARMv6 CPUs as well we don't want
675 to make assembler assume that architecture is higher than default one.
677 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
679 * NEWS: First draft of 2.02 entry.
681 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
683 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
684 * docs/grub.texi (Getting the source code): Likewise.
686 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
688 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
691 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
693 * configure.ac: Set version to 2.02~beta2.
695 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
697 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
699 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
701 * util/grub-probe.c: Improve help message and simplify list handling.
703 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
705 Fix buffer overflow in grub_efi_print_device_path.
707 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
709 Show SATA device path.
711 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
713 Revert grub-file usage in grub-mkconfig.
715 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
717 Make newly-created files other than grub.cfg world-readable.
719 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
721 * util/grub.d/00_header.in: Improve compatibility with old config.
723 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
725 Make rijndael.c respect aliasing rules.
727 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
729 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
731 Make grub_util_device_is_mapped_stat available in grub-emu core.
733 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
735 Add -Qn to TARGET_CFLAGS if it's supported.
736 Fixes compilation on cygwin.
738 Reported by: Andrey Borzenkov.
739 Suggested by: Andrey Borzenkov.
741 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
743 Save TARGET_CC version in modinfo.sh.
745 Suggested by: Andrey Borzenkov.
747 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
749 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
750 follow the same algorithm to avoid method mismatch. Don't assume
751 DMRAID- UUID to mean full disk but instead check that mapping is linear.
753 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
755 Declare GRUB_EFI_VENDOR_APPLE_GUID.
757 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
759 Dump type and vendor specific data when printing device path.
761 2013-12-23 Colin Watson <cjwatson@debian.org>
763 Update some documentation to refer to Git rather than Bazaar.
765 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
767 * po/README: Likewise. Fix spelling mistake.
769 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
771 Don't distribute config.h.
773 * Makefile.am (platform_HEADERS): Move to ...
774 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
775 failure when building from a distributed tarball.
777 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
779 * configure.ac: Fix spelling.
780 * grub-core/commands/parttool.c: Fix grammar.
781 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
782 Embedding Partition".
784 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
786 ARM64 support for grub-mkrescue.
788 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
790 Install modinfo.sh to keep build information around.
792 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
794 * grub-core/modinfo.sh.in: Add build config information.
796 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
798 ARM64 grub-file and grub-mkconfig support.
800 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
802 Remove leftover options defines.
804 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
806 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
808 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
810 * grub-core/loader/arm64/linux.c: Add missing bracket.
812 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
814 Add arm64-efi recognition to grub-file.
816 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
818 Fix ia64-efi recognition in grub-file.
820 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
822 Recognize raspberry pi kernel in grub-file.
824 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
826 Enable cache on ARM U-Boot port.
828 Without it the port is reidiculously slow.
830 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
832 Fix ARM cache maintainance.
834 More code was converted from ASM to C for easier handling.
836 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
838 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
841 Suggested by: Leif Lindholm.
843 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
845 * util/grub-mkconfig.in: Fix Xen platform conditions.
847 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
849 * util/grub-mkrescue.c: Split single help message string in several
850 strings used in previous shell version.
852 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
854 Add arm64 Linux loader.
856 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
858 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
860 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
862 Add module loading and parsing boot time checkpoints.
864 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
866 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
869 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
871 * util/grub-mkconfig.in: Skip non-executable files.
873 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
875 Workaround buggy timer in raspberry pie by using our own timer
878 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
880 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
881 Increase to 16 MiB to allow loading the whole memdisk.
883 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
885 Fix ARM Linux Loader on non-FDT platforms.
887 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
889 * configure.ac: Choose link format based on host_os on emu.
891 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
893 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
895 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
897 * grub-core/kern/emu/main.c: Build fix for emu.
899 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
901 Build fixes for argp.h with older gcc.
903 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
905 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
908 Suggested by: David Prévot.
910 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
912 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
914 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
916 Enable -Wformat=2 if it's supported.
918 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
920 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
921 -Wmissing-declarations if supported.
923 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
925 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
926 u32 as both HFS and HFS+ have 32-bit inodes.
928 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
930 * include/grub/misc.h (grub_strtol): Fix overflow.
932 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
934 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
935 as return type in both conditionals.
937 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
939 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
940 to use uint8_t for color.
942 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
944 * util/misc.c (grub_util_get_image_size): Check for overflow.
946 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
948 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
951 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
953 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
954 for pointer difference.
956 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
958 * util/import_gcry.py: Skip sample keys.
960 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
962 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
964 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
966 * configure.ac: Remove duplicate warning arguments.
968 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
970 Add missing static qualifiers.
972 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
974 Add missing includes.
976 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
978 Inline printf templates when possible to enable format checking.
980 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
982 * include/grub/crypto.h: Don't discard const attribute.
984 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
986 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
989 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
991 * grub-core/lib/crypto.c: Don't discard const attribute.
993 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
995 * grub-core/lib/disk.c: Fix potential overflow.
997 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
999 * grub-core/lib/arg.c: Don't discard const attribute.
1001 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1003 * grub-core/kern/dl.c: Don't discard const attribute.
1005 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1007 * grub-core/kern/disk.c: Fix potential overflow.
1009 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1011 * conf/Makefile.common: Don't include non-existing directory
1012 grub-core/lib/libgcrypt-grub/include.
1014 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1016 Clarify several translatable messages.
1018 2013-12-21 David Prévot <david@tilapin.org>
1020 Correct some translatable strings.
1022 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1024 * util/grub-mkrescue.c: Rephrase mkrescue description.
1026 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1027 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1029 Clarify several translatable messages.
1031 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1033 Be more verbose about some configure failures.
1035 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1037 Fix various build problems on GNU/Hurd.
1039 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1041 (xgetcwd): Likewise.
1042 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1043 [__GNU__]: Add prototype.
1044 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1045 long int using %ld rather than %d.
1047 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1049 * util/grub-install.c: Inform user about install platform.
1051 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1053 * configure.ac: Set version to 2.02~beta1.
1055 2013-12-18 Allen Pais <allen.pais@oracle.com>
1056 2013-12-18 Bob Picco <bob.picco@oracle.com>
1058 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1060 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1062 Make grub_zlib_decompress handle incomplete chunks.
1066 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1068 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1071 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1073 * grub-core/disk/usbms.c: Retry on unknown errors.
1074 Reuse the same tag on retries.
1076 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1078 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1080 Avoid confusing them with already completed transfers.
1082 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1086 Due to XEN bug it prevents Linux boot. Remove it at least, until
1087 workaround is found.
1089 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1091 * po/exclude.pot: Add 2 missing excludes.
1093 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1095 Add missing license section in macbless.mod and macho.mod.
1097 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1099 Allow compilation without thumb-interwork as long as no thumb is
1100 involved or only thumb2 is used.
1102 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1104 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1106 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1108 Add __attribute__ ((sysv_abi)) only if it's really needed.
1110 Some compilers don't support it.
1112 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1114 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1116 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1118 Remove -Wold-style-definition.
1120 Not very useful and interaction of it with regexp depends on GCC
1123 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1125 Make grub_util_get_windows_path_real static.
1127 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1129 * grub-core/commands/fileXX.c: Silence cast-align.
1130 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1132 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1134 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1135 rather than LL suffix.
1137 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1139 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1141 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1143 * grub-core/loader/arm/linux.c: Use common initrd functions.
1145 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1147 Decrease number of strings to translate.
1149 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1151 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1153 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1155 Mark strings for translation and add remaining ones to exclude list.
1157 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1159 * util/grub-file.c (main): Fix sizeof usage.
1161 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1163 Silence spurious warning.
1165 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1167 Remove check_nt_hiberfil as it's been superseeded by file command.
1169 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1171 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1173 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1175 Implement syslinux parser.
1177 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1179 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1181 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1183 Support cpuid --pae.
1185 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1187 Use AT keyboard on Yeeloong 3A.
1189 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1191 Add Yeeloong 3A reboot and halt.
1193 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1195 Add Radeon Yeeloong 3A support.
1197 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1199 Add bonito 3A support.
1201 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1203 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1205 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1207 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1209 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1211 * grub-core/loader/macho.c: Fix compilation on non-i386.
1213 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1215 Add missing format_arg attribute to check that printf with translated
1216 messages has proper arguments.
1218 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1220 Use grub_xasprintf to format translated error messages containing
1223 2013-12-17 Jon McCune <jonmccune@google.com>
1225 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1227 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1229 Unify message for unsupported relocation.
1231 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1233 Mark miscompile error for translation.
1235 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1237 Use %I64 and not %ll when using OS printf if compiling for windows.
1239 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1241 Update Mac code to match new register_efi prototype.
1243 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1245 Implement better integration with Mac firmware.
1247 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1249 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1252 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1254 Include serial module in default_payload.elf.
1256 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1258 Add explicit thumb interwork bx in asm files.
1260 Shouldn't matter for armv >= 5 but let's be safe.
1262 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1264 Implement Truecrypt ISO loader.
1266 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1268 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1270 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1272 Implement grub_file tool and use it to implement generating of config
1275 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1277 Change to v1 xen grants.
1279 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1281 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1283 GRUB relied on %ebx being preserved across hypercall which isn't true.
1285 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1287 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1289 GRUB relied on %rdi being preserved across hypercall which isn't true.
1291 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1293 Implement XEN VFB support.
1295 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1297 Remove grub_bios_interrupt on coreboot.
1299 It's not used currently and cannot be used safely currently.
1301 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1303 Update exclude.pot and mark few strings for translation.
1305 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1307 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1309 Reported by: Jon McCune
1311 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1313 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1314 Add verbose information which firmware directories were tried.
1316 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1318 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1319 function to optionally redirect all three standard descriptors.
1320 Redefine grub_util_exec, grub_util_exec_redirect and
1321 grub_util_exec_redirect_null to use it.
1322 * include/grub/emu/exec.h: Define it.
1323 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1324 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1325 Use grub_util_exec_redirect_all to redirect error to NULL.
1327 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1329 * grub-core/tests/sleep_test.c: Silence spurious warning.
1331 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1333 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1334 linker trying to "fixup" the code.
1336 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1338 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1340 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1342 Add support for converting PE+ to Elf64.
1344 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1346 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1348 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1350 Remove practice of assigning random const pointers to device id.
1352 This is not required as cache code already checks driver id as well.
1354 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1356 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1359 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1361 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1362 mingw or cygwin as API already matches.
1364 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1366 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1368 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1370 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1373 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1375 Handle X86_64_PC64 relocation.
1377 Those are generated by some cygwin compilers.
1379 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1381 Determine the need for mingw-related stubs at compile time rather than
1382 using not very significant $target_os.
1384 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1386 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1387 may not work with ELF.
1389 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1391 Use unix functions for temporary files and special files on cygwin.
1393 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1395 Define functions explicitly rather than using --defsym in tests
1396 whenever possible. Respect locality in remaining cases.
1398 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1400 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1402 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1404 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1405 unlikely errors when getting EFI variables and make exhaustive search
1406 for all BootNNNN variables to find matching one.
1408 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1410 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1412 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1414 New functional test for sleep function.
1416 This test allows to check sleep without qemu. Keep qemu version as
1417 well as functional test won't notice if all clocks are going too fast
1420 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1422 Add explicit sysv_abi on amd64 asm routines.
1424 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1426 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1429 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1431 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1434 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1436 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1439 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1441 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1443 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1445 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1448 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1450 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1452 In case of quick removal of loopback and adding another one it may
1453 get same ID, confusing the cache system.
1455 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1457 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1460 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1462 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1463 than converting to long.
1465 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1467 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1469 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1471 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1472 than almost useless pointer.
1474 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1476 Add gcc_struct to all packed structures when compiling with mingw.
1478 Just "packed" doesn't always pack the way we expect.
1480 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1482 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1484 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1486 * util/grub-pe2elf.c: Fix handling of .bss.
1488 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1490 Implement windows flavour of EFI install routines.
1492 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1494 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1496 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1498 Change grub_install_register_efi interface to pass GRUB device.
1500 This allows grub_install_register_efi to request partition info
1503 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1505 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1507 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1509 Do not use TCHAR string functions as they are not available on cygwin.
1511 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1513 Workaround windows bug when querying EFI system partition parameters.
1515 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1517 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1520 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1522 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1524 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1526 Make i386-* other than i386-pc compileable under cygwin.
1528 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1530 Fix definition of grub_efi_hard_drive_device_path. Take care that
1531 existing code would work even if by some reason bogus definition is
1532 used by EFI implementations.
1534 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1536 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1538 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1540 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1543 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1545 * util/config.c: Remove trailing newline from distributor in simple
1548 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1550 * include/grub/efi/api.h: Rename protocol and interface to avoid
1553 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1555 * .gitignore: add .exe variants. add missing files. remove few outdated
1558 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1560 * grub-core/osdep/exec.c: Use unix version on cygwin.
1562 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1564 Implement multiboot2 EFI BS specification.
1566 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1568 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1569 Crash happened only in some cases like a string starting at the
1570 half of the screen of same length.
1572 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1574 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1575 with EFI counterpart.
1577 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1579 Propagate the EFI commits to x86-efi specific parts.
1581 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1583 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1585 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1587 Introduce grub_efi_packed_guid and use it where alignment is not
1590 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1592 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1593 unaligned u16 rather than u8[2].
1595 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1597 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1598 for relocation range.
1600 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1602 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1603 non-function pcrel21b relocation. It happens with .text.unlikely
1606 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1608 * make MAX_USABLE_ADDRESS platform-specific
1609 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1611 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1613 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1615 2013-12-09 Jon McCune <jonmccune@google.com>
1617 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1618 in grub-install and grub-bios-setup for x86 BIOS targets.
1620 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1622 Add missing compile and link options for sparc64-emu.
1624 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1626 Implement sparc64 trampolines (needed for sparc64-emu).
1628 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1630 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1631 range of R_SPARC_HI22.
1632 Implement R_SPARC_LM22.
1634 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1636 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1637 Do not explicitly check for symbol table as it's already checked in
1638 platform-independent layer.
1640 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1642 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1643 on ia64 as __clear_cache is a dummy on ia64.
1645 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1647 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1648 Do not explicitly check for symbol table as it's already checked in
1649 platform-independent layer.
1651 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1653 * util/grub-mkconfig.in: Add missing newline to output.
1655 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1657 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1658 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1660 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1662 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1663 compilation with GCC <= 4.2.
1664 * grub-core/kern/emu/argp_common.c: Likewise.
1666 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1668 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1669 right platform rather than leaking to sparc64-emu.
1671 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1673 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1674 But ensure that the variables in question are indeed unsigned.
1676 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1678 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1680 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1682 Remove grub_memalign on emu.
1684 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1686 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1687 truncate incomplete lines but instead flushes them.
1689 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1691 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1692 and implement windows variant.
1694 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1696 Fix mips-emu compilation.
1698 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1700 * configure.ac: Check for freetype library usability.
1702 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1706 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1708 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1710 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1712 * docs/grub.texi (Environment): Update color_normal and color_highlight
1713 defaults (light-gray instead of white).
1715 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1717 * grub-core/normal/main.c (INIT): Set default color to light-gray
1718 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1719 and apparently BIOS defaults.
1721 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1723 Transform -C option to grub-mkstandalone to --core-compress available
1724 in all grub-install flavours.
1726 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1728 Merge GRUBFS and GRUB_FS variables.
1730 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1732 Revert commit 69ca97c820, it caused failures when using OS device name
1733 in grub-install. Instead just strip off parenthesis in grub-install
1734 if (hdX) was passed.
1736 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1738 * util/grub-install.c (push_partmap_module): Add helper to convert
1739 partmap names to module names and use it in probe_mods(). Fixes
1740 failure to find partmap modules in diskfilter case.
1742 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1744 * configure.ac: Make unifont mandatory on coreboot.
1746 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1748 * configure.ac: Skip unifont 6.3 pcf and bdf.
1750 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1752 * Makefile.am: Remove partial font files if generation failed.
1754 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1756 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1758 * include/grub/util/misc.h: Define it ...
1759 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1761 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1763 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1766 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1768 Don't add -mlong-calls when compiling with clang.
1770 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1772 * configure.ac: Fix a typo.
1774 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1776 Revamp relocation handling.
1778 Move more code to common dl.c. Add missing veneers for arm and arm64.
1779 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1781 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1783 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1785 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1787 * INSTALL: Raise minimum python version to 2.6.
1788 * gentpl.py: Use python3-style print function.
1790 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1792 * util/grub-install.c: Mention Boot* variable.
1794 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1796 * grub-core/osdep/linux/hostdisk.c
1797 (grub_util_find_partition_start_os): Initialise start to avoid
1798 spurious compiler warning.
1800 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1802 On Linux, read partition start offsets from sysfs if possible, to
1803 cope with block device drivers that don't implement HDIO_GETGEO.
1804 Fixes Ubuntu bug #1237519.
1806 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1808 (sysfs_partition_start): Likewise.
1809 (grub_util_find_partition_start_os): Try sysfs_partition_start
1812 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1814 * grub-core/kern/fdt.c: Update struct size when adding node.
1816 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1818 Handle unaligned .bss on sparc64.
1820 Current code improperly assumes that both __bss_start and _end are
1821 aligned to 8-bytes. Eliminating this assumption and explicitly align
1824 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1826 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1827 so it doesn't land in the middle of loaded image.
1829 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1831 * configure.ac: Move all warning options that may be absent in
1832 gcc >= 3.1 to optional.
1834 Note: while this allows to compile with older GCC, official requirements
1835 remain the same and no support for older GCC.
1837 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1839 Copying the themes directory in grub-shell isn't
1840 parallel-test-friendly and breaks on the second test when the source
1841 directory is read-only (as in "make distcheck"). Instead, add a
1842 hidden --themes-directory option to grub-mkrescue et al, and use it
1845 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1847 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1848 as it's no longer necessarry.
1850 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1852 * configure.ac: Allow compilation with older GCC for ARM.
1854 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1856 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1857 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1860 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1862 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1864 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1866 Pass font config to config.h and not by TARGET_CFLAGS as adding
1867 arguments doesn't work if TARGET_CFLAGS is specified on command
1870 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1872 * configure.ac: Add -Wvla if compiler supports it.
1874 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1876 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1877 Remove variable length arrays.
1878 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1880 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1882 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1884 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1886 * include/grub/types.h: Declare all byteswaps as inline functions
1887 except compile-time ones.
1889 Solves variable shadowing in constructions like
1890 cpu_to_le (le_to_cpu(x) + 1).
1892 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1894 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1896 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1898 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1901 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1903 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1904 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1906 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1908 * grub-core/Makefile.core.def (setjmp): Distribute
1911 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1913 Add a new timeout_style environment variable and a corresponding
1914 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1915 controls hidden-timeout handling more simply than the previous
1916 arrangements, and pressing any hotkeys associated with menu entries
1917 during the hidden timeout will now boot the corresponding menu entry
1920 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1921 generates a warning, and if it shows the menu it will do so as if
1922 the second timeout were not present. Other combinations are
1923 translated into reasonable equivalents.
1925 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1927 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1929 * util/config.c: Add missing pointer adjustment.
1930 Reported by: qwertial
1932 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1934 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1935 directly, not via `cpu' link, to fix libgrub.pp generation.
1937 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1941 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1943 * docs/grub.texi (sleep): Document exit codes.
1945 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1947 Ensure that -mno-unaligned-access or some equivalent option is used.
1949 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1951 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1954 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1956 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1958 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1960 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1961 builds, since we don't have an EPS version of font_char_metrics.png.
1962 Add leading dot to image extension per the Texinfo documentation.
1964 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1966 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1967 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1968 * util/grub-gen-widthspec.c: Likewise.
1969 * util/grub-mkfont.c: Likewise.
1971 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1973 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1974 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1975 failed to install on (hdX).
1976 * util/grub-setup.c (get_device_name): Remove, not needed after
1979 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1981 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1983 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1985 * util/grub-fstest.c: Remove variable length arrays.
1987 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1989 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1991 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1993 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1994 computing crc32 rather than handling with md fundtions directly.
1996 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1998 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1999 checking fwstart.img rather than md fundtions directly.
2001 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2003 * util/grub-mkrescue.c (main): Check that fread succeeded.
2005 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2007 * conf/Makefile.common: Remove -mexplicit-relocs and
2008 -DUSE_ASCII_FALLBACK on yeeloong.
2010 -DUSE_ASCII_FALLBACK is already added by font snippets.
2011 -mexplicit-relocs isn't needed is compiler/assemblera are
2012 configured properly.
2013 If they're not we shouldn't attempt to fix it by ourselves.
2014 Binary compare between before and after shows no difference.
2016 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2018 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2019 sources in dependencies directly.
2021 This was the only instance of "library" in core config. A bug was
2022 reported that -fno-stack-protector wasn't passed to it. Instead of
2023 figuring out why it failed just remove this construction used
2026 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2028 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2031 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2033 * docs/grub.texi (ls): Fix command description in case of a device name
2036 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2038 Eliminate variable length arrays in grub_vsnprintf_real.
2040 A bit tricky because this function has to continue to work without
2041 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2042 but make all stack references use 32-bit offset rather than 8-bit one.
2043 So split va_args preparsing to separate function and put the prealloc
2046 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2048 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2049 Fixes build for windows.
2051 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2053 * gentpl.py: Don't generate platform-dependent conditionals for
2054 platform-independent targets.
2056 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2058 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2059 references to mdadm from otherwise generic code.
2060 (grub_util_exec_pipe): Likewise.
2061 (grub_util_exec_pipe_stderr): Likewise.
2062 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2063 This function calls vgs, not mdadm; adjust variable names
2066 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2068 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2069 of Autogen. The Autogen definitions files remain intact as they
2070 offer a useful abstraction.
2072 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2074 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2075 into no-ops, and use it in programs that copy files but do not need
2076 to take special care to sync writes (grub-mknetdir, grub-rescue,
2079 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2081 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2082 than hardcoding /usr/local/bin/xorriso.
2084 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2086 Add PCI command activation to all PCI drivers as required for coreboot
2087 and maybe some other firmwares.
2089 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2091 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2092 and non-Apple variants of efiemu compile.
2094 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2096 * configure.ac: Add explicit check for linking format of
2097 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2098 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2099 hardcoding linking format.
2101 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2103 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2106 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2107 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2109 Add a --locale-directory option to grub-install and related tools.
2111 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2112 --locale-directory option.
2113 (enum grub_install_options): Add
2114 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2115 * util/grub-install-common.c (grub_install_help_filter): Handle
2116 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2117 (grub_install_parse): Likewise.
2118 (get_localedir): New function to check for a user-provided option
2119 before trying grub_util_get_localedir.
2120 (copy_locales): Use get_localedir rather than
2121 grub_util_get_localedir. Handle differing locale directory layouts.
2122 (grub_install_copy_files): Likewise.
2124 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2126 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2127 Don't rely on PATH_MAX.
2129 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2131 * grub-core/genmoddep.awk: Use more portable && rather than and.
2133 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2135 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2136 an object after data. While it doesn't seem right solution, it
2137 works well enough and OSX isn't main compilation platform.
2139 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2141 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2142 While it doesn't seem right solution, it works well enough and
2143 OSX isn't main compilation platform.
2145 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2147 * configure.ac: Add -static to LDFLAGS when using apple linker to
2148 prevent it from pulling in dynamic linker.
2150 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2152 Apple assembly doesn't handle symbol arithmetic well. So define an
2153 offset symbol in boot.S and use it.
2155 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2157 Apple assembly doesn't handle symbol arithmetic well. So instead
2158 of getting addres of kernel_sector + 4 define kernel_sector_high.
2159 It also makes code more readable.
2161 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2163 With Apple assembly in .macro environvemnt you have to use $$ instead
2164 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2165 to $$x on Apple and to $x on everything else.
2167 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2169 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2172 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2174 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2175 and non-Apple. This instruction is shorter and faster,
2176 so no reason not to use it on both.
2178 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2180 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2181 .text when compiling for Apple.
2183 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2185 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2187 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2189 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2190 %dx restore the probe worked on non-existant drive. Reorganize the
2191 code a little bit to free 2 bytes necessary for push/pop.
2193 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2195 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2196 Add missing cast to silence warning.
2198 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2200 * util/grub-install.c (update_nvram): Support --no-nvram flag
2203 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2205 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2207 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2209 * util/garbage-gen.c: Add missing include of sys/time.h.
2211 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2213 Don't add -mflush-func if it's not supported by compiler.
2215 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2217 Move common BIOS/coreboot memory map declarations to
2218 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2220 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2222 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2224 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2226 * INSTALL: Document why older clang versions aren't appropriate.
2228 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2230 * INSTALL: Document about clang for mips.
2232 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2234 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2237 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2239 Add *-xen to the list of grub-install-common platforms.
2241 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2243 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2246 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2248 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2250 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2252 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2253 with -mcmodel=large.
2255 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2257 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2258 range-checking for 32-bit quantities.
2260 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2262 * configure.ac: Compile with -fPIC when compiling with clang on
2265 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2267 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2268 when compiling with clang.
2270 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2272 clang emits calls to abort () under some unknown conditions.
2273 Export abort () when compiling with clang.
2275 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2277 * docs/grub-dev.texi: Document stack and heap sizes.
2279 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2281 * include/grub/i386/pc/memory.h: Decrease
2282 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2283 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2284 The binary doesn't change (checked). It's more to better reflect actual
2287 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2289 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2290 at compile time that enough of scratch size is available.
2292 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2294 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2295 Previously we misaligned stack by 8 in startup.S and compensated
2296 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2297 right behaviour is to align stack in startup.S and keep it aligned
2298 in callwrap.S. startup.S part was committed few commits before. This
2299 takes care of callwrap.S.
2300 Reported by: Gary Lin.
2302 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2304 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2305 .data and .bss. May happen if compiler and assembly use different
2308 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2310 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2313 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2315 Add support for a new magic symbol _gp_disp on mips to handle PIC
2318 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2320 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2322 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2324 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2325 when rest of GRUB is compiled for hisher stepping. Instead use
2326 .set mips3/.set mips1 around cache and sync opcodes.
2328 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2330 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2331 do essentially the same thing, do it in similar way.
2333 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2335 * util/grub-mkrescue.c (main): If a source directory is not
2336 specified, read platform-specific files from subdirectories of
2337 pkglibdir, not pkgdatadir.
2339 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2341 * grub-core/normal/progress.c: Remove unused file.
2343 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2345 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2348 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2350 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2353 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2355 * coreboot.cfg: Add missing file.
2357 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2359 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2361 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2363 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2364 selectively skipping systems.
2366 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2368 * Makefile.util.def (grub-mkimage): Add
2369 grub-core/osdep/aros/config.c to extra_dist.
2370 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2371 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2372 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2373 grub-core/gnulib-no-gets.diff.
2375 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2377 Add automated filesystem checking based on scripts I've used now for
2378 quite some time locally. Most of the test require root so they are
2379 skipped when run without necessarry privelegies.
2381 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2383 * util/grub-install.c (main): Adjust info messages to match
2384 installed paths of grub-bios-setup and grub-sparc64-setup.
2386 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2388 * util/grub-install-common.c (copy_locales): Consistently use
2389 grub_util_get_localedir () rather than LOCALEDIR.
2390 (grub_install_copy_files): Likewise.
2392 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2394 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2395 16-byte boundary, as required by the x86-64 ABI, before calling
2396 grub_main. In some cases, GCC emits code that assumes this
2397 alignment, which crashes if not aligned. The EFI firmware is also
2398 entitled to assume that stack alignment without checking.
2400 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2402 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2403 4k page boundaries as expected by firmware rather than 1k
2405 (grub_mmap_malign_and_register): Likewise.
2407 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2409 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2410 fragmentation 512M is enough.
2412 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2414 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2415 pointer to 32K. This is the size of cache element which is the most
2416 common allocation >1K. This way the pointer is always around blocks
2417 of 32K and so we keep performance while decreasing fragmentation.
2419 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2421 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2422 current memory when allocating large chunks. This significantly
2423 decreases memory fragmentation.
2425 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2427 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2429 * tests/lzocompress_test.in: Skip if lzop is not installed.
2430 * tests/xzcompress_test.in: Skip if xz is not installed.
2432 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2434 * util/grub-mkrescue.c (main): Fix typo.
2436 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2438 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2439 clock frequency to 200 MHz,
2441 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2443 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2445 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2447 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2448 Load config file from (cbfsdisk)/etc/grub.cfg.
2450 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2452 * util/grub-install-common.c (grub_install_copy_files): Fix module
2453 destination directory.
2455 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2457 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2458 files have not been built.
2460 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2462 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2463 Handle errors from mkstemp.
2464 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2466 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2468 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2469 on primary master on pseries.
2471 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2473 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2474 already loaded. This saves memory needed for tests,
2476 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2478 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2481 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2483 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2486 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2488 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2489 master since with some combinations of qemu and firmware only primary
2490 IDE channel is available.
2492 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2494 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2495 low-memory platforms where we don't have enough memory for them.
2496 * grub-core/tests/videotest_checksum.c: Likewise.
2498 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2500 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2501 already loaded. This saves memory needed for tests,
2503 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2505 Fix handling of install lists.
2507 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2509 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2511 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2513 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2514 the devices before accessing them.
2516 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2518 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2521 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2523 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2525 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2527 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2528 (grub_file_close): Free file->name.
2530 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2532 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2533 (grub_load_public_key): Likewise.
2534 (grub_verify_signature_real): Likewise.
2535 (grub_cmd_verify_signature): Likewise.
2537 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2539 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2542 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2544 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2545 (grub_longjmp): Restore r31.
2546 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2548 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2550 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2551 modules to be in line with make_image_abs.
2553 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2555 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2557 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2559 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2561 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2563 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2565 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2566 to leave some memory to firmware.
2568 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2570 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2571 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2572 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2575 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2577 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2578 now needs full arguments.
2580 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2582 * util/grub-mkrescue.c (main): Add trailing \n in
2583 .disk_label.contentDetails to be in line with previous shell script.
2585 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2587 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2589 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2591 * util/grub-install-common.c (grub_install_parse): Recognize
2592 --compress=none like shell script did.
2594 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2596 * include/grub/misc.h: Replace check for __sparc64__ with one for
2597 __sparc__ as __sparc64__ isn't actually defined.
2599 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2601 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2602 counterpart of fixing the naming of escc ports.
2604 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2606 * util/grub-install-common.c (platforms): Fix the order of entries and
2607 remove useless field val.
2609 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2611 * util/grub-install.c: Add new option --no-bootsector to skip
2612 installing of bootsector. Accept --grub-setup=/bin/true as
2613 backwards-compatible synonym.
2615 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2617 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2618 order of qsort arguments (number of elements vs. element size).
2620 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2622 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2623 the function of these files exceeds what can be sanely handled in shell
2624 in posix-comaptible way. Also writing it in C extends the functionality
2625 to non-UNIX-like OS and minimal environments.
2627 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2629 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2630 compiling to thumb2.
2631 * grub-core/kern/arm/cache_armv7.S: Likewise.
2632 * grub-core/lib/arm/setjmp.S: Likewise.
2634 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2636 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2637 in grub_uboot_syscall
2639 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2641 Decrease stack usage in lexer.
2643 We have only 92K of stack and using over 4K per frame is wasteful
2645 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2646 as macros so that compiler would remove useless structure on stack.
2647 Better solution would be to fix flex not to put this structure on
2648 the stack but flex is external program.
2650 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2652 Decrease stack usage in signature verification.
2654 We have only 92K of stack and using over 4K per frame is wasteful
2656 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2658 (grub_verify_signature_real): Likewise.
2660 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2662 Decrease stack usage in mdraid 0.9x.
2664 We have only 92K of stack and using over 4K per frame is wasteful
2666 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2669 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2671 Decrease stack usage in BtrFS.
2673 We have only 92K of stack and using over 4K per frame is wasteful
2675 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2678 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2680 Decrease stack usage in JFS.
2682 We have only 92K of stack and using over 4K per frame is wasteful
2684 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2685 stack. Note: this function is recursive.
2686 (grub_jfs_read_inode): Read only part we care about.
2688 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2690 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2693 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2695 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2697 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2699 * docs/grub.texi (Environment): Document cmdpath.
2701 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2703 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2704 Remove "unused" attribute from arguments, they are used.
2706 2013-11-15 Colin Watson <cjwatson@debian.org>
2708 * .gitignore: Only ignore grub-mk* at the top level.
2710 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2712 * util/grub-reboot.in (usage): Fix a typo.
2714 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2716 Replace libgcc version of ctz with our own.
2718 On upcoming arm64 port libgcc ctz* are not usable in standalone
2719 environment. Since we need ctz* for this case and implementation is
2720 in C we may as well use it on all concerned platforms.
2722 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2724 * configure.ac: Probe for linking format rather than guessing it based
2727 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2729 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2730 "1" prior to handoff.
2732 Reported by: M A Young.
2734 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2736 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2739 Reported by: M A Young.
2741 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2743 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2744 compilation on NetBSD.
2746 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2748 * acinclude.m4: Don't add -P on initial nm test.
2750 Note: even though this patch postdates Andrey's it bears 14 Nov as
2751 date due to timezone difference.
2753 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2755 * grub-core/Makefile.core.def (signature_test): Add missing
2758 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2760 * util/grub-install_header: Set localedir here, since this file is
2762 * util/grub-install.in: Remove setting of localedir.
2763 * util/grub-mkrescue.in: Likewise.
2765 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2767 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2769 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2771 * configure.ac: Move nm checks to the end.
2772 Call grub_PROG_NM_WORKS.
2773 * acinclude.m4: New check grub_PROG_NM_WORKS.
2774 Use $TARGET_CFLAGS -c when compiling test binary.
2776 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2778 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2781 2013-11-14 Matthew Garrett <mjg@redhat.com>
2783 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2784 cmdpath to firmware directory.
2786 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2788 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2789 at the start of second iteration.
2791 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2793 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2795 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2797 * Makefile.am (default_payload.elf): New target for easier coreboot
2800 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2802 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2803 clang (not necessarry with -no-integrated-as).
2804 * include/grub/symbol.h [__arm__]: Likewise.
2806 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2808 * configure.ac: Use -no-integrated-as on arm with clang.
2809 * INSTALL: Mention ARM compilation with clang.
2811 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2813 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2816 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2818 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2819 code for indirect block handling.
2821 Saves 185 bytes on compressed image.
2823 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2827 * Makefile.am: Remove build-grub-* in make clean.
2829 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2831 New files to gitignore.
2833 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2834 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2836 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2838 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2840 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2842 * .gitignore: fix rules for .dep* and add *.a post git migration
2844 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2846 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2849 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2851 * grub-core/kern/misc.c: Don't redirect divisions in the
2853 * include/grub/misc.h: Likewise.
2855 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2857 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2858 systems that require checking the return value of write.
2860 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2862 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2863 efibootmgr quiet when --debug is not used, rather than when it is.
2865 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2867 * gentpl.py (define_macro_for_platform_dependencies): Remove
2868 first (and thus unused) of two definitions for this function.
2869 (platform_dependencies): Likewise.
2871 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2873 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2874 functions, we only need to check this for the target, not the host.
2875 * configure.ac (grub_apple_cc): Likewise.
2877 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2879 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2880 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2881 asm to stay in arm even if surrounding is thumb.
2883 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2885 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2886 helper functions are needed for thumb.
2888 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2890 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2891 level / 3 division explicitly unsigned. Saves few bytes.
2893 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2895 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2897 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2899 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2902 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2904 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2905 grub_uboot_boot_data to asm part.
2907 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2909 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2911 (grub_uboot_syscall): Save/restore r9 and align stack.
2913 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2915 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2917 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2919 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2920 occurencies with END.
2922 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2924 * util/grub-editenv.c (help_filter, argp): Document how to delete
2925 the whole environment block.
2926 Reported by Dan Jacobson. Fixes Debian bug #726265.
2928 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2930 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2933 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2935 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2936 increment/decrement.
2938 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2941 compiling with clang.
2943 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2945 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2948 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2950 Redirect all divisions to grub_divmod64.
2952 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2954 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2956 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2958 Add missing includes of loader.h.
2960 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2962 * configure.ac: Allow disabling themes.
2964 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2966 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2968 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2970 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2971 until it becomes operational.
2973 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2975 * grub-core/Makefile.core.def (legacy_password_test): Disable
2976 on platforms where no legacycfg is compiled.
2977 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2978 load legacy_password_test.
2980 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2982 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2984 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2986 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2988 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2990 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2991 strict-aliasing warning.
2992 (fsync): Silence cast warning.
2994 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2996 * grub-core/commands/verify.c: Remove variable length arrays.
2997 Load gcry_dsa/gcry_rsa automatically.
2999 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3001 * grub-core/tests/signature_test.c: New test.
3003 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3005 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3008 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3010 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3011 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3013 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3015 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3017 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3019 * grub-core/fs/proc.c: Allow \0 in proc files.
3021 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3023 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3025 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3027 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3029 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3031 * grub-core/fs/ext2.c: Remove variable length arrays.
3033 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3035 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3038 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3040 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3041 * grub-core/disk/cryptodisk.c: Likewise.
3042 * grub-core/disk/geli.c: Likewise.
3043 * grub-core/disk/luks.c: Likewise.
3045 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3047 * grub-core/tests/legacy_password_test.c: New test.
3048 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3050 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3052 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3054 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3056 * grub-core/tests/pbkdf2_test.c: New test.
3058 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3060 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3062 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3064 * grub-core/io/lzopio.c: Remove variable length arrays.
3066 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3068 * include/grub/crypto.h: Add maximums on hash size and cipher block
3071 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3073 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3075 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3077 * grub-core/tests/xnu_uuid_test.c: New test.
3079 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3081 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3084 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3086 * grub-core/commands/hashsum.c: Remove variable length arrays.
3088 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3090 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3092 * tests/grub_func_test.in: Increase memory allocation.
3094 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3096 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3097 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3100 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3102 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3103 (grub_util_get_fd_size_os): ...this.
3104 (grub_hostdisk_flush_initial_buffer): New empty function.
3106 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3108 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3109 without --defined-only.
3111 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3113 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3114 rip-relative addressing in prologue.
3116 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3118 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3119 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3121 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3123 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3124 Add missing semicolon.
3126 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3128 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3130 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3132 * configure.ac: Check for lzma.h for enabling liblzma and allow
3135 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3137 Add missing includes of loader.h.
3139 2013-11-11 Fam Zheng <famcool@gmail.com>
3141 * util/grub.d/30_os-prober.in: Add minix entry.
3143 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3145 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3146 right buffer for temporary load.
3148 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3150 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3152 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3154 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3157 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3159 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3161 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3163 (LzmaDec_InitDicAndState): Make static.
3165 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3167 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3169 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3171 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3173 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3175 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3177 * docs/grub-dev.texi: Replace bzr references with git ones.
3179 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3181 * docs/grub.texi (Simple configuration): Remove reference to
3182 grub-reboot from saved default entry description - grub-default
3183 does not use it anymore.
3185 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3187 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3190 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3192 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3194 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3196 Fix grub_machine_fini bitrot.
3198 Reported by: Glenn Washburn.
3200 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3202 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3204 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3206 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3208 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3211 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3213 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3214 Add -march=core2 when testing compile of efiemu64.
3216 Thanks Andrey Borzenkov for spotting this.
3218 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3220 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3221 XEN PV environment and load kernels.
3223 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3225 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3226 * grub-core/loader/multiboot_mbi2.c: Likewise.
3228 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3230 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3233 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3235 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3237 Tested by: Denis 'GNUtoo' Carikli.
3239 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3241 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3243 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3245 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3246 Use to get rounded angle rather than truncated.
3248 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3250 * grub-core/term/serial.c: Add option for enabling/disabling
3251 RTS/CTS flow control.
3253 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3255 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3258 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3260 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3261 Use grub_fatal rather than divide by zero.
3262 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3264 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3266 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3268 (grub_fixed_fsf_divide): Likewise.
3270 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3272 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3273 division by-zero and senseless negative divisions.
3275 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3277 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3278 division by-zero and senseless negative divisions.
3279 (circprog_set_property): Don't accept negative num_ticks.
3281 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3283 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3284 division by-zero and senseless negative divisions.
3286 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3288 * configure.ac: Use elf_*_fbsd on kfreebsd.
3290 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3292 * grub-core/tests/div_test.c: New test.
3294 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3296 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3297 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3298 * grub-core/gfxmenu/view.c: Likewise.
3299 * grub-core/video/fb/video_fb.c: Introduce new functions:
3300 grub_video_set_area_status, grub_video_get_area_status,
3301 grub_video_set_region, grub_video_get_region.
3302 * grub-core/video/bochs.c: Likewise.
3303 * grub-core/video/capture.c: Likewise.
3304 * grub-core/video/video.c: Likewise.
3305 * grub-core/video/cirrus.c: Likewise.
3306 * grub-core/video/efi_gop.c: Likewise.
3307 * grub-core/video/efi_uga.c: Likewise.
3308 * grub-core/video/emu/sdl.c: Likewise.
3309 * grub-core/video/radeon_fuloong2e.c: Likewise.
3310 * grub-core/video/sis315pro.c: Likewise.
3311 * grub-core/video/sm712.c: Likewise.
3312 * grub-core/video/i386/pc/vbe.c: Likewise.
3313 * grub-core/video/i386/pc/vga.c: Likewise.
3314 * grub-core/video/ieee1275.c: Likewise.
3315 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3316 * include/grub/video.h: Likewise.
3317 * include/grub/video_fb.h: Likewise.
3318 * include/grub/fbfill.h: Updated render_target structure.
3319 grub_video_rect_t viewport, region, area
3320 int area_offset_x, area_offset_y, area_enabled
3321 * include/grub/gui.h: New helper function
3322 grub_video_bounds_inside_region.
3323 * docs/grub-dev.texi: Added information about new functions.
3325 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3327 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3330 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3332 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3334 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3336 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3338 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3339 simple division on arm and ia64.
3341 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3343 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3346 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3348 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3350 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3352 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3353 prefix symbol, not @.
3355 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3357 * INSTALL: Add note about older gcc and clang.
3359 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3361 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3363 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3365 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3366 NULL pointer dereference.
3368 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3370 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3373 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3375 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3378 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3380 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3382 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3383 * grub-core/disk/geli.c (ascii2hex): Likewise.
3385 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3387 * configure.ac: Run linker tests without -Werror.
3388 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3389 Change all occurences of -static-libgcc resp -lgcc to
3390 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3392 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3394 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3396 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3398 Allow compiling with clang (not really supported though).
3400 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3402 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3403 Add -mrtd -mregparm=3 on i386 when not using clang.
3404 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3406 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3408 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3410 * grub-core/lib/reed_solomon.c: Likewise.
3411 * include/grub/i386/gdb.h: Likewise.
3412 * include/grub/i386/pc/int.h: Likewise.
3413 * include/grub/i386/pc/pxe.h: Likewise.
3414 * include/grub/ieee1275/ieee1275.h: Likewise.
3416 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3418 Import libgcrypt 1.5.3.
3420 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3422 * configure.ac: Don't add -Wcast-align on x86.
3424 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3426 * configure.ac: Add -freg-struct-return on all platforms that
3429 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3431 * acinclude.m4: Use -Werror on parameter tests.
3432 * configure.ac: Likewise.
3434 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3436 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3438 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3440 * configure.ac: Check that -malign-loops works rather than assuming that
3441 either -falign-loops or -malign-loops work.
3443 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3445 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3447 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3449 * configure.ac: Prevent cflags leaking to subsequent tests by always
3450 resetting cflags to target_cflags in target tests.
3452 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3454 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3457 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3459 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3461 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3463 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3465 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3467 * grub-core/normal/cmdline.c (grub_cmdline_get):
3468 Remove nested functions.
3470 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3472 * tests/test_sha512sum.in: Make it work on emu.
3474 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3476 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3478 (grub_bidi_line_logical_to_visual): Likewise.
3480 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3482 Remove vestiges of -Wunsafe-loop-optimisations.
3484 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3485 -Wno-unsafe-loop-optimisations.
3486 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3488 * grub-core/io/gzio.c: Likewise.
3489 * grub-core/script/parser.y: Likewise.
3490 * grub-core/script/yylex.l: Likewise.
3491 * util/grub-mkfont.c: Likewise.
3493 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3495 * util/grub-mkfont.c (process_cursive): Remove nested function.
3497 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3499 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3500 (grub_boot_time): Likewise.
3502 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3504 * include/grub/symbol.h (FUNCTION): Use @function rather than
3506 (VARIABLE): Likewise.
3508 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3510 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3512 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3514 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3515 (parse_dhcp_vendor): Likewise.
3517 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3519 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3521 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3523 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3524 Define after defining type and not before.
3526 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3528 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3530 (grub_gcm_decrypt): Likewise.
3531 (algo_decrypt): Likewise.
3532 (grub_zfs_decrypt_real): Transform error type.
3534 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3536 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3538 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3540 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3541 (grub_usbms_cbi_reset): Likewise.
3542 (grub_usbms_bo_reset): Likewise.
3543 (grub_usbms_reset): Likewise.
3544 (grub_usbms_attach): Likewise.
3545 (grub_usbms_transfer_cbi): Likewise.
3547 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3549 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3550 "checksum = checksum;".
3552 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3554 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3557 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3559 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3562 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3564 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3566 (grub_ehci_fini_hw): Likewise.
3567 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3569 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3571 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3572 return grub_usb_err_t for cosistency. All users updated.
3574 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3576 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3577 assigning to itself.
3579 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3580 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3582 Issue separate DNS queries for ipv4 and ipv6
3584 Adding multiple questions on a single DNS query is not supportted by
3585 most DNS servers. This patch issues two separate DNS queries
3586 sequentially for ipv4 and then for ipv6.
3588 Fixes: https://savannah.gnu.org/bugs/?39710
3590 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3591 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3592 * (grub_net_dns_lookup): Now using separated dns packages.
3593 * (grub_cmd_nslookup): Add error condition.
3594 * (grub_cmd_list_dns): Print DNS option.
3595 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3596 --prefer-ipv4, and --prefer-ipv6.
3597 * include/grub/net.h (grub_dns_option_t): New enum.
3598 * (grub_net_network_level_address): option added.
3600 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3602 * grub-core/video/fb/video_fb.c: Merge two blit functions
3605 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3607 * grub-core/term/terminfo.c: Add sequences for home and end.
3609 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3611 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3614 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3616 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3619 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3621 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3622 e-mail by Per Öberg.
3624 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3626 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3629 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3631 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3633 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3635 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3637 * docs/grub.texi: Document usage of menuentry id.
3639 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3641 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3643 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3645 * grub-core/commands/i386/nthibr.c: New command.
3647 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3649 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3651 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3653 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3656 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3658 Support GRUB_DISABLE_SUBMENU config.
3660 Inspired by patch from Prarit Bhargava.
3662 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3664 * docs/grub.texi: Mention RSA support.
3666 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3668 * grub-core/commands/verify.c: Add RSA support.
3670 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3672 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3673 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3674 device is known to be ATAPI.
3676 2013-11-03 Mike Frysinger <vapier>
3678 * configure.ac: Don't add target-prefix.
3680 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3682 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3685 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3687 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3688 if language is English.
3690 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3692 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3694 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3696 * configure.ac: Don't add -m32/-m64 on emu.
3700 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3701 broken linux headers.
3703 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3705 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3707 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3709 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3710 Reed-Solomon recovery if more than half of redundancy info is 0.
3712 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3714 * util/grub-mount.c: Handle symlinks to directories.
3716 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3718 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3719 find_file recursively for symlink.
3721 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3723 * tests/util/grub-shell.in: Copy themes.
3725 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3727 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3729 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3731 * configure.ac: Use 0x8000 for address instead of 8000.
3733 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3735 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3738 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3740 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3743 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3745 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3747 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3749 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3750 file_progress_read_hook.
3751 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3753 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3755 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3758 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3760 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3762 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3764 Rewrite blocklist functions in order to get progress when
3765 reading large extents and decrease amount of blocklist hook calls.
3767 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3769 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3772 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3774 Support --base-clock for serial command to handle weird cards with
3775 non-standard base clock.
3777 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3779 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3781 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3782 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3783 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3784 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3785 + strcpy rather than strncpy.
3787 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3789 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3790 (check_pool_label): Likewise. Fixes overflow.
3791 (nvlist_find_value): Fix comparison.
3793 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3795 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3796 more appropriate functions.
3798 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3800 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3803 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3805 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3807 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3809 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3812 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3814 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3816 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3818 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3819 (initialize_tables): reset tl and td to NULL after freeing.
3821 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3823 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3825 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3827 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3830 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3832 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3834 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3836 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3839 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3841 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3842 a page in protected space.
3844 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3846 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3847 allocate space for zero-sized modules.
3849 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3851 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3853 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3855 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3857 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3859 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3860 safeguards. Fixes a crash with i386/pc/console.c.
3862 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3864 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3865 and grub_hostfs_init.
3867 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3869 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3870 windows method on other platforms without good stat as well.
3872 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3874 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3876 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3878 Make / in btrfs refer to real root, not the default volume.
3879 Modify mkrelpath to work even if device is mounted with subvolid option.
3881 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3883 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3885 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3888 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3890 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3893 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3895 * docs/autoiso.cfg: New file.
3897 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3899 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3900 COND_GRUB_PE2ELF conditions.
3902 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3904 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3905 "vnd", "rd" and "fd" disks.
3907 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3909 Move grub_disk_write out of kernel into disk.mod.
3911 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3913 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3916 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3918 * grub-core/kern/misc.c (grub_abort): Make static
3920 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3922 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3923 transform invalid unicode codepoints.
3925 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3927 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3930 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3932 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3934 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3936 Consolidate cpuid code.
3938 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3940 Move cpuid code to cpuid.h and TSC code to tsc.c.
3942 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3944 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3946 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3948 * util/grub-mkconfig.in: Replace $0 with $self.
3949 * util/grub-reboot.in: Likewise.
3950 * util/grub-set-default.in: Likewise.
3952 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3954 * docs/osdetect.cfg: New file.
3956 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3958 * tests/util/grub-shell.in: Add new --debug option.
3960 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3962 * tests/test_unset.in: New test.
3964 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3966 * tests/test_sha512sum.in: New test.
3968 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3970 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3971 * include/grub/misc.h: Remove strncat.
3972 * grub-core/lib/posix_wrap/string.h: Likewise.
3974 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3976 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3977 Try to handle more than 0xFFFF packets.
3978 Reported by: Bernhard Übelacker <bernhardu>.
3979 He also spotted few overflows in first version of this patch.
3981 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3983 * tests/date_unit_test.c: New test.
3985 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3987 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3988 of first three years after start of validity of unixtime.
3990 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3992 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3993 division as the one making more sense.
3994 (update_screen): Likewise.
3995 (complete): Likewise.
3997 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3999 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4001 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4003 Make char and string width grub_size_t rather than grub_ssize_t.
4005 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4007 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4009 (grub_history_replace): Likewise.
4011 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4013 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4016 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4018 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4021 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4023 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4024 Use unsigned divisions rather than signed variants.
4026 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4028 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4029 unsigned arithmetics.
4032 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4034 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4036 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4038 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4039 rather than signed one.
4040 (recovery): Likewise.
4042 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4044 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4046 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4051 2013-10-25 Jon McCune <jonmccune@google.com>
4053 * docs/grub.texi: Cleanup security documentation around signatures.
4055 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4057 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4059 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4061 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4064 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4066 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4067 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4068 functions when compiling for kernel.
4070 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4072 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4073 unsigned long long when using %llu.
4075 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4078 terminal after updating progress.
4080 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4082 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4083 argument. We don't disable Gate A20 in this code.
4085 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4087 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4088 Conceptually based on change in branch "vbe-on-coreboot".
4090 2013-10-24 Robert Millan <rmh@gnu.org>
4092 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4093 numeric constants with their symbolic equivalent.
4094 Taken from branch "vbe-on-coreboot".
4096 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4098 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4100 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4102 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4103 divmod64 for offset division.
4105 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4107 Rename .bzrignore to .gitignore. Add "*.o" rule.
4109 * .bzrignore: Renamed to...
4110 * .gitignore: ...this.
4112 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4114 Add new progress module that displays the load progress of files.
4116 * grub-core/lib/progress.c: New file.
4117 * grub-core/Makefile.core.def (progress): New module.
4118 * grub-core/kern/file.c (grub_file_open): File name added.
4119 * (grub_file_read): Progress hook added.
4120 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4121 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4122 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4123 * include/grub/file.h (struct grub_file): Add progress module members.
4124 * include/grub/term.h (struct grub_term_output): Likewise.
4125 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4126 Terminal velocity added.
4127 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4128 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4129 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4130 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4131 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4132 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4133 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4134 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4135 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4136 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4137 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4138 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4140 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4142 Verify signatures of signatures unless --skip-sig is specified.
4144 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4146 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4149 Saves 70 bytes on compressed image.
4151 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4153 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4156 Saves 10 bytes on compressed image.
4158 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4160 * grub-core/kern/misc.c (grub_isprint): Move to ...
4161 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4163 Saves 20 bytes on compressed image due to remving exporting.
4165 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4167 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4169 Saves 5 bytes on compressed image.
4171 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4173 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4176 Saves 379 bytes on compressed image.
4178 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4180 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4182 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4184 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4186 Saves 40 bytes on compressed image.
4188 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4190 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4191 mask rather than 64-bit type.
4193 Saves 20 bytes on compressed image.
4195 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4197 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4198 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4200 Saves 273 bytes on compressed image.
4202 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4204 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4205 variable length arrays.
4207 Saves 50 bytes on compressed image.
4209 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4211 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4213 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4215 * grub-core/fs/ufs.c: Remove variable length arrays.
4217 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4219 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4221 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4223 * grub-core/fs/zfs.c: Remove variable length arrays.
4224 Reduces zfs.mod by 160 bytes (208 compressed).
4226 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4228 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4230 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4232 * grub-core/net/arp.c: Remove variable length arrays.
4233 * grub-core/net/bootp.c: Likewise.
4234 * grub-core/net/dns.c: Likewise.
4235 * grub-core/net/icmp6.c: Likewise.
4236 * grub-core/net/net.c: Likewise.
4238 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4240 * grub-core/fs/ntfs.c: Remove variable length arrays.
4241 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4244 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4246 * grub-core/fs/hfs.c: Remove variable length arrays.
4247 Reduces hfs.mod by 8 bytes (52 compressed).
4249 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4251 * grub-core/fs/udf.c: Remove variable length arrays.
4252 Increases udf.mod by 128 bytes (but decreases by 13 when
4255 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4257 * grub-core/fs/iso9660.c: Remove variable length arrays.
4258 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4261 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4263 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4264 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4267 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4269 * grub-core/fs/xfs.c: Remove variable length arrays.
4270 Reduces xfs.mod by 40 bytes (43 compressed).
4272 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4274 * grub-core/fs/fshelp.c: Remove variable length arrays.
4275 Reduces fshelp.mod by 116 bytes (23 compressed).
4277 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4279 * grub-core/normal/completion.c: Remove variable length arrays.
4280 * grub-core/normal/menu_entry.c: Likewise.
4282 Reduces normal.mod by 496 bytes.
4284 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4286 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4287 by 356 bytes (158 compressed).
4289 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4291 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4292 by 364 bytes (169 compressed).
4294 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4296 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4297 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4298 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4300 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4302 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4303 bitmasks to small structures of size chosen to fit in registers.
4305 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4307 * conf/Makefile.common: Use -freg-struct-return on i386. This
4308 decreases code size and improves performance.
4310 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4312 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4314 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4316 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4318 Simplify expressions to save around 256 bytes in kernel.img.
4319 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4321 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4323 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4324 Use GRUB_UTIL_FD_O_* rather than O_*.
4326 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4328 Add haiku-specific functions.
4330 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4332 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4334 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4336 Move stat () and device mode checking into OS-dependent files as
4337 long as performance doesn't suffer.
4339 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4341 Split make_system_path_relative_to_its_root into separate file
4342 relpath.c from getroot.c as it's common between unix and haiku
4343 but otherwise haiku doesn't use any functions from unix getroot.c.
4345 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4347 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4349 (grub_util_is_special_file): Likewise.
4351 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4353 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4354 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4356 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4358 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4359 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4361 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4363 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4364 (load_image): Likewise.
4366 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4368 * util/grub-render-label.c: Move backend part to ...
4369 * util/render-label.c: ... here.
4371 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4373 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4374 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4376 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4378 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4380 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4382 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4383 CD-ROM in case when it's declared as having subpartitions.
4385 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4387 Don't add -lm on haiku.
4389 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4391 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4394 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4396 * configure.ac: Use -melf_*_haiku as target on haiku.
4398 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4400 * Makefile.util.def: Add util/setup.c to extra_dist.
4402 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4404 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4405 unknown types through.
4407 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4409 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4410 (grub_util_check_char_device): Likewise.
4411 * include/grub/emu/getroot.h: Likewise.
4413 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4415 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4416 memset rather than inline static function.
4418 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4420 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4421 not doing embedded decompressor.
4423 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4425 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4427 * grub-core/kern/disk.c: Likewise.
4428 * grub-core/kern/misc.c: Likewise.
4429 * include/grub/parser.h: Likewise.
4430 * include/grub/script_sh.h: Likewise.
4431 * include/grub/zfs/zfs.h: Likewise.
4433 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4435 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4437 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4439 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4440 defined before trying to use it.
4442 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4444 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4447 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4449 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4450 Use __unused__ rather than __used__ on gcc < 3.2.
4452 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4454 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4456 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4458 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4460 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4462 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4464 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4465 * include/grub/emu/misc.h: Likewise.
4467 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4469 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4472 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4474 * grub-core/tests/checksums.h: Regenerated due to progress bar
4475 get_minimal_size changes.
4477 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4479 Added `tr' command support.
4481 * grub-core/commands/tr.c: New file.
4482 * grub-core/Makefile.core.def: Build rules for new module.
4484 * tests/grub_cmd_tr.in: New test.
4485 * Makefile.util.def: Build rules for new test.
4487 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4489 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4491 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4493 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4494 * docs/gurb.texi: Likewise.
4496 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4498 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4499 Pixmap highlighted section with east and west slices was displayed
4500 incorrectly due to negative width of the central slice.
4502 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4504 * docs/grub.texi: Graphical options information update.
4505 Removed outdated. Updated current. Inserted missed.
4507 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4509 * docs/grub.texi: Mention few new platform-specific commands.
4511 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4513 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4514 currently used so this doesn't really have any effect.
4515 Reported by: Douglas Ray <dougray>
4517 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4519 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4520 compilation but prevents gcc from displaying messages in non-Latin
4522 * conf/Makefile.common: Likewise.
4524 2013-10-16 Hiroyuki YAMAMORI
4526 Handle Japanese special keys.
4527 Reported by: Hiroyuki YAMAMORI.
4528 Codes supplied by: Hiroyuki YAMAMORI.
4530 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4532 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4534 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4536 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4537 * docs/grub.texi: Likewise.
4539 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4541 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4542 value in case of incomplete read.
4543 (grub_util_fd_write): Likewise.
4545 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4547 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4549 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4551 * util/grub-editenv.c (create_envblk_file): More from here ...
4552 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4554 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4556 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4557 canonicalize file name before doing the rest.
4559 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4561 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4564 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4566 Define grub_util_is_directory/regular/special_file and
4567 use OS-dependent versions rather than to rely on stat().
4569 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4571 * util/grub-mkimage.c: Move backend part to ...
4572 * util/mkimage.c: ... here.
4574 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4576 Allow compilation with mingw64 albeit with warnings due to lack of
4579 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4580 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4581 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4582 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4584 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4586 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4588 Remove leftover references to some of the system headers.
4590 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4592 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4595 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4597 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4600 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4602 Split out blocklist retrieving from setup.c to
4603 grub-core/osdep/blocklist.c and add windows implementation since
4604 generic version doesn't work on NTFS on Windows due to aggressive
4607 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4609 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4612 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4614 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4615 Cut tailing newline. Remove arbitrary limitation. Always use
4616 grub_util_tchar_to_utf8.
4618 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4620 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4621 * tests/printf_unit_test.c (printf_test): Add %% tests.
4622 Reported by: Paulo Flabiano Smorigo.
4624 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4626 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4629 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4631 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4632 use nvlist_lookup_string and don't use nvlist_print.
4634 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4636 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4637 closedir to handle filename charset translation.
4639 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4641 * include/grub/emu/hostdisk.h: Move file operations to
4642 * include/grub/emu/hostfile.h: ... here.
4644 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4646 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4649 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4651 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4653 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4655 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4656 and remove export.h.
4658 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4660 * grub-core/kern/emu/error.c: Removed.
4661 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4662 explicitly as it's already in libgnu.a.
4664 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4666 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4667 config-util.h include.
4669 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4671 Split emunet into platform-dependent and GRUB-binding parts. Keep
4672 platform-dependent part in kernel for easy access to OS functions.
4674 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4676 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4679 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4681 * grub-core/osdep/windows/emuconsole.c: New file.
4683 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4685 * conf/Makefile.extra-dist: Add osdep/*/init.c
4687 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4689 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4691 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4693 * util/grub-probe.c (probe): Separate different drives in hint-str
4694 by spaces and not newlines.
4695 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4697 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4699 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4702 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4704 Pass-through unknown E820 types. It required reorganisation of mmap
4707 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4709 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4711 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4713 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4716 2013-10-14 qwertial <qwertial>
4718 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4720 2013-10-14 Jon McCune <jonmccune@google.com>
4722 * docs/grub.texi: Document new signatures possibility.
4724 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4726 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4728 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4730 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4732 (grub_util_tchar_to_utf8): Likewise.
4734 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4736 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4737 * grub-core/kern/emu/main.c: Add missing include.
4738 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4739 Don't call grub_util_init_nls.
4740 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4743 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4745 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4748 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4750 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4752 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4754 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4756 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4758 Add a wrapper for fopen. On unix-like systems just pass-through. On
4759 windows use unicode version.
4761 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4763 Move set_program_name and init_nls to host_init. On windows
4764 fix in this fuction console and argument charset as well.
4766 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4768 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4769 GRUB_ENABLE_CRYPTODISK.
4771 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4772 GRUB_ENABLE_CRYPTODISK.
4773 * util/grub-mkconfig_lib.in: Likewise.
4775 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4777 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4779 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4781 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4782 error when enabling debug.
4784 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4786 * configure.ac: Use -melf_*_obsd on openbsd.
4788 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4790 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4792 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4794 * include/grub/misc.h: Use gnu_printf rather than printf as format
4795 template since our functions are independent of libc.
4797 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4799 * util/grub-setup.c (setup): Move copying of partition table as
4800 futher up as possible to avoid possible overwrite by floppy routines.
4802 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4804 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4806 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4808 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4809 * docs/grub.texi: Likewise.
4811 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4813 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4814 it's mostly unused. Move vestiges to the callers.
4816 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4818 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4819 version of salt and hash. Use grub_snprintf rather than snprintf.
4821 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4823 * docs/grub.texi: Fix problem with braces.
4825 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4827 * conf/Makefile.extra-dist: Fix extra-dist list.
4828 * grub-core/Makefile.core.def: Likewise.
4830 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4832 * docs/grub.texi: Document disk names used on Windows and AROS.
4834 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4836 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4838 * grub-core/osdep/aros/hostdisk.c: Likewise.
4840 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4842 Avoid including hostfile.h when not necessarry as it pulls
4843 in OS-specific headers which may redefine generic names
4846 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4848 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4849 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4850 scrollbar_bottom_pad
4851 * docs/grub.texi: Likewise.
4853 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4855 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4857 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4859 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4861 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4863 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4865 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4868 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4870 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4873 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4875 Move OS-specific driver configuration to grub_util_fd_open. This
4876 moves OS-dependent parts from kern/emu/hostdisk.c to
4877 grub-core/osdep/*/hostdisk.c.
4879 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4881 * util/grub-mkimage.c (generate_image): Use size_t instead of
4883 * util/grub-mkimagexx.c (locate_sections): Likewise.
4884 (load_image): Likewise.
4886 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4888 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4890 (grub_util_write_image): Likewise.
4892 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4894 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4895 get random when no RNG is available.
4896 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4898 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4900 * include/grub/util/lvm.h: Removed.
4902 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4904 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4905 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4907 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4909 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4911 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4913 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4915 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4917 * grub-core/net/drivers/emu/emunet.c: Move to ..
4918 * grub-core/osdep/linux/emunet.c: ..here.
4920 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4922 * util/ieee1275/ofpath.c: Move to ...
4923 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4924 * grub-core/osdep/basic/ofpath.c: ..here.
4926 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4928 Move password-querying (util-version) routines to grub-core/osdep.
4930 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4932 Move sleep routines to grub-core/osdep.
4934 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4936 Move OS-dependent files to grub-core/osdep and document it.
4938 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4940 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4941 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4943 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4945 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4947 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4949 * util/misc.c: Remove leftover inclusion of malloc.h.
4951 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4953 * include/grub/setjmp.h: Remove leftover GRUBOF.
4955 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4957 * util/raid.c: Fold into ...
4958 * util/getroot_linux.c: ... here. Make all functions static.
4960 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4962 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4963 macros to GRUB ones.
4965 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4967 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4968 occasional bug. If there are too many boot entries or too low
4969 scrollbar height then we need to use another formula to calculate
4970 the position and size of the scrollbar thumb.
4972 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4974 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4976 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4978 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4979 * docs/grub.texi: Likewise.
4981 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4983 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4986 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4988 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4989 minimal width calculations.
4991 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4993 * docs/grub.texi: Update note on colors on emu console.
4995 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4997 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4998 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4999 it's FS and not GRUB limitation.
5001 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5003 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5005 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5007 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5009 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5011 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5012 kernels by version order.
5014 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5016 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5018 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5020 Add AROS hostdisk and getroot routines.
5022 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5024 Make cryptodisk and diskfilter probe data retrievable programmatically
5025 and not just printable.
5027 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5029 Split random retrieving code into separate files.
5031 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5033 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5036 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5038 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5040 * grub-core/tests/fake_input.c: Likewise.
5041 * grub-core/tests/cmdline_cat_test.c: Likewise.
5043 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5045 * grub-core/video/capture.c: Do not do finalization when .fini
5046 is called as there is explicit capture_end.
5048 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5050 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5051 changing windows to avoid crash.
5053 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5055 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5057 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5059 * po/exclude.pot: Add several strings to exclude.
5061 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5063 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5065 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5067 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5068 ./util/grub-gen-asciih.c to exclude list.
5070 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5072 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5073 and don't mark error strings for translation.
5075 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5077 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5078 properly in case of missing block size.
5080 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5082 * grub-core/lib/arm/setjmp.S: Add missing license section.
5084 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5086 * po/swiss.sed: Add replacement for key names and for term computer.
5088 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5090 * grub-core/gfxmenu/theme_loader.c: New global options for the
5091 theme background image handling. desktop-image-scale-method,
5092 desktop-image-h-align, desktop-image-v-align.
5093 * grub-core/gfxmenu/view.c: Likewise.
5094 * include/gfxmenu_view.h: Likewise.
5095 * include/bitmap_scale.h: Proportional scale functions introduced.
5096 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5097 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5098 cases of unexpected input variables for scale functions.
5099 * docs/grub.texi: Updated documentation for new options.
5101 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5103 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5105 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5107 * grub-core/tests/checksums.h: Corrected due to changes in
5108 bilinear interpolation function.
5110 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5112 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5113 to eliminate artefacts in bilinear interpolation.
5115 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5117 * grub-core/video/readers/tga.c: Support paletted tga.
5119 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5121 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5122 incorrect cbcr setting when in color mode.
5124 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5126 * grub-core/video/readers/png.c: Support paletted images and clean up
5129 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5131 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5132 usage of wrong table which resulted in mishandling of 4-byte
5135 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5137 * grub-core/term/terminfo.c: Add Home and End key sequences.
5139 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5141 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5142 Fix formula for computing total number of bytes.
5144 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5146 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5147 image processing, fix big-endian and support grayscale.
5149 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5151 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5152 Correctly will with maximum transparency when using index color.
5154 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5156 * grub-core/video/readers/png.c: Support grayscale
5158 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5160 * grub-core/video/readers/jpeg.c: Support grayscale.
5162 2013-09-26 Jon McCune <jonmccune@google.com>
5164 * grub-core/commands/loadenv.c: Support skipping signature check
5165 and variable names filtering.
5167 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5169 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5170 * grub-core/kern/emu/hostfs.c: Likewise.
5171 * util/getroot_unix.c: Likewise.
5173 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5175 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5176 Migrate all explicit defines to this new one.
5178 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5180 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5181 grub_util_fd_strerror when using grub_util_fd_*.
5182 (grub_util_fd_open_device): Likewise.
5183 (grub_util_biosdisk_read): Likewise.
5184 (grub_util_biosdisk_write): Likewise.
5185 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5186 (grub_util_fd_strerror): Likewise.
5187 (grub_util_fd_sync): Likewise.
5188 (grub_util_fd_close): Likewise.
5189 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5190 (grub_util_fd_close): Likewise.
5191 (grub_util_fd_strerror): Likewise.
5192 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5193 function proto rather than macro.
5194 (grub_util_fd_sync): Likewise.
5195 (grub_util_fd_open): Likewise.
5196 (grub_util_fd_strerror): New proto.
5198 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5200 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5201 platforms on which it doesn't work.
5203 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5205 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5206 stat immediately to where it's used.
5208 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5210 * util/getroot.c (grub_util_check_block_device): Move to ...
5211 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5212 * util/getroot.c (grub_util_check_char_device): Move to ...
5213 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5215 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5217 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5220 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5222 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5224 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5226 * docs/grub.texi (File name syntax): Document ZFS filenames
5227 (/volume@snapshot/...).
5229 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5231 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5232 Always return full path. Fixes a problem with mkrelpath.
5234 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5236 * util/grub-install.in: Add GPT PReP support.
5237 * util/grub-probe.c (probe): Support GPT partition type.
5238 (main): Support -t gpt_parttype.
5240 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5242 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5244 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5246 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5248 2013-09-23 Tim Hardeck <thardeck>
5250 * util/grub.d/10_hurd.in: Filter out character for the class.
5251 * util/grub.d/10_kfreebsd.in: Likewise.
5252 * util/grub.d/10_linux.in: Likewise.
5253 * util/grub.d/20_linux_xen.in: Likewise.
5255 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5257 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5260 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5262 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5265 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5267 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5268 doesn't use posix_wrap. Keep literal -fno-builtin however.
5270 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5272 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5274 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5277 * configure.ac: Do not enable -Wmissing-noreturn as its
5278 usefulness is limited and creates problems on some OS notably with
5279 code generated by bison.
5281 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5284 * configure.ac: Do not explicitly enable -Waddress as it's not
5285 supported by all gcc and when it is, it's already enabled by -Wall.
5287 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5289 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5290 desactivated use of EDID at all.
5292 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5295 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5296 video if no text is available.
5298 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5301 * configure.ac: Substitute TARGET_RANLIB.
5303 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5306 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5308 Based on patches from AROS.
5310 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5313 * grub-core/Makefile.am: Override STRIP and RANLIB.
5314 * configure.ac: compute TARGET_RANLIB.
5315 * INSTALL: Document TARGET_RANLIB
5317 Based on patches from AROS.
5319 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5321 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5322 that floppies are unpartitioned.
5324 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5326 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5327 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5329 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5331 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5332 less nice but more portable.
5333 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5335 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5337 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5339 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5341 (grub_cryptodisk_cheat_insert): Likewise.
5342 (grub_cryptodisk_close): Likewise.
5344 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5346 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5347 Use windows path for DEFAULT_DIRECTORY.
5349 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5351 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5352 difference was likely just gcc version, not anything mingw-related.
5354 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5356 Use Winapi on both cygwin and mingw32 to share more code between both.
5358 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5360 * util/grub-install.in: Add --grub-editenv option.
5361 * util/grub-install_header (grub_compress_file): Explicitly check for
5362 plain file to avoid cp error.
5364 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5366 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5367 names; fix LVM driver name (lvm, not lv).
5368 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5371 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5373 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5374 files rather than one file with loads of #if's.
5375 * util/getroot.c: Likewise.
5377 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5379 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5381 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5383 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5384 GNU/Hurd to the list of checked PRNG.
5386 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5388 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5390 2013-09-21 Ales Nesrsta <starous@volny.cz>
5392 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5394 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5396 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5397 * grub-core/disk/lvm.c: Add LVM UUIDs.
5398 * util/getroot.c: Use LVM UUIDs whenever possible.
5400 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5402 * docs/grub.texi (Networking commands): Add documentation for
5403 network related commands.
5405 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5407 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5408 to determine if device is handled by devmapper.
5409 (convert_system_partition_to_system_disk): Likewise.
5410 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5411 already done in grub_util_open_dm.
5413 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5415 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5416 Clean up stack manipulation (sync_caches_armv*)
5418 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5420 * util/lvm.c: Remove since unused. Remove remaining references.
5422 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5424 Handle the case of partitioned LVM properly.
5426 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5427 Stop on meeting LVM, mpath or DMRAID.
5428 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5429 (read_device_map): Likewise.
5430 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5431 device is full disk rather than erroring out on LVM and similar cases.
5433 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5435 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5437 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5439 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5441 Reported by: Leif Lindholm
5443 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5444 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5446 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5449 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5451 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5452 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5454 2013-09-18 Douglas Ray <dougray@cpan.org>
5456 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5459 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5461 * docs/grub.texi: Fix broken link.
5463 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5465 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5466 to break endless loop.
5468 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5470 * util/grub-fstest.c: Fix several printf formats.
5471 * util/grub-mkimage.c: Likewise.
5472 * util/grub-mkimagexx.c: Likewise.
5473 * util/grub-script-check.c: Likewise.
5475 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5477 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5480 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5482 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5484 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5486 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5487 removed in current versions cygwin_conv_*.
5489 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5491 * configure.ac: Disable efiemu runtime on cygwin.
5493 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5495 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5496 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5498 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5500 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5503 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5505 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5507 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5510 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5512 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5513 when on x86 and not cygwin.
5514 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5517 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5519 * configure.ac: Set CPP to build one when checkoing for freetype for
5522 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5524 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5525 [!GRUB_BUILD]: Remove has_argument.
5527 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5529 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5530 Replace with a dummy.
5532 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5534 * configure.ac: Don't change host_os from mingw to cygwin.
5536 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5538 * configure.ac: Change target_os from windows to cygwin.
5540 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5542 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5544 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5545 (build-grub-gen-asciih): Likewise.
5546 (build-grub-gen-widthspec): Likewise.
5547 * Makefile.util.def (grub-pe2elf): Remove.
5548 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5549 * configure.ac: Separate tests for build.
5550 Move ./build-grub-pe2elf to grub-core.
5552 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5553 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5555 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5557 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5558 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5559 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5561 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5563 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5564 mingw32 as well based on grub_util_get_disk_size.
5565 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5566 grub_util_get_fd_size.
5568 (fsync): Moved to ...
5569 * grub-core/kern/emu/misc.c (fsync): ... here.
5571 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5573 * include/grub/mm.h (grub_extend_alloc): Remove.
5574 * grub-core/loader/i386/pc/plan9.c: Use own version of
5575 grub_extend_alloc with appropriate types.
5577 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5579 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5581 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5583 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5585 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5587 Fix dependencies on cygwin.
5589 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5590 dependencies when used and defined.
5591 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5593 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5595 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5596 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5598 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5600 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5601 implementation available to cause compile-time rather than runtime
5604 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5606 * util/grub-fstest.c: Don't check for symlinks on windows.
5608 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5610 * INSTALL: Mention unavailability of man pages when cross-compiling.
5612 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5614 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5616 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5618 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5620 * INSTALL: Document cross-compilation.
5621 * acinclude.m4: Determine whether nm support -P and --defined-only.
5622 * configure.ac: Add TARGET_ to all variables pertaining to target
5623 that don't have it yet.
5624 * gentpl.py: Likewise.
5625 * grub-core/Makefile.am: Likewise.
5626 * grub-core/genmod.sh.in: Likewise.
5627 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5630 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5632 * configure.ac: Remove -Wempty-body. It's not essential and needs
5635 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5637 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5638 * util/getroot.c: Likewise.
5640 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5642 * grub-core/disk/ahci.c: Add needed explicit cast.
5643 * grub-core/lib/backtrace.c: Likewise.
5644 * grub-core/net/ip.c: Likewise.
5645 * grub-core/net/tcp.c: Likewise.
5646 * grub-core/net/udp.c: Likewise.
5648 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5650 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5652 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5654 * util/import_gcry.py: Add final newline in visibility.h.
5656 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5658 * conf/Makefile.common: Fix typo.
5660 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5662 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5664 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5666 * Makefile.am (widthspec.h): Fix typo.
5667 * util/grub-gen-widthspec.c: Likewise.
5669 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5671 Move ascii.h and widthspec.h generation to a separate build-time-only
5674 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5676 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5677 Always fill bootdisk info and improve check for NetBSD disklabel.
5679 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5681 * conf/Makefile.extra-dist: Add util/bin2h.c.
5682 Reported by: floppym.
5684 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5686 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5688 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5690 * configure.ac: Disable unifont and starfield if no freetype was found.
5692 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5694 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5695 on NetBSD and OpenBSD.
5697 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5699 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5701 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5703 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5704 reduced. Inheritant options are processed during the theme loading.
5706 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5708 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5710 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5712 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5714 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5716 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5719 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5721 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5722 remove-potcdate.sed.
5724 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5726 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5727 unused attribute from pull argument.
5729 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5731 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5734 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5736 * util/getroot.c (pull_lvm_by_command): add --separator option
5737 to vgs call to disable padding of output to 10 characters.
5739 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5741 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5743 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5746 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5748 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5751 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5753 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5754 full Canadian cross. Tested with build=x86_64, host=arm,
5755 target=ppc-ieee1275.
5757 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5759 * configure.ac: Error if no $BUILD_CC could be found.
5762 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5764 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5767 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5769 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5770 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5772 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5774 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5775 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5776 falling back to the partition device, otherwise a later call to this
5777 function may fail spuriously.
5778 Reported by Axel Beckert. Fixes Debian bug #708614.
5780 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5782 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5784 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5786 Prevent shadowing of stdlib's devname(3) on BSD.
5788 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5789 and devlast to diskname and disklast, respectively.
5791 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5793 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5795 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5797 * docs/grub.texi: Introduce terminal window position options:
5798 terminal-left: terminal window's left position
5799 terminal-top: terminal window's top position
5800 terminal-width: terminal window's width
5801 terminal-height: terminal window's height
5802 terminal-border: terminal window's border width
5803 * grub-core/gfxmenu/theme-loader.c: Likewise.
5804 * include/grub/gfxmenu_view.h: Likewise.
5805 * po/exlude.pot: Likewise.
5806 * grub-core/gfxmenu/view.c: Likewise.
5807 Also updated minimal window size.
5808 Also terminal_sanity_check function has been introduced.
5809 * grub-core/tests/checksums.h: Update (terminal window height
5810 is adjusted now for low resolution screen)
5812 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5814 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5817 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5819 * po/exclude.pot: Add few recent exceptions.
5821 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5823 * tests/grub_func_test.in: Add unicode.pf2.
5825 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5827 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5828 standard rather than noral color, in line with other terminals.
5830 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5832 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5835 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5837 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5839 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5841 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5842 inappropriate printf.
5844 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5846 * .bzrignore: Remove grub-core/lib/dtc-grub,
5847 grub-core/Makefile.libfdt.def
5848 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5850 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5852 * include/grub/video.h (grub_video_register): Keep double-linked as
5853 well as single-linked invariants.
5854 Reported by: qwertial.
5856 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5858 * grub-core/commands/nativedisk.c (get_uuid): Handle
5859 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5861 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5863 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5864 maximum of NW, N, NE heights instead of N's height and maximum of
5865 NW, W, SW widths instead of W's width. (So the box will be always
5868 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5870 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5871 Fix misuse of variable count.
5873 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5874 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5875 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5877 New ports to arm-uboot and arm-efi.
5878 Mostly by Leif Lindholm with some additions from
5879 Francesco Lavra and cleanup by Vladimir Serbinenko.
5881 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5883 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5885 Reported by: Leon Drugi.
5887 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5889 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5890 Reported by: Paulo Flabiano Smorigo.
5892 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5894 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5896 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5898 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5900 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5902 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5904 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5906 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5908 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5910 * grub-core/net/bootp.c: Export net_* variables.
5911 * grub-core/net/net.c: Likewise.
5913 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5915 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5917 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5919 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5921 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5923 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5925 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5927 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5929 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5931 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5934 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5936 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5939 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5941 * grub-core/fs/zfs/zfs_lz4.c: New file.
5942 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5944 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5946 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5948 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5950 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5951 (check_pool_label): Likewise.
5952 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5954 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5956 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5958 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5960 * docs/grub.texi (Commands): Document postition parameters
5961 for menuentry command.
5963 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5965 * util/grub-mknetdir.in: Remove stray line from help output.
5967 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5969 Remove early sm712 init as there is no reason for it (the "watchdog"
5970 effect was due to wrong GPIO map).
5972 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5974 * grub-core/commands/pcidump.c: Remove static variables.
5976 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5978 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5980 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5982 * configure.ac: Move delimiter after the infos.
5984 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5986 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5988 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5990 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5991 not filling whole 8x16 space.
5993 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5995 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5997 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5999 * configure.ac: Indicate which liblzma is used if any.
6001 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6002 2013-06-21 Craig Sanders <savannah@taz.net.au>
6004 * util/grub-reboot.in: Document submenu usage.
6006 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6008 * .bzrignore: Update with a number of new test-related files.
6010 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6012 * util/grub-script-check.c: Fail on scripts containing no
6013 commands, to guard against corrupted grub-mkconfig setups that
6014 produce no useful output.
6015 * tests/grub_script_no_commands.in: New test.
6016 * Makefile.util.def (grub_script_no_commands): Add.
6017 Reported by Hans Putter. Fixes Debian bug #713886.
6019 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6021 * grub-core/disk/diskfilter.c: Forgot to remove comment
6022 from previous commit.
6024 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6026 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6027 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6029 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6031 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6033 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6035 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6036 rescan diskfilter devices until nothing new is found.
6038 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6040 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6042 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6044 Don't try to detect cbfs on *-emu.
6046 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6048 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6050 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6052 Add support for processed coreboot payload chainloading.
6054 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6056 Enable coreboot information commands even when not loaded as
6057 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6059 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6061 Support for cbfs. Also factor out the part which is common
6062 for all archives to a separate module. This splits tar from cpio
6063 as they are very different but keeps cpio, cpio_be, odc and newc
6064 together since they're very similar.
6066 2013-06-15 David Michael <fedora.dm0@gmail.com>
6068 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6069 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6071 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6073 * tests/grub_script_eval.in: Really add the eval test.
6075 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6077 Move flavour-specific parts out of common cpio.c file and
6078 rename remaining to cpio_common.c
6080 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6082 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6083 off new function grub_script_execute_new_scope. Change callers to use
6084 either of them as appropriate.
6085 * grub-core/commands/eval.c: New command eval.
6086 * docs/grub.texi (Commands): Document it.
6088 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6090 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6091 to fetch values when listing.
6093 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6095 Fix make dist on non-pc.
6097 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6099 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6100 without a device name.
6102 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6104 Remove enable_executable_check as it's not needed anymore.
6105 Reported by: dougray.
6107 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6109 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6110 ambigouos RAID before discovering RAIDs on top of it.
6113 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6115 Fix typo (failback vs fallback).
6117 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6119 * util/grub.d/30_os-prober.in: Add support for probing EFI
6120 System Partition (as of os-prober 1.58).
6122 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6124 * configure.ac: Add yet another path to unifont. For parabola.
6126 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6128 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6129 handling to copy the killed characters to the kill buffer as
6130 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6131 stored as char. Eliminates UCS4 truncation and corruption
6132 observed when killing characters with Ctrl-u and yanking them
6135 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6137 Detach optional parts of gfxterm and integrate in with coreboot init.
6139 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6141 Move blit and fill dispatcher to appropriate files to decrease export
6142 and relocation overhead.
6144 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6146 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6149 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6151 * grub-core/Makefile.am: Fix compilation problem with some
6154 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6156 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6158 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6160 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6163 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6165 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6168 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6170 * grub-core/partmap/dfly.c: New partition map.
6172 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6174 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6176 Reported by: Francesco Lavra.
6178 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6180 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6181 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6183 * conf/Makefile.common: define dist_grubconf_DATA
6185 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6187 Progressively skip menu elements on small terminals rather
6190 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6192 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6193 to avoid losing last column.
6195 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6197 * po/exclude.pot: Add missing string "%C".
6199 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6201 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6204 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6206 * util/grub-install.in: Gettextize "Not found" message.
6208 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6211 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6213 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6215 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6217 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6219 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6221 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6223 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6225 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6226 attribute since structure is not necessarily aligned.
6228 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6230 * docs/grub.texi (Device syntax): Clarify description of network
6233 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6235 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6236 for vasprintf presence.
6238 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6240 * util/grub-install.in: Handle efibootmgr presence check.
6241 Reported by: Leif Lindholm.
6243 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6245 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6246 new strings to translate.
6248 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6250 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6251 yet another string (pun intended) to translate.
6253 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6255 * po/POTFILES-shell.in: Autogenerate it.
6257 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6259 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6261 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6263 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6266 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6268 * docs/grub.texi (Network): Add description of net_default_interface,
6269 net_default_ip and net_default_mac. Rewrite variables description
6270 to emphasize that they are per-interface.
6272 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6274 New test: cmdline and cat.
6276 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6278 * grub-core/commands/cat.c: Show UTF-8 characters.
6280 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6282 * conf/Makefile.common: Poison float and double on non-emu.
6284 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6286 * configure.ac: Don't disable extended registers on emu.
6288 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6290 * configure.ac: Don't use extended registers on x86_64.
6291 Reported by: Peter Jones.
6293 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6295 * grub-core/term/efi/console.c: Fix compile error.
6297 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6299 Compressed HFS+ support.
6301 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6303 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6306 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6310 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6312 * grub-core/tests/setjmp_test.c: New test.
6314 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6316 New variables 'net_default_*' to determine MAC/IP of default interface.
6318 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6320 * tests/gettext_strings_test.in: A test to check for strings not
6321 marked for translation.
6323 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6325 * autogen.sh: Exclude unused libgcrypt files from translation.
6327 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6329 Simplify few strings.
6331 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6333 Mark few forgotten strings for translation.
6335 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6337 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6340 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6342 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6344 * grub-core/video/readers/tga.c: Likewise.
6346 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6348 * tests/priority_queue_unit_test.cc: New test.
6350 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6352 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6355 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6357 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6358 variable for one time boot menu entry.
6360 2013-05-05 Bean <bean123ch@gmail.com>
6362 * grub-core/commands/testspeed.c: New command testspeed.
6364 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6366 Factor-out human-size printing.
6368 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6370 Agglomerate more mallocs to speed-up gfxterm.
6372 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6374 Speed-up gfxterm by slightly agglomerating mallocs.
6376 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6380 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6382 Speed-up gfxterm by saving intermediate results in index+alpha
6385 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6387 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6390 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6392 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6393 line of timeout as it may contain the rest of long line.
6395 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6397 * grub-core/normal/main.c: Fix freed memory dereference.
6399 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6401 Fix several memory leaks.
6403 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6405 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6407 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6409 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6411 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6413 Fix test -a and -o precedence.
6414 Reported by: adrian15.
6416 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6418 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6420 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6422 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6423 and add it as source to functional_test module.
6425 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6427 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6429 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6431 New series of tests for gfxterm and gfxmenu.
6433 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6435 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6436 the theme path relative to $prefix/themes.
6438 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6440 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6442 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6444 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6446 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6449 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6451 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6452 grub_gfxmenu_timeout_notifications.
6453 (grub_gfxmenu_view_destroy): Likewise.
6455 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6457 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6459 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6461 Several fixes to ieee1275 and big-endian video.
6463 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6465 Add missing exports on mips.
6467 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6469 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6470 if no unifont is found.
6471 Restore original keyboard.
6473 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6475 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6476 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6478 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6480 First automated video test (running videotest and comparing results)
6482 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6484 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6485 instead of 2 to have full RGB/CMY test pattern.
6487 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6491 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6493 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6494 ARCS. All users updated.
6496 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6498 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6500 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6502 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6504 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6506 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6507 Reported by: qwertial.
6509 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6511 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6512 with syntax "XXX deg"/"XXX °".
6514 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6516 Make PCI init in i386-qemu port more robust.
6518 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6520 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6521 cached view is reused.
6522 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6525 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6527 Unify more code in grub-install_header.
6529 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6533 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6535 Enforce disabling of firmware disk drivers when native drivers kick in.
6537 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6539 * grub-core/commands/nativedisk.c: Customize the list of modules on
6540 platform. Don't try to search for disks already using native drivers.
6542 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6544 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6547 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6549 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6550 handling of variables containing backslash.
6552 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6554 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6556 Reported by: qwertial.
6558 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6560 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6562 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6564 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6566 Reported by: qwertial.
6568 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6570 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6572 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6574 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6576 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6578 New command `nativedisk'.
6580 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6582 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6583 * grub-core/loader/i386/bsd.c: Likewise.
6585 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6587 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6589 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6591 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6592 grub_get_unaligned16 rather than shifts.
6594 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6596 * grub-core/kern/file.c: Use const char * rather than casting to
6599 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6601 * grub-core/commands/probe.c: Add missing grub_device_close.
6603 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6605 * INSTALL: Document linguas.sh.
6607 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6609 Remove POTFILES.in and regenerate it in autogen.sh.
6611 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6613 Move --directory/--override-directorry to grub-install_header and unify.
6615 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6617 * grub-core/term/morse.c: Macroify dih and dah.
6619 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6621 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6623 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6625 * grub-core/term/ns8250.c: Systematically probe ports by writing
6626 to SR before using them.
6628 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6630 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6632 (check_sas): Get sas_adress info.
6634 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6636 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6639 2013-04-27 Leon Drugi <eyak>
6641 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6644 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6646 Core compression test.
6648 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6650 Implement grub_machine_get_bootlocation for ARC.
6652 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6654 Improve AHCI detection and command issuing.
6656 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6660 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6662 Make 'make check' work on emu.
6664 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6666 Replace libcurses with our own vt100 handling for the ease of testing
6667 and decreasing prerequisites.
6669 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6671 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6673 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6675 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6676 compile when not needed.
6678 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6680 * tests/pseries_test.in: New test.
6682 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6684 Add test to check that different boot mediums work.
6686 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6688 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6689 ofw limited ISO support.
6691 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6693 * configure.ac: Fix loongson conditional.
6695 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6699 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6701 Add serial on ARC platform.
6703 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6705 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6708 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6710 * tests/partmap_test.in: Add missing double semicolon.
6712 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6714 * util/grub-mkrescue.in: Fix loongson filename.
6716 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6718 * util/grub-mkrescue.in: Move all files that don't have a location
6719 set in stone under /boot/grub. Use ISO hard links rather than copies
6722 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6724 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6727 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6729 Make check work on mips-arc.
6731 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6733 * util/grub-mkrescue.in: Alias sashARCS as sash.
6735 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6737 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6740 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6742 * util/grub-install.in: Fix target fo qemu_mips.
6743 Fix extension on EFI.
6745 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6747 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6748 in front of chosen entry to mark it even if highlighting is lost.
6750 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6752 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6753 gfxpayload=keep if cbfb is active.
6755 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6757 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6759 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6761 Add missing video ids to coreboot and ieee1275 video.
6763 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6765 * util/grub-mkrescue.in: Add mips-arc support.
6767 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6769 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6771 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6773 Move mips-arc link address. Previous link address was chosen
6774 in belief that RAM on SGI platforms grows down while in fact it
6775 grows up from an unusual base.
6777 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6779 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6780 Fix a type which prevented CD-ROM and floppy boot.
6782 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6784 Support coreboot framebuffer.
6786 * grub-core/video/i386/coreboot/cbfb.c: New file.
6788 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6790 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6791 detecting too small regions.
6793 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6795 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6797 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6799 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6801 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6803 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6805 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6806 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6807 * grub-core/loader/powerpc/ieee1275/linux.c
6808 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6810 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6812 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6813 Look for /boot-rom as well as /rom/boot-rom.
6815 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6817 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6818 handling when creating text_layer failed.
6819 * grub-core/video/video.c (grub_video_create_render_target):
6820 Set result to 0 on error.
6821 (grub_video_delete_render_target): Do not dereference NULL.
6823 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6825 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6826 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6827 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6828 (grub_linux_load64): Mask out 2 high bits.
6830 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6832 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6835 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6837 Add support for pseries and other bootinfo machines to grub-mkrescue.
6839 Tested by: Paulo Flabiano Smorigo.
6841 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6843 * util/grub-mkrescue.in: Add GPT for EFI boot.
6845 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6847 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6848 It improves performance in qemu.
6850 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6852 * build-aux/snippet: Add missing gnulib files.
6854 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6856 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6858 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6860 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6862 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6863 2013-04-15 Peter Jones <pjones@redhat.com>
6865 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6867 Based on patch by Peter Jones.
6869 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6871 Fix DMRAID partition handling.
6873 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6875 * tests/grub_cmd_date.in: Skip on sparc64.
6877 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6879 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6880 firmware error messages.
6882 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6884 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6885 source and destination differ.
6887 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6889 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6892 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6894 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6895 match config-util.h to avoid warnings and increase compatibility.
6897 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6898 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6900 Add option to compress files on install/image creation.
6902 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6904 * docs/grub-dev.texi: Rearrange menu to match the section order.
6905 Reported by: Bryan Hundven.
6907 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6909 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6911 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6913 Move GRUB out of system area when using xorriso 1.2.9 or later.
6915 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6917 * tests/grub_cmd_date.in: Add missing exit 1.
6919 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6921 * tests/partmap_test.in: Skip on sparc64.
6923 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6925 Support grub-shell on sparc64.
6927 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6929 Support mkrescue on sparc64.
6931 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6933 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6934 Needed on OpenBIOS due to incomplete device tree.
6936 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6938 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6939 would be otherwise excluded.
6941 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6943 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6944 Inline name defines used only once.
6946 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6948 Fix memory leaks in ofnet.
6949 Reported by: Francesco Lavra.
6951 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6953 * docs/man/grub-glue-efi.h2m: Add missing file.
6955 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6957 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6959 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6961 Better support Apple Intel Macs on CD.
6963 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6965 Replace stpcpy with grub_stpcpy in tools.
6967 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6969 Handle Japanese special keys.
6970 Reported by: Hiroyuki YAMAMORI.
6971 Codes supplied by: Hiroyuki YAMAMORI.
6973 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6975 * util/grub-mkimage.c: Document memdisk implying --prefix.
6977 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6979 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6980 much we can do about it anyway.
6982 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6984 Fix handling of split transfers.
6986 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6988 * grub-core/net/http.c: Fix bad free.
6990 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6992 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6995 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6997 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6999 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7001 * tests/util/grub-shell.in: Fix it on powerpc.
7003 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7005 Turn off QEMU ACPI-way since new releases don't have shutdown port
7008 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7010 * docs/grub.texi: Update coreboot status info.
7012 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7014 * tests/grub_cmd_date.in: New test for datetime.
7016 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7018 * tests/partmap_test.in: Fix missing qemudisk setting.
7020 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7022 Support i386-ieee1275 grub-mkrescue and make check on it.
7024 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7026 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7029 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7031 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7032 GRUB_CMDLINE_XEN_DEFAULT.
7033 Reported by: Marc Warne (GigaTux) <gigatux>
7035 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7039 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7041 Use ACPI shutdown intests as traditional port was removed.
7043 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7045 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7048 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7050 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7051 Fix few warining messages and leaks while on it.
7053 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7055 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7056 links under grub-core/lib/libgcrypt-grub/mpi.
7058 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7060 Fix ia64-efi image generation on big-endian machines. Deduplicate
7061 some code while on it.
7062 Reported by: Leif Lindholm.
7064 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7066 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7069 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7071 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7073 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7075 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7078 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7080 * grub-core/normal/term.c: Few more fixes for menu entry editor
7082 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7084 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7086 * grub-core/normal/term.c: Few more fixes for menu entry editor
7088 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7090 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7092 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7093 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7095 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7097 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7098 instead of hardcoding grub.mo.
7100 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7102 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7104 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7106 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7107 grub-core/disk/geli.c.
7109 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7111 * util/grub-mkfont.c: Prefer enum to #define.
7113 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7115 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7117 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7119 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7121 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7123 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7125 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7127 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7129 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7131 * include/grub/bsdlabel.h: Use enums.
7133 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7135 Move GRUB_CHAR_BIT to types.h.
7137 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7139 * docs/grub.texi: Document more user commands.
7141 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7143 * docs/grub.texi: Document menuentry --id option.
7145 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7147 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7149 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7151 Unify file copying setup across different install scripts. Add
7152 options for performing partial install.
7154 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7155 2013-04-04 Peter Jones <pjones@redhat.com>
7157 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7159 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7161 Use TSC as a possible time source on i386-ieee1275.
7163 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7165 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7168 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7170 * util/grub-setup.c (setup): Handle some corner cases.
7172 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7174 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7176 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7178 * grub-core/commands/verify.c: Save verified file to avoid it being
7179 tampered with after verification was done.
7181 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7183 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7184 reported width by one to compensate for curesor algorithm problem.
7186 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7188 Fix screen corruption in menu entry editor and simplify the code
7191 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7193 * util/grub-mount.c (fuse_init): Return error if fuse_main
7196 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7198 * include/grub/elf.h: Add missing ARM relocation codes and fix
7201 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7203 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7205 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7206 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7208 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7209 into account when calculating radius.
7211 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7213 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7215 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7217 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7219 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7221 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7222 missing closing bracket.
7224 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7226 * INSTALL: Mention xorriso requirement.
7228 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7230 * grub-core/commands/verify.c: Fix hash algorithms values for
7231 the first three hashes - they start with 1, not with 0.
7233 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7235 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7236 Try terminating EFI services several times due to quirks in some
7239 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7241 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7242 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7243 BankField extended opcodes.
7244 (get_sleep_type): Add minimal scope handling (just enough to
7245 handle setting the scope to the root path).
7246 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7247 * include/grub/acpi.h: Add enumeration values for Event, Device,
7248 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7250 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7252 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7255 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7257 * grub-core/disk/ahci.c: Give more time for AHCI request.
7259 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7261 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7264 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7266 Replace the region at 0 from coreboot tables to available in BSD
7269 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7271 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7274 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7276 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7279 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7281 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7282 handling of multi-device filesystems.
7284 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7286 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7289 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7291 Add new 'proc' filesystem framework and put luks_script into it.
7293 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7295 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7298 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7300 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7302 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7304 Add ability to generate newc additions on runtime.
7306 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7308 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7311 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7313 * po/POTFILES.in: Regenerate.
7315 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7317 * grub-core/commands/verify.c (hashes): Add several hashes
7320 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7322 Slight improve in USB-related boot-time checkpoints.
7324 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7326 * grub-core/commands/boottime.c: Fix copyright header.
7328 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7330 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7331 coreboot tables content. Support for cbmemc.
7333 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7335 Fix a conflict between ports structures with 2 controllers of
7338 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7340 * include/grub/boottime.h: Add missing file.
7342 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7344 Initialize USB ports in parallel to speed-up boot.
7346 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7348 Fix USB devices not being detected when requested
7349 due to delayed attach.
7351 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7353 Implement boot time analysis framework.
7355 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7357 Remove get_endpoint_descriptor and change all functions needing
7358 descriptor to just receive it as argument rather than endpoint
7361 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7363 Better estimate the maximum USB transfer size.
7365 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7367 Resend a packet if we got the wrong buffer in status.
7369 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7371 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7372 multiplication rather than division.
7374 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7376 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7379 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7381 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7382 operations to have intended shifts and not divisions.
7384 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7386 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7387 intended shifts rather than division.
7389 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7391 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7392 computation for some years before epoch. Avode confusing division
7395 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7397 * grub-core/video/i386/pc/vbe.c
7398 (grub_video_vbe_print_adapter_specific_info): Replace division by
7401 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7403 Adjust types in gdb module to have intended unsigned shifts rather than
7406 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7408 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7409 maximum size is 4G - 1 on hfs
7411 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7413 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7415 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7417 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7420 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7422 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7423 causing gcc error with gcc 4.7.1.
7425 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7427 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7428 dereference null pointer. While the code is technically correct, gcc
7429 may eliminate a null check if pointer is already dereferenced.
7431 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7433 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7435 * grub-core/normal/term.c (read_terminal_list): Likewise.
7437 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7439 Lift up core size limits on some platforms. Fix potential memory
7440 corruption with big core on small memory systems. Document remaining
7443 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7445 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7448 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7450 Remove all trampoline support. Add -Wtrampolines when
7451 present. Remove symbols used for trampolines to make
7452 link fail if trampolines are present.
7454 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7456 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7457 append out of its parent.
7459 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7461 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7464 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7466 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7467 all vars to a macro. All users updated.
7469 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7471 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7474 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7476 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7478 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7480 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7482 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7484 Move to more hookless approach in IEEE1275 devices handling.
7486 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7488 * grub-core/kern/term.c (grub_term_normal_color),
7489 (grub_term_highlight_color): Add back lost defaults.
7491 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7493 Make elfload not use hooks. Opt for flags and iterators instead.
7495 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7497 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7498 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7500 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7504 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7506 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7507 hook pass-through parameter. All users updated and unnested.
7509 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7511 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7514 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7516 * grub-core/fs/hfs.c: Remove nested functions.
7518 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7520 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7521 the context through.
7522 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7524 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7526 * util/grub-editenv.c (list_variables): Move print_var out of its
7529 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7531 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7534 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7536 * grub-core/gentrigtables.c: Make tables const.
7538 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7540 Remove nested functions from videoinfo iterators.
7542 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7544 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7545 for 64-bit platforms.
7547 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7549 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7550 a FOR_CHILDREN macro.
7552 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7554 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7555 platform from firmware path.
7557 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7559 Enable linux16 on non-BIOS systems for i.a. memtest.
7561 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7563 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7565 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7567 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7568 Fix end of table condition.
7570 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7572 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7575 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7577 * grub-core/fs/jfs.c: Remove nested functions.
7579 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7581 * grub-core/fs/minix.c: Remove nested functions.
7583 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7585 * grub-core/fs/iso9660.c: Remove nested functions.
7587 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7589 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7592 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7594 * util/grub-fstest.c: Remove nested functions.
7596 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7598 * grub-core/loader/machoXX.c: Remove nested functions.
7600 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7602 Remove nested functions from disk and file read hooks.
7604 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7605 (struct grub_disk): Add read_hook_data member.
7606 * include/grub/file.h (struct grub_file): Likewise.
7607 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7612 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7614 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7615 Fix off by one error in enumerating extended partitions.
7617 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7619 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7620 memory leak if device name is not found.
7622 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7624 * grub-core/normal/menu_entry.c (update_screen): remove
7625 unused variable `off' which caused scroll down arrow to be always shown.
7627 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7629 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7630 access to unallocated memory.
7632 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7634 * Makefile.util.def: Add partmap/msdos.c to common library.
7635 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7636 * grub-core/disk/ldm.c: Check for existence of
7637 GRUB_PC_PARTITION_TYPE_LDM.
7639 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7641 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7642 sizes and display sector size.
7644 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7646 Implement new command cmosdump.
7648 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7650 Support Openfirmware disks with non-512B sectors.
7652 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7654 * (grub_ofdisk_get_block_size): New function.
7655 * (grub_ofdisk_prepare): Use the correct block size.
7656 * (grub_ofdisk_read): Likewise.
7657 * (grub_ofdisk_write): Likewise.
7658 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7661 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7663 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7665 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7667 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7670 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7672 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7675 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7677 Implement USBDebug (full USB stack variant).
7679 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7681 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7682 unless they have unexpected values.
7684 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7686 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7689 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7691 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7692 zero-out of port structure.
7694 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7696 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7697 of extended attributes.
7699 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7701 * util/grub-install.in: change misleading comment about
7704 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7706 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7707 when menu highlight color isn't set.
7709 2013-01-27 C. Masloch <pushbx@38.de>
7711 Improve FreeDOS direct loading support compatibility.
7713 * include/grub/i386/relocator.h (grub_relocator16_state):
7715 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7717 (grub_relocator16_boot): Handle %ebp.
7718 * grub-core/lib/i386/relocator16.S: Likewise.
7719 * grub-core/loader/i386/pc/freedos.c:
7720 Load BPB to pass kernel which partition to load from.
7721 Check that kernel file is not too large.
7722 Set register dl to BIOS unit number as well.
7724 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7726 * util/grub-reboot.in (usage): Document the need for
7728 * util/grub-set-default.in (usage): Likewise.
7729 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7731 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7733 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7734 than defining WORDS_BIGENDIAN manually.
7736 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7738 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7741 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7743 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7745 (blit_comb: add_device_width): Likewise.
7747 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7749 Remove nested functions from USB iterators.
7751 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7752 (grub_usb_controller_iterate_hook_t): Likewise.
7753 (grub_usb_iterate): Add hook_data argument.
7754 (grub_usb_controller_iterate): Likewise.
7755 (struct grub_usb_controller_dev.iterate): Likewise.
7757 Update all implementations and callers.
7759 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7761 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7762 margin when not needed.
7764 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7766 Make color variables global instead of it being per-terminal.
7768 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7770 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7773 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7775 Fix powerpc and sparc64 build failures caused by un-nesting memory
7778 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7780 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7781 parameter declarations.
7783 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7785 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7787 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7789 Improve spkmomdem reliability by adding a separator between bytes.
7791 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7793 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7794 an Acer registration utility with several sightings in the wild.
7795 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7797 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7799 Remove nested functions from filesystem directory iterators.
7801 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7802 (struct grub_fs.dir): Add hook_data argument.
7804 Update all implementations and callers.
7806 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7808 * docs/grub.texi (Multi-boot manual config): Fix typo for
7811 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7813 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7814 until after its use in generate_image.
7816 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7818 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7819 initrd size to addr_min, since the initrd will be allocated after
7822 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7824 * conf/Makefile.common: Fix autogen rules to pass definition
7825 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7827 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7829 * include/grub/elf.h: Update ARM definitions based on binutils.
7831 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7833 Split long USB transfers into short ones.
7835 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7837 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7838 is interrupted by ESC.
7840 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7842 * util/grub-script-check.c (main): Uniform the error message.
7844 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7846 Remove nested functions from ELF iterators.
7848 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7850 Remove nested functions from device iterators.
7852 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7853 (grub_arc_iterate_devs): Add hook_data argument.
7854 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7855 (struct grub_ata_dev.iterate): Add hook_data argument.
7856 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7857 (grub_device_iterate): Add hook_data argument.
7858 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7859 (struct grub_disk_dev.iterate): Add hook_data argument.
7860 (grub_disk_dev_iterate): Likewise.
7861 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7863 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7865 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7867 (struct grub_partition_map.iterate): Add hook_data argument.
7868 (grub_partition_iterate): Likewise.
7869 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7870 (struct grub_scsi_dev.iterate): Add hook_data argument.
7874 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7876 Fix typos for "developer" and "development".
7878 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7880 Add license header to spkmodem-recv.c.
7882 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7884 Rewrite spkmodem to use PIT for timing. Double the speed.
7886 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7888 Add new command pcidump.
7890 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7892 New terminal outputs using serial: morse and spkmodem.
7894 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7896 Improve bidi handling in entry editor.
7898 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7900 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7901 argument to prevent name collision.
7903 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7905 Remove nested functions from script reading and parsing.
7907 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7908 getline_data argument, passed to getline.
7909 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7910 getline_data argument, passed to grub_parser_split_cmdline.
7911 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7912 lexerstate->getline_data to lexerstate->getline.
7913 (grub_script_lexer_init): Add getline_data argument, saved in
7914 lexerstate->getline_data.
7915 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7916 argument, passed to grub_script_parse.
7917 * grub-core/script/script.c (grub_script_parse): Add getline_data
7918 argument, passed to grub_script_lexer_init.
7919 * include/grub/parser.h (grub_parser_split_cmdline): Update
7920 prototype. Update all callers to pass appropriate getline data.
7921 (struct grub_parser.parse_line): Likewise.
7922 (grub_rescue_parse_line): Likewise.
7923 * include/grub/reader.h (grub_reader_getline_t): Add void *
7925 * include/grub/script_sh.h (struct grub_lexer_param): Add
7926 getline_data member.
7927 (grub_script_parse): Update prototype. Update all callers to pass
7928 appropriate getline data.
7929 (grub_script_lexer_init): Likewise.
7930 (grub_normal_parse_line): Likewise.
7932 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7934 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7935 static instead of nested. Rename to ...
7936 (grub_parser_execute_getline): ... this.
7937 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7939 * grub-core/normal/main.c (read_config_file: getline): Make static
7940 instead of nested. Rename to ...
7941 (read_config_file_getline): ... this.
7942 (grub_normal_read_line): Add unused data argument.
7943 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7944 getline): Make static instead of nested. Rename to ...
7945 (grub_script_execute_sourcecode_getline): ... this.
7946 * util/grub-script-check.c (main: get_config_line): Make static
7949 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7951 Remove nested functions from memory map iterators.
7953 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7954 argument, passed to hook.
7955 * grub-core/kern/i386/coreboot/mmap.c
7956 (grub_linuxbios_table_iterate): Likewise.
7957 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7959 (grub_machine_mmap_iterate): Add hook_data argument.
7960 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7961 Add hook_data argument, passed to hook.
7962 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7964 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7966 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7968 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7970 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7972 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7974 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7975 (grub_machine_mmap_iterate): Likewise.
7976 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7977 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7979 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7980 Remove NESTED_FUNC_ATTR from here and from all users.
7981 (grub_mmap_iterate): Update prototype.
7982 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7983 pass appropriate hook data.
7984 (grub_machine_mmap_iterate): Likewise.
7986 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7987 static instead of nested.
7988 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7990 (lsmmap_hook): ... this.
7991 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7993 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7994 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7995 heap_init): Likewise.
7996 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7998 (mmap_iterate_hook): ... this.
7999 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8001 * grub-core/lib/ieee1275/relocator.c
8002 (grub_relocator_firmware_get_max_events: count): Likewise.
8003 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8005 (grub_relocator_firmware_fill_events_iter): ... this.
8006 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8007 hook): Likewise. Rename to ...
8008 (grub_relocator_alloc_chunk_align_iter): ... this.
8009 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8011 (generate_e820_mmap_iter): ... this.
8012 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8014 (count_hook): ... this.
8015 (grub_linux_boot: hook): Likewise. Rename to ...
8016 (grub_linux_boot_mmap_find): ... this.
8017 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8018 (grub_linux_boot_mmap_fill): ... this.
8019 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8020 hook): Likewise. Rename to ...
8021 (grub_fill_multiboot_mmap_iter): ... this.
8022 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8023 hook): Likewise. Rename to ...
8024 (count_hook): ... this.
8025 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8026 hook): Likewise. Rename to ...
8027 (grub_fill_multiboot_mmap_iter): ... this.
8028 * grub-core/loader/powerpc/ieee1275/linux.c
8029 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8030 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8031 Likewise. Rename to ...
8032 (alloc_phys_choose): ... this.
8033 (determine_phys_base: get_physbase): Likewise.
8034 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8035 find_hook): Likewise.
8036 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8037 (malloc_hook: count_hook): Likewise.
8038 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8039 Likewise. Rename to ...
8040 (lower_hook): ... this.
8041 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8042 (upper_hook): ... this.
8043 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8044 (post64_hook): ... this.
8045 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8046 Likewise. Rename to ...
8047 (lower_hook): ... this.
8048 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8049 (upper_hook): ... this.
8050 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8051 (grub_mmap_iterate: fill_hook): Likewise.
8052 (fill_mask): Pass addr and mask within a single struct.
8053 (grub_cmd_badram: hook): Make static instead of nested. Rename
8055 (badram_iter): ... this.
8056 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8057 (cutmem_iter): ... this.
8059 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8061 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8062 delimit path in strings using quotes.
8063 * util/getroot.c (grub_guess_root_devices): Likewise.
8064 (grub_make_system_path_relative_to_its_root): Likewise.
8065 * util/grub-probe.c (probe): Likewise.
8066 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8067 (xrealpath): Likewise.
8069 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8071 Fix compilation with older compilers.
8073 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8074 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8076 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8077 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8078 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8080 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8081 * include/grub/crypto.h: Add type defines.
8082 * util/import_gcrypth.sed: Remove duplicate type defines.
8084 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8086 New command list_trusted.
8088 * grub-core/commands/verify.c (grub_cmd_list): New function.
8090 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8092 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8095 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8097 Remove nested functions from PCI iterators.
8099 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8100 passed to hook. Update all callers to pass appropriate hook data.
8101 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8102 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8103 Remove NESTED_FUNC_ATTR from here and from all users.
8104 (grub_pci_iterate): Update prototype.
8105 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8106 instead of nested. Rename to ...
8107 (grub_cs5536_find_iter): ... this.
8108 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8109 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8111 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8113 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8115 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8117 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8118 * grub-core/video/radeon_fuloong2e.c
8119 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8120 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8121 find_card): Likewise.
8122 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8125 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8127 * grub-core/commands/verify.c: Mark messages for translating.
8129 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8131 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8134 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8136 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8139 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8141 * autogen.sh: Do not try to delete nonexistant files.
8142 * util/import_gcrypth.sed: Add some missing header removals.
8144 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8146 Clean up dangling references to grub-setup.
8147 Fixes Ubuntu bug #1082045.
8149 * docs/grub.texi (Images): Refer generally to grub-install rather
8150 than directly to grub-setup.
8151 (Installing GRUB using grub-install): Remove direct reference to
8153 (Device map) Likewise.
8154 (Invoking grub-install): Likewise.
8155 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8156 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8157 * util/grub-install.in (usage): Likewise.
8159 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8160 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8162 * configure.ac: Remove grub_setup output variable.
8164 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8166 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8167 grub-setup to grub-sparc64-setup.
8169 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8171 Import gcrypt public-key cryptography and implement signature checking.
8173 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8175 * grub-core/fs/ntfs.c: Ue more appropriate types.
8176 * grub-core/fs/ntfscomp.c: Likewise.
8177 * include/grub/ntfs.h: Likewise.
8179 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8181 Support Apple FAT binaries on non-Apple platforms.
8183 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8184 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8186 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8189 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8191 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8194 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8196 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8197 explicitly zeroing elements.
8198 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8199 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8200 of elements in a structure already allocated using grub_zalloc.
8201 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8203 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8205 * docs/grub.texi (grub_cpu): New subsection.
8206 (grub_platform): Likewise.
8208 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8210 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8212 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8214 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8217 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8219 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8220 * grub-core/fs/ntfscomp.c: Likewise.
8221 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8222 (grub_ntfs_comp): Likewise.
8224 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8226 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8228 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8229 of groups_per_block. All users updated.
8231 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8233 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8234 grub_error properly.
8235 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8236 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8238 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8240 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8241 always in /boot/zfs.
8242 Reported by: Yuta Satoh.
8244 2013-01-03 Yuta Satoh <nigoro>
8246 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8249 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8251 * configure.ac: Extend -Wno-trampolines to host.
8253 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8255 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8258 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8260 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8261 (Invoking grub-script-check): Likewise.
8263 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8265 * docs/grub.texi (Invoking grub-mount): New section.
8266 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8268 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8270 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8271 test failures, so that a failing unit test correctly causes 'make
8274 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8276 Fix failing printf test.
8278 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8279 '$' in the correct order when collecting type information.
8281 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8283 * docs/grub.texi (configfile): Explain environment variable
8285 (source): New section.
8286 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8288 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8290 Remove several trivially-unnecessary uses of nested functions.
8292 * grub-core/commands/i386/pc/sendkey.c
8293 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8295 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8297 (legacy_file_getline): ... this.
8298 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8300 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8301 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8303 (probe_dummy_iter): ... this.
8304 * grub-core/kern/i386/coreboot/mmap.c
8305 (grub_linuxbios_table_iterate: check_signature): Likewise.
8306 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8307 check_varstate): Likewise. Mark inline.
8308 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8309 an additional parameter.
8310 (find_long: fnd_long): Likewise. Pass two additional parameters.
8311 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8312 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8313 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8314 Likewise. Rename to ...
8315 (grub_cmos_find_port_iter): ... this.
8316 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8318 (find_rtc_iter): ... this.
8320 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8321 function directly into the function body, since it is only called
8324 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8326 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8327 __attribute__ ((unused)).
8328 * grub-core/video/bochs.c (find_card): Likewise.
8329 * grub-core/video/cirrus.c (find_card): Likewise.
8330 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8331 * grub-core/video/sis315pro.c (find_card): Likewise.
8332 * grub-core/video/sm712.c (find_card): Likewise.
8334 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8336 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8337 Fixes Savannah bug #37821.
8339 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8341 Apply program name transformations at build-time rather than at
8342 run-time. Fixes Debian bug #696465.
8344 * acinclude.m4 (grub_TRANSFORM): New macro.
8345 * configure.ac: Create output variables with transformed names for
8347 * util/bash-completion.d/grub-completion.bash.in: Use
8348 pre-transformed variables for program names.
8349 * util/grub-install.in: Likewise.
8350 * util/grub-kbdcomp.in: Likewise.
8351 * util/grub-mkconfig.in: Likewise.
8352 * util/grub-mkconfig_lib.in: Likewise.
8353 * util/grub-mknetdir.in: Likewise.
8354 * util/grub-mkrescue.in: Likewise.
8355 * util/grub-mkstandalone.in: Likewise.
8356 * util/grub-reboot.in: Likewise.
8357 * util/grub-set-default.in: Likewise.
8358 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8359 * tests/util/grub-shell-tester.in: Remove unused assignment.
8360 * tests/util/grub-shell.in: Likewise.
8361 * util/grub.d/00_header.in: Likewise.
8363 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8365 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8367 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8369 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8371 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8373 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8374 Reported by: Eriks Latosheks <foresterlv>.
8376 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8378 * docs/grub.texi (Network): Update instructions on generating netboot
8381 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8383 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8384 around device name if necessarry.
8386 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8388 * util/grub-install.in: Follow the symbolic link parameter added
8389 to the file command.
8391 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8393 * util/grub-install.in: Remove stale TODO.
8395 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8397 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8398 dynamic allocation for the bootpath buffer.
8400 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8402 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8405 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8407 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8408 argument rather than font name. All users updated.
8409 (grub_gfxterm_set_window): Likewise.
8411 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8413 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8416 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8418 * util/getroot.c (convert_system_partition_to_system_disk): Support
8421 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8423 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8424 infinite loop on corrupted FS.
8426 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8428 Fix big-endian mtime.
8430 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8431 together sec and usec.
8432 (grub_ufs_dir): Use correct byteswapping for UFS time.
8434 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8436 Support big-endian UFS1.
8438 * Makefile.util.def (libgrubmods): Add ufs_be.c
8439 * grub-core/Makefile.core.def (ufs1_be): New module.
8440 * grub-core/fs/ufs_be.c: New file.
8441 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8444 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8446 * include/grub/types.h: Fix functionality unaffecting typo in
8447 GRUB_TARGET_WORDSIZE conditional macro.
8449 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8451 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8453 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8455 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8456 that /netbsd appears first (when it exists).
8458 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8460 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8461 Fixes Savannah bug #37558.
8463 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8465 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8466 description of extract_entries_configfile.
8468 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8470 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8472 (grub_cmd_linux): Likewise.
8473 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8474 preferred_lifetime. Update all users.
8476 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8478 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8479 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8481 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8483 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8484 errors from grub-probe to /dev/null, not stdout.
8486 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8488 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8491 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8493 * util/grub-install.in: Make the error message if $source_dir
8494 doesn't exist more useful.
8496 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8498 Fix grub-emu build on FreeBSD.
8500 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8501 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8503 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8504 implementation is currently Linux-specific.
8505 * util/getroot.c (exec_pipe): Define only on Linux or when either
8506 libzfs or libnvpair is unavailable.
8507 (find_root_devices_from_poolname): Remove unused path variable.
8509 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8511 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8512 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8513 should fit before end == 63.
8515 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8517 * util/grub-setup.c (write_rootdev): Remove unused core_img
8518 parameter. Update all callers.
8519 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8520 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8523 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8525 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8526 (grub_add_tab): New function.
8527 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8528 * util/grub.d/10_illumos.in: Likewise.
8529 * util/grub.d/10_kfreebsd.in: Likewise.
8530 * util/grub.d/10_linux.in: Likewise.
8531 * util/grub.d/10_netbsd.in: Likewise.
8532 * util/grub.d/10_windows.in: Likewise.
8533 * util/grub.d/10_xnu.in: Likewise.
8534 * util/grub.d/20_linux_xen.in: Likewise.
8535 * util/grub.d/30_os-prober.in: Likewise.
8537 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8539 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8540 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8541 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8542 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8543 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8545 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8546 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8548 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8550 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8552 Reported by: BURETTE, Bernard.
8554 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8556 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8559 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8561 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8562 IEEE1275 machines. Fixes powerpc-emu compilation.
8563 * include/grub/terminfo.h: Likewise.
8565 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8567 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8569 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8571 (efiemu_set_variable): Make vendor_guid a const pointer.
8573 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8575 Don't require grub-mkconfig_lib to generate manpages for programs.
8577 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8578 dependencies, don't add grub-mkconfig_lib.
8579 (program): Pass empty adddeps.
8580 (script): Pass grub-mkconfig_lib as adddeps.
8582 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8584 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8585 * util/getroot.c (grub_find_device): Likewise.
8586 (get_mdadm_uuid): Likewise.
8587 (grub_util_is_imsm): Likewise.
8588 (grub_util_pull_device): Likewise.
8589 * util/grub-probe.c (probe): Likewise.
8591 2012-09-10 Benoit Gschwind <gschwind>
8593 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8594 (devs): Add devpath_8.
8596 2012-09-08 Peter Jones <pjones@redhat.com>
8598 * grub-core/Makefile.core.def (efifwsetup): New module.
8599 * grub-core/commands/efi/efifwsetup.c: New file.
8600 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8601 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8603 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8605 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8607 * configure.ac: Add SuSe path.
8609 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8613 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8615 * util/import_gcry.py: Sort cipher_files, to make build system
8616 generation more deterministic.
8618 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8620 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8621 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8622 (grub_set_datetime): Likewise.
8624 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8626 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8629 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8631 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8633 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8635 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8637 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8639 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8640 required for checkouts from bzr, but it may be useful for users or
8641 distributors wishing to update translations against a tarball
8642 distribution, and it can be helpful for the tarball to be a superset
8645 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8647 * Makefile.am (EXTRA_DIST): Add
8648 grub-core/tests/boot/linux.init-mips.S,
8649 grub-core/tests/boot/linux.init-ppc.S, and
8650 grub-core/tests/boot/linux-ppc.cfg.
8652 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8654 * grub-core/mmap/mips/loongson: Remove empty directory.
8656 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8658 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8661 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8663 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8666 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8668 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8670 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8672 * po/POTFILES.in: Regenerated.
8674 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8676 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8677 (NetBSD): New subsection.
8679 2012-07-22 Ales Nesrsta <starous@volny.cz>
8681 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8682 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8684 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8686 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8687 * util/grub.d/10_hurd.in: Add missing quoting.
8688 * util/grub.d/10_illumos.in: Likewise.
8689 * util/grub.d/10_kfreebsd.in: Likewise.
8690 * util/grub.d/10_linux.in: Likewise.
8691 * util/grub.d/20_linux_xen.in: Likewise.
8693 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8695 New command `lsefi'.
8697 * grub-core/Makefile.core.def (lsefi): New module.
8698 * grub-core/commands/efi/lsefi.c: New file.
8699 * include/grub/efi/api.h: Add more GUIDs.
8701 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8703 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8704 (grub_bsd_elf32_hook): Likewise.
8705 (grub_bsd_elf64_size_hook): Likewise.
8706 (grub_bsd_elf64_hook): Likewise.
8707 (grub_bsd_load_elf): Likewise.
8709 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8711 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8712 if hash function is unavailable.
8713 (dec_stream_header): Likewise.
8715 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8717 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8720 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8722 Fix coreboot compilation.
8724 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8725 (grub_vga_text_init_real): ... this.
8726 (grub_vga_text_fini): Rename to ...
8727 (grub_vga_text_fini_real): ... this.
8729 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8731 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8733 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8735 * grub-core/lib/legacy_parse.c: Support clear and testload.
8737 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8739 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8741 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8743 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8745 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8747 * grub-core/net/tftp.c (ack): Fix endianness problem.
8748 (tftp_receive): Likewise.
8749 Reported by: Michael Davidsaver.
8751 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8753 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8755 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8757 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8758 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8759 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8761 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8763 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8765 Reported by: Stuart Hayes.
8767 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8769 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8771 * grub-core/Makefile.core.def (mda_text): New module.
8772 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8773 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8774 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8775 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8777 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8778 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8779 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8781 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8783 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8785 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8787 * grub-core/term/i386/vga_common.c: Removed.
8788 * include/grub/i386/vga_common.h: Likewise.
8789 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8790 (grub_vga_cr_bw_read): Likewise.
8791 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8792 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8793 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8794 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8795 grub_vga_cr_read/grub_vga_cr_write.
8796 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8798 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8800 * configure.ac: Bump version to 2.00.
8801 * grub-core/normal/main.c (features): Add feature_200_final.
8803 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8804 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8806 * NEWS: Fix unclarity and language mistakes.
8808 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8810 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8811 additional size to 3 pages.
8812 Reported by: Stuart Hayes.
8814 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8816 * NEWS: Add 2.00 entry.
8818 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8820 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8821 put explicit "/" for empty path.
8822 (wildcard_expand): Improve dprintf.
8824 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8826 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8827 it's equal to currnode. This can happen with "" symlink.
8829 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8831 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8832 echo shell command by printf command.
8834 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8836 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8837 the value returned by firmware is the maximal position, not diumension.
8838 (grub_terminfo_output_state): Use a more sane fallback.
8840 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8842 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8844 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8846 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8847 frequency to 150 MHz.
8849 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8853 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8855 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8857 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8859 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8861 Handle slash in HFS label.
8863 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8864 (grub_hfs_dir): Tanslate slash.
8865 (grub_hfs_label): Don't translate slash.
8867 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8869 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8870 network protocol listing since it introduces problematic dependency on
8873 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8875 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8877 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8879 Init video early on yeeloong to avoid being rebooted by watchdog.
8881 * grub-core/Makefile.am (gensm712): New target.
8882 (sm712_start.S): Likewise.
8883 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8884 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8885 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8887 * include/grub/vga.h: Move registry definitions to...
8888 * include/grub/vgaregs.h: ... here.
8890 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8892 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8895 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8897 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8898 platforms with firmware disk drivers in the core.
8900 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8902 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8903 informative verbose message.
8904 (read_lv): Handle 64-bit segment size.
8906 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8908 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8910 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8912 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8913 character but still remove trainling spaces.
8914 (grub_fat_label): Ignore archive flag.
8916 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8918 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8919 cast between linux_kernel_header and linux_kernel_params.
8921 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8923 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8925 (grub_raid6_recover_func_t): Likewise.
8926 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8927 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8929 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8931 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8933 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8937 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8938 [__NetBSD__]: Add explicit cast before bitshift.
8940 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8942 * configure.ac: Bump to 2.00~rc1.
8944 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8946 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8949 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8950 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8952 * docs/grub.texi: Fix search syntax.
8953 (Multi-boot manual config): Put msdos rather than GPT example.
8954 Grammar corrections.
8956 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8958 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8960 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8962 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8964 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8966 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8967 message on double free. Put the value of magic in case of mismatch.
8969 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8971 Speed-up video on yeeloong.
8973 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8975 (grub_video_sm712_video_fini): Unmap cached_ptr.
8976 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8977 (grub_video_sm712_set_active_render_target): Removed.
8978 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8979 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8982 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8984 Avoid flushing the same line multiple times on loongson.
8986 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8987 Step in 32 bytes and not 1 byte.
8988 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8991 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8993 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8996 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8998 Implement flow control for http.
9000 * grub-core/net/http.c (parse_line): Handle response 206.
9001 (http_receive): Stall if too many packets are in the queue.
9002 (http_establish): Fix range header.
9003 (http_seek): Fix double free.
9004 (http_close): Likewise.
9005 (http_packets_pulled): New function.
9006 (grub_http_protocol): Set http_seek
9007 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9008 (ack_real): Set window depending on i_stall.
9009 (grub_net_send_tcp_packet): Likewise.
9010 (grub_net_tcp_stall): New function.
9011 (grub_net_tcp_unstall): Likewise.
9012 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9013 (grub_net_tcp_unstall): Likewise.
9015 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9017 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9019 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9021 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9023 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9025 * tests/util/grub-shell.in: Fix a typo.
9027 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9029 Implement flow control for tftp.
9031 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9032 packets but stop only if stop condition is satisfied.
9033 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9034 `stall' instead of `eof' as stop condition.
9035 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9036 (http_err): Likewise.
9037 * grub-core/net/tftp.c (ack): Replace the first argument with data
9039 (tftp_receive): Stall if too many packets are in wait queue.
9040 (tftp_packets_pulled): New function.
9041 (grub_tftp_protocol): Set packets_pulled.
9042 * include/grub/net.h (grub_net_packets): New field count.
9043 (grub_net_put_packet): Increment count.
9044 (grub_net_remove_packet): Likewise.
9045 (grub_net_app_protocol): New field `packets_pulled'.
9046 (grub_net): New field `stall'.
9048 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9050 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9051 sync part to handle them.
9053 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9055 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9056 * grub-core/net/drivers/ieee1275/ofnet.c
9057 (grub_ieee1275_net_config_real): Likewise.
9059 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9061 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9062 the direct route for server/gateway.
9064 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9066 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9067 IP address to server name since we may not hame the DNS.
9069 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9071 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9072 freeing random buffer on failure.
9073 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9075 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9077 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9079 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9081 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9083 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9084 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9085 Handle malloc error correctly.
9087 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9089 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9092 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9094 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9097 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9099 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9100 none is explicitly specified.
9102 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9104 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9107 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9109 Respect netmask from bootp/dhcp.
9111 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9112 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9113 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9115 (grub_net_add_ipv4_local): ... this.
9116 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9117 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9118 (grub_net_add_ipv4_local): New proto.
9120 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9122 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9123 determining EFI memory map size.
9125 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9127 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9129 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9131 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9132 when looking for partition separator.
9134 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9136 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9139 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9141 Restructure FAT driver to avoid hook in label reading as it hits a
9144 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9145 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9146 (grub_fat_iterate_dir): Split into ...
9147 (grub_fat_iterate_init): ... this, ...
9148 (grub_fat_iterate_fini): ... this, ...
9149 (grub_fat_iterate_dir_next): ... and this. All users updated.
9151 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9153 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9154 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9155 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9156 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9157 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9158 New fields last_key and last_key_time.
9159 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9160 extended key-esc into extended key-extended key.
9162 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9164 Avoid unnecessary memcpy of whole video buffer.
9166 * grub-core/video/fb/video_fb.c (dirty): New struct.
9167 (framebuffer): Add members current_dirty and previous_dirty.
9168 (dirty): New function.
9169 (grub_video_fb_fill_rect): Update dirty.
9170 (common_blitter): Likewise.
9171 (grub_video_fb_scroll): Likewise.
9172 (doublebuf_blit_update_screen): Copy only dirty part.
9173 (doublebuf_pageflipping_update_screen): Likewise.
9174 (grub_video_fb_doublebuf_blit_init): Init dirty.
9175 (doublebuf_pageflipping_init): Likewise.
9176 (grub_video_fb_setup): Likewise.
9178 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9180 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9183 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9185 Fix wildcard regexp dot and other special characters handling.
9186 Reported by: Robert Mabee.
9188 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9189 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9190 (split_path): Trigger expansion on '?'.
9191 (unescape): New function.
9192 (wildcard_expand): Unescape parts copied without globbing.
9193 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9194 (grub_script_arglist_to_argv): Don't unescape expansions.
9196 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9198 * include/grub/net.h (grub_net_card): New member txbufsize.
9199 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9200 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9201 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9202 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9204 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9205 compatible property to check for macs. Set
9206 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9207 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9208 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9209 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9210 (send_card_buffer): Use txbuf.
9211 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9212 nested function out of the parent while on it.
9214 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9216 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9218 (grub_ieee1275_net_config_real): Fix config pointer.
9220 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9222 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9223 filename parsing to non-block devices.
9225 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9227 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9229 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9231 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9234 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9236 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9237 UUID search command even if hints probing failed.
9239 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9241 * po/POTFILES.in: Regenerated.
9243 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9245 Speed-up video on fuloong.
9247 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9249 (grub_pci_device_unmap_range): Handle non-cached address.
9250 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9252 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9253 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9254 (grub_video_sis315pro_set_active_render_target): Removed.
9255 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9256 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9257 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9259 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9262 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9264 * docs/grub.texi (Multi-boot manual config): New section.
9266 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9268 Avoid slow read-back from VRAM.
9270 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9272 * grub-core/video/fb/video_fb.c
9273 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9274 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9275 (front_target): Remove front_target. Add pages.
9276 (grub_video_fb_init): Skip setting front_pages.
9277 (grub_video_fb_fini): Likewise.
9278 (doublebuf_blit_update_screen): Use pages.
9279 (grub_video_fb_doublebuf_blit_init): Likewise.
9280 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9281 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9282 (grub_video_fb_setup): Prefer doublebuffing.
9284 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9286 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9289 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9293 * tests/util/grub-shell.in: Handle loongson.
9294 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9296 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9297 Reboot instead of shutdown if REBOOT is defined.
9299 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9301 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9302 sized ports since unlike on real hardware qemu supports only 32-bit
9305 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9307 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9308 * util/grub-mkrescue.in: Handle loongson.
9310 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9312 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9313 Set is_part appropriately.
9314 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9315 names. Canonicalize partition without full disk.
9317 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9319 Revert usb-quiesce since it's wrong.
9321 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9322 (grub_ofdisk_init): Don't do quiesce.
9324 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9326 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9327 PowerMac workaround to Xserves as well.
9328 Information supplied by: Benjamin Herrenschmidt.
9330 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9332 Don't assume that beginning address is also the entry point on ppc.
9334 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9335 (grub_linux_boot): Use linux_entry.
9336 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9337 (grub_linux_load64): Likewise.
9339 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9341 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9343 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9345 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9346 needlessly lose the console.
9348 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9350 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9353 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9355 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9356 than current grub_get_rtc() not implemented when booted with
9357 coreboot without TSC.
9359 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9360 Add machine/time.h to kernel headers on loongson.
9361 * grub-core/Makefile.core.def (kernel): Remove
9362 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9363 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9364 (grub_get_rtc): Likewise.
9365 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9366 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9367 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9368 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9369 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9370 rather than installing known non-working time source.
9371 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9372 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9373 * include/grub/time.h: Don't include machine/time.h.
9374 * include/grub/efi/time.h: Removed.
9375 * include/grub/i386/efi/time.h: Likewise.
9376 * include/grub/i386/ieee1275/time.h: Likewise.
9377 * include/grub/powerpc/ieee1275/time.h: Likewise.
9378 * include/grub/sparc64/ieee1275/time.h: Likewise.
9379 * include/grub/x86_64/efi/time.h: Likewise.
9381 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9383 Remove dot on i and j when combining with above diacritics.
9385 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9387 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9388 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9389 with dotless variants when any combining above is present.
9391 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9393 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9394 text and not binary.
9396 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9398 Stop polling as soon as we have the packet we were waiting for.
9400 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9402 * grub-core/net/arp.c (have_pending): New var.
9403 (pending_req): Likewise.
9404 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9406 (grub_net_arp_receive): Set have_pending.
9407 * grub-core/net/dns.c (recv_data): New field stop.
9408 (recv_hook): Set stop.
9409 (grub_net_dns_lookup): Init stop and use as stop condition.
9410 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9412 * grub-core/net/net.c (grub_net_poll_cards): New argument
9413 stop_condition. Stop when it goes true.
9414 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9416 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9418 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9420 Keep TX and RX buffers on EFI rather than always allocate new ones.
9422 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9423 card. All users updated.
9424 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9425 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9426 (get_card_packet): Likewise.
9427 (grub_efinet_findcards): Init new fields.
9429 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9431 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9432 compilation error on sparc64.
9434 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9436 Use ITC on IA64 rather than broken routine based on daytime.
9438 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9440 (grub_get_rtc) [__ia64__]: Likewise.
9441 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9442 (get_itc): New function.
9443 (grub_rtc_get_time_ms): Likewise.
9444 (grub_machine_init): Calibrate ITC.
9445 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9446 Keep only on non-ia64. Don't export since it's broken and used only
9447 if TSC is unavailable.
9449 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9451 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9453 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9454 Skip if parent is unused.
9456 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9458 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9460 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9462 Fix wildcard escaping.
9464 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9465 * grub-core/script/execute.c (wildcard_escape): .. to here.
9467 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9468 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9470 * grub-core/script/execute.c (gettext_append): Always escape.
9471 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9472 * grub-core/script/yylex.l: Don't cut away the escaping.
9473 * tests/grub_script_echo1.in: Add tests with wildcard.
9475 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9477 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9478 (ftdi_hw_configure): Likewise.
9479 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9481 (real_config): Handle 1.5 stop bits.
9482 (pl2303_hw_configure): Likewise.
9484 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9486 * Makefile.am: Add ppc linux bootcheck.
9487 * grub-core/tests/boot/linux-ppc.cfg: New file.
9488 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9490 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9492 * tests/grub_script_expansion.in: Skip network protocols.
9494 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9496 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9498 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9500 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9504 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9506 ESCC serial driver for conducting sautomated tests in qemu.
9507 Not tested on real hardware.
9509 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9510 * grub-core/term/ieee1275/escc.c: New file.
9511 * grub-core/Makefile.core.def (escc): New module.
9513 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9515 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9517 (serial_hw_fetch): Don't read invalid handle.
9518 (serial_hw_put): Don't write into invalid handle.
9520 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9522 Add a 1.5 stop bits value.
9524 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9525 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9526 GRUB_SERIAL_STOP_BITS_1_5.
9528 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9530 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9531 value rather than let it uninited.
9533 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9535 * grub-core/commands/wildcard.c (+check_file): New function.
9536 (wildcard_expand): Don't expand to non-existing files, expand with
9537 suffix and not attempt to expand if not needed.
9539 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9541 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9542 out of partitions containing other partitions.
9544 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9546 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9547 on some qemu versions with GRUB.
9549 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9551 (grub_openbsd_bootarg_pcibios): New struct.
9552 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9555 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9557 * tests/util/grub-shell.in: Trim firmware output on EFI.
9559 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9561 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9562 and coreboot since it's already in kernel.
9564 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9566 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9567 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9568 to here. New return value start. All users updated.
9569 Recursively scan linear mappings.
9570 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9572 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9573 Use grub_util_get_dm_node_linear_info.
9574 * util/getroot.c (convert_system_partition_to_system_disk): Use
9575 grub_util_info rather than grub_dprintf.
9576 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9578 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9580 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9582 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9583 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9585 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9587 * include/grub/types.h (grub_set_unaligned64): New function.
9588 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9591 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9593 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9594 (grub_ofdisk_fini): Quiesce USB devices.
9596 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9598 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9601 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9603 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9605 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9607 * grub-core/disk/pata.c (grub_pata_pio_read)
9608 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9609 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9611 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9613 Extend automated tests to qemu-mips.
9615 * Makefile.am: reorganise tests and enable qemu-mips.
9616 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9617 * grub-core/tests/boot/linux.init-mips.S: New file.
9618 * tests/partmap_test.in: Handle ata0 disks.
9619 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9622 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9624 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9626 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9629 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9631 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9632 (grub_halt): Likewise.
9633 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9635 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9637 * grub-core/term/serial.c (grub_serial_register)
9638 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9639 the behaviour in line with x86 platforms.
9641 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9643 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9644 (grub_ata_strncpy): Likewise.
9645 (grub_ata_identify): Add missing byteswaps.
9647 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9649 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9651 (screen_read_char): Likewise.
9652 (grub_vga_text_cls): Likewise.
9654 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9656 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9658 (make_file_path): Likewise.
9660 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9662 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9664 Tested by: Paulo Flabiano Smorigo.
9665 Crucial information about API supplied by: Coleen <Last name unknown>.
9666 Reviewed by: Coleen <Last name unknown>.
9668 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9670 * util/grub-mkimage.c: Disable -Wcast-align.
9672 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9674 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9677 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9679 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9681 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9683 * util/grub-probe.c (escape_of_path): Fix double free.
9685 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9687 * grub-core/commands/videoinfo.c (hook): Show pitch.
9689 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9691 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9693 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9695 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9696 (probe): Add ieee1275 to OFW devices.
9698 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9700 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9702 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9704 Handle IBM OFW path.
9706 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9708 (of_path_of_scsi): Handle vdevice.
9710 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9712 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9713 Allocate in multiples of 16 to avoid adding a few bytes free region the
9716 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9718 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9719 Allocate in multiples of 16 to avoid adding a few bytes free region the
9721 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9723 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9725 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9727 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9728 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9730 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9732 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9734 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9736 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9737 resulted in \\ at the end of the line.
9739 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9741 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9742 (grub_parser_cmdline_state): Likewise.
9743 (grub_parser_split_cmdline): Likewise.
9745 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9747 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9748 /dev/root and /dev/dm-*.
9750 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9752 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9753 fix partially stale display.
9755 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9757 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9760 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9762 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9763 Fix MBR remapping workaround.
9764 (grub_util_biosdisk_read) [__linux__]: Likewise.
9766 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9768 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9770 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9772 * configure.ac: Bump to beta6.
9774 2012-05-31 Christer Weinigel <christer@weinigel.se>
9776 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9778 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9780 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9781 (grub_cmd_linux): Likewise.
9783 2012-05-31 Christer Weinigel <christer@weinigel.se>
9787 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9788 (GRUB_EHCI_MULT_TWO): Likewise.
9789 (GRUB_EHCI_MULT_THREE): Likewise.
9790 (GRUB_EHCI_CMASK_MASK): New enum value.
9791 (GRUB_EHCI_SMASK_MASK): Likewise.
9792 (GRUB_EHCI_CMASK_OFF): Likewise.
9793 (GRUB_EHCI_SMASK_OFF): Likewise.
9794 (grub_ehci_pci_iter): Enable periodic schedule.
9795 (grub_ehci_parse_notrun): Likewise.
9796 (grub_ehci_restore_hw): Likewise.
9797 (grub_ehci_setup_qh): Set flags for low speed transfers.
9798 (grub_ehci_find_qh): Use periodic list for low speed.
9799 (grub_ehci_setup_transfer): Check periodic queue as well.
9800 (grub_ehci_check_transfer): Likewise.
9801 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9803 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9805 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9808 2012-05-31 Peter Jones <pjones@redhat.com>
9810 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9811 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9812 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9814 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9816 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9817 uninited variable. Allocate at least setup_sects.
9819 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9821 Fix handling of EFI with big memory maps.
9823 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9824 (real_mode_mem): Likewise.
9825 (real_mode_target): Likewise.
9826 (real_mode_pages): Likewise.
9827 (prot_mode_pages): Likewise.
9828 (linux_params): New var.
9829 (linux_cmdline): Likewise.
9830 (free_pages): Don't set real mode variables.
9831 (allocate_pages): Don't allocate real mode memory.
9832 (grub_e820_add_region): Remove the limit.
9833 (grub_linux_boot): Allocate and copy real mode memory.
9834 (grub_linux_unload): Free linux_cmdline.
9835 (grub_cmd_linux): Use temporary storage for parameters.
9836 (grub_cmd_initrd): Likewise.
9837 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9838 (linux_kernel_params): Make it 1K big.
9840 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9842 * Makefile.util.def: Remove -Wno-format.
9843 * grub-core/Makefile.core.def: Likewise.
9845 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9847 * tests/cmp_unit_test.c: Add missing failure message.
9848 * tests/example_unit_test.c: Likewise.
9849 * tests/printf_unit_test.c: Likewise.
9851 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9853 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9854 relaxation of protective MBR requirements.
9856 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9858 * configure.ac: Add condition for COND_HOST_XNU.
9859 * Makefile.util.def (10_xnu): New script.
9860 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9862 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9864 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9867 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9869 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9870 Binary on other platforms stays identical.
9872 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9874 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9877 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9879 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9881 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9883 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9884 rather than defining size_t ourselves to avoid conflict.
9886 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9888 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9889 initialisation to avoid __bzero reference.
9891 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9893 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9895 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9896 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9897 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9898 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9899 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9901 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9903 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9904 * grub-core/kern/misc.c: Likewise.
9905 * grub-core/loader/i386/xnu.c: Likewise.
9906 * include/grub/i386/tsc.h: Likewise.
9907 * include/grub/symbol.h: Likewise.
9909 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9911 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9912 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9915 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9917 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9918 Implement Apple flavour.
9919 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9921 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9923 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9924 (memmove) [__APPLE__]: Likewise.
9925 (memcpy) [__APPLE__]: Likewise.
9926 (memset) [__APPLE__]: Likewise.
9927 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9928 (memmove) [__APPLE__]: Likewise.
9929 (memcpy) [__APPLE__]: Likewise.
9930 (memset) [__APPLE__]: Likewise.
9932 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9934 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9937 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9939 * grub-core/normal/main.c (read_config_file): Provide config_file and
9941 * util/grub.d/41_custom.in: Use config_directoy when available.
9943 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9945 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9946 (grub_bfs_dir): Likewise.
9948 2012-05-27 Peter Jones <pjones@redhat.com>
9950 The old code gives arguments to a printf function which can't work
9951 correctly, and the compiler complains.
9953 * grub-core/tests/example_functional_test.c (example_test): Add
9955 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9956 * include/grub/test.h (grub_test_assert_helper): New declaration.
9957 (grub_test_assert): Use grub_test_assert_helper.
9959 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9961 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9962 (exfctest): ... this to avoid overlong filenames.
9965 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9967 Handle "." and ".." on squashfs.
9969 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9970 Make inode numbers into stack.
9971 (grub_squash_read_symlink): Use stack.
9972 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9973 (make_root_node): Fill stack.
9974 (grub_squash_open): Use stack.
9976 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9978 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9981 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9983 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9984 stderr on test calls.
9986 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9988 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9990 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9992 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9994 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9996 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9999 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10001 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10002 (grub_hfsplus_iterate_dir): Add "." and "..".
10004 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10006 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10007 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10009 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10011 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10012 (find_path): Handle "." and "..".
10014 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10016 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10017 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10018 (grub_affs_iterate_dir): Handle hardlinks.
10020 2012-05-26 Matthew Garrett <mjg@redhat.com>
10022 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10023 (grub_efi_console_fini): Likewise.
10024 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10025 (grub_video_gop_fill_mode_info): Rename to ...
10026 (grub_video_gop_fill_real_mode_info): ... this.
10027 (grub_video_gop_fill_mode_info): New function.
10028 (grub_video_gop_setup): Setup double framebuffer.
10029 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10031 (grub_video_gop_swap_buffers): Copy framebuffer.
10032 (grub_video_gop_fini): Free offscreen buffer.
10033 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10035 (grub_efi_gop_blt_pixel): New struct.
10037 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10039 * gentpl.py: Remove error disabling for objconv.
10041 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10043 * configure.ac: Remove -Wunitialized as it's not available on older
10046 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10048 Fix extent overflow comparator.
10050 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10051 (grub_hfsplus_read_block): Set type.
10052 (grub_hfsplus_cmp_extkey): Compare type.
10054 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10056 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10058 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10060 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10063 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10065 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10066 (dejavu_bold_14.pf2): New target.
10068 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10070 * configure.ac: Fix djvu font detection.
10072 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10074 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10075 ext* instead of ext2.
10077 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10079 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10082 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10084 * docs/grub-dev.texi: Remove dot from .png.
10086 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10088 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10089 protective entry in any slot.
10090 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10091 if protective entry is found in any slot.
10093 Protective entry in non-first slot make no sense but is a widespread
10096 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10098 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10100 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10102 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10104 (grub_reiserfs_open): Don't free root.
10106 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10108 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10109 after freeing for safety.
10111 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10113 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10114 Reported by: Jordan Uggla.
10116 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10118 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10119 actual implementation. Specifically, clarify that the grub menu will
10120 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10123 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10125 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10128 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10130 Remove unjustified hard dependency of normal.mod on gfxterm.
10132 * include/grub/term.h (grub_term_output): New member fullscreen.
10133 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10134 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10135 (grub_gfxterm): Set .fullscreen.
10136 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10137 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10139 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10141 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10142 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10143 Mention case-insensitive AFFS, SFS and JFS.
10145 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10147 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10149 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10151 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10154 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10156 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10157 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10159 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10161 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10162 (grub_jfs_mount): Fill caseins.
10163 (grub_jfs_find_file): Respect caseins.
10165 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10167 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10170 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10172 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10173 New argument origpath. All users updated.
10175 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10177 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10178 (read_attr): Ensure that we read start of possibly compressed block.
10180 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10182 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10183 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10186 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10188 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10189 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10190 (dejavu.pf2): Replace with ...
10191 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10194 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10196 * util/grub.d/20_linux_xen.in: Add missing line.
10198 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10200 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10201 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10202 (grub_utf16_to_utf8): Likewise.
10204 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10206 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10207 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10208 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10209 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10210 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10211 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10213 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10215 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10218 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10220 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10221 (grub_udf_read_symlink): Handle read_string failure.
10223 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10225 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10228 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10230 Fix handling of UDF symlinks.
10232 * grub-core/fs/udf.c (read_string): New argument outbuf.
10234 (grub_ufs_read_symlink): Rename to ...
10235 (grub_udf_read_symlink): ... this. All users updated.
10236 Handle symlinks with more than one component.
10238 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10240 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10241 symlinks. Replace leading colon with a slash.
10243 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10245 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10248 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10250 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10251 match in inner node.
10253 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10255 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10256 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10257 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10258 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10259 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10260 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10261 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10262 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10263 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10265 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10267 Use grub-probe and not cmp to check that disk is empty.
10269 * util/grub-install.in: Use grub-probe for zero-check.
10270 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10271 (probe): Handle PRINT_ZERO_CHECK.
10272 (argp_parser): Handle -t zero_check.
10274 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10276 Flush block cache on adding disk to device map.
10278 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10279 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10281 (read_device_map): Likewise.
10282 (open_device): Flush on opening.
10284 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10286 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10287 (handle_symlink): Fix off-by-one error.
10288 Canonicalize the target.
10289 (grub_cpio_dir): Canonicalize the name.
10292 (grub_cpio_open): Canonicalize the name.
10294 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10296 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10299 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10301 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10302 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10304 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10306 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10307 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10310 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10312 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10315 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10317 Fix UFS1 big file support.
10319 * grub-core/fs/ufs.c (INODE): Removed.
10320 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10322 (INODE_MODE): Simplify.
10323 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10324 (grub_ufs_lookup_symlink): Don't use INODE.
10326 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10328 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10330 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10331 (grub_minix_data): Replace log_block_size with block_size.
10332 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10333 (grub_minix_mount): Fill block_size.
10335 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10337 * configure.ac: Bump to beta5.
10339 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10341 Fix wrapped HFS+ handling.
10343 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10344 blocks_start. All users updated.
10345 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10347 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10349 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10351 Fix long symlinks on reiserfs.
10353 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10354 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10355 (grub_reiserfs_iterate_dir): Save size for non-directories.
10356 (grub_reiserfs_open): Don't reread stat block as we already know the
10358 (grub_reiserfs_read): Split into...
10359 (grub_reiserfs_read_real): ... and ...
10360 (grub_reiserfs_read): ...this.
10362 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10364 Fix non-indexed JFS.
10366 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10367 (grub_jfs_data): New field namecomponentlen.
10368 (grub_jfs_mount): Fill namecomponentlen.
10369 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10371 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10373 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10374 * tests/grub_script_echo1.in: Add tests.
10376 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10378 * util/grub-install.in: Ignore empty devicetree directory.
10380 2012-05-08 Bean <bean123ch@gmail.com>
10382 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10384 (free_rsm): Free header as well.
10385 (free_old_fragments): Fix memory leak.
10386 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10387 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10388 (destroy_pq): Likewise.
10389 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10391 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10393 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10394 resulting hash as a precaution.
10396 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10398 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10399 '_' in variable names.
10400 * grub-core/net/net.c (grub_net_network_level_interface_register):
10403 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10405 Fix AFFS with non-512B blocks.
10407 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10408 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10409 (grub_affs_data): Replace blocksize with log_blocksize.
10410 (grub_affs_read_block): Fix non-512B blocks.
10411 (grub_affs_read_symlink): Likewise.
10412 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10413 (grub_affs_read): Fix non-512B blocks.
10414 (grub_affs_label): Likewise.
10415 (grub_affs_mtime): Likewise.
10416 (grub_affs_mount): Fix block detection routine.
10418 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10420 Add filesystem mtime to AFFS.
10422 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10423 (aftime2ctime): New function.
10424 (grub_affs_dir): Use aftime2ctime.
10425 (grub_affs_label): Fix return value.
10426 (grub_affs_mtime): New function.
10427 (grub_affs_fs): Add mtime.
10429 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10431 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10434 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10436 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10439 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10441 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10443 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10445 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10447 (FLAGS_CASE_SENSITIVE): New enum value.
10448 (cache_entry): New struct.
10449 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10450 cache_size and cache.
10451 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10452 Add log_blocksize and fshelp_flags.
10453 (grub_sfs_read_extent): Handle non-512 blocks.
10454 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10455 (grub_sfs_read_file): Handle non-512 blocks.
10456 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10458 (grub_sfs_read_symlink): Handle non-512 blocks.
10459 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10460 (grub_sfs_dir): Free cache.
10461 (grub_sfs_close): Likewise.
10463 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10465 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10468 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10470 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10472 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10474 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10476 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10478 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10479 (grub_sfs_read_extent): Likewise.
10480 (grub_sfs_read_block): Likewise.
10481 (grub_sfs_mount): Likewise.
10482 (grub_sfs_iterate_dir): Likewise.
10483 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10484 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10486 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10488 Fix errors on compressed NTFS with 512B clusters.
10490 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10492 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10494 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10495 Relax check for inline extents.
10496 (ntfscomp): Return correct -1 on error and not 0.
10498 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10500 * util/grub-install.in: Fix handling of prefix containing spaces.
10502 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10504 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10505 (grub_squash_read_data): Fix offset byte-swapping.
10507 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10509 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10510 per common usage and preffered in several parts of code.
10511 (grub_memcmp): Likewise.
10512 (grub_strncmp): Likewise.
10513 * include/grub/misc.h (grub_strcasecmp): Likewise.
10514 (grub_strncasecmp): Likewise.
10515 * Makefile.util.def (cmp_test): New test.
10516 (grub_script_strcmp): Likewise.
10517 * tests/cmp_unit_test.c: New file.
10518 * tests/grub_script_strcmp.in: Likewise.
10519 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10521 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10523 * include/grub/pci.h: Move enums into no-asm part.
10525 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10527 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10529 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10531 * util/getroot.c (find_hurd_root_device): Try to make error message
10532 and comments to translators clearer.
10534 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10536 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10538 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10540 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10543 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10545 * docs/grub.cfg: Update.
10547 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10549 * docs/grub.texi (PXE): Remove not present variables.
10551 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10553 * grub-core/net/net.c (defserver_set_env): New function.
10554 (defserver_get_env): Likewise.
10555 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10557 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10559 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10562 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10564 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10565 * grub-core/kern/emu/hostdisk.c: Likewise.
10567 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10569 Handle hurd userspace partitions.
10571 * util/getroot.c (find_hurd_root_device): New function.
10572 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10574 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10576 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10578 Reported by: Bastian Blank.
10580 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10582 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10583 crossing page boundary.
10585 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10587 Fix B-tree search in BFS, especially in presence of non-ASCII
10590 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10591 (find_in_b_tree): Use standard bsearch + btree algorithm.
10593 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10595 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10598 2012-05-03 Matthew Garrett <mjg@redhat.com>
10599 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10601 Suspend broadcom cards in order to stop their DMA.
10603 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10604 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10605 (pci): Don't build on x86 EFI.
10606 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10607 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10609 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10610 stop_broadcom if running on EFI.
10611 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10612 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10613 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10614 (grub_pci_find_capability): New proto.
10616 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10618 * docs/grub.texi: Remove dot from the extension as it apparently
10619 doesn't work with some makeinfo versions.
10621 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10623 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10624 with GRUB expectance.
10626 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10628 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10630 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10632 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10633 zero after directory block since last entry may be not 0-terminated if
10634 it ends on block boundary. Use continue instead of if spanning whole
10637 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10639 Support 4K sectors UDF inline files.
10641 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10642 (grub_udf_extended_file_entry): Likewise.
10643 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10645 (get_fshelp_size): New function.
10646 (grub_udf_read_icb): Read whole block.
10647 (grub_udf_iterate_dir): Likewise.
10648 (grub_udf_dir): Likewise.
10649 (grub_udf_open): Likewise.
10651 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10653 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10655 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10657 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10658 inline symlinks in addition to workaround.
10660 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10662 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10664 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10666 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10668 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10670 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10672 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10674 Fix reiserfs big seek times.
10676 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10677 exact. All users updated.
10678 (grub_reiserfs_read): Use nearest btree search for seeking.
10679 Fix return value on error.
10681 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10683 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10685 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10686 * docs/grub.texi: Update menuentry description.
10688 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10690 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10691 crash when embedding onto filesystem.
10693 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10695 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10698 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10700 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10702 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10704 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10707 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10708 2012-05-01 Bean <bean123ch@gmail.com>
10710 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10712 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10714 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10715 Special behaviour for len = 0 to read whole file isn't used anywhere and
10716 can cause buffer ovewrflows in several places.
10718 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10720 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10722 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10724 Handle RAIDZ on non-512B sectors.
10726 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10727 max_children_ashift.
10728 (fill_vdev_info_real): Fill max_children_ashift.
10729 (read_device): Use max_children_ashift.
10731 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10733 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10735 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10737 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10739 * docs/grub.texi: Update device.map parts.
10741 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10743 Don't scan into non-diskfilter devices having diskfilter names.
10745 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10746 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10748 (scan_disk_hook): New function.
10750 2012-04-29 Bean <bean123ch@gmail.com>
10752 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10755 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10757 * configure.ac: Detect starfield theme font path
10758 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10760 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10762 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10763 geometry on serial consoles.
10765 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10767 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10768 because of network consoles.
10770 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10772 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10775 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10777 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10778 falls on Q syndrom.
10780 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10782 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10783 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10785 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10787 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10788 Allocate at lest 8192 for temporary buffer as required for lzo.
10790 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10792 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10793 to cluster_bits, since it's already added in.
10794 (grub_fat_read_data): Likewise.
10796 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10798 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10799 as long as cluster size is multiple of 512 bytes.
10801 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10803 * util/grub-mkrescue.in: Fix locale directory.
10805 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10807 * grub-core/kern/emu/hostdisk.c (map): Make static.
10809 2012-04-23 Bean <bean123ch@gmail.com>
10811 * util/grub-fstest.c (fstest): Add missing break.
10813 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10817 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10818 not define nr variable.
10819 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10820 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10821 grub_find_device): Do not define.
10823 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10825 Fix kfreebsd compile and behaviour.
10827 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10829 * util/getroot.c: Fix wait.h include.
10830 (grub_guess_root_devices): Error if grub_find_device fails.
10831 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10832 (grub_util_get_dev_abstraction): Likewise.
10833 (grub_util_pull_device): Likewise.
10834 (grub_util_get_grub_dev): Likewise.
10835 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10837 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10839 Fix and unify wholedisk detection.
10841 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10842 is_part. All users updated.
10843 (device_is_wholedisk): Removed.
10844 (grub_util_biosdisk_get_grub_dev): Use is_part.
10846 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10848 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10851 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10853 * configure.ac: Bump to beta4.
10855 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10857 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10858 --fs-uuid --set UUID syntax.
10860 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10862 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10865 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10867 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10869 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10871 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10873 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10875 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10877 2012-04-18 Bean <bean123ch@gmail.com>
10879 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10882 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10884 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10886 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10887 corresponding to GRUB partitions.
10888 (grub_util_biosdisk_write): Likewise.
10890 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10892 Scan mdraid before LVM.
10894 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10895 (grub_diskfilter_register_front): ... this.
10896 (grub_diskfilter_register_back): New function.
10897 All users of grub_diskfilter_register updated.
10899 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10901 * util/grub-install.in: Fix an automatic target detection bug.
10903 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10905 * util/grub-install.in: New option --efi-directory.
10907 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10909 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10910 boot services if we have no other choice.
10912 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10914 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10916 * tests/util/grub-shell.in: Update to --directory.
10918 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10920 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10922 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10924 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10925 (grub_minix_read_file): Likewise.
10926 (grub_minix_read_inode): Likewise.
10927 (grub_minix_find_file): Likewise.
10928 (grub_minix_dir): Likewise.
10930 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10932 * util/grub-setup.c (setup): Fix partition handling and blocklist
10935 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10937 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10938 redundant buggy overlap check.
10940 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10942 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10945 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10947 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10948 kh.loadflags on pre-2.00 kernels.
10950 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10952 Terminate UNDI and PXE before launching the payload to avoid problems
10955 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10956 (grub_loader_flags): ... this. All users updated.
10957 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10958 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10959 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10960 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10962 (grub_pxe_restore): Likewise.
10963 (fini_hnd): New var.
10964 (GRUB_MOD_INIT): Register shutdown hook.
10965 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10966 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10967 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10968 (grub_loader_set): Rename second argument to flags.
10970 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10972 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10974 (grub_get_num_of_utf8_bytes): New function.
10975 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10976 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10978 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10979 (grub_ucs4_to_utf8): Change return type.
10981 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10983 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10985 * grub-core/fs/bfs.c (hop_level): Likewise.
10986 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10988 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10990 * grub-core/lib/adler32.c: Recode due to license unclearness.
10992 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10994 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10995 (test_header): Likewise.
10997 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10999 Fix --help formatting.
11001 * util/grub-mkconfig_lib.in (print_option_help): New function.
11002 (grub_fmt): Likewise.
11003 * util/grub-install.in: Use print_option_help and grub_fmt.
11004 * util/grub-kbdcomp.in: Likewise.
11005 * util/grub-mkconfig.in: Likewise.
11006 * util/grub-mknetdir.in: Likewise.
11007 * util/grub-mkrescue.in: Likewise.
11008 * util/grub-mkstandalone.in: Likewise.
11009 * util/grub-reboot.in: Likewise.
11010 * util/grub-set-default.in: Likewise.
11011 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11013 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11015 * linguas.sh: Remove autogenerated *.po.
11017 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11019 * po/README: Move language fetcing to ...
11020 * linguas.sh: ... here.
11021 * po/README: Point to linguas.sh.
11023 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11025 * po/README: Exclude ko.po due to disclaimer problems.
11027 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11029 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11031 (grub_gettext_translate_real): Handle 0th string.
11032 (grub_gettext_translate): Ensure that "" isn't translated.
11034 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11036 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11037 TRANSLATORS comment.
11038 (grub_diskfilter_print_partmap): Propagate changing of error into
11041 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11043 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11044 to uint64_t to prevent overflow.
11045 (grub_diskfilter_lv): Increase start_extent and extent_count
11046 to uint64_t to prevent overflow.
11048 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11050 * configure.ac: Increase version.
11052 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11054 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11056 * po/Rules-translit: New file.
11057 * po/arabic.sed: Likewise.
11058 * po/cyrillic.sed: Likewise.
11059 * po/greek.sed: Likewise.
11060 * po/hebrew.sed: Likewise.
11061 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11062 * po/Makefile.in.in: Add extra_dist4.
11064 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11066 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11068 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11069 modify names. Introduce MODE_BIGENDIAN.
11070 * grub-core/fs/minix_be.c: New file.
11071 * grub-core/fs/minix2_be.c: Likewise
11072 * grub-core/fs/minix3_be.c: Likewise.
11073 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11075 * grub-core/Makefile.core.def (minix_be): New module.
11076 (minix2_be): Likewise.
11077 (minix3_be): Likewise.
11079 2012-04-01 Felix <email@hamburg.de>
11081 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11082 (devs): Add MBP 2011.
11084 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11086 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11088 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11090 * grub-core/normal/cmdline.c (print_completion): New field
11092 (grub_cmdline_get): Handle width properly.
11094 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11096 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11098 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11100 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11101 after 29th of February.
11103 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11105 Fix exfat endianness handling.
11107 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11108 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11109 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11110 Byte-swap utf16 when necessary.
11111 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11113 2012-03-31 Anton Blanchard <anton@samba.org>
11114 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11116 Fix btrfs endianness handling.
11118 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11119 (lower_bound): Make root uint64_t. Use root in le.
11120 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11121 (find_path): Fix template key init.
11122 (grub_btrfs_dir): Fix mtime byteswap.
11123 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11125 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11127 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11128 recursion_depth. Break infinite resursions. All users updated.
11130 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11132 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11134 Reported by: Peter Jones.
11136 2012-03-31 Anton Blanchard <anton@samba.org>
11138 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11141 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11143 * util/grub-install.in: Fix nvram call for PreP.
11145 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11147 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11148 the error when some elements are missing into a warning.
11150 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11152 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11154 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11156 * docs/grub.texi (Invoking grub-probe): New section.
11157 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11159 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11161 Fix tab and wide character handling in editor and menu.
11163 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11164 agglomerate control characters with combining marks.
11165 (bidi_line_wrap): Allow break on tab.
11166 (grub_unicode_get_comb_start): New function.
11167 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11169 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11171 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11172 fixed_tab_size. All users updated.
11173 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11174 (grub_term_getcharwidth): Handle \t.
11175 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11178 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11180 Handle big-endian mdraid.
11182 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11183 * grub-core/Makefile.core.def (mdraid09_be): New module.
11184 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11185 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11186 * grub-core/disk/mdraid_linux_be.c: New file.
11188 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11190 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11192 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11194 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11195 missing quotes which caused confusion among translators.
11197 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11199 * util/grub-mkconfig_lib.in: Fix typo.
11201 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11203 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11205 * tests/grub_script_leading_whitespace.in: New file.
11206 * Makefile.util.def (grub_script_leading_whitespace): New test.
11208 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11210 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11213 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11215 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11216 starts with control character.
11218 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11220 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11222 (grub_gdb_outbuf): Likewise.
11224 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11226 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11227 zero terminator. Fixes a crash.
11229 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11231 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11233 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11234 images independently of preffered adderss field.
11236 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11238 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11239 * grub-core/commands/regexp.c: Likewise.
11240 * grub-core/loader/i386/linux.c: Likewise.
11241 * grub-core/partmap/msdos.c: Likewise.
11242 * grub-core/script/execute.c: Likewise.
11243 * grub-core/term/gfxterm.c: Likewise.
11245 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11247 Add variable parsing in $"..." and fix several mismatches with bash.
11249 * Makefile.util.def (grub_script_gettext): New test.
11250 * grub-core/script/execute.c (parse_string): New function.
11251 (gettext_append): Likewise.
11252 (grub_script_arglist_to_argv): Use gettext_append.
11253 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11254 * tests/grub_script_gettext.in: New file.
11256 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11258 Fix handling of leading spaces in scripts.
11260 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11262 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11263 other than skipping \r. All users updated.
11264 * tests/grub_script_echo1.in: Add space-related tests.
11265 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11267 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11269 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11271 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11273 * configure.ac: Bump up the version to beta2.
11275 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11277 Fix gettext reload bugs (e.g. inability to disable gettext
11280 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11281 main_context and secondary_context. All functions updated.
11282 (grub_gettext_translate): Rename to ...
11283 (grub_gettext_translate_real): ... this. Return NULL on failed
11285 (grub_gettext_translate): Handle secondary context.
11286 (grub_gettext_delete_list): Close file and zero-out the context.
11287 (grub_mofile_open): Don't call grub_gettext_delete_list.
11289 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11290 if locale="" to avoid pointless error message.
11291 (grub_gettext_env_write_lang): Update lang even if load fails.
11292 Handle secondary context.
11293 (grub_gettext_reread_prefix): New function.
11294 (read_main): Likewise.
11295 (read_secondary): Likewise.
11296 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11297 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11298 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11299 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11301 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11303 * configure.ac: Decrease warning level to avoid spurious warnings and
11304 to be able to compile with GCC 4.2.
11305 * Makefile.util.def: Remove -Wno-error=logical-op.
11307 2012-03-10 William Bittner <william.bittner@gmail.com>
11309 * util/import_unicode.py: Add missing brackets around string for
11312 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11314 Fix efi chainloader on network root.
11316 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11318 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11323 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11324 unused show_text member.
11325 * docs/grub.texi: Document "text" property.
11327 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11329 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11332 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11334 Fix IMSM handling on Fedora.
11336 * util/getroot.c (grub_util_is_imsm): New function.
11337 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11339 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11341 * Makefile.am: Strip gold section.
11342 * conf/Makefile.common: Likewise.
11343 * gentpl.py: Likewise.
11344 * grub-core/Makefile.core.def: Likewise.
11345 * grub-core/genmod.sh.in: Likewise.
11347 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11349 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11350 * util/grub.d/20_linux_xen.in: Likewise.
11351 Based on Debian patch.
11353 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11355 * util/grub.d/10_linux.in: Fix syntax error resulting in
11356 Richard Laager's patch.
11357 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11359 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11361 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11364 2012-03-10 Richard Laager <rlaager@wiktel.com>
11366 * util/grub.d/10_linux.in: Fix ZFS root passing.
11368 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11370 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11371 * grub-core/commands/xnu_uuid.c: Likewise.
11372 * grub-core/loader/efi/appleloader.c: Likewise.
11373 * grub-core/script/execute.c: Likewise.
11374 * grub-core/script/main.c: Likewise.
11375 * util/grub-mkfont.c: Likewise.
11377 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11379 * util/grub-mkfont.c (options): Use more appropriate "select" that
11380 "set" for face index.
11382 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11384 * util/grub-editenv.c (options): Gettextize command summaries.
11386 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11388 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11389 "out of memory" error messagge.
11391 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11393 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11394 of diskfilter for diskfilter on diskfilter support.
11396 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11398 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11400 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11402 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11405 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11407 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11409 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11411 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11413 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11415 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11418 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11420 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11422 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11424 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11426 * util/grub-install.in: Fix and gettextize error message.
11428 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11430 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11432 * util/grub-mount.c (options): Likewise.
11434 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11436 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11438 * grub-core/commands/search_wrap.c (options): Likewise.
11440 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11442 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11444 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11446 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11448 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11451 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11453 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11454 "temporary" since it's used in identifier and is limited in space.
11456 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11458 * po/POTFILES.in: Regenerate. Include *.h since they contain
11459 translatable strings as well.
11461 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11463 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11464 byte-swap on big-endian.
11465 Reported by: Lennart Sorensen
11467 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11469 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11470 (allocate_pages): Improve dprintf.
11471 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11472 code32_start. Fill code32_start and kernel_alignment in params.
11473 (grub_cmd_initrd): Use prot_init_space.
11475 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11477 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11479 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11481 * util/grub-install.in: Add missing dot at the end of sentence.
11483 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11485 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11486 * grub-core/commands/videotest.c: Likewise.
11487 * grub-core/loader/i386/linux.c: Likewise.
11489 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11491 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11493 Reported by: Milo Casagrande.
11495 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11497 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11498 * grub-core/commands/gptsync.c: Likewise.
11499 * grub-core/commands/hashsum.c: Likewise.
11500 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11501 * grub-core/commands/legacycfg.c: Likewise.
11502 * grub-core/io/gzio.c: Likewise.
11503 * grub-core/net/net.c: Likewise.
11504 * grub-core/term/gfxterm.c: Likewise.
11505 * grub-core/term/terminfo.c: Likewise.
11506 * grub-core/tests/test_blockarg.c: Likewise.
11507 * grub-core/video/video.c: Likewise.
11508 * util/grub-install.in: Likewise.
11509 * util/grub-mkfont.c: Likewise.
11511 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11513 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11515 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11517 * grub-core/commands/search_wrap.c (options): Fix a typo.
11518 Reported by: David Prévot.
11520 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11522 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11525 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11527 * util/grub-script-check.c (main): Fix a syntax error message which was
11530 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11532 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11534 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11536 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11539 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11541 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11543 * util/grub-mount.c (options): Likewise.
11545 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11547 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11549 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11551 * grub-core/net/http.c: Add TRANSLATORS comments.
11552 * grub-core/normal/cmdline.c: Likewise.
11553 * grub-core/normal/misc.c: Likewise.
11554 * grub-core/partmap/msdos.c: Likewise.
11555 * grub-core/parttool/msdospart.c: Likewise.
11556 * grub-core/script/execute.c: Likewise.
11557 * grub-core/script/main.c: Likewise.
11558 * grub-core/term/terminfo.c: Likewise.
11559 * grub-core/video/bitmap.c: Likewise.
11560 * util/grub-install.in: Likewise.
11561 * util/grub-mkimage.c: Likewise.
11562 * util/grub-mklayout.c: Likewise.
11563 * util/grub-setup.c: Likewise.
11565 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11567 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11568 with similar messages in grub-fstest.
11570 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11572 * util/grub-install.in: Unify "option requires an argument" message
11573 with similar messages in other files.
11574 * util/grub-mkconfig.in: Likewise.
11576 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11578 * util/grub-set-default.in: Replace printf with gettext_printf (the
11579 string in in question is already translated from grub-reboot)
11581 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11583 * configure.ac: Bump up the version to beta1.
11585 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11587 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11588 case when min_align = 0.
11590 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11592 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11593 and fix a case when line_start overflows.
11595 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11597 * util/grub-reboot.in (usage): Mention id posibility.
11598 * util/grub-set-default.in (usage): Likewise.
11600 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11602 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11603 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11604 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11605 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11606 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11607 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11608 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11610 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11612 * grub-core/commands/menuentry.c (options): Remove
11613 GRUB_ARG_OPTION_REPEATABLE.
11614 Reported by: Andreas Vogel
11616 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11618 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11620 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11622 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11625 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11627 Use sort -V by the idea of Georgi Georgiev.
11629 * util/grub-mkconfig_lib.in (version_sort): New function.
11630 (version_test_numeric): Use version_sort.
11632 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11634 Use submenus in grub-mkconfig.
11636 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11637 * util/grub-mkconfig_lib.in (grub_quote): New function.
11638 (gettext_printf): Use gettext and not gettext_quoted to fix several
11640 * util/grub.d/10_hurd.in: Use submenus.
11641 * util/grub.d/10_kfreebsd.in: Likewise.
11642 * util/grub.d/10_linux.in: Likewise.
11643 * util/grub.d/10_netbsd.in: Likewise.
11644 * util/grub.d/20_linux_xen.in: Likewise.
11645 * util/grub.d/30_os-prober.in: Likewise.
11646 * util/grub.d/10_illumos.in: Add missing quoting.
11647 * util/grub.d/10_windows.in: Likewise.
11649 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11651 Fix menu title instability bug.
11653 * grub-core/commands/menuentry.c (options): New option --id.
11654 (grub_normal_add_menu_entry): New argument id. All users updated.
11655 (grub_cmd_menuentry): Handle --id.
11656 (grub_menu_init): Accept unknown arguments.
11657 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11658 feature_menuentry_options.
11659 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11661 (get_entry_number): Match with id as well.
11662 * include/grub/menu.h (grub_menu_entry): New member id.
11663 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11664 * util/grub.d/00_header.in: Define menuentry_id_option.
11665 * util/grub.d/10_hurd.in: Define id.
11666 * util/grub.d/10_illumos.in: Likewise.
11667 * util/grub.d/10_kfreebsd.in: Likewise.
11668 * util/grub.d/10_linux.in: Likewise.
11669 * util/grub.d/10_netbsd.in: Likewise.
11670 * util/grub.d/10_windows.in: Likewise.
11671 * util/grub.d/20_linux_xen.in: Likewise.
11672 * util/grub.d/30_os-prober.in: Likewise.
11674 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11676 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11677 "scope" with "body".
11679 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11681 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11682 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11683 prot_size and prot_file_size.
11685 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11687 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11688 All users updated. If easily=1 require raid-5/-6 to be full.
11689 (is_node_readable): Likewise.
11690 (scan_devices): Scan incomplete but readable LVs at the end.
11691 (grub_diskfilter_memberlist): Pull missing devices.
11692 (insert_array): Skip scanning until device is complete or scan is
11694 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11696 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11697 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11699 2012-03-03 Matthew Garrett <mjg@redhat.com>
11700 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11702 Avoid EFI boot services when loading Linux.
11704 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11705 avoid_efi_bootservices. All users updated.
11706 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11707 argument avoid_efi_bootservices. All users updated.
11708 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11709 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11710 align, min_align, relocatable, prefered_address. All users updated.
11711 Allocate avoiding boot services if kernel is relocatable.
11712 (grub_cmd_linux): Check if kernel is relocatable.
11713 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11714 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11715 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11716 avoid_efi_boot_services.
11717 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11718 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11719 (linux_kernel_params): Likewise.
11721 2012-03-03 Matthew Garrett <mjg@redhat.com>
11722 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11726 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11728 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11729 modes. Set gop_handle.
11730 (grub_video_gop_get_edid): New function.
11731 (grub_gop_get_preferred_mode): Likewise.
11732 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11733 (grub_video_efi_gop_adapter): Set .get_edid.
11734 * include/grub/efi/edid.h: New file.
11735 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11737 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11739 * util/grub-install.in: Load efivars unconditionally.
11741 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11743 * po/Rules-piglatin: Change suffix from .po-update-en to
11744 .po-update-en-piglatin.
11746 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11750 * po/piglatin.sed: New file.
11751 * po/en@piglatin.header: Likewise.
11752 * po/Rules-piglatin: Likewise.
11753 * po/README: Add en@piglatin to autogenerated languages.
11755 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11757 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11759 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11760 "Check" since we don't check anything.
11761 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11763 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11764 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11765 (grub_md_sha512_real): Likewise.
11767 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11769 * grub-core/commands/gptsync.c: Fix typographic quoting.
11770 * grub-core/commands/ieee1275/suspend.c: Likewise.
11771 * grub-core/commands/parttool.c: Likewise.
11772 * grub-core/commands/search_wrap.c: Likewise.
11773 * grub-core/commands/videoinfo.c: Likewise.
11774 * grub-core/gfxmenu/gui_label.c: Likewise.
11775 * grub-core/hello/hello.c: Likewise.
11776 * grub-core/kern/emu/main.c: Likewise.
11777 * grub-core/net/net.c: Likewise.
11778 * grub-core/normal/menu.c: Likewise.
11779 * grub-core/normal/menu_text.c: Likewise.
11780 * grub-core/normal/misc.c: Likewise.
11781 * util/grub-editenv.c: Likewise.
11782 * util/grub-install.in: Likewise.
11783 * util/grub-kbdcomp.in: Likewise.
11784 * util/grub-mkconfig.in: Likewise.
11785 * util/grub-mknetdir.in: Likewise.
11786 * util/grub-mkrescue.in: Likewise.
11787 * util/grub-mkstandalone.in: Likewise.
11788 * util/grub-reboot.in: Likewise.
11789 * util/grub-set-default.in: Likewise.
11790 * util/grub-setup.c: Likewise.
11791 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11793 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11795 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11796 * grub-core/commands/keystatus.c: Likewise.
11797 * grub-core/commands/loadenv.c: Likewise.
11798 * grub-core/commands/probe.c: Likewise.
11799 * grub-core/commands/regexp.c: Likewise.
11800 * grub-core/commands/true.c: Likewise.
11801 * grub-core/commands/videoinfo.c: Likewise.
11802 * grub-core/disk/cryptodisk.c: Likewise.
11803 * grub-core/disk/ldm.c: Likewise.
11804 * grub-core/disk/loopback.c: Likewise.
11805 * grub-core/disk/luks.c: Likewise.
11806 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11807 * grub-core/kern/disk.c: Likewise.
11808 * grub-core/kern/emu/hostdisk.c: Likewise.
11810 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11812 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11813 * util/grub-install.in: Add missing quote in the comment.
11815 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11817 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11818 * grub-core/commands/lsmmap.c: Likewise.
11819 * grub-core/commands/minicmd.c: Likewise.
11820 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11821 * grub-core/commands/regexp.c: Likewise.
11822 * grub-core/gdb/gdb.c: Likewise.
11823 * grub-core/term/gfxterm.c: Likewise.
11824 * util/grub-mkconfig.in: Likewise.
11825 * util/grub-mkfont.c: Likewise.
11826 * util/grub-mklayout.c: Likewise.
11827 * util/grub-mknetdir.in: Likewise.
11828 * util/grub-mkrescue.in: Likewise.
11829 * util/grub.d/30_os-prober.in: Likewise.
11831 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11833 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11834 with "Direct color" and "Packed" with "Packed pixel".
11835 (grub_cmd_videoinfo): Simplify legend.
11837 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11839 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11840 absolutely unclear error message.
11842 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11844 * util/grub-mkstandalone.in: Remove confusing leftover print.
11846 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11848 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11850 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11851 (GRUB_MOD_INIT): Likewise.
11852 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11854 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11856 * util/grub-install.in (usage): Likewise.
11857 Spell ID in whole letters.
11858 Add missing ending dot.
11860 * util/grub-reboot.in: Fix capitalisation.
11861 * util/grub-set-default.in: Likewise.
11863 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11865 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11866 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11867 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11868 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11869 Disable -Werror for -Wdeprecated-declarations.
11870 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11871 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11872 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11873 (grub_util_get_grub_dev): Make luks handling dependent on
11874 HAVE_DEVICE_MAPPER and not __linux__.
11875 (get_win32_path): Fix format security.
11876 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11877 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11878 Don't try grub_find_zpool_from_dir.
11879 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11880 #ifdef-out paresdir.
11882 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11884 * util/grub-pe2elf.c (usage): Add missing noreturn.
11885 (write_section_data): Rename name to shname to avoid shadowing.
11886 (write_symbol_table): Rename name to symname to avoid shadowing.
11887 Fix write_reloc_section call.
11889 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11891 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11892 to ensure that it's after the last byte of .text.
11894 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11896 * util/ieee1275/ofpath.c (my_isdigit): New function.
11897 (trailing_digits): Use my_isdigit.
11898 (strip_trailing_digits): Likewise.
11900 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11902 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11903 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11905 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11907 * grub-core/kern/i386/pc/startup.S: Define __start.
11909 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11911 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11912 strip already transforms he format.
11914 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11916 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11918 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11920 * util/grub-install.in: Add missing gettext init.
11921 * util/grub-kbdcomp.in: Likewise.
11922 * util/grub-mkconfig.in: Likewise.
11923 * util/grub-mknetdir.in: Likewise.
11924 * util/grub-mkrescue.in: Likewise.
11925 * util/grub-mkstandalone.in: Likewise.
11926 * util/grub-reboot.in: Likewise.
11927 * util/grub-set-default.in: Likewise.
11928 * util/grub.d/00_header.in: Likewise.
11929 * util/grub.d/10_hurd.in: Likewise.
11930 * util/grub.d/10_windows.in: Likewise.
11931 * util/grub.d/30_os-prober.in: Likewise.
11932 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11934 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11936 * po/Rules-swiss: Fix header comment.
11938 2012-02-29 Andreas Vogel <anvoit>
11940 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11941 resulted in leak of arguments.
11943 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11945 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11946 reed_solomon_size const definition instead of computing it since
11947 Apple assembler doesn't support the later.
11949 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11951 * gentpl.py (kernel): Rewrite Apple part.
11953 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11955 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11957 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11959 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11961 (load_image): Likewise.
11963 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11965 * configure.ac: Fix a typo in previous commit.
11967 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11969 Don't add -Wl,-N on Apple platform.
11971 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11972 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11974 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11976 * grub-core/Makefile.core.def (lzma_decompress): Use
11977 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11979 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11981 * grub-core/genmod.sh.in: Rewrite the Apple part.
11983 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11985 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11988 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11990 * acinclude.m4 (grub_CHECK_PIC): New test.
11991 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11993 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11995 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11996 to avoid the warning.
11998 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12000 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12001 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12002 after. All users updated.
12004 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12006 Use the common size routine in hostfs so we can read disks as well.
12008 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12009 (grub_util_get_fd_size): ... this. Return size in bytes.
12011 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12012 grub_util_get_fd_size.
12014 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12016 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12017 Add blocksize retrieval.
12019 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12021 * configure.ac: Restore CFLAGS after efiemu check.
12023 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12025 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12028 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12030 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12032 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12034 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12035 (grub_cmd_halt): Likewise.
12037 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12039 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12040 for local arithmetics.
12041 Break %sp init into 2 instructions.
12042 Add 0 byte at the end.
12044 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12046 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12049 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12051 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12054 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12056 * grub-core/disk/ldm.c (make_vg): Init part.name.
12057 (grub_ldm_detect): Silence spurious warning.
12058 (grub_util_is_ldm): Likewise.
12060 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12062 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12063 sane value to avoid a spurious warning.
12065 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12067 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12068 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12070 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12072 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12073 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12075 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12077 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12078 hardcoding the relevant info.
12080 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12082 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12083 missing const qualifiers.
12084 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12086 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12088 * util/getroot.c [__APPLE__]: Add missing includes.
12089 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12091 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12093 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12095 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12097 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12100 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12102 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12104 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12106 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12107 and grub_file_close call.
12109 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12111 Add LZSS Mach-O support (needed for new xnu kernelcache).
12113 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12114 * grub-core/loader/lzss.c: New file.
12115 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12116 on Mach-O open failure.
12117 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12118 Don't free cmdsXX in uncompressedXX is set.
12119 (grub_macho_file): Init new fields.
12120 New argument is_64bit. All users updated.
12121 Handle compressed. Error out if no suitable architecture is found.
12123 (grub_macho_open): New argument is_64bit. All users updated.
12124 * grub-core/loader/macho32.c: Add defines for new fields.
12125 * grub-core/loader/macho64.c: Likewise.
12126 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12127 (grub_macho_parse): Handle compressed.
12128 Defer actual processing if compressed.
12129 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12130 "filename". All users updated.
12131 (grub_macho_size): New argument "filename". All users updated.
12132 (grub_macho_get_entry_point): Likewise.
12133 (grub_macho_load): Handle compressed.
12134 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12135 (GRUB_MACHO_LZSS_OFFSET): New define.
12136 (grub_decompress_lzss): New proto.
12137 * include/grub/machoload.h (grub_macho_file): New fields to handle
12139 (grub_macho_contains_macho64): Remove proto.
12140 (grub_macho_contains_macho32): Likewise.
12141 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12143 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12145 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12147 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12151 * Makefile.am (starfield_theme_files): New var.
12152 (starfield_DATA): Use starfield_theme_files.
12153 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12154 Add bootcheck-related files.
12155 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12156 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12157 and font_char_metrics.txt.
12158 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12159 (setjmp): Add lib/ia64/longjmp.S.
12160 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12161 * po/POTFILES.in: Regenerate.
12162 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12163 DISTFILES.common.extra1.
12164 * util/devicemap.c: Removed.
12165 * grub-core/lib/i386/relocator_backward.S: Likewise.
12166 * util/import_gcry.py: Remove unused files. Add extra_dist for
12169 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12171 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12172 grub_gettext_delete_list before changing grub_gettext_max to avoid
12173 running out of array bounds.
12175 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12177 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12178 grub_vga_text_init/grub_vga_text_fini.
12180 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12182 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12184 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12186 * configure.ac: Bump to 2.00~beta0.
12188 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12190 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12191 missing initialisation.
12193 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12195 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12197 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12199 Support v2 xnu boot arguments.
12201 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12202 New argument fsbfreq_out.
12203 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12204 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12206 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12208 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12209 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12210 (grub_xnu_boot_params): Rename to ...
12211 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12212 (grub_xnu_boot_params_v2): New struct.
12214 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12216 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12217 zeroing of CRC field before computing CRC.
12219 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12221 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12222 Change order of allocations to decrease fragmentation.
12224 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12226 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12228 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12230 Use write-combining MTRR to speed up video with buggy BIOSes.
12232 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12233 (cpuid): New define.
12236 (mtrr_base): Likewise.
12237 (mtrr_mask): Likewise.
12238 (grub_vbe_enable_mtrr_entry): New function.
12239 (grub_vbe_enable_mtrr): Likewise.
12240 (grub_vbe_disable_mtrr): Likewise.
12241 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12242 control off to BIOS.
12243 (grub_video_vbe_init): Fill mtrr.
12244 (grub_video_vbe_fini): Disable mtrr.
12245 (grub_video_vbe_get_info_and_fini): Likewise.
12246 (grub_video_vbe_setup): Enable mtrr.
12248 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12250 * include/grub/partition.h (grub_partition_map): Change prototype of
12251 embed to take a maximum value for nsectors.
12252 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12253 * include/grub/fs.h (grub_fs): Likewise.
12254 * grub-core/partmap/msdos.c (embed_signatures): New array.
12255 (pc_partition_map_embed): Check for and avoid sectors matching any
12256 of the signatures in embed_signatures, up to max_nsectors.
12257 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12258 returned sector map to max_nsectors.
12259 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12260 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12261 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12262 * util/grub-setup.c (setup): Allow for the embedding area being
12263 split into multiple blocklists. Tell dest_partmap->embed the
12264 maximum number of sectors we care about.
12266 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12268 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12269 Specify blocklist_install and reserver_first_sector for all fs.
12270 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12273 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12275 * util/grub-install.in: Clarify strings.
12276 Fix source dir check.
12278 2012-02-27 Richard Laager <rlaager@wiktel.com>
12280 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12281 "zfs" and "fuse.zfs" as synonyms.
12283 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12285 * configure.ac: Put platform and target_cpu substitutions back since
12286 they are used for directories.
12288 2012-02-27 Richard Laager <rlaager@wiktel.com>
12289 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12291 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12292 * util/grub.d/20_linux_xen.in: Likewise.
12294 2012-02-27 Richard Laager <rlaager@wiktel.com>
12296 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12299 2012-02-27 Richard Laager <rlaager@wiktel.com>
12301 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12304 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12306 Don't use insecure popen in getroot.
12308 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12309 (exec_pipe): ... here.
12310 (find_root_devices_from_poolname): Use exec_pipe.
12312 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12314 Remove platform and target_cpu replacement.
12316 * configure.ac: Remove platform and target_cpu substitutions.
12317 * tests/util/grub-shell.in: Use modinfo.
12318 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12321 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12323 Autodetect platform in grub-install but allow override.
12325 * util/grub-install.in: Autodetect platform. Support --target and
12326 --directory. Read platform from modinfo.sh.
12328 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12330 Support btrfs multi-volume probe.
12332 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12333 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12334 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12335 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12336 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12337 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12338 grub_find_root_devices_from_btrfs if on btrfs.
12340 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12342 Remove any awareness of *.c util files about target.
12344 * Makefile.util.def (grub-setup): Split to ...
12345 (grub-bios-setup): ... and this.
12346 (grub-sparc64-setup): ... and this.
12347 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12348 * docs/man/grub-setup.h2m: Split into ...
12349 * docs/man/grub-sparc64-setup.h2m: ... this.
12350 * docs/man/grub-bios-setup.h2m: ... and this.
12351 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12352 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12353 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12354 (grub_target_addr_t): Remove.
12355 (grub_target_size_t): Remove.
12356 (grub_target_ssize_t): Remove.
12357 * util/grub-install.in: Use new grub-*-setup.
12358 * util/grub-mkimagexx.c (Elf_Word): New define.
12359 (Elf_Half): Likewise.
12360 (Elf_Section): Likewise.
12361 (ELF_ST_TYPE): Likewise.
12362 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12363 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12365 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12367 Replace grub_target_addr with more appropriate types.
12369 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12370 grub_target_addr with grub_addr.
12371 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12372 grub_target_addr with grub_port.
12373 (grub_cmd_write): Likewise.
12374 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12375 grub_target_addr with grub_addr.
12376 (grub_cmd_write): Likewise.
12377 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12379 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12381 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12382 const qualifier for vendor_guid.
12384 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12386 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12388 (efiemu_memequal): Likewise.
12389 (find_variable): Likewise.
12391 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12393 Fix missing console prototype on qemu-mips.
12395 * include/grub/mips/qemu_mips/console.h: New file.
12397 2012-02-27 Matthew Garrett <mjg@redhat.com>
12398 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12400 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12401 * include/grub/efi/efi.h: Likewise.
12402 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12403 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12404 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12405 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12406 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12407 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12409 2012-02-27 Matthew Garrett <mjg@redhat.com>
12411 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12413 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12415 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12418 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12420 * configure.ac: Remove inappropriate use of program_transform_name
12421 on grubdir and bootdir but allow explicit specification of those
12424 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12426 * util/grub-mknetdir.in (grub_prefix): Removed.
12427 (subdir): Use @bootdirname@ and @grubdirname@.
12429 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12431 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12433 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12435 * po/POTFILES.in: Regenerated.
12437 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12439 Remove improper use of program_transform_name on pkglibrootdir.
12441 * configure.ac (pkglibrootdir): Removed.
12442 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12443 * util/grub-mkimage.c: Likewise.
12445 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12447 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12450 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12452 * util/grub-install.in: Use file identifier if no UUID is available
12453 or user explicitly prompted for it.
12455 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12457 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12458 (freebsd_get_zfs): New function.
12459 (grub_freebsd_boot): Pass zfs UUID.
12460 (grub_cmd_freebsd): Set zfs UUID.
12462 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12464 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12467 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12469 Add configure flag to control libzfs integration.
12471 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12473 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12475 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12477 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12480 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12482 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12483 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12484 be used on non-modules.
12486 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12487 Rename to grub_boot_init.
12488 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12489 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12490 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12491 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12492 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12493 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12494 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12495 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12497 (grub_machine_init): Remove empty inits.
12498 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12500 (grub_machine_init): Remove empty inits.
12501 * grub-core/term/arc/console.c: Remove explicit proto.
12502 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12503 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12504 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12505 grub_at_keyboard_fini.
12506 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12507 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12508 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12510 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12511 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12512 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12514 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12515 * grub-core/term/serial.c (GRUB_MOD_INIT)
12516 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12517 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12519 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12520 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12521 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12522 grub_terminfo_fini.
12523 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12524 (GRUB_MOD_FINI): Likewise.
12525 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12526 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12527 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12528 grub_video_radeon_fuloong2e_fini.
12529 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12530 [LOONGSON]: Rename to grub_video_sis315pro_init.
12531 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12532 grub_video_sis315pro_fini.
12533 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12534 [LOONGSON]: Rename to grub_video_sm712_init.
12535 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12536 grub_video_sm712_fini.
12537 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12538 (grub_at_keyboard_fini): Likewise.
12539 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12540 Don't declare grub_{modname}_init.
12541 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12542 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12544 (grub_keylayouts_fini) [!EMU]: Likewise.
12545 * include/grub/serial.h (grub_serial_init) [!EMU]:
12547 (grub_serial_fini) [!EMU]: Likewise.
12548 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12550 (grub_terminfo_fini) [!EMU]: Likewise.
12551 * include/grub/video.h (grub_font_init) [!EMU]:
12553 (grub_font_fini) [!EMU]: Likewise.
12554 (grub_gfxterm_init) [!EMU]: Likewise.
12555 (grub_gfxterm_fini) [!EMU]: Likewise.
12556 (grub_video_sm712_init) [!EMU]: Likewise.
12557 (grub_video_sm712_fini) [!EMU]: Likewise.
12558 (grub_video_sis315pro_init) [!EMU]: Likewise.
12559 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12560 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12561 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12563 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12565 Make nand a prefix for nand devices.
12567 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12569 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12571 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12572 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12574 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12576 * include/grub/env.h (grub_env_find): Remove prototype.
12577 * grub-core/kern/env.c (grub_env_find): Make static.
12578 (grub_env_set): Remove useless set.
12580 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12582 * grub-core/kern/i386/realmode.S: Remove useless align.
12584 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12586 * include/grub/dl.h (grub_dl_load_file): Don't export.
12588 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12590 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12593 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12595 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12597 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12598 not reloading whole superblock but only the part which is really needed.
12599 Remove useless grub_errors.
12600 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12603 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12605 Don't export grub_get_rtc.
12607 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12608 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12610 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12612 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12614 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12616 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12617 argument since it can be deduced from diskfilter. All users updated.
12619 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12623 * include/grub/list.h (grub_prio_list): Removed.
12624 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12625 GRUB_COMMAND_PRIO_MASK.
12626 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12627 GRUB_COMMAND_FLAG_ACTIVE.
12628 (grub_prio_list_insert): Removed.
12629 (grub_prio_list_remove): Likewise.
12630 (GRUB_AS_PRIO_LIST): Likewise.
12631 (GRUB_AS_PRIO_LIST_P): Likewise.
12632 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12633 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12634 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12635 * grub-core/kern/command.c (grub_register_command_prio): Inline
12636 the prio_list code.
12637 (grub_unregister_command): Likewise.
12639 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12641 Fix interrupt mixup from previous commit.
12643 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12644 (grub_realidt): New var.
12645 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12647 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12649 (grub_relocator16_boot): Set grub_relocator16_idt.
12650 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12651 (LOCAL(realidt)): ... this.
12652 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12653 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12654 (grub_realidt): New variable.
12656 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12658 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12659 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12660 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12661 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12663 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12664 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12665 * po/POTFILES.in: Regenerate.
12667 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12669 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12672 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12674 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12676 (add_length): Likewise.
12678 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12679 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12681 GDB serial and backtrace support.
12683 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12684 (prot_to_real): Likewise.
12685 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12686 * grub-core/Makefile.core.def (backtrace): New module.
12688 * grub-core/gdb/cstub.c: New file.
12689 * grub-core/gdb/gdb.c: Likewise.
12690 * grub-core/gdb/i386/idt.c: Likewise.
12691 * grub-core/gdb/i386/machdep.S: Likewise.
12692 * grub-core/gdb/i386/signal.c: Likewise.
12693 * grub-core/lib/i386/backtrace.c: Likewise.
12694 * grub-core/lib/backtrace.c: Likewise.
12695 * include/grub/backtrace.h: Likewise.
12696 * include/grub/gdb.h: Likewise.
12697 * include/grub/i386/gdb.h: Likewise.
12699 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12701 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12703 (add_length): Likewise.
12704 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12705 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12707 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12708 __argp_get_display_len.
12710 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12712 $"..." support in scripts.
12714 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12715 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12716 * grub-core/script/yylex.l: Likewise.
12717 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12720 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12722 * gentpl.py: Remove obsolete pkglib_DATA handling.
12724 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12726 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12729 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12730 * util/grub-kbdcomp.in: Likewise.
12731 * util/grub-mkconfig.in: Likewise.
12732 * util/grub-mkconfig_lib.in: Likewise.
12733 * util/grub-mknetdir.in: Likewise.
12734 * util/grub-mkrescue.in: Likewise.
12735 * util/grub-mkstandalone.in: Likewise.
12736 * util/grub-reboot.in: Likewise.
12737 * util/grub-set-default.in: Likewise.
12738 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12740 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12742 Remove GRUB_PREFIX.
12744 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12745 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12746 used for backward compatibility.
12748 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12750 Add new all_video module.
12752 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12753 * grub-core/Makefile.core.def (all_video): New module.
12754 * grub-core/genmoddep.awk: Generate dependency of all_video from
12756 * grub-core/lib/fake_module.c: New file.
12757 * grub-core/normal/main.c (features): Add feature_all_video_module.
12758 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12759 don't do explicit search again.
12760 insmod all_video in load_video if available.
12762 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12764 Another round of string clarification and adding TRANSLATORS comments.
12766 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12768 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12770 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12772 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12774 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12775 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12777 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12779 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12780 trailing newline implicitly. All users updated.
12782 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12784 Implement serial on IEEE1275 and EFI.
12786 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12787 on emu. Mention arc and emu as the only platforms without serial
12789 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12790 ieee1275 platforms.
12791 * grub-core/term/efi/serial.c: New file.
12792 * grub-core/term/ieee1275/serial.c: Likewise.
12793 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12794 specification if no ns8250 driver is available.
12795 (grub_cmd_serial): Likewise.
12796 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12797 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12798 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12799 (grub_efi_parity_type_t): New type.
12800 (grub_efi_stop_bits_t): Likewise.
12801 (grub_efi_serial_io_interface): New struct.
12802 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12803 available for all interfaces.
12804 Add EFI and IEEE1275 fields.
12805 (grub_ofserial_init): New proto.
12806 (grub_efiserial_init): Likeiwse.
12807 * util/grub.d/00_header.in: Don't check for the presence of serial
12810 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12812 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12813 name as if it was an alias.
12815 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12817 * grub-core/commands/lsacpi.c (options): Fix typo.
12819 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12821 Convert grub-emu to argp.
12823 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12825 * util/argp_common.c: Rename to ...
12826 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12827 Add missing includes.
12828 * grub-core/kern/emu/main.c: Convert to argp.
12829 * po/POTFILES.in: Regenerate.
12830 * util/grub-install.in (usage): Make first letter lowcase in messages
12832 * util/grub-setup.c (options): Likewise.
12834 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12836 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12837 Put back accidently commented-out code.
12839 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12841 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12842 loop check using Brent algorithm.
12843 (grub_hfsplus_btree_search): Likewise.
12845 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12847 * util/grub-install.in: Fix usage of wrong device for PreP install.
12849 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12851 * conf/Makefile.common (CFLAGS_GNULIB): Add
12852 -Wno-unsafe-loop-optimizations.
12853 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12855 * grub-core/commands/legacycfg.c: Add pragma to skip
12856 -Wunsafe-loop-optimizations.
12857 (check_password_md5_real): Fix loop counter type.
12858 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12860 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12861 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12863 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12864 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12865 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12867 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12868 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12869 avoid possible infinite loops.
12870 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12871 and -Wunsafe-loop-optimizations.
12872 * grub-core/script/yylex.l: Likewise.
12873 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12874 (print_glyphs): Avoid infinite loops.
12875 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12877 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12879 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12880 to avoid infinite loop.
12881 (disp_acpi_rsdt_table): Likewise.
12883 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12885 * grub-core/font/font.c (grub_font_load): Add support for default
12886 path for fonts ($prefix/fonts).
12887 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12888 for checking if string is a path.
12889 * grub-core/normal/main.c (features): Add feature_default_font_path.
12890 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12891 * util/grub.d/00_header.in: Use default directory if possible.
12892 * util/grub-install.in: Install unicode.pf2.
12894 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12896 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12897 * po/Rules-swiss: New file.
12898 * po/swiss.sed: Likewise.
12900 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12902 * grub-core/fs/btrfs.c (find_device): Fix typos.
12903 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12904 * util/grub-mkrelpath.c (argp_parser): Likewise.
12905 Reported by: Yuri Chornoivan.
12907 2012-02-23 Dalet Omega <daletomega@gmail.com>
12909 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12910 for usual informative messages.
12912 2012-02-23 Dalet Omega <daletomega@gmail.com>
12916 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12917 * conf/Makefile.common: Define starfielddir.
12918 * configure.ac: Configure starfield.
12919 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12920 * themes/starfield/README: Likewise.
12921 * themes/starfield/blob_w.png: Likewise.
12922 * themes/starfield/boot_menu_c.png: Likewise.
12923 * themes/starfield/boot_menu_e.png: Likewise.
12924 * themes/starfield/boot_menu_n.png: Likewise.
12925 * themes/starfield/boot_menu_ne.png: Likewise.
12926 * themes/starfield/boot_menu_nw.png: Likewise.
12927 * themes/starfield/boot_menu_s.png: Likewise.
12928 * themes/starfield/boot_menu_se.png: Likewise.
12929 * themes/starfield/boot_menu_sw.png: Likewise.
12930 * themes/starfield/boot_menu_w.png: Likewise.
12931 * themes/starfield/slider_c.png: Likewise.
12932 * themes/starfield/slider_n.png: Likewise.
12933 * themes/starfield/slider_s.png: Likewise.
12934 * themes/starfield/src/blob_nw.xcf: Likewise.
12935 * themes/starfield/src/bootmenu/: Likewise.
12936 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12937 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12938 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12939 * themes/starfield/src/slider_c.xcf: Likewise.
12940 * themes/starfield/src/slider_n.xcf: Likewise.
12941 * themes/starfield/src/slider_s.xcf: Likewise.
12942 * themes/starfield/src/terminalbox/: Likewise.
12943 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12944 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12945 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12946 * themes/starfield/starfield.png: Likewise.
12947 * themes/starfield/terminal_box_c.png: Likewise.
12948 * themes/starfield/terminal_box_e.png: Likewise.
12949 * themes/starfield/terminal_box_n.png: Likewise.
12950 * themes/starfield/terminal_box_ne.png: Likewise.
12951 * themes/starfield/terminal_box_nw.png: Likewise.
12952 * themes/starfield/terminal_box_s.png: Likewise.
12953 * themes/starfield/terminal_box_se.png: Likewise.
12954 * themes/starfield/terminal_box_sw.png: Likewise.
12955 * themes/starfield/terminal_box_w.png: Likewise.
12956 * themes/starfield/theme.txt: Likewise.
12958 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12960 * util/grub.d/00_header.in: Add missing export theme.
12962 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12964 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12966 Reported by: Eren D.
12968 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12970 * conf/Makefile.common (grubdatadir): Removed.
12971 (Makefile.am): Move eveything grubdata to pkgdata.
12973 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12975 * grub-core/commands/acpihalt.c (get_sleep_type):
12976 Remove unused variable.
12978 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12980 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12981 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12982 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12983 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12984 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12985 i18n with gettext no-op.
12986 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12987 GRUB_ACPI_OPCODE_STRING_CONST.
12988 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12989 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12991 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12993 * po/POTFILES.in: Regenerate.
12995 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12997 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12998 -Wno-error=missing-noreturn.
13000 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13002 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13003 condition to avoid possibly infinite loops.
13004 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13005 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13007 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13009 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13010 condition to avoid possibly infinite loops.
13012 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13014 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13017 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13019 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13021 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13023 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13025 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13027 * util/bin2h.c (usage): Add missing attribute noreturn.
13029 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13031 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13032 if the size isn't divisible by 512.
13034 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13036 Make list_push and list_remove functions rather than inline functions
13037 to decrease size and avoid aliasing violations.
13039 * include/grub/list.h (grub_list_push): Move to ...
13040 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13041 * include/grub/list.h (grub_list_remove): Move to ...
13042 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13044 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13046 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13047 and -Wunused-result.
13049 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13051 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13052 Reported by: Seth Goldberg
13054 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13056 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13058 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13060 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13061 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13063 * docs/grub.texi (Simple configuration): Document
13064 GRUB_CMDLINE_GNUMACH.
13066 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13068 * conf/Makefile.common (platform_SCRIPTS): New variable.
13069 (platform_PROGRAMS): Likewise.
13070 * gentpl.py: Mark *,module and *.image for install.
13071 * grub-core/gdb_grub.in: Add a notice of expected environment.
13072 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13073 (gmodule.pl): Likewise.
13075 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13077 Replace grub_checkkey with grub_getkey_noblock.
13079 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13080 (grub_getkey_noblock): ... this. All users updated.
13082 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13084 * grub-core/kern/emu/console.c: Move to ...
13085 * grub-core/term/emu/console.c: ...here.
13086 (grub_ncurses_getkey): Fix return value if no key is detected.
13088 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13090 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13091 (grub_unit_test_fini): Likewise.
13092 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13094 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13096 * include/grub/test.h (GRUB_UNIT_TEST)
13098 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13100 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13101 Better error handling.
13102 (grub_script_return): Likewise.
13103 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13105 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13107 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13108 rimplicit redifinition.
13110 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13112 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13115 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13117 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13118 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13121 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13123 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13124 as GRUB_ERR_BUG. Don't malloc if no device is available.
13126 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13128 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13129 Mark calling with invalid term as GRUB_ERR_BUG.
13131 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13133 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13134 packets rather than raising an error.
13136 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13138 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13141 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13143 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13144 diagnostic to dprintf.
13145 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13147 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13149 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13152 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13154 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13155 (grub_ntfs_iterate_dir): Likewise.
13157 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13159 Efiemu stylistic fixes and gettext.
13161 * grub-core/efiemu/i386/loadcore32.c
13162 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13163 * grub-core/efiemu/i386/loadcore64.c
13164 (grub_arch_efiemu_relocate_symbols64): Likewise.
13165 * grub-core/efiemu/i386/pc/cfgtables.c
13166 (grub_machine_efiemu_init_tables): Likewise.
13167 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13168 (grub_efiemu_loadcore_initXX): Add a filename argument.
13170 Improved error message.
13171 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13172 Add a filename argument.
13174 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13175 Reclassify double relocation as GRUB_ERR_BUG.
13177 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13179 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13182 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13184 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13187 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13189 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13191 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13193 Improve string. Gettextize.
13195 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13197 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13199 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13201 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13203 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13204 [GRUB_UTIL]: New function.
13205 (insert_array) [GRUB_UTIL]: Store partmaps.
13206 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13208 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13209 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13210 (probe_abstraction): Print diskfilter and not raid.
13211 Reported by: Lennart Sorensen
13213 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13215 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13216 * util/grub-mkimagexx.c (MASK3): New define.
13217 (add_value_to_slot_20b): Use MASK3.
13218 (add_value_to_slot_21): Likewise.
13219 (relocate_addresses): Fix format specification.
13220 (load_image): Explicitly init symtab_section.
13222 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13224 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13225 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13227 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13229 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13231 Reported by: Lennart Sorensen
13233 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13235 * gentpl.py: Add missing license header.
13236 * docs/grub.texi: Update copyright year.
13238 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13240 Source grub-mkconfig_lib from the build directory at build time.
13241 Suggested by: Vladimir Serbinenko.
13243 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13244 * util/grub-install.in: Define pkgdatadir if not already set, and source
13245 grub-mkconfig_lib from there.
13246 * util/grub-kbdcomp.in: Likewise.
13247 * util/grub-mkconfig.in: Likewise.
13248 * util/grub-mknetdir.in: Likewise.
13249 * util/grub-mkrescue.in: Likewise.
13250 * util/grub-mkstandalone.in: Likewise.
13251 * util/grub-reboot.in: Likewise.
13252 * util/grub-set-default.in: Likewise.
13253 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13255 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13257 Increase warning level.
13259 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13260 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13261 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13262 (TARGET_CFLAGS): Likewise.
13263 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13264 * grub-core/Makefile.core.def (decompressor_xz): Add
13265 -Wno-unreachable-code.
13266 (normal): Add -Wno-redundant-decls.
13267 (xzio): Add -Wno-unreachable-code.
13268 (lzopio): Add -Wno-redundant-decls -Wno-error.
13269 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13270 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13271 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13272 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13273 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13274 * grub-core/kern/i386/coreboot/init.c: Add exception to
13275 -Wsuggest-attribute=noreturn.
13276 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13277 * grub-core/kern/ia64/dl_helper.c: Likewise.
13278 * grub-core/kern/mips/dl.c: Likewise.
13279 * grub-core/kern/sparc64/dl.c: Likewise.
13280 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13281 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13282 (memcmp): Likewise.
13283 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13284 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13285 * grub-core/loader/mips/linux.c: Likewise.
13286 * grub-core/loader/multiboot_elfxx.c: Likewise.
13287 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13288 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13289 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13290 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13292 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13293 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13296 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13298 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13301 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13303 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13304 Avoid improper use of strings.
13305 (grub_cmd_legacy_initrdnounzip): Likewise.
13307 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13309 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13311 (grub_util_info): Likewise.
13312 (grub_util_error): Likewise.
13314 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13316 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13317 * util/grub-fstest.c (fstest): Likewise.
13319 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13321 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13322 (grub_md_sha512_real): Likewise.
13323 (grub_util_get_geli_uuid): Likewise.
13324 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13325 (grub_util_biosdisk_open): Fix format specification.
13326 Respect format security.
13327 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13328 (xrealloc): Likewise.
13329 (xasprintf): Likewise.
13331 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13333 * util/import_gcry.py: Include grub/crypto.h in init.c.
13335 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13337 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13338 (generate_image): Make prefix a const char *.
13339 Fix format specifications. Respect format security.
13340 Avoid void * arithmetics.
13342 (argp_parser): Remove unused variable. Respect format security.
13343 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13344 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13345 (count_funcs): Remove unused variable.
13346 (relocate_addresses): Fix format specification.
13347 Disable x86-64 with elf32. Remove unused variables.
13348 (add_fixup_entry): Avoid shadowing.
13349 (make_reloc_section): Fix format specification.
13351 (locate_sections): Fix format specifications.
13352 (load_image): Avoid shadowing.
13354 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13356 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13357 Fix format specifications. Respect format security.
13358 Don't translate already translated grub_errmsg.
13359 (argp_parser): Remove unused variable
13361 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13363 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13365 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13367 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13368 (main): Likewise. Use xmalloc. Respect format security.
13370 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13372 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13374 (argp_parser): Remove unused variable.
13376 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13378 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13379 (add_pixel): Make static.
13380 (add_font): Likewise.
13381 (write_string_section): Make name and str a const char *.
13382 (write_be16_section): Make name a const char *.
13383 (print_glyphs): Make static.
13384 (write_font_ascii_bitmap): Likewise.
13385 (write_font_width_spec): Likewise.
13386 (write_font_pf2): Likewise.
13387 (argp_parser): Remove unused variable.
13388 Respect format security.
13389 (main): Avoid shadowing. Respect format security.
13391 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13393 * util/grub-editenv.c (argp_parser): Make static.
13394 (create_envblk_file): Use xmalloc.
13395 (open_envblk_file): Likewise.
13396 Resepect format security.
13397 (set_variables): Respect format security.
13399 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13401 * util/getroot.c (grub_find_device): Respect format security.
13402 (get_mdadm_uuid): Remove unused variable.
13403 (grub_util_pull_device): Dont call gettext on already translated
13405 (find_system_device): Remove unused variable.
13406 (grub_util_get_grub_dev): Likewise.
13407 (grub_make_system_path_relative_to_its_root): Respect format security.
13409 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13411 * util/grub-fstest.c (execute_command): Make first argument
13413 (read_file): Avoid shadowing.
13414 Reuse underlying error message if device open fails.
13415 (cmd_cmp): Respect format security.
13416 (root): Make const char *.
13417 (fstest): Remove args argument and use global copy.
13418 Respect format security.
13419 (argp_parser): Make static.
13420 (main): Make default_root const char *.
13422 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13424 * util/grub-mount.c (root): Make const char *.
13425 (execute_command): Make first argument a const char *.
13426 (fuse_init): Respect format security.
13427 (argp_parser): Make static. Remove unused variable.
13428 (main): Make default_root a const char *.
13429 Respect format security.
13431 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13433 * util/grub-probe.c (probe): Don't call gettext on already translated
13435 Remove unused variables.
13436 (argp_parser): Remove unused variable.
13438 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13440 * util/grub-script-check.c (argp_parser): Remove unused variable.
13441 (main): Rename read to curread to avoid shadowing.
13443 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13445 * util/misc.c (grub_util_write_image_at): Fix format specification.
13446 (grub_util_write_image): Likewise.
13447 (grub_script_execute_argument_to_string): Removed (unused).
13448 (grub_script_execute_menuentry): Likewise.
13449 (grub_putchar): Likewise.
13451 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13453 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13454 (FUNCTION) [GRUB_UTIL]: Likewise.
13455 (VARIABLE) [GRUB_UTIL]: Likewise.
13457 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13459 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13460 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13462 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13464 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13467 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13469 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13470 (LzmaEnc_SaveState): Removed (unused).
13471 (LzmaEnc_RestoreState): Likewise.
13472 (LzmaEnc_InitPriceTables): Made static.
13473 (LzmaEnc_Construct): Likewise.
13474 (LzmaEnc_FreeLits): Likewise.
13475 (LzmaEnc_Destruct): Likewise.
13476 (LzmaEnc_Init): Likewise.
13477 (LzmaEnc_InitPrices): Likewise.
13478 (LzmaEnc_Finish): Likewise.
13479 (LzmaEnc_PrepareForLzma2): Removed (unused).
13480 (LzmaEnc_MemPrepare): Likewise.
13481 (LzmaEnc_GetNumAvailableBytes): Likewise.
13482 (LzmaEnc_GetCurBuf): Likewise.
13483 (LzmaEnc_CodeOneMemBlock): Likewise.
13485 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13487 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13488 (grub_util_ldm_embed): Likewise.
13490 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13492 * util/grub-editenv.c (print_var): Rename name to varname to
13494 (main): Rename index to curindex to avoid shadowing.
13495 Make filename a const char *.
13497 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13499 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13500 to arg_getline to avoid shadowing.
13502 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13504 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13505 disk_ to avoid shadowing.
13507 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13509 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13510 curindex to avoid shadowing.
13512 (MatchFinder_GetNumAvailableBytes): Make static.
13514 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13516 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13519 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13521 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13522 argument from encrypt to do_encrypt to avoid shadowing.
13524 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13526 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13527 incorrect nesting of #if's.
13529 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13531 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13532 checks which are always false on some platforms.
13533 (grub_cmd_lsacpi): Likewise.
13534 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13535 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13538 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13540 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13541 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13543 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13545 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13546 re_dfa_t to avoid breaking alignment invariants.
13547 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13548 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13550 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13552 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13553 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13555 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13557 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13560 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13562 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13563 conserve alignment invariants.
13564 (grub_ehci_ehcc_read16): Likewise.
13565 (grub_ehci_oper_read32): Likewise.
13566 (grub_ehci_oper_write32): Likewise.
13567 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13568 Conserve alignment invariants.
13570 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13572 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13573 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13576 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13578 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13579 Remove unused variable.
13581 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13583 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13586 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13588 * include/grub/net.h: Remove double declarations.
13590 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13592 Remove "payload" command in ia64 Linux loader since I couldn't
13593 find any evidence of it being used for anything.
13594 Replace "relocate" command with an environment variable
13596 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13598 (ia64_boot_payload): Removed.
13599 (last_payload): Likewise.
13600 (RELOCATE_OFF): Likewise.
13601 (RELOCATE_ON): Likewise.
13602 (RELOCATE_FORCE): Likewise.
13603 (relocate): Likewise.
13604 (free_pages): Don't free payloads.
13605 (grub_load_elf64): Use common error messages.
13606 Use "linux_relocate" variable.
13607 Increase the space after boot_params.
13608 (grub_cmd_payload): Removed.
13609 (grub_cmd_relocate): Likewise.
13610 (grub_cmd_fpswa): Improve messages.
13611 (cmd_payload): Removed.
13612 (cmd_relocate): Likewise.
13613 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13614 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13616 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13618 Convert UHCI to DMA framework.
13620 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13621 (grub_uhci_pci_iter): Fill new members
13622 (grub_alloc_td): Use P2V and V2P functions.
13623 (grub_free_queue): Likewise.
13624 (grub_alloc_qh): Likewise.
13625 (grub_uhci_setup_transfer): Likewise.
13626 (grub_uhci_check_transfer): Likewise.
13628 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13630 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13631 Remove assignment in if while on it.
13633 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13635 * util/grub-mkstandalone.in: Fix modules directory.
13637 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13639 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13641 (argp_parser): Accept "auto" as compression specification.
13643 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13645 Fix `help' with unloaded modules.
13647 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13648 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13649 (grub_dyncmd_dispatcher): Small stylistic fix.
13650 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13651 explicit help is requested.
13653 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13655 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13656 Explicitly init restart while on it.
13658 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13660 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13663 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13665 * util/grub-mknetdir.in: Use . rather than source for POSIX
13668 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13670 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13672 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13674 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13677 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13679 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13682 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13684 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13686 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13688 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13689 iteration of partitions.
13691 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13693 Improve gettext support. Stylistic fixes and error handling fixes while
13696 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13698 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13699 part. Instead setup the correct stack in RM.
13700 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13702 * include/grub/i386/relocator_private.h: New file.
13704 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13706 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13708 * util/grub-fstest.c (options): Add missing DEVICE part.
13710 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13712 Clarify and unify messages.
13714 * grub-core/commands/hashsum.c (options): Unify messages.
13715 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13716 literal-only message as translatable.
13717 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13718 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13719 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13721 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13722 key, not the key used to unlock. Clarify what it's used for.
13723 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13724 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13725 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13726 * util/grub-editenv.c (options): Unify "verbose" message.
13727 * util/grub-fstest.c (read_file): Unify error message.
13728 (fstest): Add quotes around commands.
13729 (options): Unify "verbose" message.
13730 * util/grub-install.in: Add quotes around variable name.
13731 * util/grub-kbdcomp.in: Unify error message.
13732 * util/grub-mkfont.c (main): Likewise.
13733 * util/grub-mkrescue.in: Likewise.
13734 * util/grub-mklayout.c (options): Unify "verbose" message.
13735 * util/grub-mkstandalone.in: Unify help and verbose messages.
13736 * util/grub-mount.c (options): Unify "verbose" message.
13737 * util/grub-probe.c (options): Likewise.
13738 * util/grub-script-check.c (options): Likewise.
13739 * util/grub-setup.c (setup): Unify no-terminator message.
13740 (options): Use DEVICE and not DEV.
13741 Unify "verbose" message.
13742 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13744 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13746 Improve and unify messages.
13748 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13749 name. All users updated.
13750 Print filename in error.
13751 (read_device_map): Print filename in error.
13752 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13753 (grub_util_get_os_disk): Likewise.
13754 (grub_util_biosdisk_get_grub_dev): Likewise.
13755 (grub_util_check_block_device): Likewise.
13756 (grub_util_check_char_device): Likewise.
13757 (grub_make_system_path_relative_to_its_root): Likewise.
13758 * util/grub-editenv.c (create_envblk_file): Likewise.
13759 (open_envblk_file): Likewise.
13760 (write_envblk): Likewise.
13761 * util/grub-fstest.c (cmd_cp): Likewise.
13762 (cmd_cat): Likewise.
13763 (cmd_cmp): Likewise.
13764 * util/grub-menulst2cfg.c (main): Likewise.
13765 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13766 (write_font_width_spec): Likewise.
13767 (write_font_pf2): Likewise.
13768 * util/grub-mkimage.c (generate_image): New argument outname.
13770 Remove unreacheable message.
13771 (options): Unify messages.
13772 (help_filter): Likewise.
13773 * util/grub-mklayout.c (usage): Removed (unused).
13774 (main): Print filename in error.
13775 * util/grub-mkrescue.in: Fix wrong quoting.
13776 * util/grub-setup.c (setup): Print filename in error.
13777 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13778 (check_sas): Likewise.
13779 * util/misc.c (grub_util_get_fp_size): Removed.
13780 (grub_util_get_image_size): Print filename in error.
13781 (grub_util_read_at): Removed.
13782 (grub_util_read_image): Print filename in error.
13783 (grub_util_load_image): Likewise.
13784 (grub_util_write_image_at): New argument filename. All users updated.
13785 Print filename in error.
13786 (grub_util_write_image): New argument filename. All users updated.
13787 Print filename in error.
13788 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13789 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13791 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13793 * grub-core/Makefile.core.def (pxechain): New module.
13794 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13795 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13797 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13798 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13800 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13802 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13803 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13804 * include/grub/err.h (grub_error_saved): New struct.
13805 (grub_errmsg): Make array size explicit.
13806 * include/grub/misc.h (grub_error_save): New function.
13807 (grub_error_load): Likewise.
13808 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13809 (grub_error_push): Update `errno' member name.
13810 (grub_error_pop): Likewise
13811 * grub-core/net/tftp.c (tftp_data): New member save_err.
13812 (tftp_receive): Save error.
13813 (tftp_open): Restore error.
13815 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13817 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13818 to real mode down to execute A20-related code in protected mode as
13821 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13823 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13824 NULL when the argument `level' has an unexpected value.
13826 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13828 Move platform-dependent files from $prefix to $prefix/$platform.
13830 * config.h.in (GRUB_TARGET_CPU): New definition.
13831 (GRUB_PLATFORM): Likewise.
13832 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13833 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13834 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13835 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13836 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13837 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13838 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13839 * grub-core/normal/term.c (read_terminal_list): Likewise.
13840 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13842 (grub_gettext_init_ext): Likewise.
13843 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13845 * util/grub-install.in: Update directories.
13846 * util/grub-mknetdir.in: Likewise.
13847 * util/grub-mkrescue.in: Likewise.
13849 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13851 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13852 grub_error framework. All users updated.
13854 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13856 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13857 lists (by always binsearching), improve caching (cache strings
13858 used for binsearch, not only results), improve
13859 maintainability (by using more structured binary search) and correct
13862 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13864 * grub-core/script/execute.c (grub_script_return): Fix warning.
13866 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13868 * grub-core/script/execute.c (grub_script_return): Fix potential
13870 Reported by: Jim Meyering.
13872 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13874 * po/POTFILES.in: Regenerate.
13875 * util/grub-install.in: Gettextize the strings missed in first pass.
13877 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13879 * Makefile.util.def (grub-mkdevicemap): Removed.
13880 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13881 * include/grub/util/deviceiter.h: Removed.
13882 * util/deviceiter.c: Likewise.
13883 * util/getroot.c (grub_util_get_os_disk): New function.
13884 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13885 replacement for EFI.
13886 * util/grub-mkdevicemap.c: Removed.
13887 * util/grub-probe.c (probe): Handle PRINT_DISK.
13888 (argp_parser): Handle -t disk.
13890 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13892 * util/grub-mkfont.c: Migrate to argp.
13893 * util/grub-mklayout.c: Likewise.
13894 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13895 * util/grub-mkrelpath.c: Likewise.
13896 * util/grub-probe.c: Likewise.
13897 * util/grub-script-check.c: Likewise.
13899 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13901 * util/grub-reboot.in: Add missing datarootdir.
13902 Add missing newline.
13903 * util/grub-set-default.in: Add missing datarootdir.
13904 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13905 * util/grub-mkrescue.in: Likewise.
13907 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13909 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13911 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13913 * util/grub-kbdcomp.in: Add decent help and gettextize.
13914 * docs/man/grub-kbdcomp.h2m: New file.
13916 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13918 Migrate grub-mkimage.c to argp.
13920 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13921 (grub-setup): Likewise.
13922 * util/grub-setup.c (print_version): Move to ...
13923 * util/argp_common.c (print_version): ... here.
13924 * util/grub-setup.c (argp_program_version_hook): Move to ...
13925 * util/argp_common.c (argp_program_version_hook): ... here.
13926 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13928 * util/grub-mkimage.c (main): Migrate to argp.
13930 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13932 * util/grub-mkrescue.in: Use same message as
13933 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13934 for better translations.
13936 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13938 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13939 options with generic grub-mkrescue.in with the goal of future
13942 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13944 * grub-core/kern/mm.c: Add missing include of i18n.h
13945 * grub-core/lib/relocator.c: Likewise.
13947 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13949 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13951 (allocate_pages): Check return value.
13952 Replace fatal with error.
13953 (grub_linux_boot): Replace printf with dprintf.
13954 Check find_mmap_size return value.
13955 Replace fatal with error.
13956 Don't call grub_machine_fini.
13957 (grub_load_elf64): Replace printf with dprintf.
13958 (grub_cmd_linux): Likewise.
13959 (grub_cmd_initrd): Likewise.
13960 (grub_cmd_payload): Likewise.
13962 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13964 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13966 * grub-core/video/radeon_fuloong2e.c
13967 (grub_video_radeon_fuloong2e_setup): Likewise.
13968 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13969 * grub-core/video/video.c (grub_video_set_mode): Don't override
13970 standard out of memory message.
13972 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13974 NetBSD disk wedge support.
13976 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13977 [__NetBSD__]: Handle NetBSD disk wedges.
13978 * util/getroot.c (convert_system_partition_to_system_disk)
13979 [__NetBSD__]: Likewise.
13981 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13983 * util/grub-mkconfig.in: Use umask rather than chmod to create
13984 grub.cfg.new to avoid insecure grub.cfg.
13986 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13988 * grub-core/commands/ls.c: Gettextize.
13989 * grub-core/commands/setpci.c: Likewise.
13990 * grub-core/commands/videotest.c: Likewise.
13991 * grub-core/disk/geli.c: Likewise.
13992 * grub-core/kern/mm.c: Likewise.
13993 * grub-core/lib/relocator.c: Likewise.
13994 * grub-core/loader/efi/appleloader.c: Likewise.
13995 * grub-core/loader/i386/xnu.c: Likewise.
13996 * grub-core/loader/ia64/efi/linux.c: Likewise.
13997 * grub-core/loader/xnu.c: Likewise.
13998 * grub-core/net/dns.c: Likewise.
13999 * grub-core/net/net.c: Likewise.
14000 * grub-core/script/lexer.c: Likewise.
14001 * grub-core/script/parser.y: Likewise.
14002 * grub-core/script/yylex.l: Likewise.
14003 * util/getroot.c: Likewise.
14004 * util/grub-setup.c: Likewise.
14006 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14008 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14011 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14013 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14015 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14017 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14019 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14020 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14022 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14024 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14025 * util/grub-install.in: Gettextize.
14026 * util/grub-mkconfig.in: Likewise.
14027 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14029 (grub_warn): Gettextize.
14030 * util/grub-mknetdir.in: Gettextize.
14031 * util/grub-mkrescue.in: Likewise.
14032 * util/grub-mkstandalone.in: Likewise.
14033 * util/grub-reboot.in: Likewise.
14034 * util/grub-set-default.in: Likewise.
14035 * util/grub.d/00_header.in: Likewise.
14036 * util/grub.d/10_hurd.in: Likewise.
14037 * util/grub.d/10_kfreebsd.in: Likewise.
14038 * util/grub.d/10_linux.in: Likewise.
14039 * util/grub.d/10_netbsd.in: Likewise.
14040 * util/grub.d/10_windows.in: Likewise.
14041 * util/grub.d/20_linux_xen.in: Likewise.
14042 * util/grub.d/30_os-prober.in: Likewise.
14043 * po/POTFILES-shell.in: Regenerate.
14045 2012-02-03 Richard Laager <rlaager@wiktel.com>
14047 * util/grub-mkimage.c (main): Fix format-security warning.
14048 * util/grub-mkrelpath.c (main): Likewise.
14049 * util/grub-probe.c (main): Likewise.
14051 2012-02-03 Richard Laager <rlaager@wiktel.com>
14053 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14055 Put back lost PRINT_DRIVE.
14057 2012-02-03 Richard Laager <rlaager@wiktel.com>
14059 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14060 (grub_guess_root_devices): Replace strlen with sizeof.
14062 (find_root_devices_from_poolname): Remove unused variable.
14065 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14067 Support install on multi-device filesystems.
14069 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14070 (grub_guess_root_devices): ...this. Return char **. All users updated.
14071 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14073 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14074 (find_root_devices_from_poolname): ... here.
14075 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14077 (grub_guess_root_device): Rename to ...
14078 (grub_guess_root_devices): ... this. Return char **. All users updated.
14079 * util/grub-install.in: Handle multi-device filesystems.
14080 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14081 argument. All users updated.
14082 Handle multi-device filesystems.
14083 Use 'delim' as separator.
14084 Remove device check to allow filesystems on file.
14085 (main): Support -0 argument. Handle multi-device.
14086 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14087 Fix a cross-device check while on it.
14088 (arguments): Remove root_dev.
14089 (argp_parser): Remove -r.
14090 (main): Remove root_dev.
14092 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14094 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14096 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14098 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14100 Reported by: NODA, Kai <nodakai>.
14102 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14106 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14108 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14109 (grub_ehci_setup_qh): Likewise.
14110 (grub_ehci_find_qh): Likewise.
14111 (grub_ehci_transaction): Likewise.
14112 (grub_ehci_setup_transfer): Likewise.
14113 (grub_ehci_check_transfer): Likewise.
14114 (grub_ehci_portstatus): Likewise.
14115 (grub_ehci_detect_dev): Likewise.
14116 (grub_ehci_transfer_controller_data): New field td_last_phys.
14117 (grub_ehci_setup_transfer): Fill td_last_phys.
14118 (grub_ehci_check_transfer): Use td_last_phys.
14120 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14122 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14123 if no submenu is present.
14125 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14129 * include/grub/usb.h (grub_usbms_protocol_t): New values
14130 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14131 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14132 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14133 (grub_usbms_dev): Add subclass, protocol and intrpt.
14134 Remove in_maxsz and out_maxsz.
14135 (grub_usbms_reset): Rename to ...
14136 (grub_usbms_bo_reset): .. this.
14137 (grub_usbms_cbi_cmd): New function.
14138 (grub_usbms_cbi_reset): Likewise.
14139 (grub_usbms_reset): Likewise.
14140 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14141 (grub_usbms_transfer): Rename to ...
14142 (grub_usbms_transfer_bo): ... this.
14143 (grub_usbms_transfer_cbi): Likewise.
14144 (grub_usbms_transfer): Likewise.
14146 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14147 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14149 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14150 the support for the CS5536 modification thereos and few bugfixes.
14152 * grub-core/Makefile.core.def (ehci): New module.
14153 * grub-core/bus/usb/ehci.c: New file.
14154 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14155 port and hubaddr. All users updated.
14156 Save port and hubaddr into dev structure.
14157 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14159 * include/grub/pci.h (grub_dma_phys2virt): New function.
14160 (grub_dma_virt2phys): Likewise.
14161 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14163 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14165 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14166 check as some mkfs implementations omit it.
14168 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14170 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14172 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14174 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14175 Add new member volname2.
14176 (grub_jfs_label): Use volname2 if available.
14178 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14180 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14181 over last_mounted as seen in image generated by mkfs.nilfs2.
14182 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14184 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14186 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14187 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14188 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14190 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14192 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14195 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14197 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14198 subvolume name (by removing a bogus and useless check).
14200 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14202 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14203 sizeof while on it.
14205 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14207 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14208 (grub_scsi_read_capacity10): ... this.
14209 (grub_scsi_read_capacity16): New function.
14210 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14212 Fix off-by-one error.
14213 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14215 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14216 (grub_scsi_read_capacity10): ... this.
14217 (grub_scsi_read_capacity_data): Rename to ...
14218 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14219 (grub_scsi_read_capacity16): New struct.
14220 (grub_scsi_read_capacity16_data): Likewise.
14221 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14222 grub_scsi_cmd_read_capacity10.
14223 New command grub_scsi_cmd_read_capacity16.
14225 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14227 SCSI >2TiB support.
14229 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14230 (grub_scsi_write16): Likewise.
14231 (grub_scsi_read): Use read16 when necessary.
14232 (grub_scsi_write): Likewise.
14233 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14234 (grub_scsi_write16): Likewise.
14235 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14237 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14239 SCSI write support (for usbms mainly).
14241 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14243 (grub_scsi_write): Implement.
14244 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14246 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14248 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14251 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14253 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14255 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14257 * po/POTFILES.in: Regenerate.
14259 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14261 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14262 with grub_printf to avoid unnecessary fatal failure.
14264 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14266 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14267 (INT_MAX): Likewise.
14268 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14269 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14270 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14271 (strcpy): Likewise.
14272 (strstr): Likewise.
14273 (strchr): Likewise.
14274 (strncpy): Likewise.
14275 (strcat): Likewise.
14276 (strncat): Likewise.
14277 (strcoll): Likewise.
14278 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14279 (GRUB_INT_MAX): Likewise.
14281 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14283 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14285 (optimize_utf8): Likewise.
14286 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14288 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14290 * grub-core/boot/i386/pc/lnxboot.S: Use
14291 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14292 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14294 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14296 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14298 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14300 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14301 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14302 now to avoid double free.
14303 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14305 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14306 * util/grub-probe.c (escape_of_path): Always return a new copy.
14307 (print_full_name): Escape path.
14308 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14309 Fix hints on abstractions.
14311 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14313 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14314 Don't add "root" line if no compatibility hont is available.
14315 Suggested by: Seth Goldberg.
14317 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14319 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14320 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14321 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14322 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14324 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14326 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14328 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14330 * util/grub-pe2elf.c (ehdr): Make static.
14332 (num_sections): Likewise.
14333 (offset): Likewise.
14335 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14337 Eliminate ofpath limits and possible overflows.
14339 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14340 (OF_PATH_MAX): Removed.
14341 (MAX_DISK_CAT): New const.
14342 (find_obppath): Use allocated rather than preallocated buffer.
14343 Return result. Argument of_path removed. All users updated.
14344 Add missing fdstat.
14345 (xrealpath): New function.
14346 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14347 Allocate rather than use preallocated buffer. All users updated.
14348 (__of_path_common): Use allocated rather than preallocatecd buffer.
14349 Return result. Argument of_path removed. All users updated.
14350 (vendor_is_ATA): Read only needed part form the file.
14351 (check_sas): Allocate depending on contents rather than fixed.
14352 (main) [STANDALONE]: Handle NULL result.
14354 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14356 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14358 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14360 Cryptodisk write support.
14362 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14363 (grub_cryptodisk_decrypt): Moved logic to ...
14364 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14365 (grub_cryptodisk_write): Implement.
14366 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14367 (grub_util_fd_write): ... this. Make global.
14368 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14370 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14372 * include/grub/list.h (grub_list_remove): Don't crash if element is
14375 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14377 Rename ofconsole to console.
14379 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14380 as sysnonym to console.
14381 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14382 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14383 Rename grub_ofconsole_ to grub_console_. All users updated
14384 (grub_console_term_output): Rename "ofconsole" to "console".
14385 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14388 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14390 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14392 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14393 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14394 GRUB_DISK_DEVICE_FILE_ID.
14396 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14398 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14399 and improve performance.
14401 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14403 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14404 missing ieee1275/ prefix on whole disk.
14406 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14408 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14409 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14411 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14413 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14415 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14417 Merge common RAID and LVM logic to an abstract diskfilter.
14418 Add LDM support using the same framework.
14420 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14421 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14422 (libgrubmods): Remove grub-core/disk/raid.c and
14423 grub-core/partmap/gpt.c.
14424 * grub-core/Makefile.core.def (ldm): New module.
14425 (raid): Renamed to diskfilter. All users updated.
14426 * grub-core/disk/raid.c: Moved to ...
14427 * grub-core/disk/diskfilter.c: ... here.
14428 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14430 (find_array): Renamed to ...
14431 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14432 (grub_is_array_readable): Renamed to ...
14433 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14434 (insert_array): New argument id.
14435 (is_node_readable): New function.
14436 (scan_device): Rename to ...
14437 (scan_disk): .. this. Restrict to one disk.
14438 (scan_devices): New function.
14439 (grub_diskfilter_iterate): Support multi-LV.
14440 Skip invisible and nameless LVs.
14441 (grub_diskfilter_memberlist): Support multi-LV.
14442 (grub_diskfilter_read_node): New function.
14443 (grub_raid_read): Most of logic moved to ...
14444 (read_segment): ... here
14445 (read_lv): New function.
14446 (grub_diskfilter_get_vg_by_uuid): New function.
14447 (grub_diskfilter_make_raid): Likewise.
14448 * grub-core/disk/ldm.c: New file.
14449 * grub-core/disk/lvm.c (vg_list): Removed.
14450 (lv_count): Likewise.
14451 (scan_depth): Likewise.
14452 (is_lv_readable): Likewise.
14453 (grub_lvm_getvalue): Advance pointer past the number.
14454 (find_lv): Removed.
14455 (do_lvm_scan): Refactored into ...
14456 (grub_lvm_detect): ... this. Support raid.
14457 (grub_lvm_iterate): Removed.
14458 (grub_lvm_memberlist): Likewise.
14459 (grub_lvm_open): Likewise.
14460 (grub_lvm_close): Likewise.
14461 (read_lv): Likewise.
14462 (read_node): Likewise.
14463 (is_node_readable): Likewise.
14464 (is_lv_readable): Likewise.
14465 (grub_lvm_read): Likewise.
14466 (grub_lvm_write): Likewise.
14467 (grub_lvm_dev): Use diskfilter
14468 (GRUB_MOD_INIT): Likewise.
14469 (GRUB_MOD_FINI): Likewise.
14470 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14472 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14473 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14474 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14475 grub_diskfilter_read_node.
14476 Fix a bug with xor.
14477 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14478 grub_diskfilter_read_node.
14479 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14480 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14481 (grub_disk_dev_iterate): Move from here...
14482 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14483 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14485 (grub_hostdisk_find_partition_start): Likewise.
14486 (grub_hostdisk_os_dev_to_grub_drive): New function.
14487 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14488 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14489 * util/getroot.c (make_device_name): ... here.
14490 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14492 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14493 * grub-core/kern/emu/hostdisk.c
14494 (convert_system_partition_to_system_disk): Move to ...
14495 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14496 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14497 * util/getroot.c (device_is_wholedisk): ... here.
14498 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14499 * util/getroot.c (find_system_device): ... here.
14500 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14502 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14503 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14505 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14507 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14509 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14510 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14511 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14513 * include/grub/raid.h: Renamed to ...
14514 * include/grub/diskfilter.h: ... this.
14515 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14516 (GRUB_RAID_LAYOUT_*): Make into array.
14517 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14518 (grub_diskfilter_vg): New struct.
14519 (grub_diskfilter_pv_id): Likewise.
14520 (grub_raid_member): Removed.
14521 (grub_raid_array): Likewise.
14522 (grub_diskfilter_pv): New struct.
14523 (grub_diskfilter_lv): Likewise.
14524 (grub_diskfilter_segment): Likewise.
14525 (grub_diskfilter_node): Likewise.
14526 (grub_diskfilter_get_vg_by_uuid): New proto.
14527 (grub_raid_register): Inline.
14528 (grub_diskfilter_unregister): Likewise.
14529 (grub_diskfilter_make_raid): New proto.
14530 (grub_diskfilter_vg_register): Likewise.
14531 (grub_diskfilter_read_node): Likewise.
14532 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14533 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14534 (grub_util_is_ldm): Likewise.
14535 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14536 (grub_hostdisk_find_partition_start): Likewise.
14537 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14538 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14540 (grub_gpt_partition_map_iterate): New proto.
14541 * include/grub/lvm.h (grub_lvm_vg): Removed.
14542 (grub_lvm_pv): Likewise.
14543 (grub_lvm_lv): Likewise.
14544 (grub_lvm_segment): Likewise.
14545 (grub_lvm_node): Likewise.
14546 * util/getroot.c [...]
14547 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14548 (probe_abstraction): Likewise.
14549 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14550 (main): Remove dead logic.
14552 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14554 Simplify root device discover and don't fail when trying to open
14557 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14559 (get_diskname_from_path): Likewise.
14560 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14563 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14565 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14567 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14569 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14572 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14574 * util/grub-install.in: Add missing \.
14575 Reported by: gentoofan
14577 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14579 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14580 (direct_read): Use correct compressed size.
14581 (grub_squash_read_data): Likewise.
14583 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14585 * docs/grub.texi (Platform limitations): New section.
14586 (Platform-specific operations): Likewise.
14587 * docs/grub-dev.texi (Porting): Likewise.
14589 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14591 IEEE1275 disk write support.
14593 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14595 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14596 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14597 and seek loginc to ...
14598 (grub_ofdisk_prepare): ... here.
14599 (grub_ofdisk_write): Implement.
14601 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14603 ARC disk write support.
14605 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14606 (reopen): New argument writable. All users updated.
14607 Handle required access mode.
14608 (grub_arcdisk_write): Implement.
14609 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14610 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14612 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14614 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14615 (read_sblock): Don't attempt to read superblocks outside the disk size.
14617 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14619 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14620 first superblock to find the second one when possible.
14622 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14624 * util/grub-install.in: Fix an ARC bug.
14625 Print a warning if no platform-specific setup is available.
14627 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14629 Use static allocation rather than scratch pointer in reed_solomon.
14630 It decreases its size significantly and avoids a variable in .text.
14632 * grub-core/lib/reed_solomon.c (scratch): Removed.
14633 (chosenstat): New const or static array.
14635 (errpot): Likewise.
14636 (errpos): Likewise.
14639 (errvals): Likewise.
14640 (eqstat): Likewise.
14641 (pol_evaluate): Replace x with log_x argument. All users updated.
14642 (syndroms): Removed.
14643 (gauss_solve): Use statically allocated arrays.
14644 (rs_recover): Likewise.
14645 Calculate syndroms directly.
14646 (decode_block): Use statically allocated arrays.
14647 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14648 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14650 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14652 Eliminate fixed limit on reed solomon decoder length.
14654 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14655 rather than hardcoding the address.
14656 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14657 no_reed_solomon_length.
14658 Move gate_a20 to no-reed-solomon part.
14659 Don't force a particular size of no reed-solomon part.
14660 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14662 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14663 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14665 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14667 * grub-core/commands/wildcard.c (match_files): Handle filenames
14668 without explicit device.
14669 (wildcard_expand): Don't add explicit device if not already present.
14670 * tests/grub_script_echo1.in: Add a new expansion test.
14672 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14674 Replace single-linked with double-linked lists. It results in more
14675 compact and more efficient code.
14677 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14678 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14679 (grub_list_remove): Moved from here ...
14680 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14681 (grub_prio_list_insert): Set prev.
14682 * include/grub/list.h (grub_list): Add prev. All users updated.
14684 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14686 Handle newer autotools. Add some missing quotes while on it.
14688 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14689 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14690 (pkgdata_DATA): ... here.
14691 * Makefile.util.def (update-grub_lib): Removed.
14692 * conf/Makefile.common (pkglib_DATA): Removed.
14693 (pkglib_SCRIPTS): Likewise.
14694 (pkgdata_DATA): New variable.
14695 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14697 Add missing quotes.
14698 Remove unused variable while on it.
14699 * tests/util/grub-shell.in: Likewise.
14700 * util/grub-install.in: Likewise.
14701 * util/grub-mkconfig.in: Likewise.
14702 * util/grub-mknetdir.in: Likewise.
14703 * util/grub-mkrescue.in: Likewise.
14704 * util/grub-mkstandalone.in: Likewise.
14705 * util/grub.d/00_header.in: Likewise.
14706 * util/grub.d/10_hurd.in: Likewise.
14707 * util/grub.d/10_illumos.in: Likewise.
14708 * util/grub.d/10_kfreebsd.in: Likewise.
14709 * util/grub.d/10_linux.in: Likewise.
14710 * util/grub.d/10_netbsd.in: Likewise.
14711 * util/grub.d/10_windows.in: Likewise.
14712 * util/grub.d/20_linux_xen.in: Likewise.
14713 * util/grub.d/30_os-prober.in: Likewise.
14714 * util/update-grub_lib.in: Removed.
14716 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14718 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14719 a workaround for intel problem.
14721 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14722 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14723 2012-01-23 pfsmorigo
14725 * util/grub-install.in: Support dd'in into PreP partition.
14726 * util/grub-probe.c (probe): Support discovering partition type.
14727 (main): Support -t msdos_parttype.
14729 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14731 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14732 infinite recursion using counter.
14733 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14734 init to skip it if the magic check fails.
14735 (dec_stream_header): Init s->crc32.
14737 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14738 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14739 2012-01-22 Richard Laager <rlaager@wiktel.com>
14741 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14743 (find_bestub): Determine correct size.
14744 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14745 (scan_disk): Align the size down.
14746 Call check pool before find_bestub to have ashift.
14748 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14750 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14751 dprintf in no-malloc zone.
14753 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14755 * configure.ac: Add back in test for limits.h.
14757 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14759 Support 4K-sector NTFS.
14761 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14762 (grub_ntfs_data): Remove blocksize.
14763 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14764 Remove data argument. All users updated.
14766 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14768 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14769 being in .text to avoid dprel references.
14770 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14771 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14772 (grub_arch_highmemsize): Likewise.
14773 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14774 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14775 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14777 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14779 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14781 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14782 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14784 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14786 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14788 (grub_set_datetime_cmos): Likewise.
14790 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14792 Make XZ compression parameters dependent on target and not host CPU.
14794 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14795 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14797 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14799 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14800 set but not used variable.
14802 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14804 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14805 created when no uuid support is compiled into mkfs.reiser.
14807 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14809 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14810 (utf8_to_macroman): Do the opposite.
14811 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14813 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14815 * configure.ac: Refise build qemu_mips w/o unifont.
14817 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14819 Eliminate grub_min/grub_max prone to overflow usage.
14821 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14822 (poll_nonroot_hub): Likewise.
14823 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14824 (grub_affs_label): Likewise.
14825 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14826 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14827 (grub_hfs_label): Likewise.
14828 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14829 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14830 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14831 (zap_leaf_array_get): Likewise.
14832 (dnode_get_path): Likewise.
14833 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14834 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14835 * grub-core/script/execute.c (grub_script_break): Likewise.
14836 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14838 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14839 * include/grub/misc.h (grub_min): Removed.
14840 (grub_max): Likewise.
14842 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14844 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14847 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14849 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14851 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14853 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14855 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14857 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14858 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14860 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14862 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14863 rather than a hack for grub_strncasemap.
14865 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14867 Support multiple initrds
14868 Note: part of this was accidently committed in r3739.
14870 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14872 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14873 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14874 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14875 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14876 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14878 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14880 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14881 disks with unknown size.
14882 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14884 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14886 Remove defines pertaining to arbitrary limits not affecting GRUB
14889 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14890 (EXT2_MAX_SYMLINKCNT): Likewise.
14891 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14892 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14893 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14894 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14895 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14896 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14897 (DN_MAX_OBJECT_SHIFT): Likewise.
14898 (DN_MAX_OFFSET_SHIFT): Likewise.
14899 (DN_MAX_OBJECT): Likewise.
14900 (DNODES_PER_LEVEL_SHIFT): Likewise.
14901 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14902 (SPA_MAXBLOCKSIZE): Likewise.
14903 (SPA_BLOCKSIZES): Likewise.
14904 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14905 (MZAP_MAX_BLKSZ): Likewise.
14907 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14909 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14910 handle NULL appropriately.
14913 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14917 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14919 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14920 * configure.ac: Fix efiemu check.
14922 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14924 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14926 Reported by: adamwill
14928 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14930 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14932 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14934 Fix handling of wide characters in gfxterm.
14936 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14937 (clear_char): Likewise.
14938 (paint_char): Skip code == NULL chars.
14939 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14941 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14943 * grub-core/normal/charset.c: Move comment to right place.
14945 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14947 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14948 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14949 (grub_affs_mount): Revert the correct version checking.
14951 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14953 * docs/grub.texi (Unicode): Mention several other unsupported features.
14955 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14957 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14958 case statements as compile-time one.
14959 (direct_read): Prevent spurious warnings.
14960 (grub_squash_read_data): Likewise.
14962 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14964 Various squash4 fixes and LZO and XZ support.
14966 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14967 Add xzembed source files.
14968 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14969 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14970 (grub_squash_inode): New subtype long_dir.
14971 (SQUASH_TYPE_LONG_DIR): New inode type.
14972 (COMPRESSION): New enum.
14973 (XZBUFSIZ): New const.
14974 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14975 (read_chunk): Use data->decompress.
14976 (zlib_decompress): New function.
14977 (lzo_decompress): Likewise.
14978 (xz_decompress): Likewise.
14979 (squash_mount): Set new data fields.
14980 (grub_squash_iterate_dir): Handle long dir.
14981 (squash_unmount): Free xzdec and xzbuf.
14982 (grub_squash_open): Check ino type.
14983 (direct_read): Stylistic fixes. Use data->decompress.
14984 (grub_squash_read_data): Likewise.
14985 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14986 (get_byte): Likewise.
14987 (grub_zlib_disk_read): Removed.
14988 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14989 (GRUB_POSIX_BOOL_DEFINED): New define.
14990 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14991 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14992 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14993 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14995 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14997 Don't override more informative errors.
14999 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15000 * grub-core/font/font.c (open_section): Likewise.
15001 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15002 filename. Don't override errors.
15003 (grub_cmd_openbsd_ramdisk): Don't override errors.
15004 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15005 (grub_cmd_initrd): Likewise.
15006 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15007 (grub_cmd_initrd): Likewise.
15008 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15009 (grub_cmd_linux): Likewise.
15010 (grub_cmd_initrd): Likewise.
15011 (grub_cmd_payload): Likewise.
15012 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15013 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15014 (grub_cmd_module): Likewise.
15015 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15016 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15017 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15018 (grub_cmd_xnu_mkext): Likewise.
15019 (grub_cmd_xnu_ramdisk): Likewise.
15020 (grub_xnu_check_os_bundle_required): Likewise.
15021 (grub_xnu_load_kext_from_dir): Likewise.
15022 (grub_cmd_xnu_kextdir): Likewise.
15023 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15025 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15027 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15028 as 1024 in block size field. Found on one of my test images.
15029 Small optimisation while on it.
15031 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15033 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15034 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15035 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15036 performance fixes while on it.
15037 (grub_sfs_close): Fix memory leak while on it.
15038 (grub_sfs_label): Convert Latin1 to UTF-8.
15040 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15042 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15043 space to avoid overflows.
15044 (grub_hfs_label): Convert from macroman to UTF-8.
15046 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15048 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15050 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15052 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15054 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15056 * unicode: Import Unicode 6.0 data.
15058 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15060 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15063 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15065 Avoid cutting in the middle of UTF-8 character.
15067 * include/grub/charset.h (grub_getend): New function.
15068 * grub-core/script/function.c (grub_script_function_find): Use
15070 * grub-core/normal/completion.c (add_completion): Likewise.
15072 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15074 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15075 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15076 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15077 (GRUB_UNICODE_TAG_END): Likewise.
15078 (GRUB_UNICODE_LAST_VALID): Likewise.
15080 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15082 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15083 len and make it smaller. All users updated.
15084 * util/import_unicode.py: Put length and not end character.
15087 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15089 Make better Unicode-compliant and unify some UTF-8 code pathes.
15091 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15093 (grub_is_valid_utf8): Use grub_utf8_process.
15094 Check resulting code range.
15095 (grub_utf8_to_ucs4): Use grub_utf8_process.
15096 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15099 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15101 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15103 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15105 * docs/grub.texi (Filesystems): Mention AFS.
15107 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15109 * docs/grub.texi (Filesystems): Clarify restrictions.
15110 (Regexp): Mention non-Unicode regexp behaviour.
15111 (Other): Mention non-Unicode matching behaviour.
15113 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15115 Make HFS implementation use MacRoman.
15117 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15118 (macroman): New const array.
15119 (macroman_to_utf8): New function.
15120 (utf8_to_macroman): Likewise.
15121 (grub_hfs_find_dir): Use utf8_to_macroman.
15122 (grub_hfs_dir): Use macroman_to_utf8.
15123 Set case_insensitive.
15125 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15127 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15129 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15131 Integrate hints into autogeneration scripts.
15133 * docs/grub.texi (Filesystems): Add a hostdisk example.
15134 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15135 (grub-probe): Add ofpath.
15136 * gentpl.py: Remove group nosparc64.
15137 * grub-core/commands/search.c (cache_entry): New struct.
15139 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15140 * grub-core/commands/search_wrap.c (options): Add platform-specific
15142 (grub_cmd_search): Handle platform-specific hints.
15143 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15144 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15145 (grub_util_biosdisk_data): Likewise.
15146 (grub_util_biosdisk_open): Set device_map.
15147 (read_device_map): Handle "" as indication of no map.
15149 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15150 (grub_util_biosdisk_get_compatibility_hint): New function.
15151 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15152 * include/grub/emu/hostdisk.h
15153 (grub_util_biosdisk_get_compatibility_hint): New proto.
15154 * util/grub-install.in: Don't call grub-mkdevicemap.
15155 Add platform-specific hint to load.cfg.
15156 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15157 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15158 hints. Set root preliminary to compatibility hint, not to OS name.
15159 * util/grub-probe.c (PRINT_*): Add hints.
15160 (print): Make static.
15161 (escape_of_path): New function.
15162 (guess_bios_drive): Likewise.
15163 (guess_efi_drive): Likewise.
15164 (guess_baremetal_drive): Likewise.
15165 (print_full_name): Likewise.
15166 (probe): Handle hints.
15168 * util/ieee1275/devicemap.c: Removed.
15169 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15171 (grub_util_devname_to_ofpath): Return NULL on failure.
15173 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15175 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15177 * po/POTFILES.in: Regenerated.
15179 Allow purely long options
15181 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15182 (SHORT_ARG_USAGE): Likewise.
15183 (grub_arg_show_help): Compare opt with help_options.
15184 (parse_option): Receive opt as argument. If makes big simplificatons.
15187 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15189 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15190 Restructure to avoid warning.
15192 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15194 * util/grub-install.in: Account for possible escaped comma in device
15197 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15199 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15202 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15204 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15205 allocation and zero-setting.
15206 (grub_ieee1275_get_devname): Check that alias is complete.
15208 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15210 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15211 unaligned segments.
15213 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15215 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15217 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15218 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15219 Add ieee1275 prefix.
15221 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15223 * docs/grub.texi (Filesystems): Update.
15225 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15227 Support odc, newc and bigendian cpio formats.
15229 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15230 * grub-core/Makefile.core.def (newc): New module.
15232 (cpio_be): Likewise.
15233 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15235 (MAGIC2): Likewise.
15236 (head) [MODE_ODC]: Adapt for the format.
15237 (head) [MODE_NEWC]: Likewise.
15238 (head) [!MODE_*]: Write fields of interest as arrays.
15239 (MAGIC_USTAR): Removed.
15240 (read_number) [MODE_NEWC]: Change to hex.
15241 (read_number) [!MODE_*]: Parse binary arrays.
15242 (grub_cpio_find_file): Factor out the code for better structure and
15243 always use read_number.
15244 (grub_cpio_mount): Use MAGIC and MAGIC2.
15245 (grub_cpio_dir): Exit on first hook non-0 return.
15246 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15247 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15248 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15249 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15250 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15251 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15252 * grub-core/fs/newc.c: New file.
15253 * grub-core/fs/odc.c: Likewise.
15254 * grub-core/fs/cpio_be.c: Likewise.
15256 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15258 Fix handling of tar numbers occupying the whole field.
15260 * grub-core/fs/cpio.c (read_number): New function.
15261 (grub_cpio_find_file): Use read_number instead of strtoull.
15263 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15265 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15266 occupying the whole field size.
15268 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15270 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15272 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15274 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15276 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15278 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15279 TARGET_IMG_LDFLAGS.
15281 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15283 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15284 (mountinfo_entry): Increase the field size to take escaping into
15286 (find_root_device_from_libzfs): Add one byte to size of strings for
15289 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15291 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15293 * util/grub-setup.c (setup): Likewise.
15295 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15297 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15300 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15302 * docs/grub.texi (Internationalisation): New section.
15304 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15306 * docs/grub.texi (Loopback booting): New section.
15308 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15310 * util/grub-mkstandalone.in: Fix minor typo errors.
15312 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15314 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15316 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15317 net/icmp.c and net/icmp6.c.
15318 (http): New module.
15319 (priority_queue): Likewise.
15320 * grub-core/io/bufio.c: Rewritten.
15321 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15322 TYPE_WITH_CONFIGFILE_OPTION.
15323 (legacy_commands): Add bootp and dhcp.
15324 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15325 (grub_legacy_parse): Likewise.
15326 * grub-core/lib/priority_queue.c: New file.
15327 * grub-core/net/arp.c: Add missing license header.
15328 (arp_find_entry): Removed.
15329 (arp_find_entry): Likewise.
15330 (grub_net_arp_resolve): Rename to ...
15331 (grub_net_arp_send_request): ...this.
15332 (grub_net_arp_receive): New card argument.
15333 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15334 Set router and DNS server.
15335 (grub_net_configure_by_dhcp_ack): Handle routing information.
15336 (grub_cmd_bootp): Set checksum.
15337 (grub_bootp_init): Remove net_dhcp.
15338 * grub-core/net/dns.c: New file.
15339 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15341 (get_card_packet): Handle allocation.
15342 (grub_efinet_findcards): Set mtu.
15343 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15344 (get_card_packet): Handle allocation.
15345 (emucard): Set mtu.
15346 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15347 (GRUB_MOD_INIT): Set mtu.
15348 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15350 (get_card_packet): Handle allocation.
15351 (grub_ofnet_findcards): Set mtu.
15352 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15354 (grub_net_recv_ethernet_packet): Handle IPv6.
15355 * grub-core/net/http.c: New file.
15356 * grub-core/net/icmp.c: Likewise.
15357 * grub-core/net/icmp6.c: Likewise.
15358 * grub-core/net/ip.c (ip6addr): New type.
15359 (ip6hdr): Likewise.
15360 (reassemble): Likewise.
15361 (cmp): New function.
15362 (reassembles): New variable.
15363 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15364 (id): New variable.
15365 (send_fragmented): New function.
15366 (grub_net_send_ip_packet): Rename to ...
15367 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15369 (grub_net_recv_ip_packets): Rename to ...
15370 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15371 (free_rsm): New function.
15372 (free_old_fragments): Likewise.
15373 (grub_net_recv_ip4_packets): New function.
15374 (grub_net_send_ip6_packet): Likewise.
15375 (grub_net_send_ip_packet): Likewise.
15376 (grub_net_recv_ip6_packets): Likewise.
15377 (grub_net_recv_ip_packets): Likewise.
15378 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15379 (LINK_LAYER_CACHE_SIZE): New const.
15380 (link_layer_find_entry): New function.
15381 (grub_net_link_layer_add_address): Likewise.
15382 (grub_net_link_layer_resolve_check): Likewise.
15383 (grub_net_link_layer_resolve): Likewise.
15384 (grub_net_ipv6_get_slaac): Likewise.
15385 (grub_net_ipv6_get_link_local): Likewise.
15386 (grub_cmd_ipv6_autoconf): Likewise.
15387 (parse_ip): Handle one number representation.
15388 (parse_ip6): New functoion.
15389 (match_net): Handle IPv6.
15390 (grub_net_resolve_address): Handle IPv6 and DNS.
15391 (grub_net_resolve_net_address): Handle IPv6.
15392 (route_cmp): New function.
15393 (grub_net_route_address): Find best route.
15394 (grub_net_addr_to_str): Handle IPv6.
15395 (grub_net_addr_cmp): New function.
15396 (grub_net_add_addr): Register local route.
15397 (print_net_address): Handle net address.
15398 (grub_net_poll_cards): Retransmit TCP.
15399 (grub_net_poll_cards_idle_real): Likewise.
15400 (have_ahead): New function.
15401 (grub_net_seek_real): Use underlying seek.
15402 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15403 * grub-core/net/tcp.c: New file.
15404 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15405 (cmp): New function.
15407 (tftp_receive): Handle unordered input.
15408 (destroy_pq): New function.
15409 (tftp_close): Close pq.
15410 * grub-core/net/udp.c: Put missing license header.
15411 (grub_net_udp_socket): New function.
15412 (udp_socket_register): Likewise.
15413 (grub_net_udp_close): Likewise.
15414 (grub_net_recv_udp_packet): Check checksum.
15415 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15416 * include/grub/misc.h (grub_memchr): New function.
15417 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15418 (grub_net_card_driver): Return buf in recv.
15419 (grub_net_slaac_mac_list): New struct.
15420 (grub_network_level_protocol_id): Add ipv6.
15421 (grub_net_network_level_addr): Likewise.
15422 (grub_net_network_level_net_addr): Likewise.
15423 (grub_net_app_protocol): Add seek.
15424 (grub_net_socket): Removed.
15425 (grub_net_sockets): Likewise.
15426 (grub_net_socket_register): Likewise.
15427 (grub_net_socket_unregister): Likewise.
15428 (FOR_NET_SOCKETS): Likewise.
15429 (grub_net_add_addr): Add const.
15430 (GRUB_NET_BOOTP_*): New enum.
15431 (grub_net_addr_cmp): New proto.
15432 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15433 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15434 (grub_net_hwaddr_to_str): NEw proto.
15435 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15436 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15437 (grub_dns_init): New proto.
15438 (grub_dns_fini): Likewise.
15439 (grub_net_tcp_retransmit): Likewise.
15440 (grub_net_link_layer_add_address): Likewise.
15441 (grub_net_link_layer_resolve_check): Likewise.
15442 (grub_net_link_layer_resolve): Likewise.
15443 (grub_net_dns_lookup): Likewise.
15444 (grub_net_add_dns_server): Likewise.
15445 (grub_net_remove_dns_server): Likewise.
15446 (GRUB_NET_TRIES): New const.
15447 (GRUB_NET_INTERVAL): Likewise.
15448 * include/grub/net/arp.h: Mostly rewritten.
15449 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15450 * include/grub/net/ip.h: Mostly rewritten.
15451 * include/grub/net/netbuff.h: Indent.
15452 * include/grub/net/tcp.h: New file.
15453 * include/grub/net/udp.h: Mostly rewritten.
15454 * include/grub/priority_queue.h: New file.
15455 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15456 (grub_swap_bytes64_compile_time): Likewise.
15457 (grub_cpu_to_be16_compile_time): Likewise.
15458 (grub_cpu_to_be32_compile_time): Likewise.
15459 (grub_cpu_to_be64_compile_time): Likewise.
15460 (grub_be_to_cpu64_compile_time): Likewise.
15462 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15464 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15465 UINT_TO_PTR with cast.
15467 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15469 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15472 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15474 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15477 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15479 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15482 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15484 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15485 Add missing const attribute.
15486 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15488 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15491 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15493 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15495 (serpent_setkey): Likewise.
15496 (serpent_encrypt_internal): Likewise.
15497 (serpent_decrypt_internal): Likewise.
15498 (serpent_encrypt): Don't put an alignment-increasing cast.
15499 (serpent_decrypt): Likewise.
15500 (serpent_test): Likewise.
15502 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15504 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15506 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15508 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15510 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15512 (PTR_TO_UINT64): Likewise.
15513 (PTR_TO_UINT32): Likewise.
15515 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15517 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15519 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15522 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15524 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15525 text_width > available width a bit more gracefully.
15527 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15529 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15530 current address calculation.
15532 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15534 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15536 (encode_block): Likewise.
15538 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15540 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15543 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15545 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15546 non-RS part to avoid RS messing with GDT.
15547 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15548 Increase to suit in realmode routines.
15550 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15552 * grub-core/kern/i386/realmode.S: Increase alignment.
15553 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15555 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15557 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15559 (syndroms): Compute 0 syndrom.
15560 (rs_recover): Use 0 syndrom.
15562 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15564 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15566 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15568 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15571 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15573 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15575 (get_top_pad): Likewise.
15576 (get_right_pad): Likewise.
15577 (get_bottom_pad): Likewise.
15579 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15581 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15583 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15585 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15586 attribute as the structure isn't guaranteed to be properly aligned.
15587 (grub_efi_pci_device_path): Likewise.
15588 (grub_efi_pccard_device_path): Likewise.
15589 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15590 specify the size of `memory_type'.
15591 (grub_efi_vendor_device_path): Likewise.
15592 (grub_efi_controller_device_path): Likewise.
15593 (grub_efi_acpi_device_path): Likewise.
15594 (grub_efi_expanded_acpi_device_path): Likewise.
15595 (grub_efi_atapi_device_path): Likewise.
15596 (grub_efi_scsi_device_path): Likewise.
15597 (grub_efi_fibre_channel_device_path): Likewise.
15598 (grub_efi_1394_device_path): Likewise.
15599 (grub_efi_usb_device_path): Likewise.
15600 (grub_efi_usb_class_device_path): Likewise.
15601 (grub_efi_i2o_device_path): Likewise.
15602 (grub_efi_mac_address_device_path): Likewise.
15603 (grub_efi_ipv4_device_path): Likewise.
15604 (grub_efi_ipv6_device_path): Likewise.
15605 (grub_efi_infiniband_device_path): Likewise.
15606 (grub_efi_uart_device_path): Likewise.
15607 (grub_efi_vendor_messaging_device_path): Likewise.
15608 (grub_efi_hard_drive_device_path): Likewise.
15609 (grub_efi_cdrom_device_path): Likewise.
15610 (grub_efi_vendor_media_device_path): Likewise.
15611 (grub_efi_file_path_device_path): Likewise.
15612 (grub_efi_protocol_device_path): Likewise.
15613 (grub_efi_piwg_device_path): Likewise.
15614 (grub_efi_bios_device_path): Likewise.
15616 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15618 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15619 (grub_ucs4_to_utf8_alloc): Likewise.
15620 (grub_ucs4_to_utf8): Likewise.
15621 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15622 (grub_ucs4_to_utf8_alloc): Likewise.
15624 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15626 AFFS never uses unicode.
15628 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15629 (grub_latin1_to_utf8): New inline function.
15630 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15632 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15634 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15637 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15639 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15640 (grub_squash_dirent_header): Likewise.
15641 (read_chunk): Don't double swap.
15642 (grub_squash_iterate_dir): Fix swap sizes.
15644 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15646 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15648 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15650 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15651 (grub_hfs_iterate_dir): Likewise.
15653 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15655 Fix video on platforms where unaligned access is forbidden.
15656 Make several optimisations while on it.
15658 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15659 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15660 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15661 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15663 (grub_video_fbblit_replace_16bit_1bit):
15664 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15665 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15666 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15667 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15668 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15669 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15670 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15671 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15672 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15673 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15674 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15675 (grub_video_fbblit_replace_index_RGB888): Likewise.
15676 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15677 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15678 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15679 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15680 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15681 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15682 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15684 (grub_video_fbblit_blend_XXX565_1bit):
15685 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15686 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15687 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15689 * grub-core/video/fb/video_fb.c (common_blitter)
15690 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15691 (grub_video_fb_create_render_target_from_pointer)
15692 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15693 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15694 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15696 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15698 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15700 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15701 HH22 and HM10 relocations.
15703 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15705 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15707 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15709 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15710 allocation succeeded.
15712 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15714 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15715 argument a u8 pointer. All users updated.
15716 Handle unaligned buffers.
15718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15720 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15721 add_part to workaround compiler bug.
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15725 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15727 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15729 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15730 Reserve alignment invariants.
15731 (grub_multiboot_load): Likewise.
15732 (retrieve_video_parameters): Likewise.
15733 (grub_multiboot_make_mbi): Likewise.
15735 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15737 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15740 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15742 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15743 (grub_pata_pio_write): Likewise.
15745 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15747 Add noreturn attributes and remove unreachable code.
15749 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15751 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15752 code. Mark as noreturn.
15753 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15754 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15755 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15757 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15758 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15759 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15760 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15761 * include/grub/kernel.h (grub_main): Mark as noreturn.
15762 * include/grub/reader.h (grub_rescue_run): Likewise.
15764 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15766 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15767 redundant declaration.
15769 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15771 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15772 redundant declaration.
15773 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15775 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15777 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15778 to ensure alignment.
15779 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15780 alignment. Ensure tmp alignment.
15781 (grub_cmd_hdparm): Ensure buf alignment.
15782 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15783 to ensure alignment.
15784 (grub_ata_dumpinfo): Ensure text alignment.
15785 (grub_atapi_identify): Preserve alignment invariant.
15786 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15788 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15790 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15791 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15792 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15793 * include/grub/misc.h (grub_reboot)
15794 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15795 (grub_halt) [__mips__]: Likewise.
15797 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15799 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15800 Remove redundant declaration.
15801 (grub_mmap_get_post64): Likewise.
15802 (grub_mmap_get_upper): Likewise.
15803 (grub_mmap_get_lower): Likewise.
15805 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15807 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15808 uint32_t * to ensure alignment.
15809 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15811 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15813 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15814 uint16_t * to ensure alignment.
15815 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15820 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15821 to ensure alignment.
15822 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15824 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15826 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15827 Handle unaligned pointers.
15830 (fixup): Use byte access instead of v16at.
15831 (find_attr): Fix imporper usage of v32at.
15832 (read_data): Likewise.
15833 (list_file): Handle byte-swapping and unaligned strings.
15834 (grub_ntfs_label): Likewise.
15836 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15838 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15839 as it's not necessarily aligned.
15841 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15843 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15844 redundant declaration.
15845 (grub_serial_init): Likewise.
15846 (grub_terminfo_init): Likewise.
15848 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15850 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15852 (ZAP_HASH_IDX): Likewise.
15853 (ZAP_LEAF_HASH_SHIFT): Likewise.
15854 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15855 (LEAF_HASH): Likewise.
15856 (ZAP_LEAF_NUMCHUNKS): Likewise.
15857 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15858 alignment invariants. Return pointer. All users updated.
15859 (ZAP_LEAF_ENTRY): Make into inline function.
15862 (xor_out): Use grub_crypto_xor.
15863 (dnode_get_path): Use grub_get_unaligned.
15864 (nvlist_find_value): Likewise.
15865 (grub_zfs_nvlist_lookup_uint64): Likewise.
15866 (grub_zfs_nvlist_lookup_string): Likewise.
15867 (get_nvlist_size): Likewise.
15868 (grub_zfs_open): Likewise.
15869 (fill_fs_info): Likewise.
15870 (grub_zfs_dir): Likewise.
15871 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15872 alignment invariants.
15873 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15874 necessarily aligned.
15876 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15878 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15882 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15883 arithmetic to conserve alignment invariants.
15885 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15887 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15888 redundant declaration.
15889 (grub_efiemu_mm_obtain_request): Likewise.
15890 (grub_efiemu_prepare): Likewise.
15892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15894 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15897 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15899 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15900 case of aunaligned recptr.
15901 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15903 (grub_hfsplus_btree_search): Handle unaligned index.
15905 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15907 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15908 to get freetag and skip.
15910 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15912 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15914 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15915 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15919 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15920 name for checksum and fix allocation algorithm.
15922 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15924 * include/grub/types.h (grub_properly_aligned_t): New type.
15925 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15926 (grub_get_unaligned16): Add explicit casts.
15927 (grub_get_unaligned32): Likewise.
15928 (grub_get_unaligned64): Likewise.
15929 (grub_set_unaligned16): New function.
15930 (grub_set_unaligned32): Likewise.
15932 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15934 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15938 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15939 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15940 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15942 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15944 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15947 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15949 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15950 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15952 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15954 Unify and improve RAID and crypto xor.
15956 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15957 changed to grub_crypto_xor
15958 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15959 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15960 Use bigger types when possible.
15962 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15964 * grub-core/disk/raid.c (scan_devices): Fix condition.
15966 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15968 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15969 Make name a const ptr.
15971 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15973 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15974 first argument a const pointer.
15975 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15976 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15978 (grub_children_iterate): Likewise.
15979 (grub_machine_mmap_iterate): Remove redundant declaration.
15981 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15983 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15984 (grub_cmd_acpi) [!x86]: Disable EBDA.
15986 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15988 Enable UTF8 in gnulib regexp.
15990 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15991 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15992 (isupper): Use grub_isupper.
15993 (isascii): New inline function.
15994 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15995 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15996 * grub-core/normal/charset.c (grub_utf8_process): New function.
15997 (grub_utf8_to_utf16): Use grub_utf8_process.
15998 (grub_encode_utf8_character): New function.
15999 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16000 * include/grub/charset.h (grub_utf8_process): New declaration.
16001 (grub_encode_utf8_character): Likewise.
16002 * include/grub/misc.h (grub_islower): New inline function.
16003 (grub_isupper): Likewise.
16004 (grub_strchrsub): Moved down to fix the definitions.
16006 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16008 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16011 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16013 * include/grub/loader.h (grub_loader_register_preboot_hook):
16014 Use struct preboot * and not void * for handle. All users updated.
16015 (grub_loader_unregister_preboot_hook): Likewise.
16017 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16019 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16020 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16021 UTF-16-BE. All users updated.
16022 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16023 (grub_hfsplus_iterate_dir): Likewise.
16024 (grub_hfsplus_label): Likewise.
16026 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16028 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16030 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16032 Add missing const qualifiers.
16034 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16035 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16036 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16037 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16038 (grub_lvm_check_flag): Likewise.
16039 * grub-core/efiemu/i386/coredetect.c
16040 (grub_efiemu_get_default_core_name): Likewise
16041 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16042 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16043 * grub-core/fs/ntfs.c (fixup): Likewise.
16044 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16045 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16046 (fzap_lookup): Likewise.
16047 (zap_lookup): Likewise.
16048 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16049 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16050 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16051 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16052 (grub_freebsd_add_meta_module): Likewise.
16053 (grub_cmd_freebsd_module): Likewise.
16054 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16055 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16056 (grub_xnu_writetree_get_size): Likewise.
16057 (grub_xnu_writetree_toheap_real): Likewise.
16058 (grub_xnu_find_key): Likewise.
16059 (grub_xnu_create_key): Likewise.
16060 (grub_xnu_create_value): Likewise.
16061 (grub_xnu_register_memory): Likewise.
16062 (grub_xnu_check_os_bundle_required): Likewise.
16063 (grub_xnu_scan_dir_for_kexts): Likewise.
16064 (grub_xnu_load_kext_from_dir): Likewise.
16065 * grub-core/normal/color.c (color_list): Likewise.
16066 * grub-core/normal/completion.c (current_word): Likewise.
16067 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16068 * grub-core/term/serial.c (grub_serial_find): Likewise.
16069 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16070 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16072 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16073 (grub_freebsd_add_meta_module): Likewise.
16074 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16075 * include/grub/net.h (grub_net_card_driver): Likewise.
16076 (grub_net_card): Likewise.
16077 (grub_net_app_protocol): Likewise.
16078 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16079 * include/grub/serial.h (grub_serial_find): Likewise.
16080 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16081 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16082 (grub_xnu_create_value): Likewise.
16083 (grub_xnu_find_key): Likewise.
16084 (grub_xnu_scan_dir_for_kexts): Likewise.
16085 (grub_xnu_load_kext_from_dir): Likewise.
16087 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16088 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16089 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16090 Moved from here ...
16091 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16093 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16095 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16097 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16099 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16100 (read_device): Fix size calculation.
16102 2011-11-25 Robert Millan <rmh@gnu.org>
16104 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16105 (find_root_device_from_libzfs): Add zpool output parser to be used
16106 as fallback when libzfs isn't available.
16108 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16110 * po/Makefile.in.in: Add missing escape-continuation.
16112 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16114 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16116 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16118 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16120 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16122 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16124 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16126 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16128 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16130 * grub-core/lib/adler32.c: Add missing license specification.
16131 * grub-core/lib/crc64.c: Likewise.
16132 * grub-core/loader/i386/pc/plan9.c: Likewise.
16133 * grub-core/partmap/plan.c: Likewise.
16135 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16137 Add facility to debug GRUB with gdb under qemu.
16139 * grub-core/gdb_grub.in: New file.
16140 * grub-core/gmodule.pl.in: Likewise.
16141 * grub-core/Makefile.core.def (gmodule.pl): New script.
16142 (gdb_grub): Likewise.
16144 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16146 * util/grub-mount.c (argp_parser): Accept relative pathes.
16147 * util/grub-fstest.c (argp_parser): Likewise.
16149 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16153 * Makefile.util.def (libgrubmods): Add
16154 grub-core/partmap/plan.c.
16155 * docs/grub.texi: Notice Plan9 support.
16156 * grub-core/Makefile.core.def (plan9): New module.
16157 (part_plan): Likewise.
16158 * grub-core/loader/i386/pc/plan9.c: New file.
16159 * grub-core/partmap/plan.c: Likewise.
16160 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16162 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16163 * include/grub/mm.h (grub_extend_alloc): New inline function.
16165 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16167 Make Reed-Solomon faster by using power of generator representation of
16170 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16171 (gf_double_t): Likewise.
16172 (gf_invert): Removed.
16173 (gf_powx): New array.
16174 (gf_powx_inv): Likewise.
16175 (scratch): Move higher.
16176 (gf_reduce): Removed.
16177 (gf_mul): Use powx.
16178 (gf_invert): Likewise.
16179 (init_inverts): Replaced with ...
16180 (init_powx): ...this. All users updated.
16181 (pol_evaluate): Replace multiplications with additions.
16182 (rs_encode): Likewise.
16183 (gauss_eliminate): Call gf_invert.
16184 (grub_reed_solomon_add_redundancy): Call init_powx.
16185 (grub_reed_solomon_recover): Call init_powx unconditionally.
16187 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16189 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16191 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16193 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16194 disk->partiton for safety.
16196 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16198 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16200 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16202 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16204 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16206 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16208 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16210 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16212 Fix spaces handling in proc/self/mountinfo.
16214 * util/getroot.c (unescape): New function.
16215 (grub_find_root_device_from_mountinfo): Use unescape.
16217 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16219 Support ZFS embedding.
16221 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16222 (grub_zfs_fs): Register grub_zfs_embed.
16224 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16226 Fix MIPS compilation.
16228 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16229 * include/grub/offsets.h: Rename decompressor fields from
16230 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16231 * util/grub-mkimage.c (image_targets): Use new names.
16233 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16235 Defer multiboot device parsing until we're in compressed part.
16237 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16238 bsd_part. setdevice has fallen into disuse.
16239 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16240 (bsd_part): Likewise.
16241 (boot_dev): New variable.
16242 (multiboot_trampoline): Don't parse multiboot device.
16243 Pass multiboot device in %edx.
16244 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16246 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16248 * grub-core/kern/i386/pc/startup.S: Save edx.
16249 (grub_boot_drive): Removed.
16250 (grub_install_dos_part): Likewise.
16251 (grub_install_bsd_part): Likewise.
16252 (grub_boot_device): New variable.
16253 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16254 (grub_install_bsd_part): Likewise.
16255 (grub_boot_drive): Likewise.
16256 (grub_boot_device): New variable.
16257 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16259 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16260 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16261 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16262 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16263 * util/grub-install.in: Remove redundant condition.
16265 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16267 Fix bug introduced by previous commit.
16269 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16271 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16273 Use decompressors framework on i386-pc. It increases core size
16274 by 46 bytes but improves compatibility and maintainability.
16276 * grub-core/Makefile.core.def (lzma_decompress): New image.
16277 (kernel): Add i386_pc_ldflags.
16278 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16279 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16280 to real_to_prot, prot_to_real and device info.
16281 * include/grub/offsets.h: Renamed decompressor offsets.
16282 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16283 (image_target_desc): Remove raw_size and rename decompressor fields.
16284 (compress_kernel): Handle lzma.
16285 (generate_image): Handle decompressors on i386-pc.
16287 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16289 * configure.ac: Add -fno-asynchronous-unwind-tables.
16291 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16293 Move assembly code to C by using intwrap. It increases core size
16294 by 88 bytes but improves compatibility and maintainability.
16296 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16297 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16298 ... here. Translated to C.
16299 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16300 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16301 ... here. Translated to C.
16302 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16303 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16304 ... here. Translated to C.
16305 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16306 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16307 ... here. Translated to C.
16308 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16309 * grub-core/term/i386/pc/console.c (grub_console_cls):
16310 ... here. Translated to C.
16311 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16312 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16313 ... here. Translated to C.
16314 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16315 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16317 * grub-core/term/i386/pc/console.c (int10_9): New function.
16318 (grub_console_putchar): Likewise.
16319 * include/grub/i386/pc/console.h: Removed the not anymore shared
16322 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16324 Move grub_chainloader_real_boot out of the kernel.
16326 * grub-core/Makefile.am: Remove machine/loader.h.
16327 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16329 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16331 (grub_relocator16_keep_a20_enabled): Likewise.
16332 (grub_relocator16_boot): Fill new variables.
16333 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16334 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16336 (grub_chainloader_unload): Likewise.
16337 (grub_chainloader_cmd): Likewise.
16338 * include/grub/i386/pc/loader.h: Removed.
16339 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16340 and esi. All initialisers updated.
16342 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16343 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16345 * Makefile.util.def (grub-mount): New util.
16346 * .bzrignore: Add grub-mount.
16347 * configure.ac: Check for fuse and enable grub-mount if available.
16348 * docs/man/grub-mount.h2m: New file.
16349 * util/grub-mount.c: Likewise.
16351 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16353 * grub-core/commands/efi/fixvideo.c: Gettextize.
16354 * grub-core/commands/hashsum.c: Likewise.
16355 * grub-core/commands/i386/cmostest.c: Likewise.
16356 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16357 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16358 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16359 * grub-core/commands/lsmmap.c: Likewise.
16360 * grub-core/commands/menuentry.c: Likewise.
16361 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16362 * grub-core/commands/setpci.c: Likewise.
16363 * grub-core/loader/i386/bsd.c: Likewise.
16364 * grub-core/loader/i386/linux.c: Likewise.
16365 * util/getroot.c: Likewise.
16366 * util/grub-editenv.c: Likewise.
16367 * util/grub-fstest.c: Likewise.
16368 * util/grub-mkfont.c: Likewise.
16369 * util/grub-mkimage.c: Likewise.
16370 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16371 * util/grub-pe2elf.c: Likewise.
16372 * util/grub-probe.c: Likewise.
16373 * util/grub-setup.c: Likewise.
16374 * util/ieee1275/ofpath.c: Likewise.
16375 * util/misc.c: Likewise.
16376 * util/raid.c: Likewise.
16378 2011-11-11 Robert Millan <rmh@gnu.org>
16380 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16381 __attribute__((unused)) from `os_dev', which *is* being used.
16383 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16385 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16387 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16388 GRUB_IA64_DL_GOT_ALIGN.
16389 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16390 GRUB_IA64_DL_TRAMP_ALIGN.
16392 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16394 Replace grub_fatal with normal errors in i386 linux loader.
16396 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16397 (allocate_pages): Check find_efi_mmap_size return value.
16398 (grub_e820_add_region): Return error.
16399 (grub_linux_boot): Check mmap return value.
16401 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16403 * grub-core/commands/acpihalt.c: Gettextized.
16404 * grub-core/commands/cacheinfo.c: Likewise.
16405 * grub-core/commands/cmp.c: Likewise.
16406 * grub-core/commands/efi/loadbios.c: Likewise.
16407 * grub-core/commands/gptsync.c: Likewise.
16408 * grub-core/commands/ieee1275/suspend.c: Likewise.
16409 * grub-core/commands/legacycfg.c: Likewise.
16410 * grub-core/commands/memrw.c: Likewise.
16411 * grub-core/commands/minicmd.c: Likewise.
16412 * grub-core/commands/parttool.c: Likewise.
16413 * grub-core/commands/time.c: Likewise.
16414 * grub-core/commands/videoinfo.c: Likewise.
16415 * grub-core/disk/geli.c: Likewise.
16416 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16417 * grub-core/disk/luks.c: Likewise.
16418 * grub-core/disk/lvm.c: Likewise.
16419 * grub-core/font/font_cmd.c: Likewise.
16420 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16421 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16422 * grub-core/gfxmenu/view.c: Likewise.
16423 * grub-core/kern/emu/hostdisk.c: Likewise.
16424 * grub-core/kern/emu/main.c: Likewise.
16425 * grub-core/kern/emu/misc.c: Likewise.
16426 * grub-core/kern/emu/mm.c: Likewise.
16427 * grub-core/kern/mips/arc/init.c: Likewise.
16428 * grub-core/kern/mips/loongson/init.c: Likewise.
16429 * grub-core/kern/partition.c: Likewise.
16430 * grub-core/lib/i386/halt.c: Likewise.
16431 * grub-core/lib/mips/arc/reboot.c: Likewise.
16432 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16433 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16434 * grub-core/loader/i386/xnu.c: Likewise.
16435 * grub-core/loader/multiboot.c: Likewise.
16436 * grub-core/net/bootp.c: Likewise.
16437 * grub-core/net/net.c: Likewise.
16438 * grub-core/normal/term.c: Likewise.
16439 * grub-core/partmap/bsdlabel.c: Likewise.
16440 * grub-core/parttool/msdospart.c: Likewise.
16441 * grub-core/term/gfxterm.c: Likewise.
16442 * grub-core/term/terminfo.c: Likewise.
16443 * grub-core/video/i386/pc/vbe.c: Likewise.
16444 * util/grub-menulst2cfg.c: Likewise.
16445 * util/grub-mkdevicemap.c: Likewise.
16446 * util/grub-mklayout.c: Likewise.
16447 * util/grub-mkrelpath.c: Likewise.
16448 * util/grub-script-check.c: Likewise.
16449 * util/ieee1275/grub-ofpathname.c: Likewise.
16450 * util/resolve.c: Likewise.
16452 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16454 Support %1$d syntax.
16456 * tests/printf_unit_test.c: New file.
16457 * Makefile.util.def (printf_test): New test.
16458 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16460 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16462 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16465 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16467 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16469 * grub-core/font/font.c (grub_font_load): Likewise.
16471 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16473 * util/grub-macho2img.c: Add comment concerning gettext.
16474 * grub-core/lib/legacy_parse.c: Likewise.
16476 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16478 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16479 (grub_xvasprintf): Likewise.
16481 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16483 Add const keyword to grub_env_get and gettextize week days.
16485 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16486 (grub_read_hook_datetime): Return const char *.
16487 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16489 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16491 (grub_get_weekday_name): Return const char *. Call gettext.
16492 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16493 char * and len as the argument. All users updated.
16494 (grub_script_argv_split_append): Receive const char *.
16495 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16496 * include/grub/env.h (grub_env_get): Likewise.
16497 (grub_env_read_hook_t): Return const char *.
16498 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16499 (grub_script_argv_split_append): Likewise.
16501 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16503 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16505 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16507 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16508 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16510 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16512 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16515 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16517 Fix mips compilation.
16519 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16521 (hashes): Use in embed decoder as well (for sizes).
16522 (dec_stream_header): Fix embed decompressor logic.
16523 (dec_stream_footer): Likewise.
16525 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16527 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16528 an error and not a fatal on unrecognised relocation types.
16530 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16532 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16533 Issue error rather than printf on unknown arguments.
16535 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16537 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16540 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16542 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16545 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16547 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16548 leftover debug printf.
16550 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16552 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16554 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16556 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16559 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16561 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16563 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16565 Allow all modules to perform serial IO
16567 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16568 * include/grub/serial.h (grub_serial_port_configure): New inline
16570 (grub_serial_port_fetch): Likewise.
16571 (grub_serial_port_put): Likewise.
16572 (grub_serial_port_fini): Likewise.
16573 (grub_serial_find): New proto.
16575 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16577 Put symlink at the end of the node and fix a potential
16580 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16581 Make symlink into an array.
16582 (set_rockridge): Set have_symlink and alloc_dirents.
16583 (grub_iso9660_read_symlink): Use new layout.
16584 (grub_iso9660_iterate_dir): Fix memory corruption.
16586 (grub_iso9660_dir): Set have_symlink.
16587 (grub_iso9660_open): Likewise.
16589 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16591 Remove local keyword.
16593 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16594 (version_test_gt): Likewise.
16595 (version_find_latest): Likewise.
16596 (gettext_printf): Likewise.
16597 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16599 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16601 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16603 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16605 Fix ZFS memory and resource leaks.
16607 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16610 (fill_vdev_info): New parameter inserted. All users updated.
16611 (check_pool_label): Likewise.
16612 (scan_disk): Likewise.
16613 (scan_devices): Close non-inserted disks.
16614 (fzap_iterate): Free l.
16615 (unmount_device): Free children descripto memory.
16617 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16619 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16620 argument (access out of bounds).
16622 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16624 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16627 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16629 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16632 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16634 Fix several memory leaks.
16636 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16637 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16638 (grub_cpio_dir): Likewise.
16639 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16640 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16641 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16642 (grub_romfs_label): Likewise.
16643 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16644 (squash_unmount): New function.
16645 (grub_squash_dir): Fix memory leak.
16646 (grub_squash_open): Likewise.
16647 (grub_squash_read): Likewise.
16648 (grub_squash_mtime): Likewise.
16649 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16650 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16651 * util/grub-fstest.c (fstest): Likewise.
16653 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16655 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16656 avoid accessing beyond the array.
16658 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16660 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16662 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16664 Several AFFS fixes.
16666 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16667 (GRUB_AFFS_FLAG_FFS): Removed.
16668 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16669 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16670 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16671 (grub_fshelp_node): Make block 32-bit.
16672 Add block_cache and last_block_cache.
16673 (grub_affs_read_block): Fill and use block cache.
16674 (grub_affs_read_file): Removed.
16675 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16677 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16679 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16681 (grub_affs_close): Free block cache.
16682 (grub_affs_read): Use grub_fshelp_read_file directly.
16684 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16686 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16689 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16691 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16693 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16696 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16698 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16700 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16701 byteswap when needed.
16703 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16705 Fix FreeBSD compilation.
16707 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16708 to avoid circular dependency.
16709 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16710 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16711 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16713 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16715 Fix ZFS crypto error types.
16717 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16718 (grub_gcm_decrypt): Likewise.
16719 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16722 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16726 * Makefile.util.def (10_illumos): New script.
16727 * configure.ac: Set COND_HOST_ILLUMOS.
16728 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16729 Support Illumos calls.
16730 (find_partition_start) [__sun__]: Likewise.
16731 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16732 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16733 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16734 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16736 * util/grub-probe.c (probe) [__sun__]: Do character check.
16737 * util/grub.d/10_illumos.in: New file.
16739 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16741 Support escaped commas in hostdisk.
16743 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16744 (find_grub_drive): Use unescape_cmp.
16745 (make_device_name): Escape commas.
16747 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16749 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16751 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16753 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16756 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16758 Support trampoline jumps on powerpc.
16760 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16762 (grub_dl_load_segments): Set mod->sz.
16763 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16765 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16767 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16769 (trampoline): New struct.
16770 (trampoline_template): New const.
16771 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16772 * include/grub/dl.h (grub_dl): Add sz element.
16773 [__powerpc__]: Follow __ia64__.
16774 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16775 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16776 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16777 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16779 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16781 ZFS crypto support.
16783 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16784 * grub-core/Makefile.core.def (zfscrypt): New module.
16785 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16786 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16787 it. All users updated.
16788 (grub_zfs_decrypt): New var.
16789 (grub_zfs_load_key): Likewise.
16790 (zio_checksum_functions): Add SHA256+MAC.
16791 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16792 (zio_read): Handle encrypted blocks.
16793 (zap_verify): Remove incorrect check.
16794 (fzap_iterate): Handle non-standard fzap.
16795 (zap_iterate): Likewise.
16796 (zap_iterate_u64): New function.
16797 (dnode_get_fullpath): Load keys.
16798 * grub-core/fs/zfs/zfscrypt.c: New file.
16799 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16800 (grub_crypto_ecb_encrypt): Make input const.
16801 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16802 (grub_crypto_ecb_encrypt): Make input const.
16803 (GRUB_CIPHER_AES): New macro.
16804 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16805 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16806 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16807 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16808 prefix. All users updated.
16809 (grub_zfs_add_key): New proto.
16810 (grub_zfs_decrypt): Likewise.
16811 (grub_zfs_load_key): Likewise.
16812 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16813 * util/grub-fstest.c (options): Add -K option.
16814 (argp_parser): Likewise.
16816 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16818 Support zle compression on ZFS.
16820 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16821 (decomp_table): Add zle.
16822 * include/grub/zfs/zio.h (zio_compress): Add zle.
16824 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16826 Support BtrFS embedding.
16828 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16829 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16830 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16831 * util/grub-setup.c (setup): Use fs embedding if available.
16832 Add additional sanity check.
16834 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16836 * util/grub-install.in: Fix condition for config_opt.
16838 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16840 Support third redundancy strip on raidz3.
16842 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16843 Return error on singularity. All users updated.
16844 (read_device): Don't stop on 3rd failure on raidz3.
16846 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16848 Support case-insensitive ZFS subvolumes.
16850 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16852 (zap_hash): Likewise.
16853 (name_cmp): New function.
16854 (zap_leaf_array_equal): New parameter case_insensitive.
16856 (zap_leaf_lookup): Likewise.
16857 (fzap_lookup): Likewise.
16858 (zap_lookup): Likewise.
16859 (dnode_get_path): New parameter case_insensitive. Retrieve case
16860 sensitiviness of a volume. All users updated.
16861 (dnode_get_fullpath): New parameter case_insensitive.
16863 (grub_zfs_dir): Set info.case_insensitiveness.
16865 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16867 Support second redundancy strip on raidz(2,3).
16869 * grub-core/fs/zfs/zfs.c (powx): New array.
16870 (powx_inv): Likewise.
16872 (xor_out): New function.
16873 (gf_mul): Likewise.
16874 (recovery): Likewise.
16875 (read_device): Use second redundancy strip.
16877 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16879 Use a power of generator representation of GF(256) multiplication group
16880 to save space time and complexity.
16882 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16883 (raid6_table2): Likewise.
16885 (powx_inv): Likewise.
16887 (grub_raid_block_mul): Replace with ...
16888 (grub_raid_block_mulx): ...this.
16889 (grub_raid6_init_table): Rewritten.
16890 (grub_raid6_recover): Use power of generator representation.
16892 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16894 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16895 for the right device.
16897 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16899 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16900 expected by grub-mkimage and it's more clear since there is no implicit
16903 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16905 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16907 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16909 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16911 * util/grub-mkrescue.in: Fix handling xorriso option.
16913 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16915 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16918 2011-11-03 crocket <crockabiscuit@gmail.com>
16920 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16922 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16924 XZ CRC64 and SHA256 support.
16926 * Makefile.util.def (libgrubmods): Add crc64.c.
16927 * grub-core/Makefile.core.def (crc64): New module.
16928 * grub-core/lib/crc64.c: New file.
16929 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16930 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16932 (MAX_HASH_SIZE): New define.
16933 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16934 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16935 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16936 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16937 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16938 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16939 Handle non-crc32 hashes.
16940 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16941 (dec_stream_header): Handle non-crc32 hashes.
16942 (dec_stream_footer): Likewise.
16943 (dec_block_header): Likewise.
16944 (dec_main): Likewise.
16945 (xz_dec_init): Likewise.
16946 (xz_dec_reset): Likewise.
16947 (xz_dec_end): Likewise.
16948 * util/import_gcry.py: Add CRC64 line.
16950 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16952 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16955 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16957 Make reiserfs label retrieval similar to other *_label functions.
16959 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16960 (REISERFS_MAX_LABEL_LENGTH): Removed.
16961 (REISERFS_LABEL_OFFSET): Likewise.
16962 (grub_reiserfs_label): Rewritten.
16964 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16966 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16969 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16971 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16973 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16975 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16976 drive failure on both raidz and raidz2.
16978 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16980 Fix RAIDZ(2) for >= 5 devices.
16982 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16983 asize argument. All users updated.
16985 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16989 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16990 (fill_vdev_info_real): Set ashift.
16991 (read_device): Rewrite RAIDZ part based on reverse engineering.
16993 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16995 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16996 don't report potentially unavialiable fields in debug output.
16997 (find_path): Fix double-free and memory leak.
16999 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17001 Read label on UFS1.
17003 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17004 (grub_ufs_fs): Always set .label.
17006 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17010 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17011 (grub_ufs_data): New field log2_blksz.
17012 (grub_ufs_read_file): Use shifts.
17013 (grub_ufs_mount): Check block size and logarithm it.
17015 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17017 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17020 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17022 Handle symlinks and long names on tar and cpio.
17024 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17025 (ATTR_FILE): Likewise.
17026 (ATTR_DIR): Likewise.
17027 (ATTR_LNK): Likewise.
17028 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17029 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17031 (grub_cpio_mount): Zero-fill data.
17032 (handle_symlink): New function.
17033 (grub_cpio_dir): Handle symlinks.
17034 (grub_cpio_open): Likewise.
17035 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17037 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17039 Fix iso9660 filename limitations and fix memory leaks.
17041 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17042 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17044 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17046 Fix JFS file name length limitations.
17048 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17049 (grub_jfs_diropen): Fix maximum filename length.
17050 (grub_jfs_getent): Fix filename length.
17051 (grub_jfs_lookup_symlink): Fix size checks.
17053 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17055 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17058 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17060 Leverage BFS implementation to read AFS.
17062 * Makefile.util.def (libgrubmods): Add afs.c.
17063 * grub-core/Makefile.core.def (afs): New module
17064 * grub-core/fs/afs.c: New file.
17065 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17067 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17069 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17071 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17073 * grub-core/fs/bfs.c: Run indent.
17075 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17077 BFS implementation based on the specification.
17079 * grub-core/fs/bfs.c: New file.
17080 * Makefile.util.def (libgrubmods): Add bfs.c.
17081 * grub-core/Makefile.core.def (bfs): New module.
17083 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17085 * util/grub-fstest.c (cmd_cp): Clarify error message.
17086 (cmd_cmp): Likewise.
17088 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17090 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17093 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17095 Remove afs and befs because of copyright problem.
17097 * grub-core/fs/afs.c: Removed.
17098 * grub-core/fs/afs_be.c: Removed.
17099 * grub-core/fs/befs.c: Removed.
17100 * grub-core/fs/befs_be.c: Removed.
17101 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17102 * grub-core/Makefile.core.def (afs): Removed.
17103 (afs_be): Likewise.
17105 (befs_be): Likewise.
17107 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17109 Prefer rockridge over Joliet.
17111 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17113 (set_rockridge): ... here.
17114 (grub_iso9660_mount): Check rockridge on the primary label when
17115 discovering. Ignore Joliet if Rockridge is present.
17117 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17119 Use shifts in nilfs2.
17121 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17122 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17123 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17124 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17125 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17126 (grub_nilfs2_entries_per_block): Replaced with ...
17127 (grub_nilfs2_log_entries_per_block_log): ... this.
17128 (grub_nilfs2_blocks_per_group): Replaced with ...
17129 (grub_nilfs2_blocks_per_group_log): ... this.
17130 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17131 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17132 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17133 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17134 (grub_nilfs2_palloc_entry_offset): Replaced ...
17135 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17136 (grub_nilfs2_dat_translate): Use shifts.
17137 (grub_nilfs2_read_inode): Likewise.
17138 (GRUB_MOD_INIT): Ensure that logs are correct.
17140 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17142 Use shifts in minix filesystem.
17144 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17145 (GRUB_MINIX_ZONE2SECT): Likewise.
17146 (grub_minix_data): Replace block_size with log_block_size.
17147 (grub_minix_read_file): Use shifts.
17148 (grub_minix_mount): Check block size and take a logarithm.
17150 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17152 Use shifts in squash4.
17154 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17155 (squash_mount): Check block size and take logarithm.
17156 (direct_read): Use shifts.
17158 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17160 Correct befs block counting logic.
17162 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17163 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17164 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17165 (grub_afs_read_inode): Use block_shift.
17166 (RANGE_SHIFT): New definition.
17167 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17168 unexpected conditions, use shifts and appropriate types.
17169 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17171 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17173 * grub-core/disk/raid.c (scan_devices): Check partition.
17174 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17176 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17178 Support BFS (befs) UUID.
17180 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17181 (grub_afs_small_data_element_header): New struct.
17182 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17183 (grub_afs_read_attribute) [MODE_BFS]: New function.
17184 (grub_afs_iterate_dir): Allocate for complete inode.
17185 (grub_afs_mount): Likewise.
17186 (grub_afs_uuid) [MODE_BFS]: New function.
17187 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17189 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17191 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17192 (zfs_unmount): Fix memory leak.
17194 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17196 Support NTFS reparse points.
17198 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17199 (symlink_descriptor): New struct.
17200 (grub_ntfs_read_symlink): New function.
17201 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17202 (grub_ntfs_open): Likewise.
17204 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17206 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17208 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17210 fstest xnu_uuid subcommand.
17212 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17213 grub-core/commands/xnu_uuid.c.
17214 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17215 (fstest): Handle xnu_uuid.
17216 (options): Document xnu_uuid.
17217 (argp_parser): Parse xnu_uuid.
17219 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17221 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17222 -l argument. Add newline at the end if printing.
17223 (GRUB_MOD_INIT): Document -l.
17225 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17227 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17229 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17231 ZFS multi-device and version 33 support.
17233 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17234 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17235 (grub_zfs_data): Add multidev-ice-related fields.
17236 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17237 (dva_get_offset): Make dva const.
17238 (zfs_fetch_nvlist): New function.
17239 (fill_vdev_info_real): Likewise.
17240 (fill_vdev_info): Likewise.
17241 (check_pool_label): Likewise.
17242 (scan_disk): Likewise.
17243 (scan_devices): Likewise.
17244 (read_device): Likewise.
17245 (read_dva): Likewise.
17246 (zio_read_gang): Use read_dva.
17247 (zio_read_data): Likewise.
17248 (zap_leaf_lookup): Add missing endian conversion.
17249 (zap_verify): Add missing endian conversion. All users updated.
17250 (fzap_lookup): Likewise.
17251 (fzap_iterate): Likewise.
17252 (dnode_get_path): Handle SA bonus.
17253 (nvlist_find_value): Make input const. All users updated.
17254 (unmount_device): New function.
17255 (zfs_unmount): Use unmount_device.
17256 (zfs_mount): Use scan_disk.
17257 (zfs_mtime): New function.
17258 (grub_zfs_open): Handle system attributes.
17259 (fill_fs_info): Likewise.
17260 (grub_zfs_dir): Likewise.
17261 (grub_zfs_fs): Add mtime.
17262 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17263 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17264 (SA_MTIME_OFFSET): Likewise.
17265 (SA_SYMLINK_OFFSET): Likewise.
17266 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17267 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17268 (fstest): Support zfsinfo.
17269 (argp_parser): Likewise.
17271 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17273 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17276 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17280 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17281 sharing the same block. Iterate over correct number of indices.
17282 (dnode_get_path): Handle symlinks correctly.
17284 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17286 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17288 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17290 Read label on HFS+.
17292 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17293 (grub_hfsplus_btree_search): Fix types.
17294 (grub_hfsplus_label): Implement.
17296 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17298 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17300 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17302 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17304 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17306 Fix symlink handling on iso9660.
17308 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17310 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17311 (grub_iso9660_read_symlink): Moved most of code ...
17312 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17314 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17316 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17317 Use union to avoid breaking strict-aliasing rules.
17319 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17321 Support multi-extent iso files.
17323 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17325 (grub_fshelp_node): Revamp. All users updated.
17326 (FLAG_*): New enum.
17327 (read_node): New function.
17328 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17330 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17331 (get_node_size): New function.
17332 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17334 Fix memory leak on . and ..
17335 (grub_iso9660_read): Use read_node.
17336 (grub_iso9660_close): Free node.
17338 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17340 Fix tar 4G limit and handle paths containing dot.
17342 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17343 (canonicalize): New function.
17344 (grub_cpio_find_file): Use canonicalize. Store offs in
17346 (grub_cpio_dir): Use grub_disk_addr_t.
17347 (grub_cpio_open): Likewise.
17349 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17351 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17353 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17355 (grub_squash_inode): Add long_file and block_size.
17356 (grub_squash_cache_inode): New struct.
17357 (grub_squash_dirent): Make types into enum.
17358 (SQUASH_TYPE_LONG_REGULAR): New type.
17359 (grub_squash_frag_desc): Add field size.
17360 (SQUASH_BLOCK_FLAGS): New enum.
17361 (grub_squash_data): Use grub_squash_cache_inode.
17362 (grub_fshelp_node): Make ino_chunk 64-bit.
17363 (read_chunk): Minor argument change. All users updated.
17364 (squash_mount): Use correct le_to_cpu.
17365 (grub_squash_open): Handle LONG_REGULAR.
17366 (direct_read): New function.
17367 (grub_squash_read_data): Handle blocks correctly.
17369 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17371 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17373 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17375 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17377 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17379 Fix 2G limit on ZFS.
17381 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17383 (uberblock_verify): Likewise.
17384 (dmu_read): Likewise.
17385 (grub_zfs_read): Likewise. Remove invalid cast.
17387 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17389 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17390 (grub_jfs_blkno): Fix incorrect shift.
17391 (grub_jfs_read_file): Use more appropriate types.
17393 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17395 Support triple indirect on minix2 and minix3.
17397 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17398 Declare triple_indir_zone.
17399 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17402 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17406 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17407 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17408 Rename ctime to mtime. All users updated.
17409 (grub_minix_get_file_block): Fix types and double indirect computations.
17411 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17413 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17414 if no label is found.
17415 (grub_fat_iterate_dir): Fix file size type.
17416 (grub_fat_iterate_dir): Likewise.
17418 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17420 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17422 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17423 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17425 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17427 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17429 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17431 * util/import_gcry.py: Accept space between # and include.
17433 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17435 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17437 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17439 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17441 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17442 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17444 * grub-core/script/yylex.l: Add fine-grained #pragma.
17446 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17448 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17449 New inline function.
17450 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17452 (memset) [GRUB_UTIL]: Likewise.
17453 (memcmp) [GRUB_UTIL]: Likewise.
17455 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17457 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17458 inline function rather than a define.
17460 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17462 * util/grub-setup.c: Add missing include.
17464 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17466 * util/ieee1275/grub-ofpathname.c: Add missing include.
17468 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17470 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17471 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17474 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17476 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17479 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17481 * util/grub-install.in: Add datarootdir as per automake manual
17483 * util/grub-mknetdir.in: Likewise.
17485 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17487 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17489 * util/grub.d/10_kfreebsd.in: Likewise.
17490 * util/grub.d/10_linux.in: Likewise.
17491 * util/grub.d/10_netbsd.in: Likewise.
17492 * util/grub.d/10_windows.in: Likewise.
17493 * util/grub.d/20_linux_xen.in: Likewise.
17495 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17497 Remove redundant grub_kernel_image_size.
17499 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17501 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17502 the small code. It moves it only by few bytes but simplifies the code.
17503 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17505 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17506 (grub_kernel_image_size): Removed.
17507 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17508 (grub_kernel_image_size): Removed.
17509 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17510 compiled with Apple toolchain.
17511 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17512 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17513 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17514 (grub_total_module_size): Likewise.
17515 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17517 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17518 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17519 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17520 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17521 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17522 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17523 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17524 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17526 (grub_total_module_size): Removed.
17527 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17528 (image_targets): Likewise.
17529 Set .compressed_size to no field on sparc.
17530 (generate_image): Remove kernel_image_size handling.
17532 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17534 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17535 NULL pointer dereference.
17537 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17539 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17540 done with a dedicated section.
17542 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17543 Ensure the correct position of boot_path.
17544 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17545 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17547 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17548 * include/grub/boot.h: Removed. All references removed.
17549 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17551 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17553 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17555 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17558 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17560 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17562 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17564 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17565 Don't add the bogus brackets.
17567 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17571 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17572 * grub-core/Makefile.core.def (exfat): New module.
17573 * grub-core/fs/exfat.c: New file.
17574 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17575 (GRUB_FAT_ATTR_*): Make into an enum.
17576 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17577 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17578 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17579 (GRUB_FAT_MAXFILE): Removed.
17580 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17581 (grub_current_fat_bpb_t): New type.
17582 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17583 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17584 (grub_fat_dir_node_t): New type.
17585 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17586 (fat_log2) [MODE_EXFAT]: Removed.
17587 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17588 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17589 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17590 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17591 (grub_fat_label) [MODE_EXFAT]: New function.
17592 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17593 reserved_first_sector to 0.
17595 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17597 Move grub_reboot out of the kernel.
17599 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17600 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17601 * grub-core/lib/efi/reboot.c: ... here.
17602 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17603 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17604 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17605 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17606 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17607 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17608 * grub-core/lib/ieee1275/reboot.c: ... here.
17609 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17610 * grub-core/lib/mips/arc/reboot.c: ... here.
17611 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17612 * grub-core/lib/mips/loongson/reboot.c: ...here.
17613 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17614 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17615 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17616 * include/grub/i386/reboot.h: New file.
17617 * include/grub/mips/loongson/ec.h: Fix includes.
17618 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17619 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17620 * grub-core/lib/i386/reboot.c: New file.
17622 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17624 Make grub_prefix into module to fix the arbitrary limit and save
17627 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17628 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17629 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17630 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17631 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17632 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17633 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17634 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17635 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17636 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17637 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17638 * include/grub/ia64/efi/kernel.h: Removed.
17639 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17640 (grub_prefix): Removed.
17641 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17642 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17643 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17644 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17645 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17646 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17647 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17648 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17649 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17650 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17651 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17652 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17653 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17654 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17655 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17656 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17657 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17658 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17659 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17660 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17661 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17662 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17663 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17664 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17665 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17666 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17667 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17668 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17669 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17671 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17673 (image_targets): Likewise.
17674 (generate_image): Put prefix as a module.
17676 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17678 Replace grub_module_iterate with FOR_MODULES.
17680 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17681 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17682 (grub_efi_modules_addr): ...this.
17683 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17684 (grub_efi_init): Set grub_modbase.
17685 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17686 (grub_modbase): New variable.
17687 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17688 (grub_modbase): New variable.
17689 (grub_machine_init): Set grub_modbase.
17690 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17691 (grub_modbase): New variable.
17692 (grub_machine_init): Set grub_modbase.
17693 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17694 (grub_modbase): New variable.
17695 (grub_machine_init): Set grub_modbase.
17696 * grub-core/kern/main.c (grub_module_iterate): Remove.
17697 (grub_modules_get_end): Use grub_modbase.
17698 (grub_load_modules): Use FOR_MODULES.
17699 (grub_load_config): Likewise.
17700 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17701 (grub_modbase): New variable.
17702 (grub_machine_init): Set grub_modbase.
17703 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17704 (grub_modbase): New variable.
17705 (grub_machine_init): Set grub_modbase.
17706 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17708 (grub_modbase): New variable.
17709 (grub_machine_init): Set grub_modbase.
17710 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17711 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17712 (grub_module_iterate): Likewise.
17713 (grub_modbase): New variable declaration.
17714 (FOR_MODULES): New macro.
17716 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17718 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17719 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17721 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17723 Fix few obvious type discrepancies.
17725 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17726 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17727 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17729 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17730 and connected types.
17731 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17733 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17734 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17735 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17736 and connected types.
17738 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17740 Fix python 3.x incompatibilities.
17742 * gentpl.py: Put brackets around print strings.
17743 * util/import_gcry.py: Open explicitly as utf-8.
17744 Use in instead of has_key.
17746 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17748 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17749 (GRUB_XFS_INO_AGBITS): Make into inline function.
17750 (GRUB_XFS_INO_INOINAG): Likewise.
17751 (GRUB_XFS_INO_AG): Likewise.
17752 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17753 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17754 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17755 (GRUB_XFS_EXTENT_SIZE): Likewise.
17756 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17757 (GRUB_XFS_NEXT_DIRENT): Likewise.
17758 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17759 (grub_xfs_read_file): Fix offset type.
17761 2011-10-15 Robert Millan <rmh@gnu.org>
17763 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17765 2011-10-15 Robert Millan <rmh@gnu.org>
17767 Fix build problem on FreeBSD and GNU/kFreeBSD.
17769 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17771 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17773 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17775 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17777 (grub_hfsplus_btree_recoffset): Likewise.
17778 (grub_hfsplus_btree_recptr): Likewise.
17779 (grub_hfsplus_find_block): Likewise.
17780 (grub_hfsplus_btree_search): Likewise.
17781 (grub_hfsplus_read_block): Likewise.
17782 (grub_hfsplus_read_file): Likewise.
17783 (grub_hfsplus_mount): Likewise.
17784 (grub_hfsplus_btree_iterate_node): Likewise.
17785 (grub_hfsplus_btree_search): Likewise.
17786 (grub_hfsplus_iterate_dir): Likewise.
17787 (grub_hfsplus_read): A small code simplification.
17789 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17791 * grub-core/kern/emu/hostdisk.c
17792 (convert_system_partition_to_system_disk): Don't assume that children
17793 of mapper nodes are mapper nodes.
17795 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17797 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17798 * include/grub/misc.h (grub_isxdigit): New function.
17799 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17800 switched to grub_isxdigit.
17801 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17802 number starting with a letter.
17804 2011-10-09 Robert Millan <rmh@gnu.org>
17806 LVM support for FreeBSD and GNU/kFreeBSD.
17808 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17810 (LVM_DEV_MAPPER_STRING): Move from here ...
17811 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17812 * util/getroot.c: Include `<grub/util/lvm.h>'.
17813 (grub_util_get_dev_abstraction): Enable
17814 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17815 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17816 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17817 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17819 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17821 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17822 when LVM abstraction is required for ${GRUB_DEVICE}.
17824 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17826 Add support for LZO compression in GRUB:
17827 - import of minilzo library,
17828 - LZO decompression for btrfs,
17829 - lzop files decompression.
17831 * grub-core/io/lzopio.c: New file.
17832 * grub-core/lib/adler32.c: Likewise.
17833 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17834 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17835 * grub-core/lib/minilzo/minilzo.c: Likewise.
17836 * grub-core/lib/minilzo/minilzo.h: Likewise.
17837 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17838 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17839 grub-core/lib/minilzo/minilzo.c to common.
17840 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17841 cflags in cppflags.
17842 * grub-core/Makefile.core.def (btrfs): Likewise.
17843 * grub-core/Makefile.core.def (lzopio): New module.
17844 (adler32): Likewise.
17845 * grub-core/fs/btrfs.c: Include minilzo.h.
17846 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17847 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17848 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17849 (grub_btrfs_lzo_decompress): New function.
17850 (grub_btrfs_extent_read): Add support for LZO compression type.
17851 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17852 (GRUB_USHRT_MAX): Likewise.
17853 (GRUB_UINT_MAX): Likewise.
17854 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17855 (UINT_MAX): Likewise.
17856 (CHAR_BIT): Likewise.
17857 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17858 grub-core/lib/posix_wrap/limits.h
17859 (UCHAR_MAX): Likewise.
17860 * include/grub/file.h (grub_file_filter_id): New compression filter
17861 GRUB_FILE_FILTER_LZOPIO.
17862 * include/grub/file.h (grub_file_filter_id): Set
17863 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17864 * include/grub/types.h (grub_get_unaligned16): New function.
17865 (grub_get_unaligned32): Likewise.
17866 (grub_get_unaligned64): Likewise.
17867 * util/import_gcry.py (cryptolist): Add adler32.
17869 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17871 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17872 in perspective decreases the complexity of build system and fixes
17873 compilation right now.
17875 2011-10-01 Ales Nesrsta <starous@volny.cz>
17877 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17878 (fixed problem related to using UHCI with coreboot).
17880 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17882 * gentpl.py: Use Autogen macros so that the output template file
17883 (Makefile.tpl) size is reduced.
17885 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17887 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17890 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17892 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17893 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17895 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17897 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17900 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17902 Remove extra declaration of sleep for mingw32.
17904 * util/misc.c (sleep) [__MINGW32__]: Removed.
17905 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17907 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17909 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17911 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17913 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17914 (grub_netbsd_btinfo_bootwedge): New struct.
17915 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17917 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17919 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17921 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17924 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17926 Fix incorrect identifiers in bash-completion.
17928 * util/bash-completion.d/grub-completion.bash.in
17929 (_grub_mkpasswd-pbkdf2): Rename to ...
17930 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17931 (_grub_script-check): Rename to ...
17932 (_grub_script_check): ... this. All users updated.
17934 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17936 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17937 Return 0 if disk isn't biosdisk.
17939 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17941 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17943 * Makefile.util.def (grub-fstest): Likewise.
17945 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17947 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17948 Get sector size from disk label.
17950 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17952 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17953 */README* as well as README*.
17954 Reported by: Axel Beckert.
17956 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17958 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17959 case of less than 256 MiB of RAM.
17961 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17963 * grub-core/commands/wildcard.c (make_regex): Handle @.
17965 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17967 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17969 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17971 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17972 AC_LANG_CONFTEST macros.
17974 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17976 Add grub-fstest option to uncompress data for commands.
17978 * util/grub-fstest.c (uncompress): New var.
17979 (options): New option -u.
17981 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17983 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17984 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17986 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17988 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17989 file type was not recognized correctly (not gzip or corrupted).
17991 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17993 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17994 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17996 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17998 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18000 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18001 video_radeon_fuloong2e.
18002 * grub-core/video/radeon_fuloong2e.c: New file.
18003 * include/grub/video.h (grub_video_id_t): Add new ID
18004 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18006 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18008 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18010 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18011 that PRID matches the detected subplatform and reset the subplatform
18014 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18016 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18018 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18020 Fix PCI iterating on functions >= 4.
18022 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18023 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18025 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18026 (grub_pci_read): Fix bitmask.
18027 (grub_pci_read_word): Likewise.
18028 (grub_pci_read_byte): Likewise.
18029 (grub_pci_write): Likewise.
18030 (grub_pci_write_word): Likewise.
18031 (grub_pci_write_byte): Likewise.
18033 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18035 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18036 can still be specified in TARGET_CFLAGS)
18038 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18040 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18042 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18043 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18044 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18045 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18046 (FULOONG): Rename to ...
18047 (FULOONG2F): ... this. All users updated.
18048 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18049 (machtype_fuloong2f_str): ... this.
18050 (machtype_fuloong2e_str): New string.
18051 Check for machtype_fuloong2e_str.
18052 * grub-core/loader/mips/linux.c (loongson_machtypes)
18053 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18054 * grub-core/term/serial.c (loongson_defserial)
18055 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18056 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18057 loongson_defserial.
18058 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18060 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18061 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18062 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18063 to IMAGE_FULOONG2F_FLASH. All users updated.
18064 (image_targets): Rename images.
18065 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18067 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18069 Make enable of disk cache statistics code configurable.
18071 * configure.ac: --enable-cache-stats added.
18072 * config.h.in (DISK_CACHE_STATS): New define.
18073 * grub-core/Makefile.core.def (cacheinfo): New command.
18074 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18075 * grub-core/commands/cacheinfo.c: New file.
18076 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18077 moved to cacheinfo.c.
18078 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18080 * include/grub/disk.h: Likewise.
18082 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18084 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18085 * grub-core/Makefile.am: Likewise.
18087 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18089 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18092 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18094 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18096 (grub_jfs_lookup_symlink): Use correct starting inode.
18098 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18100 * util/grub-setup.c (main): Add missing gcry initialisation.
18102 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18104 Don't accept text modes on EFI when booting Linux.
18106 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18107 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18109 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18110 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18112 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18113 use of "/path/.." as in grub-install for EFI as well as handling
18114 symlinks correctly.
18115 Fixes Debian bug #637768.
18117 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18119 * util/grub-probe.c: Remove duplicate #include.
18121 2011-08-10 Robert Millan <rmh@gnu.org>
18123 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18125 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18127 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18128 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18130 2011-08-03 Robert Millan <rmh@gnu.org>
18132 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18133 la_array as packed.
18134 Reported by: Zachary Bedell
18136 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18138 * configure.ac: The Loongson port requires grub-mkfont due to its
18139 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18142 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18144 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18145 processing arguments (otherwise help2man fails when GRUB has not yet
18148 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18150 New script grub-mkstandalone.
18152 * Makefile.util.def (grub-mkstandalone): New script.
18153 * docs/man/grub-mkstandalone.h2m: New file.
18154 * util/grub-mkstandalone.in: Likewise.
18156 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18158 Support ATA disks with 4K sectors.
18160 * include/grub/ata.h (grub_ata): New member log_sector_size.
18161 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18162 (grub_ata_identify): Read sector size.
18163 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18165 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18167 * util/grub-install.in: Don't use uhci outside of x86.
18169 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18171 * util/grub-mkrescue.in: Add missing quotes.
18173 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18175 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18178 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18180 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18182 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18184 * include/grub/video.h: add missing EXPORT_FUND on
18185 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18187 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18189 * include/grub/mips/kernel.h: Fix define conflict.
18191 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18193 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18196 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18198 Preferred resolution detection for VBE.
18200 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18201 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18202 the Flat Panel extension, in line with the X.org VESA driver.
18203 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18205 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18206 (grub_vbe_bios_read_edid): Likewise.
18207 (grub_vbe_get_preferred_mode): Likewise.
18208 (grub_video_vbe_setup): When the mode is "auto", try to get the
18209 preferred mode from VBE, and use the largest mode that is no larger
18210 than the preferred mode (some BIOSes expose a preferred mode that is
18211 not in their mode list!). If this fails, fall back to 640x480 as a
18212 safe conservative choice.
18213 (grub_video_vbe_get_edid): New function.
18214 (grub_video_vbe_adapter): Add get_edid.
18215 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18216 (struct grub_video_adapter): Add get_edid.
18217 (grub_video_edid_checksum): Add prototype.
18218 (grub_video_edid_preferred_mode): Likewise.
18219 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18222 * grub-core/commands/videoinfo.c (print_edid): New function.
18223 (grub_cmd_videoinfo): Print EDID if available.
18225 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18226 is more appropriate on a wider range of platforms than 640x480.
18227 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18230 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18232 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18234 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18236 * po/POTFILES.in: Regenerate.
18238 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18240 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18241 incorrect memory usage.
18243 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18245 * util/grub-install.in: Source grub-mkconfig_lib.
18247 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18249 Remove getroot.c from core on emu platform.
18251 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18253 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18255 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18256 * util/getroot.c (get_win32_path): ... here.
18257 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18258 * util/getroot.c (fini_libzfs): ... here.
18259 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18260 * util/getroot.c (grub_get_libzfs_handle): ... here.
18261 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18263 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18264 * grub-core/kern/emu/misc.c
18265 (grub_make_system_path_relative_to_its_root): Moved from here...
18266 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18267 * grub-core/kern/emu/getroot.c: Moved from here ...
18268 * util/getroot.c: ... here. All users updated.
18269 * grub-core/kern/emu/raid.c: Moved from here ...
18270 * util/raid.c: ... here. All users updated.
18272 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18274 * po/POTFILES.in: Regenerate.
18276 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18278 Fix compilation on GNU/Linux.
18280 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18282 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18283 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18284 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18286 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18287 2011-07-07 Michael Gorven <michael@gorven.za.net>
18288 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18290 LUKS and GELI support.
18292 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18293 grub-core/disk/luks.c, grub-core/disk/geli.c,
18294 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18295 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18296 grub-core/lib/arg.c.
18297 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18298 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18299 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18300 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18301 (grub-bin2h): Add libgcry.a.
18302 (grub-mkimage): Likewise.
18303 (grub-mkrelpath): Likewise.
18304 (grub-script-check): Likewise.
18305 (grub-editenv): Likewise.
18306 (grub-mkpasswd-pbkdf2): Likewise.
18307 (grub-pe2elf): Likewise.
18308 (grub-fstest): Likewise.
18309 (grub-mkfont): Likewise.
18310 (grub-mkdevicemap): Likewise.
18311 (grub-probe): Likewise.
18312 (grub-ofpath): Likewise.
18313 (grub-mklayout): Likewise.
18314 (example_unit_test): Likewise.
18315 (grub-menulst2cfg): Likewise.
18316 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18317 * grub-core/Makefile.core.def (cryptodisk): New module.
18320 * grub-core/disk/AFSplitter.c: New file.
18321 * grub-core/disk/cryptodisk.c: Likewise.
18322 * grub-core/disk/geli.c: Likewise.
18323 * grub-core/disk/luks.c: Likewise.
18324 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18326 (grub_util_get_dm_abstraction): New function.
18327 (grub_util_follow_gpart_up): Likewise.
18328 (grub_util_get_geom_abstraction): Likewise.
18329 (grub_util_get_dev_abstraction): Use new functions.
18330 (grub_util_pull_device): Pull GELI and LUKS.
18331 (grub_util_get_grub_dev): Handle LUKS and GELI.
18332 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18333 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18334 (follow_geom_up): Removed.
18335 (grub_util_fd_seek): New function.
18336 (open_device): Use grub_util_fd_seek.
18337 (nread): Rename to ..
18338 (grub_util_fd_read): ... this. All users updated.
18339 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18340 (grub_crypto_cbc_decrypt): Likewise.
18341 (grub_crypto_hmac_write): Likewise.
18342 (grub_crypto_hmac_buffer): Likewise.
18343 (grub_password_get): Extend to util.
18344 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18345 New member modname.
18346 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18347 * include/grub/cryptodisk.h: New file.
18348 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18349 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18351 (grub_util_follow_gpart_up): New proto.
18352 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18353 (grub_util_fd_read): Likewise.
18354 (grub_cryptodisk_cheat_mount): Likewise.
18355 (grub_util_cryptodisk_print_uuid): Likewise.
18356 (grub_util_get_fd_sectors): Likewise.
18357 * util/grub-fstest.c (mount_crypt): New var.
18358 (fstest): Mount crypto if requested.
18359 (options): New option -C.
18360 (argp_parser): Parse -C.
18361 (main): Init and fini gcry.
18362 * util/grub-install.in: Support cryptodisk install.
18363 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18364 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18366 (prepare_grub_to_access_device): Likewise.
18367 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18368 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18369 (probe_cryptodisk_uuid): New function.
18370 (probe_abstraction): Likewise.
18371 (probe): Use new functions.
18372 * util/import_gcry.py: Create Makefile.utilgcry.def.
18373 Add modname member.
18375 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18377 Lazy device scanning.
18379 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18380 (grub-setup): Remove util/raid.c.
18381 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18382 * grub-core/disk/lvm.c (scan_depth): New variable.
18383 (grub_lvm_iterate): Rescan if necessary.
18384 (find_lv): New function based on grub_lvm_open.
18385 (grub_lvm_open): Use find_lv. Rescan on error.
18386 (is_node_readable): New function.
18387 (is_lv_readable): Likewise.
18388 (grub_lvm_scan_device): Skip already found disks.
18389 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18390 Stop if searched device is found and readable.
18391 * grub-core/disk/raid.c (inscnt): New variable.
18392 (scan_depth): Likewise.
18393 (scan_devices): New function based on grub_raid_register. Abort if
18394 looked for device is found.
18395 (grub_raid_iterate): Rescan if needed.
18396 (find_array): NEw function based on -grub_raid_open.
18397 (grub_raid_open): Use find_array and rescan.
18398 (insert_array): Set became_readable_at.
18399 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18400 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18402 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18403 (grub_util_pull_device): New function.
18404 (grub_util_get_grub_dev): Call grub_util_pull_device.
18405 * util/raid.c: Moved to ..
18406 * grub-core/kern/emu/raid.c: ... here.
18407 (grub_util_raid_getmembers): New parameter "bootable".
18408 All users updated. Support 1.x.
18409 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18411 * include/grub/disk.h (grub_disk_pull_t): New enum.
18412 (grub_disk_dev): Change iterate prototype.
18414 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18416 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18417 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18418 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18419 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18421 * include/grub/util/raid.h: Removed.
18423 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18425 * po/POTFILES.in: Regenerate.
18427 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18429 Unify sparc init with other ieee1275.
18431 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18432 instead of kern/sparc64/ieee1275/init.c.
18433 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18434 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18435 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18436 grub/machine/kernel.h.
18437 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18438 (grub_claim_heap) [__sparc__]: Use sparc version.
18439 (grub_machine_init): Moved args parsing to
18440 (grub_parse_cmdline): ...this.
18441 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18442 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18444 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18446 Move BOOTP to separate file.
18448 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18449 * grub-core/net/net.c: Move all BOOTP functions to
18450 * grub-core/net/bootp.c: ... here.
18452 Use frame interface on PXE.
18454 * grub-core/Makefile.core.def (pxecmd): Removed.
18455 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18456 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18457 * grub-core/i386/pc/pxe.c: Moved from here ...
18458 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18459 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18460 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18462 EFI network support.
18464 * grub-core/Makefile.core.def (efinet): New module.
18465 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18467 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18469 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18470 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18471 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18472 * grub-core/net/drivers/efi/efinet.c: New file.
18473 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18474 (grub_efi_net_config): New extern var.
18476 Various cleanups and bugfixes.
18478 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18480 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18481 disk declared as partition.
18482 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18484 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18485 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18486 (grub_debug_zalloc): Likewise.
18487 (grub_debug_realloc): Likewise.
18488 (grub_debug_memalign): Likewise.
18489 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18490 Check that target is IPv4.
18491 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18492 local-mac-address as fallback.
18493 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18495 * grub-core/net/ip.c (ipchksum): Rename to ...
18496 (grub_net_ip_chksum): ... this. All users updated.
18497 (grub_net_recv_ip_packets): Special handling for DHCP.
18498 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18500 Unify prefix handling
18502 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18503 (grub_machine_get_bootlocation): ... this.
18504 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18505 (grub_machine_get_bootlocation): ... this.
18506 (grub_prefix): New variable.
18508 (root_dev): New variable.
18510 (main): Use new variables.
18511 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18513 (grub_machine_get_bootlocation): ... this.
18514 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18515 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18516 (grub_machine_get_bootlocation): ... this.
18517 (grub_machine_set_prefix): Removed.
18518 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18519 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18521 (grub_machine_get_bootlocation): ... this.
18522 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18523 (grub_set_prefix_and_root): ... this. All users updated.
18524 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18526 (grub_machine_get_bootlocation): ... this.
18527 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18528 (grub_machine_get_bootlocation): New proto.
18529 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18531 Less intrusive and more reliable seek on network implementation.
18533 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18534 (grub_file_seek): Don't call grub_file_net_seek.
18535 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18536 (grub_net_fs_read_real): .. this.
18537 (grub_net_seek_real): Use net->offset.
18538 (grub_net_fs_read): Seek if necessary.
18540 Unify IEEE1275 netwotk config with the other platforms.
18542 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18544 (grub_machine_get_bootlocation): Support network.
18545 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18546 Support type and device parsing.
18547 (grub_ieee1275_get_device_type): New function.
18548 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18550 (grub_ieee1275_net_config_real): ... this.
18551 (grub_ofnet_probecards): Removed.
18552 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18553 * include/grub/ieee1275/ofnet.h: Removed.
18554 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18556 (grub_ieee1275_get_device_type): New function.
18558 Unify network device closing across platforms and make more robust.
18560 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18562 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18564 * grub-core/net/net.c (grub_net_network_level_interface_register):
18566 (grub_net_card_unregister): Close all interfaces.
18567 (receive_packets): Don't poll if no iterfaces are registered.
18569 (grub_net_fini_hw): New function.
18570 (grub_net_restore_hw): Likewise.
18571 (fini_hnd): New variable.
18572 (GRUB_MOD_INIT): Register preboot hook.
18573 (GRUB_MOD_FINI): Run and unregister preboot hook.
18575 Poll network cards when idle.
18577 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18578 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18579 * grub-core/net/net.c (receive_packets): Save last poll time.
18580 (grub_net_poll_cards_idle_real): New function.
18581 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18582 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18583 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18585 Rename ofnet interfaces.
18587 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18588 (grub_ofnet_findcards): Use ofnet_%s names.
18590 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18592 Cleanup socket opening.
18594 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18595 (grub_net_fs_close): Likewise.
18596 (grub_net_fs_read_real): Use eof member.
18597 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18598 (+grub_net_udp_close): New inline function.
18600 * include/grub/net/tftp.h: Moved to the top of ...
18601 * grub-core/net/tftp.c: ... here.
18602 * include/grub/net/ip.h: Moved mostly to the top of ...
18603 * grub-core/net/ip.c: ... here.
18604 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18605 * grub-core/net/ethernet.c: ... here.
18607 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18609 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18612 * include/grub/net/ip.h (ipv4_ini): Removed.
18613 (ipv4_fini): Likewise.
18615 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18616 (grub_net_send_ip_packets): Likewise.
18618 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18620 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18621 grub_read_cmos prototype.
18623 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18625 VGA text support in qemu-mips
18627 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18628 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18629 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18631 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18632 * grub-core/kern/vga_init.c: ... this.
18633 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18634 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18635 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18637 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18638 GRUB_MACHINE_PCI_IO_BASE.
18640 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18642 MIPS qemu flash support.
18644 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18646 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18647 (grub_machine_init): Probe memory if its size isn't known.
18648 * util/grub-mkimage.c (image_targets): Add flash targets.
18649 (generate_image): Handle flash targets.
18651 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18653 MIPS qemu at_keyboard support.
18655 * gentpl.py (videoinkernel): Add qemu-mips.
18656 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18657 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18658 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18660 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18661 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18662 * grub-core/term/serial.c (grub_serial_register)
18663 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18665 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18667 CMOS support on sparc.
18669 * gentpl.py (cmos): Add powerpc and sparc.
18670 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18672 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18673 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18674 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18675 grub_set_datetime_cmos.
18676 * grub-core/lib/ieee1275/cmos.c: New file.
18677 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18678 (find_rtc): Set no_ieee1275_rtc on error.
18679 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18680 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18681 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18682 fail. Move value to argument. All users updated
18683 (grub_cmos_write): Likewise.
18684 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18685 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18686 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18687 grub_get_datetime_cmos and grub_set_datetime_cmos.
18689 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18691 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18692 sourcing grub-mkconfig_lib.
18693 * util/update-grub_lib.in: Likewise.
18694 * util/grub.d/00_header.in: Likewise.
18695 * util/grub.d/10_hurd.in: Likewise.
18696 * util/grub.d/10_kfreebsd.in: Likewise.
18697 * util/grub.d/10_linux.in: Likewise.
18698 * util/grub.d/10_netbsd.in: Likewise.
18699 * util/grub.d/10_windows.in: Likewise.
18700 * util/grub.d/20_linux_xen.in: Likewise.
18701 * util/grub.d/30_os-prober.in: Likewise.
18703 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18705 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18706 default_bg_color rather than black.
18707 (grub_gfxterm_fullscreen): Likewise.
18708 (grub_gfxterm_background_color_cmd): Save new background color in
18711 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18713 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18715 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18717 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18720 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18722 Chainloading on coreboot support.
18724 * grub-core/Makefile.core.def (chain): Add coreboot.
18725 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18727 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18729 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18732 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18734 Implement time command.
18736 * grub-core/Makefile.core.def (time): New module.
18737 * grub-core/commands/time.c: New file.
18738 * grub-core/script/parser.y: Remove "time" keyword.
18739 * grub-core/script/yylex.l: Likewise.
18741 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18743 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18745 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18747 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18748 when handling leftovers.
18750 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18752 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18753 so that help2man doesn't fail.
18755 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18757 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18758 type in pointers on sparc64.
18759 (get_card_packet): Likewise.
18761 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18763 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18765 (grub_cmd_videoinfo): Fetch current video mode.
18767 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18769 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18770 because of underlying system restrictions.
18772 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18774 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18777 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18779 Coreboot video support.
18781 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18783 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18784 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18786 * grub-core/kern/i386/int.S: ... here.
18787 * grub-core/video/i386/pc/vbe.c: Updated includes.
18788 * grub-core/video/i386/pc/vga.c: Likewise.
18789 * include/grub/i386/coreboot/memory.h
18790 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18791 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18792 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18793 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18794 Disable interrupts.
18795 * include/grub/i386/pc/vga.h: Removed. All users updated.
18797 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18799 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18800 definitions for dprintf.
18801 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18803 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18805 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18807 (get_card_packet): Likewise.
18809 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18811 Display the path of the file when file is not found
18813 * grub-core/fs/fat.c: Display the filename when file is not found.
18814 * grub-core/fs/fshelp.c: Likewise.
18815 * grub-core/fs/hfs.c: Likewise.
18816 * grub-core/fs/jfs.c: Likewise.
18817 * grub-core/fs/minix.c: Likewise.
18818 * grub-core/fs/ufs.c: Likewise.
18819 * grub-core/fs/btrfs.c: Likewise.
18820 * grub-core/commands/i386/pc/play.c: Likewise.
18822 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18824 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18825 pointer checks before calling grub_free().
18826 * grub-core/commands/wildcard.c (match_devices): Likewise.
18827 * grub-core/commands/wildcard.c (match_files): Likewise.
18828 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18829 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18830 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18831 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18832 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18833 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18834 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18835 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18836 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18838 2011-06-25 Patrick <p55@mailinator.com>
18840 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18842 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18844 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18845 (grub_pxe_send): Likewise.
18846 (GRUB_MOD_INIT): Fix types.
18848 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18850 * grub-core/io/xzio.c: Fix code style issues
18852 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18853 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18855 Network infrastructure.
18856 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18858 * include/grub/net/arp.h: New file.
18859 * include/grub/net/device.h: Likewise.
18860 * include/grub/net/ethernet.h: Likewise.
18861 * include/grub/net/ip.h: Likewise.
18862 * include/grub/net/netbuff.h: Likewise.
18863 * include/grub/net/tftp.h: Likewise.
18864 * include/grub/net/udp.h: Likewise.
18865 * include/grub/ieee1275/ofnet.h: Likewise.
18866 * include/grub/emu/export.h: Likewise.
18867 * include/grub/net.h: Likewise.
18868 * grub-core/net/arp.c: Likewise.
18869 * grub-core/net/ethernet.c: Likewise.
18870 * grub-core/net/ip.c: Likewise.
18871 * grub-core/net/udp.c: Likewise.
18872 * grub-core/net/tftp.c: Likewise.
18873 * grub-core/net/netbuff.c: Likewise.
18874 * grub-core/net/net.c: Likewise.
18875 * grub-core/net/drivers/emu/emunet.c: Likewise.
18876 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18877 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18879 * grub-core/Makefile.core.def (net): New module.
18882 (emunet): Likewise.
18883 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18885 * grub-core/kern/device.c (grub_net_open) : New variable.
18886 (grub_device_open): Handle network device.
18887 (grub_device_close): Likewise.
18888 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18889 (grub_grubnet_fini): Likewise.
18890 (grub_file_seek): Seek in network device.
18891 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18892 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18894 (grub_machine_fini): Call grub_grubnet_fini.
18895 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18897 (grub_ieee1275_get_aliasdevname): New function.
18898 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18899 Add unofficial Solaris network info.
18900 (grub_multiboot_make_mbi): Likewise.
18901 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18902 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18903 * include/grub/device.h (grub_fs): Removed.
18904 * include/grub/err.h (grub_err_t): Add network-related values.
18905 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18906 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18907 (grub_ieee1275_get_aliasdevname): New proto.
18908 * include/grub/net.h: Rewritten.
18910 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18912 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18915 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18917 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18918 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18919 it truncates the output.
18920 Reported by: Ximin Luo.
18922 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18924 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18926 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18928 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18929 partmap before abstraction.
18931 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18933 * util/grub-mkconfig_lib.in: Add missing quotes.
18935 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18937 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18938 old method if mountinfo would return /dev/root and /dev/root doesn't
18941 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18945 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18946 (decomp_table): Add zlib entries.
18947 (zio_read): USe 8 bits for compression function rather than 3.
18948 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18950 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18952 * grub-core/disk/ahci.c: Add missing license statements.
18953 * grub-core/fs/romfs.c: Likewise.
18954 * grub-core/lib/ia64/setjmp.S: Likewise.
18955 * grub-core/loader/i386/pc/freedos.c: Likewise.
18956 * grub-core/loader/ia64/efi/linux.c: Likewise.
18957 * grub-core/video/colors.c: Likewise.
18958 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18960 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18964 * grub-core/Makefile.core.def (ata_pthru): Removed.
18965 (ahci): New module.
18967 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18969 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18971 (grub_hdparm_do_check_powermode_cmd): Likewise.
18972 (grub_hdparm_do_smart_cmd): Likewise.
18973 (grub_hdparm_set_val_cmd): Likewise.
18974 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18975 * grub-core/disk/ahci.c: New file.
18976 * grub-core/disk/ata.c: Factor out the low-level part into ...
18977 * grub-core/disk/pata.c: ... here.
18978 * grub-core/disk/ata_pthru.c: Contents moved to ...
18979 * grub-core/disk/pata.c: ... here.
18980 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18981 (grub_scsi_iterate): Use grub_scsi_names.
18982 (grub_scsi_open): Likewise.
18983 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18984 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18985 (grub_ata_regs_t): New struct.
18986 (grub_disk_ata_pass_through_parms): Likewise.
18987 (grub_ata_device): Renamed to ...
18988 (grub_ata): ... this.
18989 (grub_ata_dev): New struct.
18990 Removed all low-level inline functions.
18991 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18992 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18993 iterate hooks and open. All users updated.
18994 * util/grub-install.in: Handle AHCI disk module.
18996 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18998 Add support for DRI and RSTn markers in JPEG files.
19000 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19001 (JPEG_MARKER_RST0): Likewise.
19002 (JPEG_MARKER_RST1): Likewise.
19003 (JPEG_MARKER_RST2): Likewise.
19004 (JPEG_MARKER_RST3): Likewise.
19005 (JPEG_MARKER_RST4): Likewise.
19006 (JPEG_MARKER_RST5): Likewise.
19007 (JPEG_MARKER_RST6): Likewise.
19008 (JPEG_MARKER_RST7): Likewise.
19009 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19010 (grub_jpeg_decode_dri): New function.
19011 (grub_jpeg_decode_sos): Move image data related part into
19012 grub_jpeg_decode_data function.
19013 (grub_jpeg_decode_data): New function.
19014 (grub_jpeg_reset): New function.
19015 (grub_jpeg_decode_jpeg): Handle new markers.
19017 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19019 * util/ieee1275/ofpath.c (check_sas): Close fd.
19020 (main): Free of_path.
19021 Reported by: David Volgyes <dvolgyes>.
19023 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19025 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19026 Reported by: David Volgyes <dvolgyes>.
19028 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19030 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19032 Reported by: David Volgyes <dvolgyes>.
19034 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19036 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19038 Reported by: David Volgyes <dvolgyes>.
19040 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19042 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19043 Prevent memory leak.
19045 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19047 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19048 (main): Close file.
19049 Reported by: David Volgyes <dvolgyes>.
19051 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19053 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19054 to continue if allocation is failed.
19056 Reported by: David Volgyes <dvolgyes>.
19058 2011-06-23 David Volgyes <dvolgyes>
19060 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19063 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19065 Fix spurious warning.
19067 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19068 (acorn_partition_map_find): Use .bin member.
19070 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19072 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19073 /dev/root as a valid device.
19075 2011-06-23 Jim Meyering <meyering@redhat.com>
19077 Avoid NULL deref in grub_device_open.
19079 * grub-core/kern/device.c (grub_device_open): Don't dereference
19080 a NULL pointer upon failed grub_env_get.
19082 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19084 Support non-512B sectors and agglomerate reads.
19086 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19087 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19088 (disk_io_guid): Removed.
19089 (make_devices): Locate solely by BlockIO.
19090 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19091 (grub_efidisk_read): Use read_blocks.
19092 (grub_efidisk_write): Use write_blocks.
19093 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19095 (get_safe_sectors): Handle non-512B sectors.
19096 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19098 (grub_biosdisk_write): Handle non-512B sectors.
19099 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19100 (grub_scsi_read): Remove special non-512B block handling (now handled
19102 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19103 and do sanity checks.
19104 (grub_disk_adjust_range): Handle non-512B sectors.
19105 (transform_sector): New function.
19106 (grub_disk_read_small): Likewise.
19107 (grub_disk_read): Rewritten.
19108 (grub_disk_write): Handle non-512B sectors.
19109 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19111 (open_device): Use log_sector_size.
19112 (grub_util_biosdisk_read): Likewise.
19113 (grub_util_biosdisk_write): Likewise.
19114 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19116 (pc_partition_map_embed): Likewise.
19117 * include/grub/disk.h (grub_disk): New field log_sector_size.
19118 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19119 (GRUB_DISK_CACHE_BITS): Increased to 6.
19120 * util/grub-fstest.c (fstest): New command testload.
19121 (argp_parser): Likewise.
19123 2011-06-16 Robert Millan <rmh@gnu.org>
19125 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19126 `ata' driver on kernel of FreeBSD 9.
19128 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19129 (get_ataraid_disk_name): New functions.
19130 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19131 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19132 get_ataraid_disk_name() and get_ada_disk_name().
19134 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19136 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19139 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19141 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19142 `ftp.gnu.org' for `alpha.gnu.org'.
19144 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19146 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19147 partitions under /dev/disk/by-id/.
19149 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19151 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19152 after ten consecutive open failures. Scanning all the way up to
19153 10000 is excessive and can cause serious performance problems in
19154 some configurations.
19155 Fixes Ubuntu bug #787461.
19157 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19159 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19162 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19163 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19165 Don't stat devices unless we have to.
19167 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19168 dir == /dev/mapper.
19169 (grub_guess_root_device): Use already known os_dev if possible.
19170 * grub-core/kern/emu/hostdisk.c
19171 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19172 if device is known to be a dm one.
19174 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19176 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19177 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19178 Reported by: Pawel Tecza.
19180 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19182 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19183 (lsefisystab): Likewise.
19185 (lsefimmap): Likewise.
19186 (hdparm): Enable on qemu-mips.
19187 (setjmp): Add ia64 nodist.
19188 (serial): Simplify tags.
19190 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19192 * Makefile.util.def (grub-ofpathname): Install manual page.
19194 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19196 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19198 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19200 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19202 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19204 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19207 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19209 Use full 64-bit division.
19211 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19212 (grub_divmod64): ... this.
19213 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19216 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19218 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19221 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19223 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19224 to avoid accidents when debugging with 'sh -x'.
19225 * grub-core/gensyminfo.sh.in: Likewise.
19226 * tests/example_scripted_test.in: Likewise.
19227 * tests/grub_cmd_regexp.in: Likewise.
19228 * tests/grub_script_blanklines.in: Likewise.
19229 * tests/grub_script_dollar.in: Likewise.
19230 * tests/grub_script_expansion.in: Likewise.
19231 * tests/grub_script_final_semicolon.in: Likewise.
19232 * tests/partmap_test.in: Likewise.
19233 * tests/util/grub-shell-tester.in: Likewise.
19234 * tests/util/grub-shell.in: Likewise.
19236 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19238 Move gfxmenu color handling to video, so that gfxterm can use it
19241 * grub-core/gfxmenu/named_colors.c: Move to ...
19242 * grub-core/video/colors.c: ... here. Rename
19243 grub_gui_get_named_color to grub_video_get_named_color.
19244 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19245 * grub-core/video/colors.c (my_isxdigit): ... here.
19246 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19248 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19249 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19251 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19253 * include/grub/gui.h (grub_gui_color_t): Move to ...
19254 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19255 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19256 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19257 * include/grub/gui.h (grub_gui_map_color): Move to ...
19258 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19259 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19261 * include/grub/video.h (grub_video_get_named_color): ... here.
19262 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19263 * include/grub/video.h (grub_video_parse_color): ... here.
19265 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19267 (gfxmenu): Remove gfxmenu/named_colors.c.
19268 (video) [videomodules]: Add video/colors.c.
19270 Add a background_color command.
19272 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19274 (GRUB_MOD_INIT): Register background_color command.
19275 (GRUB_MOD_FINI): Unregister background_color command.
19276 (redraw_screen_rect): Allow blend/replace of text layer to be
19277 controlled independently from whether there is a background bitmap.
19278 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19281 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19283 Patch BPB in ntldr and chainloader --bpb.
19285 * grub-core/fs/fat.c: Include grub/fat.h.
19286 (grub_fat_bpb): Moved to ...
19287 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19288 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19290 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19292 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19294 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19296 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19297 (GRUB_MOD_INIT): Show --bpb.
19298 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19299 * grub-core/normal/main.c (features): New variable.
19300 (GRUB_MOD_INIT): Set feature_* variables.
19301 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19303 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19305 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19307 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19310 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19312 FreeDOS direct loading support.
19314 * docs/grub.texi (Supported OS): Add FreeDOS.
19315 * grub-core/Makefile.core.def (freedos): New module.
19316 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19318 (grub_relocator16_boot): Handle %ebx.
19319 * grub-core/lib/i386/relocator16.S: Likewise.
19320 * grub-core/loader/i386/pc/freedos.c: New file.
19322 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19324 Long Linux command line support.
19326 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19327 (maximal_cmdline_size): New variable.
19328 (allocate_pages): Use maximal_cmdline_size.
19329 (grub_cmd_linux): Set and use maximal_cmdline_size.
19330 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19331 (allocate_pages): Use maximal_cmdline_size.
19332 (grub_cmd_linux): Set and use maximal_cmdline_size.
19333 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19334 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19337 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19338 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19340 Improve devmapper support
19342 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19343 (grub_util_is_lvm): New function.
19344 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19345 than lvm if not dmraid.
19346 Handle mapped md nodes.
19347 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19348 (grub_util_device_is_mapped): ... this. Make always available. All users
19350 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19351 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19353 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19355 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19357 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19359 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19360 * grub-core/modinfo.sh.in: New file.
19361 * grub-core/Makefile.core.def (modinfo.sh): New script.
19362 * util/grub-mknetdir.in: Use modinfo.sh.
19363 * util/grub-mkrescue.in: Likewise.
19365 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19367 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19368 Fix potential usage of Elf32 instead of Elf64 when compiling on
19369 32-bit architecture. Add endianness macros while on it.
19371 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19373 Use mipsel- rather than mips- in directories involving mipsel ports to
19374 allow both endiannesses coexist.
19376 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19377 mips. All conditions adjusted.
19378 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19380 * util/grub-install.in: Adjust conditions to take renaming into account.
19381 * util/grub-mkimage.c (image_targets): Likewise. New target
19382 mips-qemu_mips-elf for bigendian mips.
19384 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19386 Avoid unnecessary copying on MIPS.
19388 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19389 early if src == dest.
19390 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19391 compression is none.
19393 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19395 Reduce memory footprint on SGI by putting modules before the kernel
19396 as opposed to after.
19398 * grub-core/Makefile.core.def (kernel): Increase linking address.
19399 (none_decompress): Likewise.
19400 (xz_decompress): Likewise.
19401 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19403 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19405 (grub_arch_modules_addr): New function.
19406 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19407 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19408 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19410 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19411 (grub_total_modules_size): ... this. Make global.
19412 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19413 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19415 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19416 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19417 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19418 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19419 * util/grub-mkimage.c (image_target_desc): New flag
19420 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19421 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19422 (generate_image): Handle images with modules before kernel.
19424 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19426 Prevent potential loss of memory map by overwrite on qemu-mips.
19428 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19429 Save ram size in $s4.
19430 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19431 All users changed to grub_arch_memsize.
19432 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19434 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19435 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19436 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19439 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19441 * .bzrignore: Remove grub-dumpbios.
19443 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19445 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19446 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19447 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19448 existing options which append).
19449 * docs/grub.texi (Simple configuration): Document new options.
19450 Reported by: Ian Jackson. Fixes Debian bug #617538.
19452 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19454 * util/grub-fstest.c (cmd_cat): New function.
19455 (fstest): Handle CMD_CAT.
19456 (options): Add cat.
19457 (argp_parser): Handle cat.
19459 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19461 * Makefile.util.def (grub-bin2h): Don't install.
19462 * docs/man/grub-bin2h.h2m: Remove.
19464 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19466 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19469 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19471 Reenable qemu-mips port.
19473 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19474 Fix small arc bug while on it.
19475 * gentpl.py: Handle qemu_mips.
19476 * grub-core/Makefile.am: Likewise.
19477 * grub-core/Makefile.core.def: Likewise.
19478 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19479 inappropriate includes.
19480 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19481 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19482 * grub-core/kern/main.c (grub_modules_get_end)
19483 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19484 * grub-core/kern/mips/qemu-mips: Moved to ..
19485 * grub-core/kern/mips/qemu_mips: ... this.
19486 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19487 (grub_machine_init): Call terminfo_init and serial_init.
19488 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19489 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19491 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19493 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19494 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19495 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19496 * include/grub/mips/qemu_mips/cmos.h: New file.
19497 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19498 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19500 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19501 Use correct mips-style address.
19502 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19503 (GRUB_TICKS_PER_SECOND): Removed.
19504 (grub_get_rtc): Likewise.
19505 (grub_cpu_idle): Likewise.
19506 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19508 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19509 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19510 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19511 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19512 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19513 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19514 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19515 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19517 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19521 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19522 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19524 * configure.ac: New target mips-arc.
19525 * gentpl.py: Likewise.
19526 * grub-core/Makefile.am: Likewise.
19527 * grub-core/Makefile.core.def: Likewise.
19528 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19529 (none_decompress): Likewise.
19530 (lsdev): New module.
19531 (datetime): Use lib/arc/datetime.c on ARC.
19532 (part_dvh): New module.
19533 * grub-core/commands/arc/lsdev.c: New file.
19534 * grub-core/disk/arc/arcdisk.c: Likewise.
19535 * grub-core/kern/mips/arc/init.c: Likewise.
19536 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19538 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19540 (grub_arch_dl_relocate_symbols): Likewise.
19541 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19542 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19543 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19545 * grub-core/lib/arc/datetime.c: New file.
19546 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19547 pci.h on non-loongson.
19548 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19549 (grub_linux_boot): Set unused registers to 0.
19550 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19551 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19552 * grub-core/mmap/mips/uppermem.c: ...here.
19553 * grub-core/partmap/dvh.c: New file.
19554 * grub-core/term/arc/console.c: Likewise.
19555 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19556 (grub_terminfo_set_current): Add terminal "arc".
19557 (grub_terminfo_readkey): Support ARC sequences.
19558 * include/grub/arc/arc.h: New file.
19559 * include/grub/arc/console.h: Likewise.
19560 * include/grub/disk.h (grub_disk_dev_id): Add
19561 GRUB_DISK_DEVICE_ARCDISK_ID.
19562 * include/grub/mips/arc/kernel.h: New file.
19563 * include/grub/mips/arc/memory.h: Likewise.
19564 * include/grub/mips/arc/time.h: Likewise.
19565 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19566 * include/grub/mips/kernel.h (grub_halt): ... here.
19567 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19569 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19570 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19571 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19572 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19574 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19576 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19577 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19578 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19579 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19580 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19581 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19582 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19583 (grub_phys_addr_t): Moved from here ...
19584 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19585 (grub_vtop): Moved from here ...
19586 * include/grub/mips/memory.h (grub_vtop): ... here.
19587 (grub_map_memory): Moved from here ...
19588 * include/grub/mips/memory.h (grub_map_memory): ... here.
19589 (grub_unmap_memory): Moved from here ...
19590 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19591 (grub_machine_mmap_iterate): Moved from here ...
19592 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19593 (grub_mmap_get_lower): Moved from here ...
19594 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19595 (grub_mmap_get_upper): Moved from here ...
19596 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19597 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19599 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19600 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19602 * include/grub/mips/time.h (grub_get_rtc): ... here.
19603 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19605 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19606 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19608 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19609 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19611 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19612 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19613 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19614 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19615 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19616 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19617 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19618 (GRUB_MACHINE_LINK_ADDR): Likewise.
19619 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19621 * util/grub-install.in: Run dvhtool on ARC.
19622 * util/grub-mkimage.c (image_targets): Add mips-arc.
19623 (generate_image): Handle ECOFF output for mips-arc.
19625 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19627 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19630 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19632 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19633 after enabling port.
19635 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19637 Skip incorrect USB devices.
19639 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19641 * include/grub/usb.h (grub_usb_err_t): New enum value
19642 GRUB_USB_ERR_BADDEVICE.
19644 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19646 Fuloong video init support.
19648 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19650 (grub_vga_read_arx): New function.
19651 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19653 (framebuffer): New members io, mmioptr and mmiobase.
19654 (read_sis_cmd): New function.
19655 (write_sis_cmd): Likewise.
19656 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19657 rather than 640x400.
19658 * grub-core/video/sis315_init.c: New file.
19660 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19662 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19664 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19665 to grub_dl_register_symbol.
19667 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19669 Fix compilation errors.
19671 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19672 potentially unused.
19673 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19674 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19675 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19676 to loongson machines.
19678 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19680 Several FS mtime support.
19682 * grub-core/fs/affs.c (grub_affs_time): New struct.
19683 (grub_affs_file): New field mtime.
19684 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19685 type. Removed 'size'. New field 'di'. All users updated.
19686 (grub_affs_mount): Simplify checsum checking.
19687 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19688 (grub_affs_dir): Handle mtime.
19689 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19690 (grub_cpio_dir): Likewise.
19691 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19692 (grub_hfs_filerec): New field mtime.
19693 (grub_hfs_dir): Handle mtime.
19694 (grub_hfs_mtime): New function.
19695 (grub_hfs_fs): Register grub_hfs_mtime.
19696 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19697 (grub_iso9660_dir): New field mtime.
19698 (grub_fshelp_node): New field dirent.
19699 (iso9660_to_unixtime): New function.
19700 (iso9660_to_unixtime2): Likewise.
19701 (grub_iso9660_read_symlink): Use node->dirent.
19702 (grub_iso9660_iterate_dir): Likewise.
19703 (grub_iso9660_dir): Set mtime.
19704 (grub_iso9660_mtime): New function.
19705 (grub_iso9660_fs): Register grub_iso9660_mtime.
19706 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19707 (grub_jfs_inode): New fields atime, ctime and mtime.
19708 (grub_jfs_dir): Set mtime.
19709 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19710 * grub-core/fs/ntfs.c (list_file): Set mtime.
19711 (grub_ntfs_dir): Likewise.
19712 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19713 (grub_reiserfs_iterate_dir): Set mtime.
19714 (grub_reiserfs_dir): Likewise.
19715 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19716 (grub_fshelp_node): Likewise.
19717 (grub_sfs_iterate_dir): Set mtime.
19718 (grub_sfs_dir): Likewise.
19719 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19720 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19721 (grub_xfs_inode): New fields atime, mtime, ctime.
19722 (grub_xfs_dir): Set mtime.
19723 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19724 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19725 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19727 Support UDF symlinks.
19729 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19730 (grub_ufs_read_symlink): New function. All users updated.
19732 Check amiga partmap checksum.
19734 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19735 (grub_amiga_partition): Likewise.
19736 (amiga_partition_map_checksum): New function.
19737 (amiga_partition_map_iterate): Check checksum.
19739 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19743 * Makefile.util.def (libgrubmods.a): Add romfs.
19744 * grub-core/Makefile.core.def (romfs): New module.
19745 * grub-core/fs/romfs.c: New file.
19747 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19749 Squashfs v4 support.
19751 * Makefile.util.def (libgrubmods.a): Add squash4.
19752 * grub-core/Makefile.core.def (squash4): New module.
19753 * grub-core/fs/squash4.c: New file.
19754 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19755 disk_input_start, disk_input.
19756 (get_byte): Handle disk_input.
19757 (grub_zlib_disk_read): New function.
19758 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19760 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19761 2011-05-15 Feiran Zheng <famcool@gmail.com>
19763 * Makefile.util.def (libgrubmods.a): Add minix3.
19764 * grub-core/Makefile.core.def (minix3): New module.
19765 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19766 (GRUB_MINIX_BSIZE): Removed.
19767 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19768 (grub_minix_ino_t): New type.
19769 (grub_minix_le_to_cpu_ino): New macro.
19770 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19771 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19772 (grub_minix_data): New field block_size.
19773 (grub_minix_read_file): Handle 64-bit correctly.
19774 * grub-core/fs/minix3.c: New file.
19776 2011-05-15 Tristan Gingold <gingold@free.fr>
19777 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19778 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19782 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19783 * configure.ac: Add ia64-efi target.
19784 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19785 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19786 * gentpl.py: Add ia64_efi platform.
19787 Rename x86_efi to efi and Add ia64-efi. All users updated.
19788 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19789 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19790 Remove kern/generic/rtc_get_time_ms.c on EFI.
19791 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19792 kern/ia64/dl_helper.c on ia64-efi.
19793 Add kern/emu/cache.c on emu.
19794 (linux): Use on loader/ia64/efi/linux.c on ia64.
19795 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19796 whether symbol is a function.
19797 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19798 (grub_symbol): New field 'isfunc'.
19799 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19800 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19801 (grub_dl_load_segments): Place all sections into the same region.
19802 [__ia64__]: Create trampolines and got.
19803 [GRUB_MACHINE_EMU]: Call mprotect.
19804 (grub_dl_resolve_symbols): Resolve symbol type as well.
19805 [__ia64__]: Create function descriptors.
19806 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19807 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19808 (grub_get_rtc): New function.
19809 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19810 * grub-core/kern/emu/cache.S: Renamed to ...
19811 * grub-core/kern/emu/cache_s.S: ... this.
19812 [__ia64__]: Add a nop.
19813 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19814 [__ia64__]: New function.
19815 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19816 * grub-core/kern/ia64/dl.c: New file.
19817 * grub-core/kern/ia64/dl_helper.c: Likewise.
19818 * grub-core/kern/ia64/efi/init.c: New file.
19819 * grub-core/kern/ia64/efi/startup.S: Likewise.
19820 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19821 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19822 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19823 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19824 * grub-core/loader/ia64/efi/linux.c: New file.
19825 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19826 (GRUB_MOD_DEP): Likewise.
19827 (grub_dl) [__ia64__]: New fields got and tramp.
19828 (grub_dl): New field 'base'.
19829 (grub_dl_register_symbol): New argument isfunc. All users updated.
19830 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19831 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19832 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19833 (grub_ia64_dl_get_tramp_got_size): New proto.
19834 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19835 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19836 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19837 * include/grub/efi/api.h: Skip call wrappers on ia64.
19838 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19839 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19840 * include/grub/elf.h (ELF_ST_INFO): New definition.
19841 * include/grub/ia64/efi/kernel.h: New file.
19842 * include/grub/ia64/efi/memory.h: Likewise.
19843 * include/grub/ia64/efi/time.h: Likewise.
19844 * include/grub/ia64/kernel.h: Likewise.
19845 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19846 * include/grub/ia64/time.h: New file.
19847 * include/grub/ia64/types.h: Likewise.
19848 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19849 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19851 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19852 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19853 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19854 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19856 (EFI64_HEADER_SIZE): New definition. All users updated.
19857 (image_targets): Add ia64-efi.
19858 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19859 jumpers_addr. All users updated.
19860 Create function descriptors.
19861 (count_funcs): New function.
19862 (unaligned_uint32): New struct.
19863 (MASK20): New definition.
19864 (MASK19): Likewise.
19865 (MASKF21): Likewise.
19866 (add_value_to_slot_20b): New function.
19867 (add_value_to_slot_21_real): Likewise.
19868 (add_value_to_slot_21): Likewise.
19869 (ia64_kernel_trampoline): New struct.
19870 (nopm): New variable.
19872 (make_trampoline): New function.
19873 (relocate_addresses): Handle ia64.
19874 (make_reloc_section): Likewise.
19875 (load_image): Likewise.
19877 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19879 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19880 warning. Move variables before code while on it.
19882 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19886 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19887 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19888 * grub-core/boot/mips/loongson/fuloong.S: New file.
19889 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19890 Explicitly init CS5536.
19891 [FULOONG]: Don't use serial until CS5536 is available.
19892 Set GPIO based on dumps.
19893 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19894 [FULOONG]: Handle GPIO and memory controller differences.
19895 Parse machine type in $a2.
19896 * grub-core/boot/mips/startup_raw.S: Determine and save the
19898 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19899 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19900 init on architecture type.
19901 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19902 SIS315E. Don't init at_keyboard on fuloong.
19903 (grub_halt): Support Fuloong.
19904 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19905 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19906 (loongson_machtypes): New array.
19907 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19909 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19910 config. All users updated. Handle CS5536 serial.
19911 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19912 default port on machine type. Register serial as inactive.
19913 * grub-core/video/sis315pro.c: New file.
19914 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19916 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19917 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19918 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19919 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19920 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19921 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19923 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19924 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19926 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19927 (grub_arch_machine): New extern var.
19928 * include/grub/mips/loongson/serial.h
19929 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19930 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19931 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19932 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19933 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19934 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19935 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19936 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19937 * include/grub/term.h (grub_term_register_input_inactive): New inline
19939 (grub_term_register_output_inactive): Likewise.
19940 * include/grub/video.h (grub_video_driver_id): New value
19941 GRUB_VIDEO_DRIVER_SIS315PRO.
19942 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19943 New field "names". All users updated.
19944 New field value IMAGE_FULOONG_FLASH.
19945 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19947 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19949 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19950 and add some clarification.
19952 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19954 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19955 platforms if kernel is compressed.
19957 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19959 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19960 unused modules since currently referrence counter isn't reliable and
19961 there isn't much memory to recover there anyway.
19963 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19965 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19966 rather than resetting it to allow modules to reference themselves
19969 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19971 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19972 counter on dependencies since grub_dl_unref already handles this.
19974 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19976 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19977 on error if not already done.
19979 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19981 Fix few potential memory misusage.
19983 * grub-core/font/font.c (load_font_index): Don't free char_index to
19985 (grub_font_load): Zero-fill font at alloc for safety.
19986 Close file on error.
19987 (free_font): Free bmp_idx.
19989 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19991 * docs/grub.texi (Installation): Fix several outdated claims.
19993 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19995 Handle module_license on windows.
19997 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19999 (insert_string): Make argument const char * instead of char *.
20000 (write_section_data): Handle long section names.
20001 Handle module_license.
20003 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20005 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20006 handle class-free menuentries.
20007 (grub_normal_add_menu_entry): Add a check to be sure.
20009 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20011 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20014 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20016 * configure.ac: Bump version to 1.99.
20018 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20020 Give ATA device a bit more time on first try in order to allow disks
20023 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20024 if dev->present is 1. Reset dev->present on failure.
20025 (grub_ata_device_initialize): Set dev->present to 1.
20026 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20027 (grub_ata_device): New member 'present'.
20029 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20031 * util/grub-mkimage.c (generate_image): Update hash.
20033 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20035 Flush caches on DMA memory.
20037 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20038 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20039 (grub_dma_free): Likewise.
20040 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20042 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20044 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20045 to avoid asm treating ld and sd as macros.
20047 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20049 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20052 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20054 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20055 grub_decompress_core since later would fail if grub_decompress_core
20058 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20060 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20061 R_MIPS_JALR since it's used by newer compiler.
20063 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20065 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20067 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20069 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20070 file_path to 0 for surety.
20071 (grub_chainloader_boot): Set exit_data to NULL.
20072 Unset the loader once done.
20073 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20075 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20077 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20078 unknown key into a dprintf.
20080 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20082 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20083 on first non-existant partition.
20085 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20087 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20089 Reported by: Mark Korenberg.
20091 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20093 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20096 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20098 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20099 before closing to ensure that it will be readable by grub-setup.
20101 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20103 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20104 (devpath_1): Use MAKE_PIWG_PATH.
20105 (devpath_2): Likewise.
20106 (devpath_3): Likewise.
20107 (devpath_4): Likewise.
20108 (devpath_5): Likewise.
20109 (devpath_6): Likewise.
20111 The appleldr.mod was checked that to be binary identical to previous
20114 2011-05-05 Zach <mikezackles>
20116 Support 2010 Macbooks.
20118 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20119 (devs): Add devpath_6.
20121 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20123 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20124 /dev/random. /dev/urandom is good enough for our purposes (salting).
20126 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20128 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20130 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20132 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20135 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20137 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20138 and not 0 on failure.
20140 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20142 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20143 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20144 disk; otherwise grub_fs_probe will not fall back to the next
20146 (grub_pxefs_open): Likewise, for consistency.
20147 Reported and tested by: Ezekiel Grave.
20149 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20151 * tests/partmap_test.in: Don't hardcode path to parted.
20152 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20154 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20156 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20157 of `ls' to find out which devices are available.
20159 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20161 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20162 than source address for efi mmap buffer.
20164 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20166 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20167 wrong action on non-detecting the magic.
20169 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20171 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20172 already supplied by another part of the module (fixes compilation on
20175 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20177 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20178 match the one used by mdadm.
20180 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20182 * po/README: Add instructions for creating po/LINGUAS.
20184 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20186 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20189 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20190 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20191 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20192 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20193 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20194 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20195 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20196 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20197 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20198 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20199 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20200 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20201 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20202 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20203 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20204 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20205 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20206 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20207 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20208 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20209 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20210 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20212 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20214 * grub-core/kern/emu/getroot.c
20215 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20216 test that was incorrectly reintroduced in r3214.
20217 Reported by: Ian Dall. Fixes Savannah bug #33133.
20219 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20221 Fix stack pointer handling in 16-bit relocator.
20223 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20224 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20225 Fixes Ubuntu bug #683904.
20227 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20229 * configure.ac: Bump version to 1.99~rc2.
20231 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20233 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20234 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20235 * grub-core/lib/x86_64/setjmp.S: Likewise.
20236 * grub-core/lib/mips/setjmp.S: Likewise.
20237 * grub-core/lib/powerpc/setjmp.S: Likewise.
20238 * grub-core/lib/sparc64/setjmp.S: Likewise.
20240 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20242 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20243 * grub-core/lib/efi/datetime.c: Likewise.
20245 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20247 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20249 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20250 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20251 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20253 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20255 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20257 (grub_gfxterm_term_init): Likewise.
20259 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20261 Take into account the decorations the computing menu entry width.
20263 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20264 (grub_gfxmenu_create_box): Register get_border_width.
20265 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20267 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20270 2011-04-18 Endres Puschner <code@e7p.de>
20272 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20273 Don't skip first class.
20275 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20277 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20279 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20281 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20283 Complete 64-bit division support.
20285 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20286 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20287 * include/grub/misc.h (grub_divmod64): Rename to ...
20288 (grub_divmod64_full): ... this.
20289 (grub_divmod64): New inline function.
20291 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20293 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20295 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20297 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20298 performing the necessary test.
20300 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20302 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20303 (kfreebsd.elf): Likewise.
20304 (pc-chainloader.elf): Likewise.
20305 (ntldr.elf): Likewise.
20307 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20309 Identify RAID by its UUID rather than (guessed) name.
20311 * grub-core/disk/raid.c (ascii2hex): New function.
20312 (grub_raid_open): Accept mduuid/%s specification.
20313 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20314 (get_mdadm_uuid): ... this.
20315 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20317 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20319 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20322 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20324 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20326 * util/grub.d/20_linux_xen.in: Likewise.
20328 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20330 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20331 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20333 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20334 Build a list of relevant visible mounts using the mnt_id and
20335 parent_mnt_id fields, and then scan that list at the end.
20337 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20339 * docs/grub.texi (normal): New section.
20340 (normal_exit): New section.
20341 (Embedded configuration): Add reference to normal.
20342 (GRUB only offers a rescue shell): Likewise.
20343 * docs/grub-dev.texi (Error Handling): Fix typo.
20345 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20347 * NEWS: Drop obsolete entry about probe-only btrfs support.
20349 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20351 * util/import_gcry.py: Fix typo.
20353 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20355 * NEWS: Add btrfs support.
20357 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20358 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20360 BtrFS support. Written by me (Vladimir) with important bugfixes and
20361 even more important testing by Colin.
20363 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20364 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20365 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20366 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20367 mem_input_off and mem_input. All users updated to accept in-RAM input.
20368 (gzio_seek): New function.
20369 (test_zlib_header): Likewise.
20370 (grub_gzio_read): Likewise.
20371 (grub_zlib_decompress): Likewise.
20372 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20373 Accept partial and non-virtual mounts.
20374 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20375 avoid receiving /dev/dm-X as device.
20376 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20377 Handle bind and partial mounts.
20378 * grub-core/lib/crc.c: New file.
20379 * include/grub/deflate.h: Likewise.
20380 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20382 * include/grub/lib/crc.h: New file.
20384 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20386 Implement automatic module license checking according to new GNU
20389 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20390 (grub_dl_load_core): Use grub_dl_check_license.
20391 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20392 (GRUB_MOD_LICENSE): Likewise.
20393 (GRUB_MOD_DUAL_LICENSE): Likewise.
20394 All modules updated.
20396 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20398 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20399 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20401 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20403 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20405 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20407 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20409 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20412 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20414 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20415 parenthesis in the middle of the filename.
20417 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20419 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20420 rather than trying to put initrd way too high.
20421 Reported by: Ryan Lortie <desrt@desrt.ca>
20423 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20425 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20426 improperly removed string.
20428 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20430 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20432 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20433 (open_device) Likewise.
20434 (grub_util_biosdisk_close): Likewise.
20435 Reported by: Mark Korenberg.
20437 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20439 * util/grub-mkconfig_lib.in: Add missing quotes.
20441 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20443 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20446 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20448 Dynamically count the number of lines for the lower banner.
20450 * grub-core/normal/menu_entry.c (per_term_screen): New member
20452 (print_down): Use num_entries.
20453 (update_screen): Likewise.
20454 (grub_menu_entry_run): Set num_entries.
20455 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20457 (grub_print_message_indented): Move real part to ...
20458 (grub_print_message_indented_real): ... here. Additional argument
20460 (draw_border): Additional argument num_entries.
20461 (print_message): Additional argument dry_run.
20462 (print_entries): Receive menu viewer data.
20463 (grub_menu_init_page): New argment num_entries.
20464 (menu_text_set_chosen_entry): Use num_entries.
20465 (grub_menu_try_text): Likewise.
20466 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20468 (grub_ucs4_count_lines): New function.
20469 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20470 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20471 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20472 (grub_term_border_height): Likewise.
20473 (grub_term_num_entries): Likewise.
20475 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20477 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20478 Remove now unused string.
20480 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20482 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20484 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20486 (Comment): Fix typo.
20487 (Getting started): General copy-editing.
20488 (Typical Development Experience): Likewise.
20489 (Error Handling): Likewise.
20490 (Video API): Likewise.
20492 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20494 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20497 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20499 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20502 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20504 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20505 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20508 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20510 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20511 grub_strcpy since the lines aren't necessarily 0-terminated.
20513 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20515 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20518 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20520 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20521 (GRUB_MOD_INIT): DEVICE isn't optional.
20523 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20525 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20526 word on new line if it's too long anyway. Fixes a hang.
20528 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20530 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20532 * util/grub-setup.c (main): Reuse md device name if available.
20533 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20534 not GRUB name as argument.
20535 Based on patch by: Florian Wagner <fwagner>.
20537 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20539 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20540 Place mbi on low memory for better compatibility.
20542 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20544 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20546 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20547 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20549 * autogen.sh: Ensure that collate and ctype locale is C.
20550 * conf/Makefile.common: Likewise.
20552 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20554 * grub-core/normal/menu.c: Add missing include.
20556 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20558 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20560 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20562 * util/grub-mkconfig.in: Ignore emacsen backup.
20564 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20566 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20568 (grub_util_biosdisk_close): Likewise.
20570 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20572 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20573 const attribute and use grub_isdigit.
20575 2011-04-06 Andrey <dev_null@ukr.net>
20577 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20580 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20582 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20583 useful grub_dprintf's.
20585 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20587 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20589 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20591 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20593 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20595 Output errors if theme loading failed.
20597 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20598 grub_gfxterm_fullscreen on error paths to ...
20599 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20600 theme loading error.
20602 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20604 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20605 space for older compilers.
20606 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20608 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20610 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20611 and report them as not RAID members since they are useless for GRUB.
20612 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20614 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20616 Increase LVM implementation robustness in order not to crash on
20617 configurations like pvmove. Previously code assumed that in some places
20618 only lvs or only pvs are used whereas it seems that they are used
20621 * grub-core/disk/lvm.c (read_node): New function.
20622 (read_lv): Use read_node.
20623 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20624 Match volumes only at the end when all lvs are found. Take both
20625 pvs (first) and lvs (second) into account.
20626 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20627 mirror_* into node_*. All users updated.
20628 (grub_lvm_stripe): Merge this ...
20629 (grub_lvm_mirror): ... and this ...
20630 (grub_lvm_node): ... into this. All users updated.
20632 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20634 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20635 of function to allow further scanning for LVMs.
20637 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20639 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20640 on failed seek as it breaks open fd reusage.
20642 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20644 * util/grub-install.in: Add a recommendation to use --recheck before
20647 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20649 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20652 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20654 GRUB developper manual based on existing Internals section and
20655 contributions by the various authors with active copyright assignment.
20657 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20658 * docs/font_char_metrics.png: New file.
20659 * docs/font_char_metrics.txt: Likewise.
20660 * docs/grub-dev.texi: Likewise.
20661 * docs/grub.texi (Internals): Move from here ...
20662 * docs/grub-dev.texi: ... here.
20664 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20666 Store the loopback device as data on loopback grub_disk structures,
20667 rather than the file it points to. This fixes use of freed memory
20668 if an existing loopback device is replaced.
20670 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20671 disk->data, not dev->file.
20672 (grub_loopback_read): Adjust file assignment to match.
20673 Fixes Ubuntu bug #742967.
20675 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20677 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20678 when replacing an existing device.
20680 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20682 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20683 memory corruptions.
20685 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20687 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20688 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20689 (grub_jfs_read_inode): Likewise.
20690 (grub_jfs_opendir): Likewise. Remove now useless casts.
20691 (grub_jfs_getent): Likewise.
20692 Make ino a grub_uint32_t rather than int.
20693 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20694 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20695 division and module with bit operations.
20696 (grub_jfs_find_file): Make ino a grub_uint32_t.
20697 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20699 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20701 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20702 warning. (This was in fact always initialised before use, but GCC
20703 wasn't smart enough to prove that.)
20704 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20706 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20708 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20710 (efi_wrap_1): Likewise.
20711 (efi_wrap_2): Likewise.
20712 (efi_wrap_3): Likewise.
20713 (efi_wrap_4): Likewise.
20714 (efi_wrap_5): Likewise.
20715 (efi_wrap_6): Likewise.
20716 (efi_wrap_10): Likewise.
20717 Based on information by: Red Hat/Peter Jones.
20719 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20721 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20722 set-but-not-used variable.
20724 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20726 * docs/grub.texi (Simple configuration): Be more explicit about
20727 GRUB_DEFAULT, and add an example.
20728 Reported by: Leslie Rhorer.
20730 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20732 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20735 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20737 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20738 * util/grub.d/20_linux_xen.in: Likewise.
20740 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20742 * util/grub.d/10_linux.in: Try alternative config filenames where
20743 we parse config file.
20744 * util/grub.d/20_linux_xen.in: Likewise.
20746 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20748 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20749 * util/grub.d/20_linux_xen.in: Likewise.
20751 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20753 * grub-core/disk/raid.c (insert_array): Add few potentially
20754 useful grub_util_info.
20755 (grub_raid_register): Likewise.
20757 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20759 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20760 Preserve partition number in mdadm code path.
20762 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20764 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20765 few potentially useful grub_util_info.
20767 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20769 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20771 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20773 * docs/grub.texi (default): Use @example rather than nested
20774 itemized lists to avoid breaking gendocs.
20776 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20778 * docs/grub.texi (Future): Update.
20780 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20782 * docs/grub.texi (Environment): New chapter.
20783 (Changes from GRUB Legacy): Link to "Environment block" section for
20784 details of limitations.
20785 (Simple configuration): Likewise. Link to documentation of gfxmode
20786 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20788 (Shell-like scripting): Note that normal variables are stored in the
20790 (gettext): Link to documentation of lang and locale_dir.
20791 (list_env): New section.
20792 (load_env): New section.
20793 (save_env): New section.
20795 (Reporting bugs): Fix typo.
20797 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20799 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20802 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20804 * grub-core/term/at_keyboard.c (set_scancodes)
20805 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20807 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20809 * docs/grub.texi (Menu-specific commands): Remove some semantics
20810 that were true in GRUB Legacy but not in GRUB 2.
20811 (submenu): New section.
20812 (false): New section.
20813 (read): New section.
20814 (true): New section.
20816 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20818 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20820 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20822 * docs/grub.texi (Simple configuration): Explain some of the
20823 current limitations of grub-mkconfig.
20824 Reported by: Leslie Rhorer.
20826 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20828 Old macs search for boot.efi rather than for bootia32.efi.
20830 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20831 * util/grub-mkrescue.in: Likewise.
20832 Suggested by: Peter Jones.
20834 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20836 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20838 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20840 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20841 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20842 (grub_lvm_mirror): New struct.
20843 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20844 (grub_lvm_iterate): Iterate only visible volumes.
20845 (grub_lvm_read): Factor out to ..
20846 (read_lv): ... this. Support mirrors.
20847 (grub_lvm_read): New wrapper function.
20848 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20849 stripped or mirrored.
20851 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20853 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20855 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20857 * docs/grub.texi (loopback): New section.
20859 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20861 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20864 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20866 * docs/grub.texi (BIOS installation): New section, partly based on
20867 previous text in other sections.
20868 (Installing GRUB using grub-install): Replace BIOS discussion with a
20870 (Images): Likewise.
20872 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20874 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20875 [HAVE_DIOCGDINFO]: Add safety checks.
20877 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20879 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20880 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20882 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20884 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20885 real_sb->size is zero (e.g. RAID-0), get the disk size from
20886 real_sb->data_size instead.
20887 Fixes Ubuntu bug #743136.
20889 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20891 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20892 printf clauses for printing size and start.
20894 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20896 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20897 Reported and tested by: Timothy Nikkel.
20899 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20901 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20902 (dirty_region_add_real): ... this.
20903 (dirty_region_add): Don't discard margin refresh when performing
20906 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20908 * grub-core/lib/relocator.c (allocate_regstart)
20909 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20910 terminals are capabple of malloc-free operation.
20911 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20912 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20914 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20916 * util/grub-setup.c: Copy the partition table zone if floppy support
20917 is disabled, even if no partition table is found.
20919 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20920 during POST if an invalid partition table is contained in the PBR
20921 of the active partition when GRUB is installed to a partition.
20923 2011-03-28 Colin Watson <cjwatson@debian.org>
20925 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20928 2011-03-28 Colin Watson <cjwatson@debian.org>
20930 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20931 to be specific about what kind of RAID device we're scanning for.
20933 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20935 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20936 return freed string.
20938 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20940 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20942 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20944 Use libgeom on FreeBSD to detect partitions.
20946 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20947 (grub-mkrelpath): Likewise.
20948 (grub-script-check): Likewise.
20949 (grub-editenv): Likewise.
20950 (grub-mkpasswd-pbkdf2): Likewise.
20951 (grub-fstest): Likewise.
20952 (grub-mkfont): Likewise.
20953 (grub-mkdevicemap): Likewise.
20954 (grub-probe): Likewise.
20955 (grub-setup): Likewise.
20956 (grub-ofpathname): Likewise.
20957 (grub-mklayout): Likewise.
20958 (example_unit_test): Likewise.
20959 (grub-menulst2cfg): Likewise.
20960 * grub-core/Makefile.core.def (grub-emu): Likewise.
20961 (grub-emu-lite): Likewise.
20962 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20963 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20964 define HAVE_DIOCGDINFO.
20965 (follow_geom_up) [FreeBSD]: New function.
20966 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20967 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20968 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20969 unconditionally of HAVE_DIOCGDINFO.
20971 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20973 Fix FreeBSD compilation problem.
20975 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20976 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20978 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20980 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20981 Switch back to page zero before loading a kernel, since some kernel
20982 drivers expect that.
20983 Thanks to: Felix Kuehling.
20985 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20987 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20988 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20989 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20991 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20993 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20994 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20996 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20998 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20999 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21000 malloc is disabled.
21002 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21004 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21005 for modules headers when counting the needed allocation size.
21007 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21009 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21010 if no ASCII character is found to prevent crash.
21012 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21014 * grub-core/video/bitmap.c (match_extension): Ignore case.
21016 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21018 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21020 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21022 * grub-core/script/parser.y: Declare "time" as valid argument.
21024 2011-03-23 Peter Jones <pjones@redhat.com>
21026 Fix incorrect assert failure reporting.
21028 * grub-core/tests/example_functional_test.c (example_test): Add
21030 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21031 (failure_start): ...this. Check that malloc succeeded.
21032 Don't call xvasprintf. Return failure struct.
21033 (failure_append_vtext): New function.
21034 (failure_append_text): Likewise.
21035 (add_failure): Likewise.
21036 (grub_test_assert_helper): Likewise.
21037 * include/grub/test.h (grub_test_assert_helper): New declaration.
21038 (grub_test_assert): Macro rewritten.
21040 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21042 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21044 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21046 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21048 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21050 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21051 into GRUB-style one.
21053 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21055 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21056 error and not grub_errno.
21057 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21059 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21061 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21062 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21064 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21066 * grub-core/efiemu/i386/pc/cfgtables.c
21067 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21068 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21069 (grub_xnu_unlock): Likewise.
21070 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21072 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21074 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21075 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21076 * grub-core/commands/hashsum.c (aliases): Likewise.
21077 * grub-core/commands/setpci.c (pci_registers): Likewise.
21078 * grub-core/disk/usbms.c (attach_hook): Likewise.
21079 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21080 (zio_checksum_table): Likewise.
21081 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21082 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21083 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21084 * grub-core/lib/relocator.c (leftovers): Likewise.
21085 (extra_blocks): Likewise.
21086 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21087 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21088 (modules_last): Likewise.
21089 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21090 (devices): Likewise.
21091 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21092 (modules_last): Likewise.
21093 * grub-core/normal/auth.c (users): Likewise.
21094 * grub-core/normal/context.c (initial_menu): Likewise.
21095 (current_menu): Likewise.
21096 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21097 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21098 (grub_serial_terminfo_input_template): Likewise.
21099 (grub_serial_terminfo_output_template): Likewise.
21100 (grub_serial_terminfo_input): Likewise.
21101 (grub_serial_terminfo_output): Likewise.
21102 (registered): Likewise.
21103 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21105 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21107 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21108 grub_video_mode_type_t.
21109 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21110 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21111 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21113 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21115 * util/grub-install.in: Correct the x86-64 name as x86_64.
21117 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21119 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21120 initial chunk read from the kernel always includes GRUB's multiboot
21121 header, which is now outside the first sector.
21123 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21125 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21126 cached mmap_size, so that this works correctly when called multiple
21128 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21130 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21132 * docs/grub.texi (Simple configuration): Tidy up formatting.
21134 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21136 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21137 Set-but-not-used variable removed.
21139 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21141 Workaround yet another IEEE1275 bug.
21143 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21144 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21145 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21146 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21148 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21149 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21151 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21153 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21156 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21158 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21159 empty, since in that case we can only generate either nothing or a
21160 syntactically invalid configuration file.
21161 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21163 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21165 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21166 (Making a GRUB bootable CD-ROM): Likewise.
21167 (Invoking grub-mkrescue): New section.
21168 Reported by: Yann Dirson. Fixes Debian bug #612585.
21170 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21172 * util/grub-install.in: Remove unnecessary brackets from tr
21174 * util/grub.d/10_hurd.in: Likewise.
21175 * util/grub.d/10_kfreebsd.in: Likewise.
21176 * util/grub.d/10_linux.in: Likewise.
21177 * util/grub.d/20_linux_xen.in: Likewise.
21178 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21180 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21182 * include/grub/file.h (not_easly_seekable): Rename to ...
21183 (not_easily_seekable): ... this. Update all users.
21185 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21187 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21190 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21192 * util/grub-mkimage.c (generate_image): Refuse to create the images
21193 bigger than the actual flash (512K) in Loongson machines. 512K is also
21194 the biggest chip supported by them.
21196 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21198 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21200 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21202 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21203 super_offset field.
21205 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21207 * util/grub-install.in: Ignore install device on platforms
21208 where it doesn't make sense. Always use UUIDs except on pc, efi and
21210 Reported by: Daniel Kahn Gillmor.
21212 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21214 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21216 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21218 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21219 (iterate_real): Don't rely on partition being non-NULL.
21221 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21223 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21224 supported platforms. Put a compile time assert for this rather than
21225 generate a warning with 32-bit shift.
21227 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21229 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21230 logical expression more readable.
21232 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21234 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21235 even if some elements have a name.
21236 Reported by: Alexander GQ Gerasiov.
21238 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21240 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21241 path unreadable if `grub-probe -t abstraction' fails, for example if
21242 memberlist fails on an LVM volume group.
21243 Reported by: Darius Jahandarie.
21245 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21247 * docs/grub.texi (Simple configuration): Document
21248 GRUB_PRELOAD_MODULES.
21250 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21252 * .bzrignore: Remove nonexistent grub-pbkdf2.
21254 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21256 * configure.ac: Bump version to 1.99~rc1.
21258 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21260 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21263 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21265 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21268 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21270 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21272 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21274 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21277 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21279 Fix compilation on cygwin.
21281 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21282 -R .drectve on cygwin.
21283 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21284 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21285 (COND_CYGWIN): New condition.
21286 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21287 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21288 not @TARGET_OBJ2ELF@.
21289 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21290 type to determine whether aux is to be used.
21292 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21294 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21295 realpath'ed device string.
21296 Handle floppy (somewhat).
21297 Issue error in unknown case rather than garbage.
21298 Reported by: Axel Beckert.
21300 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21302 * util/grub.d/00_header.in (load_video): Handle the case when no video
21304 Thanks to: Axel Beckert.
21306 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21308 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21309 variable. Fixes problem on big endian platforms.
21311 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21313 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21314 It doesn't work well there.
21316 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21318 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21320 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21321 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21324 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21326 Use alias->path rather than buggy "canon".
21328 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21329 (ofdisk_hash_add): New argument curcan. All users updated.
21331 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21333 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21335 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21337 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21338 loadmask before doing any calculations. Use correct type for offset.
21339 (grub_linux_load64): Likewise.
21341 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21343 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21345 (console_grub_equivalences_unshift): Likewise.
21346 Reported by: Daniel Dehennin.
21348 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21350 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21351 (set_env_limn_ro): Likewise.
21352 (GRUB_MOD_INIT): Likewise.
21353 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21354 ARRAY_SIZE while on it.
21355 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21356 * grub-core/normal/context.c (grub_env_export): Move from here ...
21357 * grub-core/kern/env.c (grub_env_export): ... here.
21358 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21360 * grub-core/kern/main.c (grub_main): Export root and prefix.
21361 * include/grub/env.h (grub_env_export): Export.
21362 Reported by: Seth Goldberg.
21364 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21366 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21367 Take into account space used by ELF sections and multiboot palette.
21368 Reported by: Grégoire Sutre.
21370 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21374 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21376 Pass more appropriate video id to Linux.
21378 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21379 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21381 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21382 shift params->lfb_size.
21383 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21385 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21387 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21389 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21391 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21392 separator and pass bootpath/devid even if only one of them is available.
21393 Reported by: Seth Goldberg.
21395 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21397 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21398 implementations bug on them.
21400 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21402 (filter_memory_map): Likewise.
21404 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21406 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21407 Reported by: nebuchadnezzar.
21409 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21411 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21412 Reported by: nebuchadnezzar.
21414 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21416 Submenu default support.
21418 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21419 auto_boot. All users updated.
21421 Handle chosen and default with submenus.
21422 (grub_menu_execute_with_fallback): Declared static.
21423 Don't notify failure if autobooted. Upper level does it.
21424 (menuentry_eq): New function.
21425 (get_entry_number): Use menuentry_eq.
21426 (show_menu): New parameter "autobooted". All users updated.
21427 (grub_show_menu): Likewise.
21428 * include/grub/normal.h (grub_show_menu): Likewise.
21429 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21430 (grub_menu_execute_with_fallback): Likewise.
21432 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21434 * util/grub-mklayout.c (usage): Update help text.
21436 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21438 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21440 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21442 * util/grub-menulst2cfg.c (main): Trim the line.
21444 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21446 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21447 (grub_machine_init): Don't check amount of low memory as reportedly
21448 INT 12h can be broken and if low memory is too low we wouldn't have
21449 gotten into grub_machine_init anyway.
21451 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21453 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21454 (grub_machine_mmap_iterate): Take low memory into account
21456 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21458 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21460 Reported by: TiCPU.
21462 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21464 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21467 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21469 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21470 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21472 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21474 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21475 openbsd and netbsd types being in part_bsd module.
21477 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21479 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21480 (_FILE_OFFSET_BITS): Likewise.
21481 Reported by: Seth Goldberg.
21483 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21485 * configure.ac: Check for libdevmapper header.
21487 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21489 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21491 (fzap_lookup): Likewise.
21492 (dnode_get): Likewise.
21493 (make_mdn): Likewise.
21494 (zfs_mount): Likewise.
21495 (fzap_iterate): Use temporary pointer to avoid aliasing.
21496 (grub_zfs_read): Likewise.
21497 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21498 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21499 pointers to avoid aliasing.
21500 (grub_cmd_xnu_kernel64): Likewise.
21501 (grub_xnu_load_driver): Likewise.
21503 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21505 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21507 (grub_cmd_terminal_output): Likewise.
21508 Reported and tested by: Grégoire Sutre.
21510 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21512 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21514 Reported and tested by: Grégoire Sutre.
21516 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21518 * configure.ac: Do CPU substitution even if it's specified explicitly.
21519 Reported and tested by: Alain Greppin.
21521 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21523 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21524 Reported and tested by: Alain Greppin.
21526 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21528 Satisfy some bison versions need for inttypes.h.
21530 * grub-core/lib/posix_wrap/inttypes.h: New file.
21531 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21532 (int16_t): Likewise.
21533 (int32_t): Likewise.
21534 (int64_t): Likewise.
21535 Reported and tested by: Alain Greppin.
21537 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21539 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21540 Silence spurious warning.
21541 Reported and tested by: Alain Greppin.
21543 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21545 * docs/grub.texi (Support automatic decompression): Update with xz
21546 decompression support.
21548 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21550 Improve loaders' kernel command line handling.
21552 * grub-core/lib/cmdline.c: New file.
21553 * include/grub/lib/cmdline.h: Likewise.
21554 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21555 grub_create_loader_cmdline to create kernel command line.
21556 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21557 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21558 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21559 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21560 (linux): Add lib/cmdline.c on common.
21562 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21564 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21565 inopos might be unaligned.
21567 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21569 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21570 endian transformations.
21571 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21572 Based on report by: Doug Nazar.
21574 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21576 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21577 array->members[i].start_sector.
21578 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21580 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21582 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21583 Reported and tested by: Grégoire Sutre.
21585 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21587 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21588 avoid causing test failures by clearing the screen.
21590 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21592 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21593 Fix prefix check to handle the case where dir ends with a slash
21594 (most significantly, "/" itself).
21595 Reported by: Michael Vogt.
21597 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21599 Run terminfo_cls on initing terminfo output to clear the screen and
21600 move the cursor to (0,0).
21602 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21603 Call grub_terminfo_output_init.
21604 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21605 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21606 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21608 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21610 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21613 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21615 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21618 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21620 The E820 type 5 is BADRAM, not EXEC_CODE.
21622 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21623 (GRUB_E820_BADRAM): New define.
21624 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21625 into reserved. Propagate BADRAM.
21626 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21627 (GRUB_E820_BADRAM): New define.
21629 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21631 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21632 Ignore the memory post-4G.
21633 (grub_relocator_firmware_alloc_region): Additional debug statement.
21635 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21637 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21639 Reported by: David Pravec.
21641 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21643 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21646 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21648 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21650 (grub_reed_solomon_recover): Likewise.
21652 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21654 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21656 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21658 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21661 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21663 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21664 descriptions of extract_legacy_entries_source and
21665 extract_legacy_entries_configfile.
21666 Reported by: Seung Soo, Ha.
21668 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21670 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21671 on devices that do not implement function 0.
21673 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21675 * grub-core/fs/hfsplus.c: Make parent unsigned.
21676 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21678 (grub_hfsplus_cmp_extkey): Likewise
21680 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21682 * util/grub-install.in: Correctly use bootloader_id and not
21683 GRUB_DISTRIBUTOR on efibootmgr line.
21685 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21687 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21689 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21691 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21692 Xen and reorder menu item wording to make it clearer that this entry
21693 will launch Xen. Print separate messages when loading Xen and
21696 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21698 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21699 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21700 loop in case of incorrect amiga partmap.
21702 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21704 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21705 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21708 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21710 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21712 Reported by: crocket
21714 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21716 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21718 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21720 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21722 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21724 (grub_cmd_xnu_kextdir): Likewise.
21725 (grub_cmd_xnu_splash): Likewise.
21727 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21729 Avoid using Reed-Solomon with 0 redundancy.
21731 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21732 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21734 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21735 (grub_reed_solomon_recover): Likewise.
21737 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21739 Don't use disk subsystem in freebsd_boot.
21741 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21742 (freebsd_biosdev): Likewise.
21743 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21744 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21746 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21748 Handling of files of unknown size is currently limited. They can't be
21749 used e.g. for initrd or modules. Moreover gzip handling of not
21750 easily seekable files is buggy. Disable unknown file size for now. May
21751 be inefficient but works.
21753 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21754 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21756 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21758 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21761 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21763 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21765 2010-12-25 Shea Levy <shlevy>
21767 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21769 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21771 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21772 Windows Server 2008.
21773 Reported by: Devin Giddings.
21775 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21777 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21778 writing an error message because of async power management.
21779 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21780 (grub_reboot): Likewise.
21782 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21784 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21785 keep unit tests from failing when they shouldn't.
21787 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21789 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21790 previous patch increased the size of the RS code by 20 bytes (at
21791 least with gcc-4.4), so increase this by 20 bytes to match.
21792 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21794 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21796 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21797 scratch area. Make sure to initialise chosen in standalone mode as
21798 well as non-standalone.
21799 Reported by: Robert Hooker and Andy Whitcroft.
21800 Tested by: Andy Whitcroft.
21802 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21804 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21805 constructing a new unescaped string and passing it to grub_xputs in
21806 one go, rather than passing characters to grub_printf one at a time.
21808 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21810 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21811 initialising utf16.
21813 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21815 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21816 comment. Add an extra layer of quotation, requiring the output of
21817 this function to be used in a printf format string.
21818 (gettext_printf): New function.
21819 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21820 Extract translatable strings from here-documents and use a temporary
21821 variable instead, so that xgettext can find them.
21822 * util/grub.d/10_kfreebsd.in: Likewise.
21823 * util/grub.d/10_linux.in: Likewise.
21824 * util/grub.d/20_linux_xen.in: Likewise.
21826 * po/grub.d.sed: New file.
21827 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21828 arguments. Set c-format flags on all strings extracted from
21829 util/grub.d/ (xgettext refuses to include these itself for strings
21830 it extracted from a shell file, but these really are c-format).
21832 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21834 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21835 Avoid next pointing to nowhere.
21837 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21839 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21840 rather than assuming than rootblock is exactly in the middle.
21841 (grub_affs_label): Likewise.
21843 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21845 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21846 reserved_first_sector to 0.
21847 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21848 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21849 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21851 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21853 Fix handling of UTF-16 UDF labels.
21855 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21856 (read_string): .. here.
21857 (grub_udf_label): Use read_string.
21859 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21861 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21862 editor under argument scope.
21863 Reported by: Jordan Uggla
21865 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21867 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21869 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21871 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21872 line, and other keys scroll an entire page (previous handling was
21873 for \r and \n to scroll a page and other keys to scroll two lines).
21875 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21877 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21878 Set ptrdest to correct get_physical_target_address rather than
21879 incorrect get_virtual_current_address.
21881 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21883 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21884 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21886 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21888 * .bzrignore: Ignore grub-core/rs_decoder.S.
21890 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21892 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21893 .mo/.mo.gz opening sequence to ...
21894 (grub_mofile_open_lang): ... here.
21895 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21896 * util/grub.d/00_header.in (grub_lang): Include country part of
21898 Reported by: Mario Limonciello.
21900 2010-12-09 Robert Millan <rmh@gnu.org>
21902 * NEWS: Document addition of ZFS support.
21904 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21906 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21907 rather than `/ 2', as the latter requires -Wa,--divide which would
21908 require bumping our minimum binutils version.
21910 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21912 * util/grub-script-check.c (main): Print script line number on
21915 2010-12-01 Robert Millan <rmh@gnu.org>
21917 * grub-core/fs/zfs/zfs.c: New file.
21918 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21919 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21920 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21921 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21923 * include/grub/zfs/dmu.h: Likewise.
21924 * include/grub/zfs/dmu_objset.h: Likewise.
21925 * include/grub/zfs/dnode.h: Likewise.
21926 * include/grub/zfs/dsl_dataset.h: Likewise.
21927 * include/grub/zfs/dsl_dir.h: Likewise.
21928 * include/grub/zfs/sa_impl.h: Likewise.
21929 * include/grub/zfs/spa.h: Likewise.
21930 * include/grub/zfs/uberblock_impl.h: Likewise.
21931 * include/grub/zfs/vdev_impl.h: Likewise.
21932 * include/grub/zfs/zap_impl.h: Likewise.
21933 * include/grub/zfs/zap_leaf.h: Likewise.
21934 * include/grub/zfs/zfs.h: Likewise.
21935 * include/grub/zfs/zfs_acl.h: Likewise.
21936 * include/grub/zfs/zfs_znode.h: Likewise.
21937 * include/grub/zfs/zil.h: Likewise.
21938 * include/grub/zfs/zio.h: Likewise.
21939 * include/grub/zfs/zio_checksum.h: Likewise.
21941 * Makefile.util.def: Build ZFS into libgrubmods.
21942 * grub-core/Makefile.core.def: Build zfs.mod.
21944 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21946 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21948 * grub-core/commands/wildcard.c (match_files): Likewise.
21950 2010-11-30 Robert Millan <rmh@gnu.org>
21952 * grub-core/loader/i386/bsd.c
21953 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21954 whether kernel is loaded using grub_loader_is_loaded(), rather
21955 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21956 certain error conditions.
21958 2010-11-30 Robert Millan <rmh@gnu.org>
21960 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21961 (grub_cmd_echo): Call grub_refresh() after printing a message.
21963 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21965 Avoid using tricks for initialising endian variables.
21967 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21969 (GRUB_MOD_INIT): Don't byte-swap.
21970 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21971 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21972 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21973 (grub_swap_bytes32_compile_time): Likewise.
21974 (grub_cpu_to_le32_compile_time): Likewise.
21975 (grub_cpu_to_le16_compile_time): Likewise.
21977 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21979 * util/grub-setup.c (setup): Stop recommending --force. People who
21980 understand the dangers of blocklists are able to find this option
21981 anyway and the ones who don't shouldn't use it anyway.
21983 2010-11-26 Robert Millan <rmh@gnu.org>
21985 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21988 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21990 Fix LVM-on-RAID probing.
21992 * util/grub-probe.c (probe): Remember which disk was detected as
21993 RAID (perhaps an LVM physical volume). Use that disk's raidname
21994 rather than that of the top-level disk.
21996 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21998 Fix cmdline argument quotes for setparams command of menuentry
22001 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22002 quotes for arguments.
22003 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22004 grub_strchrsub function instead.
22006 * include/grub/misc.h (grub_strchrsub): New function.
22008 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22010 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22011 effort by skipping "." and ".." entries up-front.
22012 Suggested by: Michael Lazarev.
22014 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22016 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22017 ldflags to ldadd, to fix link line ordering.
22018 (none_decompress): Likewise.
22020 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22022 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22024 (grub-emu-lite): Remove kern/emu/cache.S.
22026 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22028 * util/deviceiter.c (compare_devices): If the by-id link for a
22029 device couldn't be resolved, fall back to sorting by the by-id link
22030 rather than segfaulting.
22031 Reported and tested by: Daniel Mierswa.
22033 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22035 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22036 ldflags, to fix link line ordering.
22038 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22040 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22041 linkers are picky about this.
22043 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22045 * grub-core/Makefile.am (command.lst): Adjust sed expression
22046 ordering so that extended and priority commands aren't treated as
22049 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22051 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22052 Remove byte-swapping function calls, which are not valid in
22053 structure initialisers.
22054 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22056 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22057 grub_gpt_partition_type_bios_boot.
22059 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22061 Fix test program build on GNU/kFreeBSD.
22063 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22064 $(LIBNVPAIR)' library dependencies.
22066 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22068 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22070 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22072 * util/grub-install.in: Remove excessive quoting that broke
22073 installations to RAID devices.
22075 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22077 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22078 bootloader version instead of 0.
22080 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22082 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22085 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22087 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22088 retrieve the metadat sector if size isn't known.
22089 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22091 2010-11-18 Robert Millan <rmh@gnu.org>
22093 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22094 with grub_memcmp().
22096 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22098 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22100 Reported by: Jordan Uggla.
22102 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22104 Make better UTF compliant.
22106 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22107 sequences as incorrect.
22108 (grub_is_valid_utf8): Likewise.
22109 (grub_utf8_to_ucs4): Likewise.
22110 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22111 (grub_ucs4_to_utf8_alloc): Likewise.
22112 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22114 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22116 Make legacy_source behave like source.
22118 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22120 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22122 2010-11-16 Colin Watson <cjwatson@debian.org>
22124 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22125 (-Wunused implies -Wunused-parameter, but not vice versa).
22127 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22129 * configure.ac: Make error messages less confusing by testing for
22130 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22131 accepted, but produces a diagnostic if something else is wrong).
22133 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22135 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22136 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22138 (grub_keyboard_controller_init)
22139 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22140 read the initial state since controller isn't inited yet.
22142 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22144 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22145 allocate_regbeg may need to create new chunk header.
22147 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22149 Fix quoting in legacy parser.
22151 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22153 (grub_legacy_parse): Likewise.
22154 Reported by: Jordan Uggla.
22155 Tested by: Jordan Uggla.
22157 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22159 Don't add -lgcc on i386 and x86_64.
22161 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22162 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22163 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22165 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22167 * configure.ac: Add -Wno-trampolines when supported.
22169 2010-11-14 Modestas Vainius <modax@debian.org>
22171 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22174 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22176 Add generic logical block size support for UDF.
22178 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22179 (GRUB_UDF_BLKSZ): Removed.
22180 (struct grub_udf_data): New field "lbshift" to hold the logical block
22181 size of the file system in log2 format. All users updated.
22182 (sblocklist): Change type to unsigned.
22183 (grub_udf_mount): Change type of "sblklist" to unsigned.
22184 Move AVDP search before VRS recognition, because the latter requires
22185 knowledge of the logical block size, which is detected during the
22187 Detect and validate logical block size during AVDP search, adding
22188 support for block sizes 512, 1024 and 4096.
22189 Make VRS recognition independent of block size.
22191 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22193 Properly handle deleted files on UDF.
22195 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22196 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22199 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22201 Support reading files larger than 2 GiB.
22203 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22204 "offset" to grub_off_t.
22205 (grub_udf_read_file): Likewise for parameter "pos".
22207 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22209 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22211 (Simple configuration): Refer to Changes from GRUB Legacy about
22212 save_env availability.
22214 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22216 * util/grub-install.in: Ignore empty partition table detection
22217 instead of trying to include part_ module.
22219 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22221 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22222 LVM on RAID support.
22224 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22226 Properly define WORDS_BIGENDIAN in wrapped environments.
22228 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22230 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22232 Reported by: Manoel Rebelo Abranches.
22233 Tested by: Manoel Rebelo Abranches.
22235 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22237 * util/grub-mkconfig.in: Fix quoting.
22239 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22241 Support big ext2 files.
22243 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22244 (grub_ext2_read_block): Support triple indirect blocks.
22245 (grub_ext2_read_file): Use 64-bit types and read size_high.
22246 (grub_ext2_open): Read size_high.
22247 Reported by: Ximin Luo.
22248 Tested by: Manoel Rebelo Abranches.
22250 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22252 * util/grub-install.in: Handle filenames containing spaces.
22253 Reported by: Jordan Uggla.
22254 Tested by: Jordan Uggla.
22256 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22258 * util/grub-mkconfig.in (grub_script_check): New variable.
22259 Use grub_script_check instead of grub-script-check.
22260 Reported by: Barry Jackson.
22262 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22264 * docs/grub.texi (menu): Correct the order.
22265 Reported by: D. Hugh Redelmeier.
22267 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22269 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22272 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22274 * include/grub/elfload.h (grub_elf32_size): New parameter.
22276 Return maximum segments alignment.
22277 (grub_elf64_size): Likewise.
22278 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22279 Return maximum segments alignment.
22280 (grub_elf64_size): Likewise.
22281 * grub-core/loader/powerpc/ieee1275/linux.c:
22282 (grub_linux_claimmap_iterate): New function. Uses the
22283 "available" property in the "memory" node for memory allocation
22284 for kernel in the PowerPC loader.
22285 (grub_linux_load32): Correctly find linux entry point offset.
22286 (grub_linux_load64): Likewise.
22288 2010-11-07 Robert Millan <rmh@gnu.org>
22290 On mips-yeeloong, build with -march=loongson2f when this flag is
22291 available (GCC >= 4.4).
22292 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22294 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22295 or otherwise add -march=mips3.
22297 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22299 Suppress shell expansion on echo '*' and echo "*" like cases.
22300 Reported by: Jordan Uggla.
22302 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22303 string arguments before shell expansion.
22304 * tests/grub_cmd_echo.in: New testcases.
22306 2010-11-07 Robert Millan <rmh@gnu.org>
22308 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22311 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22313 * grub-core/kern/emu/hostdisk.c
22314 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22316 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22318 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22319 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22320 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22322 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22324 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22326 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22328 * util/grub-install.in: Replace useless recomendation to pass
22329 --modules with a recomendation to report a bug.
22331 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22333 Properly register serial terminfo.
22334 Reported by: Jordan Uggla
22336 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22338 (grub_serial_terminfo_output_template): Likewise.
22339 (grub_cmd_serial): Register "serial" with terminfo.
22340 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22341 grub_serial_terminfo_output.
22343 2010-11-05 Robert Millan <rmh@gnu.org>
22345 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22348 2010-11-05 Robert Millan <rmh@gnu.org>
22350 On Yeeloong, pass machine type information to Linux.
22352 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22353 (LOONGSON_MACHTYPE): New macro, set to
22354 "machtype=lemote-yeeloong-2f-8.9inches".
22355 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22356 additional argument to Linux.
22358 2010-11-04 Robert Millan <rmh@gnu.org>
22360 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22361 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22362 (its SATA disks are detected as slaveless IDE master drives on
22364 Reported by Carsten Aulbert.
22366 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22368 * util/bin2h.c (main): Fix spelling error in generated output.
22370 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22372 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22374 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22376 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22377 vga= option is supplied.
22379 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22381 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22382 * util/grub.d/10_kfreebsd.in: Likewise.
22383 * util/grub.d/10_linux.in: Likewise.
22384 * util/grub.d/20_linux_xen.in: Likewise.
22386 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22388 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22389 argument as an argument to no-argument option.
22391 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22393 * util/grub.d/10_linux.in: Add missing load_video with explicit
22394 GRUB_GFXPAYLOAD_LINUX.
22396 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22398 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22400 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22402 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22403 elements with invlid index.
22404 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22405 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22407 * include/grub/raid.h (grub_raid_member): New struct.
22408 (grub_raid_array): Transform devices and start_sector into usage of
22409 grub_raid_member. All users updated
22410 (allocated_devs): New member.
22412 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22414 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22417 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22419 NetBSD build fix for getline function conflict from gnulib.
22421 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22422 components that depend on gnulib headers.
22423 (libgrubmods.a): Renamed from earlier libgrub.a.
22424 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22426 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22428 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22429 install rather than creating a broken install.
22431 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22433 * util/grub-setup.c (argp): Remove misleading example of installing to
22436 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22438 * util/grub-setup.c (setup): Clarify the error message.
22440 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22442 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22444 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22446 * grub-core/kern/emu/misc.c
22447 (grub_make_system_path_relative_to_its_root)
22448 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22450 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22452 * grub-core/kern/emu/misc.c
22453 (grub_make_system_path_relative_to_its_root): Revert r2882.
22455 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22457 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22458 useless field head. All users updated.
22459 (free_subchunk): Correct handling of IN_REGION subchunk.
22461 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22463 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22464 (Supported kernels): Likewise.
22466 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22468 Make mktemp invocations portable.
22470 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22471 exit if mktemp fails.
22472 * tests/grub_script_blockarg.in: Likewise.
22473 * tests/partmap_test.in: Likewise.
22474 * tests/util/grub-shell-tester.in: Likewise.
22475 * tests/util/grub-shell.in: Likewise.
22476 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22477 * Makefile.am: Likewise, and chain shell commands with `&&'
22479 * util/grub-mkrescue.in: Use the same explicit template as above, and
22480 exit if mktemp fails.
22482 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22484 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22485 Linux kernel, reported by Dennis Schridde.
22487 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22489 * grub-core/normal/auth.c (grub_auth_check_authentication):
22490 Set-but-not-used variable removed.
22492 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22494 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22495 32-bit linux protocol.
22497 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22499 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22500 cursor shape for sanity.
22502 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22504 * docs/grub.texi (Installation): Document buggy BIOS install.
22506 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22508 * docs/grub.texi (Installation): Indent.
22510 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22512 * util/grub-setup.c (setup): New parameter allow_floppy.
22513 (arguments): New member allow_floppy.
22514 (argp_parser): Handle --allow-floppy.
22515 (main): Pass allow_floppy.
22516 * util/grub-install.in: New option --allow-floppy passed though to
22519 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22521 * util/grub-install.in: Handle partitionless disks.
22523 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22525 * util/grub-setup.c (setup): Don't clean blocklists before readability
22528 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22530 * docs/grub.texi (Installation): Document embedding zone. Remove
22531 obsolete grub-install example.
22533 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22535 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22536 Set-but-not-used variable ifdef'ed.
22537 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22538 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22540 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22541 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22542 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22543 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22544 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22545 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22546 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22547 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22548 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22549 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22550 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22553 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22555 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22556 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22559 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22561 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22562 synonym to _S5_. Needed for some DSDTs.
22564 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22566 Userspace ACPI parser debugging.
22568 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22569 headers and add relevant defines. Don't include standard headers.
22570 (main) [GRUB_DSDT_TEST]: New function.
22571 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22572 Don't declare functions.
22574 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22576 Remove dead grub_efi_mm_fini.
22578 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22579 (ALLOCATED_PAGES_SIZE): Likewise.
22580 (MAX_ALLOCATED_PAGES): Likewise.
22581 (allocated_pages): Likewise.
22582 (grub_efi_allocate_pages): Don't record allocated pages.
22583 (grub_efi_free_pages): Likewise.
22584 (grub_efi_mm_init): Likewise.
22585 (grub_efi_mm_fini): Removed.
22587 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22589 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22590 (grub_efi_mm_init): Take into account the memory map size increase.
22592 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22594 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22595 (serial_hw_put): Wait based on real time rather than port reads. Don't
22597 * include/grub/serial.h (grub_serial_port): New field broken.
22599 2010-10-16 Robert Millan <rmh@gnu.org>
22601 * grub-core/kern/emu/misc.c
22602 (grub_make_system_path_relative_to_its_root): Fix premature return
22603 when processing non-root ZFS filesystems.
22604 Reported by Sergio Talens-Oliag.
22606 2010-10-15 Robert Millan <rmh@gnu.org>
22608 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22609 guarantee compressed ones are processed first.
22611 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22613 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22614 grub_efiemu_autocore.
22616 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22618 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22620 (grub_console_getkey): Use correct jae opcode rather than ja.
22622 2010-10-12 Robert Millan <rmh@gnu.org>
22624 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22625 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22626 variable. All references updated.
22628 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22630 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22632 Correctly distinguish mdraid flavours.
22634 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22635 (insert_array): New argument raid.
22636 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22637 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22638 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22640 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22642 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22643 handling of special keys.
22645 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22647 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22648 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22650 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22652 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22653 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22655 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22656 Use right endpoint when querying descriptor.
22658 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22660 Clear out 0x80 color bit on EFI.
22662 Reported by: decoder and meta tech.
22664 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22665 (grub_console_setcolorstate): Clear out 0x80 bit.
22666 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22667 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22668 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22670 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22672 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22675 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22677 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22678 mo_file after freeing.
22680 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22682 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22684 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22686 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22689 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22691 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22694 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22696 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22698 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22699 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22700 and terminfo.h when needed.
22701 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22702 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22703 (terminfo): Enable only on terminfokernel.
22704 (extcmd): Likewise.
22705 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22706 * include/grub/lib/arg.h: Likewise.
22707 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22708 incorrect usage of ->.
22710 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22712 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22713 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22715 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22717 Fix coreboot compilation.
22719 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22720 Take VBE info into account even if only text is supported.
22721 (fill_vbe_info): Take into account the case when only VGA text
22723 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22724 on coreboot, multiboot and qemu.
22726 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22728 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22730 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22732 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22734 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22737 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22739 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22740 if they were BSD-style.
22742 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22744 * grub-core/boot/i386/pc/lnxboot.S: Replace
22745 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22746 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22748 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22750 Write embedding zone using Reed-Solomon.
22752 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22753 * grub-core/Makefile.am (rs_decoder.S): New target.
22754 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22755 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22756 (multiboot): Move to RS part.
22757 (post_reed_solomon): New label.
22758 (grub_boot_drive): Move to non-RS part since it's modified in memory
22760 Include rs_decoder.S.
22761 * grub-core/lib/reed_solomon.c: New file.
22762 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22764 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22765 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22766 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22767 * include/grub/partition.h (grub_partition_map): Change prototype of
22768 embed to allow returning additional sectors.
22769 * include/grub/reed_solomon.h: New file.
22770 * util/grub-setup.c (setup): Handle Reed-Solomon.
22772 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22774 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22775 i386 and x86-64 definedness tests.
22777 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22779 Fix generation of kernel_syms.lst
22781 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22784 2010-09-26 Robert Millan <rmh@gnu.org>
22786 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22788 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22789 the pool is an array of devices, iterate through it and return the
22790 first device that passes a stat() test (instead of blindly returning
22793 2010-09-26 Robert Millan <rmh@gnu.org>
22795 Build fixes for GNU/kFreeBSD.
22797 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22798 to programs that require ZFS conversion.
22799 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22800 kernels that don't have FLOPPY_MAJOR.
22802 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22804 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22806 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22808 Fix grub-emu build.
22810 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22811 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22812 mdraid09 and mdraid1x.
22814 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22816 Re-enable grub-extras.
22818 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22819 avoid confusing Automake. Run autogen only twice, once for the top
22820 level and once for grub-core. Add Makefile.util.def and
22821 Makefile.core.def from extra modules to the appropriate autogen
22822 invocations. If Makefile.common exists in an extra module, include
22823 it in both Makefile.util.am and grub-core/Makefile.core.am;
22824 similarly, include any Makefile.util.common file in Makefile.util.am
22825 and any Makefile.core.common file in grub-core/Makefile.core.am.
22826 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22827 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22828 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22829 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22831 * gentpl.py (gvar_add): Turn GVARS into a set.
22832 (global_variable_initializers): Sort global variables on output.
22833 (vars_init): New function.
22834 (first_time): Likewise.
22835 (library): Ensure that non-global variable initialisations are
22836 emitted before the first time we emit code for a library block.
22837 Append to variables rather than setting them. Only emit
22838 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22839 each conditional path.
22840 (program): installdir() emits an Autogen macro, so must be passed to
22841 var_add rather than gvar_add.
22843 (script): Likewise.
22844 (rules): New function, centralising handling for different target
22845 types. Set up Guile association lists for first_time and vars_init,
22846 and send most output to a diversion so that variable initialisations
22847 can be emitted first.
22848 (module_rules): Use new rules function.
22849 (kernel_rules): Likewise.
22850 (image_rules): Likewise.
22851 (library_rules): Likewise.
22852 (program_rules): Likewise.
22853 (script_rules): Likewise.
22854 (data_rules): Likewise.
22856 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22858 * .bzrignore: Add contrib and grub-core/contrib. Remove
22859 grub-core/Makefile.gcry.am.
22861 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22863 * grub-core/lib/LzFind.c: Add missing include.
22864 * grub-core/lib/LzmaEnc.c: Likewise.
22865 * grub-core/script/lexer.c: Likewise.
22866 * grub-core/script/yylex.l: Likewise.
22867 * util/grub-macho2img.c: Likewise.
22868 * util/grub-menulst2cfg.c: Likewise.
22869 * util/grub-mklayout.c: Likewise.
22870 * util/grub-mkpasswd-pbkdf2.c
22871 * util/grub-mkrelpath.c: Likewise.
22872 * util/resolve.c: Likewise.
22874 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22876 * Makefile.util.def (example_unit_test): Add
22877 grub-core/gnulib/libgnu.a.
22879 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22881 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22883 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22885 Support xz compression on yeeloong.
22887 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22888 * configure.ac: Check for LZMA.
22889 * grub-core/Makefile.core.def (xz_decompress): New target.
22890 (none_decompress): Likewise.
22891 * grub-core/boot/decompressor/minilib.c: New file.
22892 * grub-core/boot/decompressor/none.c: Likewise.
22893 * grub-core/boot/decompressor/xz.c: Likewise.
22894 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22895 * grub-core/kern/mips/cache_flush.S: Likewise.
22896 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22897 * grub-core/kern/mips/startup.S: Move first stage to ...
22898 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22900 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22901 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22902 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22903 Allocate statically.
22904 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22905 Allocate statically or use scratch. Don't check CRC32.
22906 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22907 Allocate statically. Don't check CRC32.
22908 * include/grub/decompressor.h: New file.
22909 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22911 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22912 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22913 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22914 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22915 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22916 * util/grub-mkimage.c (grub_compression_t): New type.
22917 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22918 (image_target_desc): New field default_compression.
22919 (image_targets): Adjust yeeloong targets.
22920 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22921 (compress_kernel): New parameter comp.
22922 (generate_image): Likewise. Handle new compression case.
22923 (options): New option --compression
22925 (main): Handle new option.
22927 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22929 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22931 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22933 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22934 typo in __i386__ conditional.
22936 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22938 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22941 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22943 Implement EFI and ACPI multiboot2 extensions.
22945 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22946 new tags as supported.
22947 (acpiv2_size): New function.
22948 (grub_multiboot_get_mbi_size): Take new tags into account.
22949 (grub_multiboot_make_mbi): Add new tags.
22950 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22952 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22954 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22955 Added missing configuration of USB device.
22957 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22959 * grub-core/normal/menu_entry.c (run): Make sure we always return
22962 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22964 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22965 NumberOfPages is UINT64 according to the UEFI specification, not
22966 UINTN. Fix printf format.
22968 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22970 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22971 `err' to grub_usb_err_t.
22972 Reported and tested by: KESHAV P.R.
22974 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22976 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22977 tpart non-const, so that we can assign to it. (Since this is a
22978 typedef, the constness refers to the pointer rather than what it
22981 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22983 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22984 $(top_srcdir)/grub-core/gnulib as well as
22985 $(top_builddir)/grub-core/gnulib.
22986 Reported by: KESHAV P.R.
22988 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22990 * util/grub-install.in: Fix the bootloader ID option to be
22991 consistently --bootloader-id, not --bootloader_id.
22992 Reported by: KESHAV P.R.
22994 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22996 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22997 check hash checksum." consistently translatable.
22999 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23001 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23004 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23006 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23007 (GRUB_MOD_INIT): Register sha1sum command.
23008 (GRUB_MOD_FINI): Unregister sha1sum command.
23010 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23012 Keep boot and grub directory names in sync with utils scripts
23014 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23015 * config.h.in: Add previous macros.
23016 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23017 * util/grub-install.in: Use $bootdir and $grubdir variables.
23019 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23021 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23022 convert partition names to disk names if the new `convert' parameter
23024 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23025 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23026 disk in its own right. This can happen with Xen disk images.
23028 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23030 * util/grub-editenv.c: Update strings to avoid warnings when generating
23032 * util/grub-setup.c: Likewise.
23034 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23036 * configure.ac: Change version to 1.99~beta0.
23038 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23040 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23042 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23044 * include/multiboot.h: Resynced with specification.
23045 * include/multiboot2.h: Likewise.
23047 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23049 Fix po directory handling.
23051 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23052 * grub-core/gnulib/Makefile.am: Import gettext module.
23053 * m4/gnulib-cache.m4: Likewise.
23054 * m4/gnulib-comp.m4: Likewise.
23055 * m4/gettext.m4: New file, from gnulib.
23056 * m4/glibc2.m4: Likewise.
23057 * m4/iconv.m4: Likewise.
23058 * m4/intdiv0.m4: Likewise.
23059 * m4/intl.m4: Likewise.
23060 * m4/intldir.m4: Likewise.
23061 * m4/intlmacosx.m4: Likewise.
23062 * m4/intmax.m4: Likewise.
23063 * m4/inttypes-pri.m4: Likewise.
23064 * m4/lcmessage.m4: Likewise.
23065 * m4/lib-ld.m4: Likewise.
23066 * m4/lib-link.m4: Likewise.
23067 * m4/lib-prefix.m4: Likewise.
23068 * m4/lock.m4: Likewise.
23069 * m4/nls.m4: Likewise.
23070 * m4/po.m4: Likewise.
23071 * m4/printf-posix.m4: Likewise.
23072 * m4/progtest.m4: Likewise.
23073 * m4/threadlib.m4: Likewise.
23074 * m4/uintmax_t.m4: Likewise.
23075 * m4/visibility.m4: Likewise.
23076 * po/Makefile.am: Remove.
23077 * po/Makefile.in.in: New file, from gettext.
23078 ($(DOMAIN).pot-update): Support POTFILES-shell.
23079 * po/Makevars: New file.
23080 * po/POTFILES-shell: Rename to ...
23081 * po/POTFILES-shell.in: ... this. Update.
23082 * po/POTFILES: Rename to ...
23083 * po/POTFILES.in: ... this. Update.
23084 * po/Rules-quot: New file, from gettext.
23085 * po/boldquot.sed: Likewise.
23086 * po/en@boldquot.header: Likewise.
23087 * po/en@quot.header: Likewise.
23088 * po/insert-header.sin: Likewise.
23089 * po/quot.sed: Likewise.
23090 * po/remove-potcdate.sin: Likewise.
23092 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23094 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23096 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23098 * util/grub.d/20_linux_xen.in: Use submenus.
23100 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23104 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23105 parameter submenu. All users updated.
23106 * grub-core/normal/main.c (free_menu): Rename to ...
23107 (grub_normal_free_menu): ... this. Made global.
23108 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23110 * grub-core/normal/menu_entry.c (screen): New field submenu.
23111 (make_screen): Set submenu.
23112 (run): Open new context if requested.
23113 * include/grub/menu.h (grub_menu_entry): New field submenu.
23114 * include/grub/normal.h (grub_normal_free_menu): New proto.
23116 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23118 Menu entries extractor.
23120 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23122 (GRUB_MOD_INIT): Register new variants.
23123 (GRUB_MOD_FINI): Unregister new variants.
23124 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23125 into grub_cmd_legacy_source.
23126 (grub_cmd_legacy_source): Implement extractor variants.
23127 (GRUB_MOD_INIT): Register new variants.
23128 (GRUB_MOD_FINI): Unregister new variants.
23129 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23131 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23132 search as an extractor.
23133 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23134 test as an extractor.
23135 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23137 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23138 (grub_env_new_context): New function.
23139 (grub_env_context_open): Likewise.
23140 (grub_env_extractor_open): Likewise.
23141 (grub_env_extractor_close): Likewise.
23142 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23143 grub_extractor_level.
23144 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23145 * include/grub/env.h (grub_env_extractor_open): New proto.
23146 (grub_env_extractor_close): Likewise.
23147 * include/grub/normal.h (grub_extractor_level): New external variable.
23149 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23151 Make cutmem accept a region specification.
23152 Suggested by: Samuel Thibault
23154 * grub-core/mmap/mmap.c (parsemem): New function.
23155 (grub_cmd_cutmem): Handle new arguments.
23157 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23159 New command cutmem.
23161 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23162 (GRUB_MOD_INIT): Register new command.
23163 (GRUB_MOD_FINI): Unregister new command.
23165 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23167 Support some annoying BSD and Minix subpartitions.
23169 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23170 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23171 Properly handle concatenation.
23172 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23173 * grub-core/normal/completion.c (iterate_partition): Likewise.
23174 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23175 contain partition. All users updated.
23176 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23178 (grub_openbsdlabel_partition_map): Likewise.
23179 (bsdlabel_partition_map_iterate): Rename to ..
23180 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23181 (bsdlabel_partition_map_iterate): New function.
23182 (netopenbsdlabel_partition_map_iterate): Likewise.
23183 (netbsdlabel_partition_map_iterate): Likewise.
23184 (openbsdlabel_partition_map_iterate): Likewise.
23185 (GRUB_MOD_INIT): Register new partmaps.
23186 (GRUB_MOD_FINI): Unregister new partmaps.
23187 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23188 (grub_partition_msdos_iterate): ... this. All users updated.
23189 Don't support embedding other than in a minix partition.
23190 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23192 * include/grub/partition.h (grub_partition): New field msdostype.
23193 * util/grub-install.in: Handle openbsd and netbsd types being in
23196 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23198 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23200 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23201 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23202 (mdraid09): ... this.
23203 (mdraid1x): New module.
23204 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23205 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23207 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23209 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23212 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23214 * grub-core/commands/efi/lsefimmap.c: Correct header.
23217 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23219 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23220 as printf format strings; the translations might contain '%' which
23221 could cause a crash.
23223 * util/grub-fstest.c (argp_parser): Likewise.
23224 * util/grub-setup.c (argp_parser): Likewise.
23227 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23229 Use argp in grub-fstest.
23231 * util/grub-fstest.c: Don't include getopt.h.
23233 (root): New variable.
23234 (args_count): Likewise.
23236 (num_disks): Likewise.
23237 (images): Likewise.
23239 (debug_str): Likewise.
23241 (options): Transformed to argp.
23243 (main): Split argument parsing into ...
23244 (argp_parser): ... this. Changed to argp format.
23245 (argp): New variable.
23246 (main): Use argp_parse.
23248 2010-09-20 Tristan Gingold <gingold@free.fr>
23249 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23250 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23252 * grub-core/commands/efi/lsefimmap.c: New file.
23253 * grub-core/Makefile.core.def (lsefimmap): New module.
23254 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23256 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23258 Pause the execution (10s max) if any errors are displayed so the user
23259 has a chance to see them.
23261 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23262 (grub_print_error): Increment grub_err_printed_errors.
23263 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23264 execution if any errors were displayed.
23265 (show_menu): Remove old code for pause.
23266 * grub-core/normal/menu_entry.c (run): Likewise.
23267 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23269 (grub_normal_get_char_counter): Likewise.
23270 * include/grub/err.h (grub_err_printed_errors): New external variable.
23271 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23273 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23275 Support multiboot VBE info.
23277 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23278 Take VBE info into account.
23279 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23280 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23281 Call fill_vbe_info when appropriate.
23282 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23283 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23285 (grub_multiboot_get_mbi_size): Take new tags into account.
23286 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23287 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23288 Call fill_vbe_tag when appropriate.
23289 (grub_multiboot_make_mbi): Properly align tags.
23290 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23292 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23294 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23296 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23298 Suport manual terminal geometry specification.
23300 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23301 Save state in grub_ofconsole_terminfo_output.
23302 (grub_ofconsole_term): Use grub_terminfo_getwh.
23303 (grub_ofconsole_getwh): Removed.
23304 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23305 (grub_serial_term): Use grub_terminfo_getwh.
23306 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23307 (options): New struct.
23308 (OPTION_*): New enum.
23309 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23310 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23312 (grub_terminfo_getwh): New proto.
23313 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23315 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23317 Handle legacy "terminal" command.
23319 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23321 (legacy_commands): Add terminal and title.
23322 (grub_legacy_parse): Handle terminal. Simplify title handling.
23324 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23326 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23327 parameters overflow.
23329 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23331 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23334 * docs/grub.texi (Shell-like scripting): Document `!'.
23335 (Network): Simplify using new i386-pc-pxe format. Mention
23340 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23342 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23343 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23346 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23348 * grub-core/commands/efi/lsefisystab.c: Correct header.
23349 * grub-core/commands/efi/lssal.c: Likewise.
23350 * grub-core/commands/testload.c: Likewise.
23352 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23354 * util/grub-mkrescue.in: Add explicit root argument to --set to
23355 prevent the UUID being interpreted as an argument to --set (matches
23356 previous change to prepare_grub_to_access_device).
23358 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23360 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23361 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23362 the verbosity of later #ifs.
23363 (find_partition_start): Define this function on FreeBSD too.
23364 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23366 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23369 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23371 * util/grub-editenv.c: Use argp instead of getopt.
23373 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23375 * util/grub-setup.c: Use argp instead of getopt.
23377 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23379 Use gnulib-tool to create gnulib source files.
23381 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23382 grub-core/gnulib directories
23383 * .bzignore: Add **/.deps and autogenerated gnulib files
23384 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23385 of gnulib macros, add grub-core/gnulib/Makefile
23386 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23387 include m4 directory to aclocal.
23388 * Makefile.util.def: Remove direct compilation of gnulib source files
23389 and use the new grub-core/gnulib/libgnu.a.
23390 * build-aux/config.rpath: move config.rpath from top directory to
23392 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23394 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23395 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23396 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23398 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23401 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23403 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23404 grub-core/genmod.sh and grub-core/gensyminfo.sh
23406 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23408 Add a test for echo command options.
23410 * tests/grub_cmd_echo.in: New test.
23411 * Makefile.util.def: Rules for new test.
23413 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23415 Remove crc.mod and move crc command to hashsum.mod.
23416 Remove lib/crc.c - users updated to use gcrypt implementation.
23418 * grub-core/commands/crc.c: Removed.
23419 * grub-core/Makefile.core.def (crc): Module removed.
23420 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23421 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23422 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23423 * grub-core/lib/crc.c: Removed.
23424 * include/grub/lib/crc.h: Removed.
23425 * Makefile.util.def (crc): Remove lib/crc.c
23426 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23427 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23428 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23429 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23430 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23431 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23433 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23435 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23437 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23439 Split config.h for util and core.
23441 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23442 (ADDR32): Likewise.
23443 (DATA32): Likewise.
23444 (BSS_START_SYMBOL): Likewise.
23445 (END_SYMBOL): Likewise.
23446 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23447 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23448 * config.h.in: New file.
23449 * configure.ac: Use config-util.h as config define file.
23450 Rename MACHINE into GRUB_MACHINE. All users updated.
23451 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23453 (NESTED_FUNC_ATTR): Likewise.
23454 Substitue new variables.
23455 (COND_HAVE_ASM_USCORE): New conditional.
23456 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23457 (kernel_syms.lst): Use ASM_PREFIX.
23458 * grub-core/kern/emu/console.c: Include config-util.h.
23459 * grub-core/kern/emu/misc.c: Likewise.
23460 * grub-core/kern/emu/mm.c: Likewise.
23461 * include/grub/emu/misc.h: Likewise.
23462 * include/grub/libgcc.h: Likewise.
23464 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23466 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23468 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23469 Fix GRUB_TERM_KEY_* constants usage.
23470 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23472 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23474 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23476 * grub-core/bus/usb/uhci.c: Remove empty define.
23477 (grub_uhci_check_transfer): Add missing cast.
23478 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23480 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23482 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23484 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23486 * grub-core/Makefile.core.def (legacycfg): Add
23487 lib/i386/pc/vesa_modes_table.c on emu.
23489 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23491 Reduce number of temporary files generated by build system.
23493 * grub-core/gencmdlist.sh: Removed.
23494 * grub-core/genfslist.sh: Removed.
23495 * grub-core/genhandlerlist.sh: Removed.
23496 * grub-core/genmodsrc.sh: Removed.
23497 * grub-core/genpartmaplist.sh: Removed.
23498 * grub-core/genparttoollist.sh: Removed.
23499 * grub-core/gentermiinallist.sh: Removed.
23500 * grub-core/genvideolist.sh: Removed.
23502 * grub-core/genmod.sh.in: New file.
23503 * grub-core/gensyminfo.sh.in: New file.
23505 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23506 * conf/Makefile.extra-dist: Update with new files.
23507 * gentpl.py: Remove rules related to unnecessary temporary files.
23508 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23510 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23512 * grub-core/bus/usb/uhci.c: Remove empty #define.
23513 * grub-core/genmoddep.awk: Updated with new syminfo format.
23514 * util/bash-completion.d/Makefile.am: Add config.log to
23517 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23519 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23521 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23523 * util/grub-mkconfig.in: Check the config script for syntax errors
23526 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23527 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23529 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23531 * util/grub-install.in: Add EFI and IEEE1275 support.
23532 * util/i386/efi/grub-install.in: Removed.
23533 * util/ieee1275/grub-install.in: Likewise.
23535 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23537 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23538 (grub_cmd_cmosclean): Likewise.
23539 (GRUB_MOD_INIT): Register command cmosclean.
23540 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23541 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23543 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23544 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23545 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23547 Add keyboard layouts support.
23549 * Makefile.util.def (grub-mklayout): New file.
23550 (grub-kbdcomp): New script.
23551 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23552 Add keyboard_layouts.h.
23553 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23554 commands/boot.c on yeeloong.
23555 (keylayouts): New module.
23556 * grub-core/bus/usb/ohci.c
23557 * grub-core/bus/usb/uhci.c
23558 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23559 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23560 (attach_root_port): Likewise.
23561 (poll_nonroot_hub): Likewise.
23562 (grub_usb_poll_devices): Likewise.
23563 (detach_device): Close transfer.
23564 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23566 (grub_usb_bulk_setup_readwrite): Likewise.
23567 (grub_usb_bulk_finish_readwrite): Likewise.
23568 * grub-core/commands/keylayouts.c: New file.
23569 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23570 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23572 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23573 support scancode 2.
23574 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23575 * include/grub/keyboard_layouts.h: New file.
23576 * util/grub-mklayout.c: New file.
23577 * util/grub-kbdcomp.in: Likewise.
23579 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23581 Unify memory types.
23583 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23584 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23586 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23587 (grub_upper_mem): Likewise.
23588 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23589 * include/grub/memory.h (grub_memory_type_t): New enum.
23592 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23594 * grub-core/Makefile.core.def (lsapm): New module.
23595 * grub-core/commands/i386/pc/lsapm.c: New file.
23596 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23597 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23599 * include/grub/i386/pc/apm.h: New file.
23600 * include/multiboot.h (multiboot_apm_info): New struct.
23602 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23604 GRUB-legacy configuration file support.
23606 * Makefile.util.def (grub-menulst2cfg): New util.
23607 * docs/man/grub-menulst2cfg.h2m: New file.
23608 * grub-core/Makefile.core.def (legacycfg): New module.
23609 * grub-core/commands/legacycfg.c: New file.
23610 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23611 (grub_normal_add_menu_entry): ... this.
23612 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23613 (grub_normal_set_password): ...this.
23614 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23615 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23616 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23617 * grub-core/lib/legacy_parse.c: New file.
23618 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23619 * include/grub/i386/pc/vesa_modes_table.h: New file.
23620 * include/grub/legacy_parse.h: Likewise.
23621 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23622 * util/grub-menulst2cfg.c: New file.
23624 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23626 * grub-core/kern/emu/hostdisk.c
23627 (convert_system_partition_to_system_disk): Initialise node.
23629 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23631 * grub-core/kern/emu/hostdisk.c
23632 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23634 Reported and based on patch by: Modestas Vainius.
23636 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23638 Fix DM-RAID probing with recent versions of device-mapper udev
23641 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23642 canonicalise device paths under /dev/mapper/.
23643 (convert_system_partition_to_system_disk): Compare the
23644 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23645 path, since device nodes under /dev/mapper/ are often symlinks.
23647 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23649 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23651 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23653 * configure.ac: Avoid some annoying error messages if freetype-config
23654 program is not found.
23656 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23658 Support RAID on virtio devices, and others.
23660 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23662 [__MINGW32__] (grub_find_device): ... this.
23663 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23664 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23665 reasonable default if dir is NULL.
23666 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23668 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23669 (grub_guess_root_device): Update callers.
23670 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23672 * util/raid.c (grub_util_getdiskname): Remove.
23673 (grub_util_raid_getmembers): Use grub_find_device rather than
23674 grub_util_getdiskname.
23676 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23678 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23679 needing to be compiled with serial support.
23680 (ls): Indicate that multiple files are accepted.
23681 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23682 indicate that multiple files are accepted.
23684 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23686 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23687 libgrub_a_init.c, and util/bash-completion.d/grub.
23689 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23691 * util/grub-setup.c (setup): Fix incorrect container semantics.
23693 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23695 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23697 Reported by: J. Nick Terry
23699 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23701 Move embedding routines to partmap sources files.
23703 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23704 [GRUB_UTIL]: New variable.
23705 (gpt_partition_map_iterate): Set part.parent.
23706 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23707 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23708 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23710 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23711 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23712 (grub_partition_map) [GRUB_UTIL]: New field embed.
23713 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23714 (setup): Use ->embed.
23716 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23718 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23720 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23721 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23723 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23725 Add function to get completions from usage.
23727 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23728 completions from usage. Use LC_ALL=C to get options properly.
23730 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23732 * grub-core/gnulib/basename-lgpl.c: Imported.
23733 * grub-core/gnulib/basename.c: Likewise.
23734 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23735 * grub-core/gnulib/dirname.c: Likewise.
23736 * grub-core/gnulib/dirname.h: Likewise.
23737 * grub-core/gnulib/stripslash.c: Likewise.
23739 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23741 * grub-core/gnulib/error.c: Resynced.
23742 * grub-core/gnulib/getopt.c: Likewise.
23743 * grub-core/gnulib/getopt_int.h: Likewise.
23744 * grub-core/gnulib/regex.h: Likewise.
23745 * grub-core/gnulib/regex_internal.c: Likewise.
23746 * grub-core/gnulib/regex_internal.h: Likewise.
23748 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23750 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23751 CRC calculations and validity checks.
23752 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23755 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23757 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23759 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23761 Fix incorrect echo options handling.
23762 Reported by: Yves Blusseau.
23764 * include/grub/command.h (grub_command_flags_t): New flags
23765 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23766 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23767 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23769 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23771 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23773 (GRUB_COMMAND_FLAG_MENU): Likewise.
23774 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23775 (GRUB_COMMAND_FLAG_TITLE): Removed.
23776 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23777 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23778 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23779 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23780 (grub_command_flags_t): New enum. All users updated.
23782 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23784 Fix solaris compilation.
23786 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23787 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23788 (grub-emu-list): Likewise.
23790 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23792 Remove deprecated root command.
23794 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23797 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23799 * util/i386/pc/grub-setup.c: Merge this ...
23800 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23801 * util/grub-setup.c: ... into this.
23802 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23805 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23807 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23810 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23812 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23815 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23817 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23818 explicit root argument to set to prevent UUID to be interpreted as
23821 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23823 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23825 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23827 Don't export grub_gate_a20.
23829 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23830 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23832 (grub_gate_a20): ... this. All users updated.
23833 * include/grub/i386/pc/init.h: Removed. All users updated.
23835 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23837 Create euro.pf2 which supports most European languages.
23839 * Makefile.am (grubdata_DATA): Add euro.pf2.
23840 (euro.pf2): New target.
23841 (CLEANFILES): Add euro.pf2.
23843 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23845 * configure.ac: Disable emu-usb by default to prevent inadvertent
23848 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23850 Disable usbserial on grub-emu since our libusb code isn't good enough
23853 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23854 (usbserial_pl2303): Likewise.
23855 (usbserial_ftdi): Likewise.
23857 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23859 * include/grub/disk.h (grub_disk): Remove has_partitions.
23861 * disk/loopback.c (grub_loopback): Remove has_partitions.
23863 (options): Remove partitions. All users updated.
23864 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23865 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23866 actual partition table is found.
23868 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23870 Remove readability checks (too many false negatives).
23872 * util/grub-install.in: Remove readability checks.
23873 * util/grub-mkconfig.in: Likewise.
23874 * util/grub.d/10_hurd.in: Likewise.
23875 * util/grub.d/10_kfreebsd.in: Likewise.
23876 * util/grub.d/10_linux.in: Likewise.
23877 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23880 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23882 Enable acpi shutdown on all ACPI platforms.
23884 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23885 on coreboo, multiboot and EFI.
23886 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23887 (grub_acpi_halt): Likewise.
23888 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23889 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23890 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23891 * grub-core/lib/i386/halt.c (grub_halt)
23892 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23894 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23896 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23899 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23901 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23902 * grub-core/video/efi_uga.c: Likewise.
23904 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23906 Filter devaliases and never open same device twice.
23908 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23909 (last_ihandle): Likewise.
23910 (ofdisk_hash_ent): New member shortest.
23911 (ofdisk_hash_add): Add canonical path too.
23912 (scan): New function.
23913 (grub_ofdisk_iterate): Iterate over hashed entries.
23914 (compute_dev_path): Don't add :0.
23915 (grub_ofdisk_open): Don't really open the disk.
23916 (grub_ofdisk_close): Avoid closing unrelated disk.
23917 (grub_ofdisk_read): Implement reopen logic.
23918 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23920 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23923 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23927 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23928 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23929 right address. Add sparc64_ieee1275_ldflags.
23930 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23931 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23932 to grub_host_to_target_addr
23933 (load_image): Likewise.
23935 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23937 * grub-core/normal/completion.c (complete_file): Handle device
23939 Fix based on patch by Doug Nazar.
23941 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23943 grub-mknetdir script.
23945 * Makefile.util.def (grub-mknetdir): New module.
23946 * tests/util/grub-shell.in: Support boot=net
23947 * util/grub-mknetdir.in: New file.
23949 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23951 videoinfo on non-vbe.
23953 * grub-core/Makefile.core.def (vbeinfo): Removed.
23954 (vbetest): Removed.
23955 (videoinfo): New module.
23956 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23957 * grub-core/commands/i386/pc/vbetest.c: Removed.
23958 * grub-core/commands/videoinfo.c: New file.
23959 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23961 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23963 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23964 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23965 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23966 mode_number. New parameter mode. All users updated.
23967 (grub_video_gop_iterate): New function.
23968 (grub_video_efi_gop): New member iterate.
23969 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23970 (grub_vbe_set_video_mode): Remove setting useless fields.
23971 (vbe2videoinfo): New function.
23972 (grub_video_vbe_iterate): Likewise.
23973 (grub_video_vbe_setup): Use vbe2videoinfo.
23974 (grub_video_vbe_print_adapter_specific_info): New function.
23975 (grub_video_vbe_adapter): New fields iterate and
23976 print_adapter_specific_info.
23977 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23979 (grub_video_mode_info): New field mode_number.
23980 (grub_video_adapter): New fields iterate and
23981 print_adapter_specific_info.
23983 2010-09-13 Tristan Gingold <gingold@free.fr>
23984 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23985 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23987 * grub-core/commands/efi/lsefisystab.c: New file.
23988 * grub-core/commands/efi/lssal.c: Likewise.
23989 * grub-core/Makefile.core.def (lsacpi): New module.
23990 (lsefisystab): Likewise.
23991 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23992 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23993 (grub_efi_sal_system_table): New struct.
23994 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23995 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23996 (grub_efi_sal_system_table_platform_features): Likewise.
23997 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23998 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23999 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24000 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24002 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24004 Support explicit user claim that a device is BIOS-visible.
24006 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24007 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24008 * grub-core/kern/emu/hostdisk.c
24009 (convert_system_partition_to_system_disk): Support mdX.
24010 (find_system_device): New parameter add. All users updated.
24011 (grub_util_biosdisk_is_present): New function.
24012 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24015 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24017 Search hints support.
24019 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24022 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24024 Bash completion script for util commands
24026 * Makefile.am: Add util/bash-completion.d directory
24027 * configure.ac: Likewise.
24028 * util/bash-completion.d/Makefile.am: New file.
24029 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24031 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24033 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24034 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24035 Reported by: Yves Blusseau.
24037 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24039 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24040 partition size and offset.
24042 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24044 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24046 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24048 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24050 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24052 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24053 (grub_xvasprintf): Likewise.
24055 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24057 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24059 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24061 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24062 args ending with NULL.
24064 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24066 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24069 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24071 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24073 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24075 Shutdown using ACPI.
24077 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24078 * grub-core/commands/acpihalt.c: New file.
24079 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24080 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24081 (grub_acpi_halt): New proto.
24082 (GRUB_ACPI_SLP_EN): New const.
24083 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24084 (GRUB_ACPI_OPCODE_*): New enum.
24085 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24087 2010-09-11 Tristan Gingold <gingold@free.fr>
24088 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24089 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24091 * commands/lsacpi.c: New file.
24092 * grub-core/Makefile.core.def (lsacpi): New module.
24093 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24094 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24095 (grub_acpi_madt_entry_header): New struct.
24096 (grub_acpi_madt): Likewise.
24097 (grub_acpi_madt_entry_interrupt_override): Likewise.
24098 (grub_acpi_madt_entry_sapic): Likewise.
24099 (grub_acpi_madt_entry_lsapic): Likewise.
24100 (grub_acpi_madt_entry_platform_int_source): Likewise.
24101 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24102 (PRIuGRUB_UINT32_T): Likewise.
24103 (PRIxGRUB_UINT64_T): Likewise.
24105 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24107 Implement loading palette on ieee1275_fb.
24109 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24110 (have_setcolors): Likewise.
24111 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24112 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24113 (grub_video_ieee1275_set_palette): Implement.
24115 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24116 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24118 * util/grub-install.in (grub_partition): New variable.
24119 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24120 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24121 Fixes a bug reported by Yves Blusseau.
24123 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24127 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24128 =grub_cpu_flush_cache on all mips and not only yeeloong.
24129 * configure.ac (COND_mips): New conditional.
24130 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24132 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24133 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24134 [GRUB_LINKER_HAVE_INIT]: New function.
24135 (grub_emu_post_init): Likewise.
24136 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24137 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24138 * include/grub/cache.h (_mips): Include mips/cache.h.
24139 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24140 LVM and RAID prototypes.
24141 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24142 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24145 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24147 * util/grub-install.in: Don't try to verify core.img until after
24148 running grub-mkimage to create it.
24150 2010-09-10 Robert Millan <rmh@gnu.org>
24152 * util/grub.d/10_hurd.in: Add misc readability checks.
24153 * util/grub.d/10_kfreebsd.in: Likewise.
24154 * util/grub.d/10_linux.in: Likewise.
24156 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24158 * util/grub-install.in: ${imgext} won't be defined here until the
24159 install branch is merged. For the meantime, only verify core.img on
24160 i386-pc and sparc64-ieee1275 platforms.
24162 2010-09-10 Robert Millan <rmh@gnu.org>
24164 Solaris support in grub_find_zpool_from_dir(). Thanks
24165 Seth Goldberg for referring to getextmntent() facility.
24167 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24169 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24171 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24172 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24173 method for finding zpool name.
24175 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24177 grub-fstest needs the host and hostfs modules while other utilities
24178 actively require those modules to be absent, so grub-fstest needs
24179 its own initialisation and finalisation code.
24181 * Makefile.am (grub_fstest.pp): New target.
24182 (grub_fstest_init.lst): Likewise.
24183 (grub_fstest_init.c): Likewise.
24184 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24186 2010-09-10 Robert Millan <rmh@gnu.org>
24188 * configure.ac: Check for `struct statfs.f_fstypename' and
24189 `struct statfs.f_mntfromname'.
24191 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24192 kFreeBSD-specific code.
24194 2010-09-10 Robert Millan <rmh@gnu.org>
24196 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24197 on ZFS. Now non-main filesystems are supported as / too.
24199 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24201 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24202 and grub-core/disk/host.c to ...
24203 (grub-fstest): ... here. Having the host disk implementation
24204 present confuses grub-probe and other utility programs.
24206 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24207 when writing to a file, not when writing to stdout.
24209 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24211 * tests/partmap_test.in: New test for partitions.
24212 * Makefile.util.def: Rules for new test.
24214 2010-09-09 Robert Millan <rmh@gnu.org>
24216 * util/grub-probe.c (probe): Fix a pair of unhandled error
24219 2010-09-09 Robert Millan <rmh@gnu.org>
24221 Basic Btrfs support (detection and UUID).
24223 * grub-core/fs/btrfs.c: New file.
24224 * Makefile.util.def (library): Register btrfs.c.
24225 * grub-core/Makefile.core.def: Likewise.
24227 2010-09-08 Robert Millan <rmh@gnu.org>
24229 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24230 with (optional) parameters to specify device and relative path.
24231 * util/grub-install.in: Use is_path_readable_by_grub() to
24232 verify readability of a few critical files.
24233 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24234 verify readability of grub.cfg.new.
24236 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24238 Split minix.mod into minix.mod and minix2.mod.
24240 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24241 * grub-core/Makefile.core.def (minix2): New module.
24242 * grub-core/fs/minix.c: Use definitions instead of runtime version
24244 * grub-core/fs/minix2.c: New file.
24246 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24248 Add new --boot-directory option to replace --root-directory
24250 * util/grub-install.in: Add new --boot-directory option
24251 * util/grub-reboot.in: Likewise.
24252 * util/grub-set-default.in: Likewise.
24254 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24256 * util/grub-mkconfig.in: Use new variable.
24258 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24260 * configure.ac: Define some useful variables.
24262 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24264 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24265 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24266 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24267 Use terminfo and don't use cursor-on/cursor-off unless it's known
24269 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24270 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24272 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24274 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24275 starts with "(,", fill the drive containing the loaded image in
24276 between those two characters, but expect that a full partition
24277 specification including partition map names will follow.
24279 2010-09-08 Robert Millan <rmh@gnu.org>
24281 * configure.ac: Remove `--enable-grub-fstest' option.
24282 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24284 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24285 `grub-fstest' instead of `grub-probe' for readability verification.
24286 * util/grub-probe.c (probe): Remove readability verification kludge.
24288 2010-09-08 Robert Millan <rmh@gnu.org>
24290 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24291 initializing `GRUB_FS'.
24293 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24295 Not command (!) support to GRUB script.
24297 * tests/grub_script_not.in: New test.
24298 * Makefile.util.def: Rules for new test.
24300 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24301 ! command as a special case.
24302 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24304 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24306 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24309 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24311 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24313 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24315 * docs/grub.texi (Shell-like scripting): Documentation for break,
24316 continue, shift and return commands.
24318 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24320 Rename CD-ROM to cd on BIOS.
24322 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24324 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24326 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24328 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24329 * util/grub-probe.c (main): Likewise.
24330 * util/i386/pc/grub-setup.c (main): Likewise.
24331 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24332 Reported and debugged by: alexxy
24334 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24336 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24339 2010-09-05 Jo Shields <directhex@apebox.org>
24341 * util/grub.d/30_os-prober.in: Add missing classes.
24343 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24345 * docs/grub.texi (Theme file format): Document new position format.
24347 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24349 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24350 a table. Use @code instead of @verbatim.
24352 2010-09-05 Colin D Bennett <colin@gibibit.com>
24354 Gfxmenu documentation.
24356 * docs/grub.texi (Theme file format): New chapter.
24358 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24360 * grub-core/Makefile.core.def (xzio): New module.
24361 * grub-core/io/xzio.c: New file.
24362 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24363 * grub-core/lib/xzembed/xz_config.h: Likewise.
24364 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24365 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24366 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24367 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24368 * grub-core/lib/xzembed/xz_private.h: Likewise.
24369 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24370 * include/grub/file.h (grub_file_filter_id): New compression filter
24371 GRUB_FILE_FILTER_XZIO.
24373 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24375 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24376 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24379 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24381 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24382 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24384 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24386 Uncompressed checksum support.
24388 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24389 (check_list): New parameter uncompress.
24390 (grub_cmd_hashsum): Handle --uncompress.
24392 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24394 Reintroduce testload.
24396 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24398 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24399 (GRUB_MOD_INIT): New function.
24400 (GRUB_MOD_FINI): Likewise.
24401 * grub-core/Makefile.core.def (testload): New module.
24403 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24405 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24406 (uint8_t): New type.
24407 (uint16_t): Likewise.
24408 (uint32_t): Likewise.
24409 (uint64_t): Likewise.
24411 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24413 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24415 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24417 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24419 (grub_gzfile_open): Removed. All users updated.
24420 (GRUB_MOD_INIT): New function.
24421 (GRUB_MOD_FINI): Likewise.
24422 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24423 (grub_file_filters_enabled): Likewise.
24424 (grub_file_open): Handle filters.
24425 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24426 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24427 * include/grub/file.h (grub_file_filter_id_t): New type.
24428 (grub_file_filter_t): Likewise.
24429 (grub_file_filters_all): New extern variable.
24430 (grub_file_filters_enabled): Likewise.
24431 (grub_file_filter_register): New inline function.
24432 (grub_file_filter_unregister): Likewise.
24433 (grub_file_filter_disable): Likewise.
24434 (grub_file_filter_disable_compression): Likewise.
24435 * include/grub/gzio.h: Removed.
24437 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24439 Filename expansion support for wildcards in GRUB script.
24441 * tests/grub_script_expansion.in: New test.
24442 * Makefile.util.def: Rule for new test.
24444 * grub-core/commands/wildcard.c: New file, implements filename
24445 expansion support for GRUB script.
24446 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24447 * grub-core/script/argv.c: Cosmetic changes.
24448 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24449 Refactored to perform wildcard expansion on arguments.
24450 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24453 * tests/util/grub-shell.in: Fix quoting for read input.
24455 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24457 Support for updating environment variables with matched substrings
24460 * tests/grub_cmd_regexp.in: New test.
24461 * Makefile.util.def: Rule for new test.
24463 * grub-core/commands/regexp.c: New option -s to update environment
24464 variables with regexp matches.
24466 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24468 * include/grub/file.h (grub_file): New member not_easly_seekable.
24469 (grub_file_seekable): New inline function.
24470 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24472 (grub_gzio_open): Set not_easly_seekable.
24473 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24474 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24476 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24478 Support for options to appear multiple times on cmdline.
24480 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24481 * grub-core/commands/extcmd.c: Support for repeatable option.
24482 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24483 repeatable option support.
24485 Refactor menuentry into a regular command.
24487 * grub-core/commands/menuentry.c: New file, menuentry command
24489 * grub-core/Makefile.core.def: Rule update for normal.mod.
24490 * grub-core/normal/main.c: Moved menuentry creation to
24491 grub-core/commands/menuentry.c.
24492 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24493 (grub_menu_execute_entry_real): Removed.
24494 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24496 (grub_script_execute_menuentry): Removed.
24497 * grub-core/script/parser.y (menuentry): Removed.
24498 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24499 * grub-core/script/yylex.l (menuentry): Removed.
24500 * include/grub/menu.h (grub_menu_init): New prototype.
24501 (grub_menu_fini): New prototype.
24502 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24503 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24504 (grub_script_execute_sourcecode): New prototype.
24506 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24508 "return" command for GRUB script functions.
24510 * tests/grub_script_return.in: New test.
24511 * Makefile.util.def: Rules for new test.
24513 * grub-core/script/execute.c (grub_script_return): New function.
24514 * grub-core/script/main.c: Register/unregister return commaond.
24515 * include/grub/script_sh.h (grub_script_return): New prototype.
24517 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24519 "setparams" command to update positional parameters.
24521 * tests/grub_script_setparams.in: New test.
24522 * Makefile.util.def: Rules for new test.
24524 * grub-core/script/argv.c (grub_script_argv_make): New function.
24525 * grub-core/script/execute.c (replace_scope): New function.
24526 (grub_script_setparams): New function.
24527 * grub-core/script/lexer.c: Remove unused variables.
24528 * grub-core/script/main.c: Register/unregister setparams command.
24529 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24530 (grub_script_setparams): New prototype.
24532 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24534 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24537 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24539 Support for passing block of commands as an argument to extcmds.
24541 * Makefile.util.def: Rules for new test.
24542 * tests/grub_script_blockarg.in: New test.
24543 * grub-core/tests/test_blockarg.c: New file, block argument
24544 command used in the test.
24546 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24547 (grub_register_extcmd_prio): New function prototype.
24548 (grub_extcmd_dispatcher): New function prototype.
24549 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24551 * include/grub/script_sh.h (struct grub_script): New members
24552 `children', `next_siblings' and `refcnt' for block arguments and
24553 reference counting.
24554 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24555 (grub_script_arg): New member `script' for block argument.
24556 (grub_script_argv): New member `script' for block argument.
24557 (grub_parser_param): New member `scripts' for block argument.
24558 (grub_script_mem_free): New extern function prototype.
24559 (grub_script_ref): New function prototype.
24560 (grub_script_unref): New function prototype.
24562 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24563 extcmd form to support block arguments.
24564 * grub-core/script/argv.c: Block arguments support.
24565 * grub-core/script/execute.c: Likewise.
24566 * grub-core/script/lexer.c: Likewise.
24567 * grub-core/script/main.c: Likewise.
24568 * grub-core/script/script.c: Likewise.
24569 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24572 * grub-core/commands/acpi.c: Update extcmd implementations with
24573 grub_extcmd_context_t.
24574 * grub-core/commands/cat.c: Likewise.
24575 * grub-core/commands/echo.c: Likewise.
24576 * grub-core/commands/extcmd.c: Likewise.
24577 * grub-core/commands/hashsum.c: Likewise.
24578 * grub-core/commands/hdparm.c: Likewise.
24579 * grub-core/commands/help.c: Likewise.
24580 * grub-core/commands/hexdump.c: Likewise.
24581 * grub-core/commands/i386/cpuid.c: Likewise.
24582 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24583 * grub-core/commands/i386/pc/halt.c: Likewise.
24584 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24585 * grub-core/commands/iorw.c: Likewise.
24586 * grub-core/commands/keystatus.c: Likewise.
24587 * grub-core/commands/loadenv.c: Likewise.
24588 * grub-core/commands/ls.c: Likewise.
24589 * grub-core/commands/lspci.c: Likewise.
24590 * grub-core/commands/memrw.c: Likewise.
24591 * grub-core/commands/probe.c: Likewise.
24592 * grub-core/commands/search_wrap.c: Likewise.
24593 * grub-core/commands/setpci.c: Likewise.
24594 * grub-core/commands/sleep.c: Likewise.
24595 * grub-core/disk/loopback.c: Likewise.
24596 * grub-core/hello/hello.c: Likewise.
24597 * grub-core/loader/i386/bsd.c: Likewise.
24598 * grub-core/loader/xnu.c: Likewise.
24599 * grub-core/term/gfxterm.c: Likewise.
24600 * grub-core/term/serial.c: Likewise.
24601 * grub-core/tests/lib/functional_test.c: Likewise.
24603 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24605 Multi-line quoted strings support.
24607 * grub-core/script/lexer.c (append_newline): Removed.
24608 (grub_script_lexer_yywrap): Refactored.
24609 (grub_script_lexer_init): Refactored.
24610 * grub-core/script/yylex.l (yywrap): New function.
24611 (grub_lexer_resplit): New function.
24612 (grub_lexer_unput): New function.
24613 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24615 * tests/grub_script_echo1.in: Added few more testcases.
24617 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24619 * grub-core/kern/misc.c: Don't add abort alias in utils.
24620 Reported by: echoline.
24622 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24624 Add missing files into "make dist" tarball for other platforms.
24626 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24627 * conf/Makefile.common (dist_noinst_DATA): New variable.
24628 * conf/Makefile.extra-dist: Added missing make dist files.
24629 * grub-core/Makefile.core.def: Likewise.
24631 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24633 Compress grub_prefix.
24635 * grub-core/boot/i386/pc/lnxboot.S: Use
24636 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24637 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24638 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24639 GRUB_MACHINE_PREFIX_END. All users updated.
24640 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24641 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24643 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24644 * util/grub-mkimage.c (image_target_desc): Change data_end to
24645 prefix_end. All users updated.
24647 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24649 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24651 (grub_openbsd_boot): Likewise.
24652 (grub_netbsd_boot): Likewise.
24653 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24654 (grub_xnu_boot): Likewise.
24656 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24658 * configure.ac: Clean LIBS variable after tests.
24660 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24662 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24664 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24666 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24667 echo if libdevmapper will be used.
24669 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24671 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24672 constant for the same file.
24674 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24676 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24678 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24680 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24683 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24685 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24686 required by the boot protocol.
24688 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24689 ebp and edi members.
24690 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24691 state.ebp and state.edi.
24692 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24693 %ebp and %edi according to grub_relocator32_ebp and
24694 grub_relocator32_edi respectively.
24695 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24698 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24700 Add i386-pc-pxe image target.
24702 * util/grub-mkimage.c (image_target_desc): New enum value
24704 (image_targets): New target i386-pc-pxe.
24705 (generate_image): Handle i386-pc-pxe image.
24707 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24711 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24712 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24714 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24715 (grub_pxe_pxenv): Correct type.
24717 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24719 * NEWS: Document most of the important changes since 1.98.
24721 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24723 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24724 generated manual page) a little.
24726 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24728 * docs/grub.texi: Add myself as an author.
24730 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24732 * Makefile.util.def (libgrub.a): Add missing sunpc.
24733 Reported by: Seth Goldberg.
24735 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24737 Interrupt wrapping and code simplifications.
24739 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24740 x86_noieee1275 which are functionaly equivalent in this case.
24741 (grub-install): Make source on each platform explicit. Enable on
24743 * gentpl.py (x86_efi_pc): Removed group.
24744 (x86_noefi): Likewise.
24745 (i386_noefi): Likewise.
24746 (x86_noieee1275): Likewise.
24747 (i386_noieee1275): Likewise.
24748 (i386_noefi_noieee1275): Likewise.
24749 (i386_pc_qemu_coreboot): Likewise.
24750 (i386_coreboot_multiboot): Likewise.
24751 (i386_pc_coreboot_multiboot_qemu): Likewise.
24752 (x86_noefi_mips): Likewise.
24753 (noieee1275): Likewise.
24754 (ieee1275_mips): Likewise.
24755 (noemu_noieee1275): Likewise.
24758 (videoinkernel): Likewise.
24759 (videomodules): Likewise.
24760 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24761 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24762 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24763 include/grub/loader.h, include/grub/msdos_partition.h,
24764 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24765 include/grub/machine/console.h, include/grub/machine/vga.h,
24766 include/grub/machine/vbe.h, include/grub/machine/init.h,
24767 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24768 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24769 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24770 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24771 * grub-core/Makefile.core.def (kernel): Explicit the source for
24772 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24773 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24774 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24775 Use videoinkernel tag.
24776 (usb): Enable on all usb.
24777 (usbserial_common): Likewise.
24778 (usbserial_pl2303): Likewise.
24779 (usbserial_ftdi): Likewise.
24780 (uhci): Enable on all x86.
24781 (ohci): Enable on all pci.
24782 (cmostest): Enable on all CMOS.
24783 (acpi): Include commands/acpi.c on all platforms.
24784 (halt): Add relevant lib/*/halt.c.
24785 (hdparm): Enable on all pci.
24787 (usbtest): Enable on all usb.
24788 (ata): Enable on all pci.
24789 (ata_pthru): Likewise.
24790 (usbms): Enable on all usb.
24791 (usb_keyboard): Likewise.
24792 (font): Use tag videomodules.
24794 (datetime): Use tag cmos. Enable on all noemu.
24795 (mmap): Use tags common and x86.
24796 (gfxterm): Use tag videomodules.
24797 (bitmap): Likewise.
24798 (bitmap_scale): Likewise.
24799 (video_fb): Likewise.
24801 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24802 adjust padding accordingly. All users updated.
24803 (grub_ohci_transaction): Fix bad format specification.
24804 (GRUB_MOD_INIT): Add asserts for struct size.
24805 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24806 (grub_alloc_td): Likewise.
24807 (grub_free_queue): Likewise.
24808 (grub_uhci_transfer): Likewise.
24809 (grub_uhci_transaction): Fix bad format specification.
24810 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24811 (grub_usb_bulk_readwrite): Likewise.
24812 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24813 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24815 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24817 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24818 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24819 Transformed into C.
24820 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24821 Moved from here ...
24822 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24823 ... here. Transformed into C. Made static.
24824 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24825 Moved from here ...
24826 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24827 ... here. Transformed into C. Made static.
24828 * grub-core/kern/i386/pc/startup.S
24829 (grub_biosdisk_check_int13_extensions): Moved from here ...
24830 * grub-core/disk/i386/pc/biosdisk.c
24831 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24833 * grub-core/kern/i386/pc/startup.S
24834 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24835 * grub-core/disk/i386/pc/biosdisk.c
24836 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24837 Transformed into C. Made static.
24838 * grub-core/kern/i386/pc/startup.S
24839 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24840 * grub-core/disk/i386/pc/biosdisk.c
24841 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24842 Transformed into C. Made static.
24843 * grub-core/kern/i386/pc/startup.S
24844 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24845 * grub-core/disk/i386/pc/biosdisk.c
24846 (grub_biosdisk_get_diskinfo_standard): ... here.
24847 Transformed into C. Made static.
24848 * grub-core/kern/i386/pc/startup.S
24849 (grub_biosdisk_get_num_floppies): Moved from here ...
24850 * grub-core/disk/i386/pc/biosdisk.c
24851 (grub_biosdisk_get_num_floppies): ... here.
24852 Transformed into C. Made static.
24853 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24855 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24856 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24857 Transformed into C. Made static.
24858 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24859 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24860 Transformed into C. Made static.
24861 * grub-core/kern/i386/ieee1275/init.c: Removed.
24862 * grub-core/kern/i386/misc.S: Likewise.
24863 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24864 Splitted from here ...
24865 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24866 Transformed into C. Made static. All users updated.
24867 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24868 Transformed into C. Made static. All users updated.
24869 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24871 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24872 Transformed into C. Made static. All users updated.
24873 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24875 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24876 Transformed into C. Made static. All users updated.
24877 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24878 Removed (replaced by C version).
24879 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24881 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24882 Transformed into C. Made static.
24883 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24885 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24886 ... here. Transformed into C.
24887 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24889 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24890 ... here. Transformed into C.
24891 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24893 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24894 ... here. Transformed into C. Made static.
24895 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24897 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24898 ... here. Transformed into C.
24899 * grub-core/kern/i386/pc/startup.S
24900 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24901 * grub-core/video/i386/pc/vbe.c
24902 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24903 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24905 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24906 ... here. Transformed into C.
24907 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24909 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24910 ... here. Transformed into C.
24911 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24913 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24914 ... here. Transformed into C.
24915 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24917 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24918 ... here. Transformed into C.
24919 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24921 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24922 ... here. Transformed into C. Made static.
24923 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24925 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24926 ... here. Transformed into C. Made static.
24927 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24929 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24930 ... here. Transformed into C. Made static.
24931 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24932 pxe_rm_entry as third argument.
24933 (grub_bios_interrupt): New function.
24934 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24935 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24936 of calling grub_stop.
24937 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24938 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24939 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24940 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24941 * grub-core/lib/i386/halt.c: Moved from here ...
24942 * grub-core/lib/i386/halt.c: ... here.
24943 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24944 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24945 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24947 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24948 * include/grub/i386/coreboot/init.h: Removed.
24949 * include/grub/i386/multiboot/init.h: Likewise.
24950 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24951 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24952 * include/grub/i386/pc/int.h: New file.
24953 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24954 (grub_pxe_scan): Removed.
24955 (grub_pxe_call): Update prototype.
24956 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24958 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24959 * include/grub/i386/qemu/init.h: Removed.
24960 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24962 (grub_halt): Likewise.
24963 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24964 (grub_reboot): Likewise.
24965 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24966 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24967 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24969 2010-08-30 Robert Millan <rmh@gnu.org>
24971 * NEWS: Document addition of ZFS support in `grub-install' and
24974 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24976 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24979 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24981 Remove leftover embedding of font objects.
24983 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24984 * util/grub-install.in (font): Removed.
24985 * util/grub-mkimage.c (generate_image): Remove font support. All users
24988 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24990 Remove leftover embedding of font objects.
24992 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24993 * util/grub-install.in (font): Removed.
24994 * util/grub-mkimage.c (generate_image): Remove font support. All users
24997 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24999 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25000 Reported by: Ian Turner
25002 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25004 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25005 timeout to avoid indefinite boot stalling.
25007 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25009 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25010 (grub_env_write_color_highlight): Likewise.
25012 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25014 * grub-core/normal/term.c (print_more): Return to normal and not
25015 to standard state after printing "---MORE---".
25017 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25019 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25020 Mask out the bit 0x80 since it has other meaning that specifiing color.
25022 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25024 New relocator. Allows for more kernel support and more straightforward
25027 * Makefile.am (BOOTTARGET): New variable.
25028 (QEMU32): Likewise.
25029 (linux.init.x86_64): New target.
25030 (linux.init.i386): Likewise.
25031 (multiboot.elf): Likewise.
25032 (kfreebsd.elf): Likewise.
25033 (kfreebsd.aout): Likewise.
25034 (pc-chainloader.elf): Likewise.
25035 (pc-chainloader.bin): Likewise.
25036 (ntldr.elf): Likewise.
25037 (ntldr.bin): Likewise.
25038 (multiboot2.elf): Likewise.
25039 (kfreebsd.init.x86_64): Likewise.
25040 (kfreebsd.init.i386): Likewise.
25041 (knetbsd.init.i386): Likewise.
25042 (kopenbsd.init.i386): Likewise.
25043 (knetbsd.init.x86_64): Likewise.
25044 (kopenbsd.init.x86_64): Likewise.
25045 (linux-initramfs.i386): Likewise.
25046 (linux-initramfs.x86_64): Likewise.
25047 (kfreebsd-mfsroot.i386.img): Likewise.
25048 (knetbsd.image.i386): Likewise.
25049 (kopenbsd.image.i386): Likewise.
25050 (kopenbsd.image.x86_64): Likewise.
25051 (knetbsd.miniroot-image.i386.img): Likewise.
25052 (kfreebsd-mfsroot.x86_64.img): Likewise.
25053 (knetbsd.image.x86_64): Likewise.
25054 (knetbsd.miniroot-image.x86_64.img): Likewise.
25055 (kfreebsd-mfsroot.i386.gz): Likewise.
25056 (bootcheck-kfreebsd-i386): Likewise.
25057 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25058 (bootcheck-kfreebsd-x86_64): Likewise.
25059 (knetbsd.miniroot-image.i386.gz): Likewise.
25060 (bootcheck-knetbsd-i386): Likewise.
25061 (bootcheck-kopenbsd-i386): Likewise.
25062 (bootcheck-kopenbsd-x86_64): Likewise.
25063 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25064 (bootcheck-knetbsd-x86_64): Likewise.
25065 (bootcheck-linux-i386): Likewise.
25066 (bootcheck-linux-x86_64): Likewise.
25067 (bootcheck-linux16-i386): Likewise.
25068 (bootcheck-linux16-x86_64): Likewise.
25069 (bootcheck-multiboot): Likewise.
25070 (bootcheck-multiboot2): Likewise.
25071 (bootcheck-kfreebsd-aout): Likewise.
25072 (bootcheck-pc-chainloader): Likewise.
25073 (bootcheck-ntldr): Likewise.
25074 (CLEANFILES): Add new targets.
25075 (BOOTCHECKS): New variable.
25076 (.PHONY): Add bootchecks.
25077 (SUCCESSFUL_BOOT_STRING): New variable.
25078 (BOOTCHECK_TIMEOUT): Likewise.
25079 (bootcheck): New target
25080 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25081 * configure.ac: Correct efiemu excuse.
25082 * docs/grub.texi (Supported kernels): New chapter.
25083 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25084 include/grub/mm_private.h. Simplify inclusion of
25085 include/grub/boot.h, include/grub/loader.h
25086 and include/grub/msdos_partition.h
25087 (KERNEL_HEADER_FILES) [i386_coreboot]:
25088 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25089 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25090 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25091 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25092 include/grub/machine/loader.h.
25093 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25094 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25096 (pci.mod): Enable on i386-multiboot.
25097 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25098 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25100 (relocator.mod): Rewritten.
25101 (aout.mod): Enable on all x86.
25102 (bsd.mod): Likewise.
25103 (ntldr.mod): New module.
25104 (linux.mod): Use loader/i386/linux.c on all x86.
25105 (xnu.mod): Enable on all x86.
25106 (vga_text.mod): disable on EFI and QEMU.
25107 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25108 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25109 * grub-core/efiemu/loadcore.c: Likewise.
25110 * grub-core/efiemu/main.c: Likewise.
25111 (grub_efiemu_exit_boot_services): Removed.
25112 (grub_efiemu_finish_boot_services): Likewise.
25113 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25115 * grub-core/efiemu/i386/nocfgtables.c: New file.
25116 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25117 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25118 (grub_efi_finish_boot_services): Moved from here ...
25119 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25120 Fille finish memory map and related data.
25121 (finish_mmap_buf): New variable.
25122 (grub_efi_uintn_t finish_mmap_size): Likewise.
25123 (grub_efi_uintn_t finish_key): Likewise.
25124 (grub_efi_uintn_t finish_desc_size): Likewise.
25125 (grub_efi_uint32_t finish_desc_version): Likewise.
25126 (grub_efi_is_finished): Likewise.
25127 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25129 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25130 (grub_elf64_phdr_iterate): Likewise.
25131 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25132 (grub_os_area_size): Likewise.
25133 (grub_machine_init): Don't reserve os area.
25134 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25135 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25136 * grub-core/kern/i386/loader.S: Removed.
25137 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25138 (grub_os_area_size): Likewise.
25139 (grub_machine_init): Don't reserve os area.
25140 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25141 Don't call grub_dl_unload_all.
25142 Don't include loader.S.
25143 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25144 Declare the memory after _end as available.
25145 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25146 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25147 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25148 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25149 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25150 * include/grub/mm_private.h (grub_mm_header): ... here.
25151 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25152 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25153 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25154 (grub_mm_region): ..here. Removed addr. Added pre_size.
25156 * grub-core/kern/mm.c (base): Renamed to ...
25157 (grub_mm_base): ... this. Made global.
25158 (grub_real_malloc): Alloc from end of region.
25159 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25160 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25161 * grub-core/kern/powerpc/cache_flush.S: ... here.
25162 * grub-core/lib/efi/relocator.c: New file.
25163 * grub-core/lib/i386/relocator.c: Rewritten.
25164 * grub-core/lib/i386/relocator16.S: New file.
25165 * grub-core/lib/i386/relocator32.S: Likewise.
25166 * grub-core/lib/i386/relocator64.S: Likewise.
25167 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25168 * grub-core/lib/i386/relocator_common.S: New file.
25169 * grub-core/lib/ieee1275/relocator.c: Likewise.
25170 * grub-core/lib/mips/relocator.c: Rewritten.
25171 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25172 stylistic adjustments.
25173 * grub-core/lib/powerpc/relocator.c: New file.
25174 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25175 * grub-core/lib/relocator.c: Rewritten.
25176 * grub-core/lib/x86_64/relocator_asm.S: New file.
25177 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25178 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25179 (bsd_tag): New struct.
25180 (tags): New variable.
25181 (tags_last): Likewise.
25182 (netbsd_module): New struct.
25183 (netbsd_mods): New variable.
25184 (netbsd_mods_last): Likewise.
25185 (openbsd_opts): New parameter "serial".
25186 (OPENBSD_SERIAL_ARG): New definition.
25187 (netbsd_opts): New parameter "serial".
25188 (NETBSD_SERIAL_ARG): New definition.
25189 (grub_freebsd_add_meta): Reorganised into ...
25190 (grub_bsd_add_meta): ...this. All users updated.
25191 (grub_freebsd_add_mmap): Reorganised into ...
25192 (generate_e820_mmap): ...this...
25193 (grub_bsd_add_mmap): ...and this. All users updated.
25194 (grub_freebsd_list_modules): Use tags.
25195 (grub_netbsd_add_meta_module): New function.
25196 (grub_netbsd_list_modules): Likewise.
25197 (grub_freebsd_boot): Use relocator and finish EFI.
25198 (grub_openbsd_boot): Likewise.
25199 (grub_netbsd_setup_video): New function.
25200 (grub_netbsd_add_modules): Likewise.
25201 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25203 (grub_bsd_unload): Unload tags.
25204 (grub_bsd_load_aout): Use relocator.
25205 (grub_bsd_elf32_size_hook): New function.
25206 (grub_bsd_elf32_hook): Use relocator.
25207 (grub_bsd_elf64_size_hook): New function.
25208 (grub_bsd_elf64_hook): Use relocator.
25209 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25210 (grub_bsd_load): Zero-out openbsd_ramdisk.
25211 (grub_bsd_load): Use relocator.
25212 (grub_cmd_openbsd): Support serial.
25213 (grub_cmd_netbsd): Support modules.
25214 (grub_cmd_freebsd_module): Use relocator.
25215 (grub_netbsd_module_load): New function.
25216 (grub_cmd_netbsd_module): Likewise.
25217 (grub_cmd_openbsd_ramdisk): Likewise.
25218 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25220 (GRUB_MOD_FINI): Unregister new commands.
25221 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25222 (grub_freebsd_load_elfmodule_obj): Use relocator.
25223 (grub_freebsd_load_elfmodule): Likewise.
25224 (grub_freebsd_load_elf_meta): Likewise.
25225 (grub_netbsd_load_elf_meta): New function.
25226 (grub_openbsd_find_ramdisk): Likewise.
25227 * grub-core/loader/i386/bsd_helper.S: Removed.
25228 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25229 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25230 * grub-core/loader/i386/efi/linux.c: Likewise.
25231 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25232 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25233 (DEFAULT_VIDEO_MODE): Likewise.
25234 (real_mode_target): New variable.
25235 (prot_mode_target): Likewise.
25236 (initrd_mem_target): Likewise.
25237 (relocator): Likewise.
25238 (efi_mmap_buf): Likewise.
25239 (efi_mmap_size): Likewise.
25240 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25241 (free_pages): Use relocator.
25242 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25243 (grub_linux_setup_video): Return error.
25244 (grub_linux_trampoline_start): Removed.
25245 (grub_linux_trampoline_end): Likewise.
25246 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25247 andd video parameters depending on firmware.
25248 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25249 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25250 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25251 (grub_cmd_initrd): Use relocator.
25252 * grub-core/loader/i386/linux_trampoline.S: Removed.
25253 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25254 (elf_sec_entsize): Likewise.
25255 (elf_sec_shstrndx): Likewise.
25256 (elf_sections): Likewise.
25257 (grub_multiboot_load): Use relocator.
25258 (grub_multiboot_get_mbi_size): Account for sections.
25259 (grub_multiboot_make_mbi): Use relocator and support sections.
25260 (grub_multiboot_add_elfsyms): New function.
25261 (grub_multiboot_free_mbi): Free sections.
25262 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25263 (grub_linux_real_target): Likewise.
25264 (grub_linux_real_chunk): Likewise.
25265 (grub_linux16_prot_size): Likewise.
25266 (grub_linux16_boot): Use relocator.
25267 (grub_linux_unload): Unload relocator.
25268 (grub_cmd_linux): Use relocator.
25269 (grub_cmd_initrd): Likewise.
25270 * grub-core/loader/i386/pc/ntldr.c: New file.
25271 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25272 Don't try to guess CPU frequency.
25273 (grub_xnu_set_video): Stretch bitmap.
25274 (grub_xnu_boot): Use relocator.
25275 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25276 (grub_linux_unload): Free relocator.
25277 (grub_linux_load32): Use relocator.
25278 (grub_linux_load64): Likewise.
25279 (grub_cmd_initrd): Likewise.
25280 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25281 (grub_multiboot_unload): Unload relocator.
25282 (grub_cmd_multiboot): Use relocator.
25283 (grub_cmd_module): Likewise.
25284 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25285 Use relocator and support sections.
25286 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25287 (elf_sec_entsize): Likewise.
25288 (elf_sec_shstrndx): Likewise.
25289 (elf_sections): Likewise.
25290 (grub_multiboot_load): Use relocator.
25291 (grub_multiboot_get_mbi_size): Account for sections.
25292 (grub_multiboot_make_mbi): Use relocator and support sections.
25293 (grub_multiboot_add_elfsyms): New function.
25294 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25295 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25296 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25297 Prototype changed. All users updated.
25298 (grub_xnu_align_heap): Simplified.
25299 (grub_xnu_writetree_toheap): Likewise.
25300 (grub_xnu_unload): Unload relocator.
25301 (grub_cmd_xnu_kernel): Use relocator.
25302 (grub_cmd_xnu_kernel64): Likewise.
25303 (grub_xnu_register_memory): Simplified.
25304 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25305 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25307 (grub_console_checkkey): Likewise.
25308 (grub_console_getkey): Likewise.
25309 (grub_console_getwh): Likewise.
25310 (grub_console_getxy): Likewise.
25311 (grub_console_gotoxy): Likewise.
25312 (grub_console_cls): Likewise.
25313 (grub_console_setcolorstate): Likewise.
25314 (grub_console_setcursor): Likewise.
25315 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25316 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25317 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25318 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25319 * grub-core/tests/boot/kernel-8086.S: Likewise.
25320 * grub-core/tests/boot/kernel-i386.S: Likewise.
25321 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25322 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25323 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25324 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25325 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25326 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25327 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25328 * grub-core/tests/boot/linux.cfg: Likewise.
25329 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25330 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25331 * grub-core/tests/boot/linux16.cfg: Likewise.
25332 * grub-core/tests/boot/multiboot.cfg: Likewise.
25333 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25334 * grub-core/tests/boot/ntldr.cfg: Likewise.
25335 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25336 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25337 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25339 * include/grub/dl.h (grub_dl_unload_all): Removed.
25340 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25341 (grub_efi_finish_boot_services): Change prototype.
25342 (grub_efi_is_finished): New variable.
25343 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25345 (grub_efiemu_finish_boot_services): Removed.
25346 (grub_machine_efiemu_init_tables): New prototype.
25347 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25348 (grub_elf64_phdr_iterate): Likewise.
25349 * include/grub/i386/bsd.h: Include relocator.h.
25350 (freebsd_tag_header): New struct.
25351 (grub_openbsd_bios_mmap): Removed.
25352 (grub_unix_real_boot): Removed.
25353 (grub_freebsd_load_elfmodule32): Changed prototype.
25354 (grub_freebsd_load_elfmodule_obj64): Likewise.
25355 (grub_freebsd_load_elf_meta32): Likewise.
25356 (grub_freebsd_load_elf_meta64): Likewise.
25357 (grub_freebsd_add_meta): Removed.
25358 (grub_netbsd_load_elf_meta32): New prototype.
25359 (grub_netbsd_load_elf_meta64): Likewise.
25360 (grub_bsd_add_meta): Likewise.
25361 (grub_openbsd_ramdisk_descriptor): New struct.
25362 (grub_openbsd_find_ramdisk32): New prototype.
25363 (grub_openbsd_find_ramdisk64): Likewise.
25364 * include/grub/i386/coreboot/loader.h: Removed.
25365 * include/grub/i386/efi/loader.h: Likewise.
25366 * include/grub/i386/ieee1275/loader.h: Likewise.
25367 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25369 * include/grub/i386/loader.h: Removed.
25370 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25372 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25373 (grub_phys_addr_t): New type.
25374 (grub_vtop): New inline function.
25375 (grub_map_memory): Likewise.
25376 (grub_unmap_memory): Likewise.
25377 * include/grub/i386/multiboot/loader.h: Removed.
25378 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25379 (NETBSD_BTINFO_CONSOLE): New definition.
25380 (NETBSD_BTINFO_SYMTAB): Likewise.
25381 (NETBSD_BTINFO_MODULES): Likewise.
25382 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25383 (grub_netbsd_bootinfo): New struct.
25384 (grub_netbsd_btinfo_common): Use explicit bitsize.
25385 (grub_netbsd_btinfo_mmap_entry): Removed.
25386 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25387 (grub_netbsd_btinfo_bootdisk): New struct.
25388 (grub_netbsd_btinfo_symtab): Likewise.
25389 (grub_netbsd_btinfo_serial): Likewise.
25390 (grub_netbsd_btinfo_modules): Likewise.
25391 (grub_netbsd_btinfo_framebuf): Likewise.
25392 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25393 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25395 (grub_openbsd_bootargs): Use explicit bitsize.
25396 (grub_openbsd_bootarg_console): New struct.
25397 (GRUB_OPENBSD_COM_MAJOR): New definition.
25398 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25399 * include/grub/i386/pc/efiemu.h: Removed.
25400 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25401 * include/grub/i386/qemu/loader.h: Removed.
25402 * include/grub/i386/relocator.h: Rewritten.
25403 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25404 * include/grub/mips/memory.h: New file.
25405 * include/grub/mips/multiboot.h: Rewritten.
25406 * include/grub/mips/relocator.h: Rewritten.
25407 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25408 (grub_vtop): New function.
25409 (grub_map_memory): Likewise.
25410 (grub_unmap_memory): Likewise.
25411 * include/grub/misc.h (ALIGN_DOWN): New definition.
25412 * include/grub/mm.h (grub_mm_check_real): New proto.
25413 (GRUB_MM_CHECK): New definition.
25414 * include/grub/mm_private.h: New file.
25415 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25416 (grub_multiboot_get_mbi_size): Removed.
25417 (grub_multiboot_make_mbi): Change prottype.
25418 (grub_multiboot_set_accepts_video): New proto.
25419 (grub_multiboot_add_elfsyms): Likewise.
25420 (grub_multiboot_payload_eip): New variable.
25421 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25423 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25425 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25426 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25427 * include/grub/powerpc/ieee1275/loader.h: Removed.
25428 * include/grub/powerpc/memory.h: New file.
25429 * include/grub/powerpc/relocator.h: Likewise.
25430 * include/grub/relocator.h: Likewise.
25431 * include/grub/relocator_private.h: Likewise.
25432 * include/grub/sparc64/ieee1275/loader.h: Removed.
25433 * include/grub/x86_64/memory.h: New file.
25434 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25435 (grub_xnu_heap_malloc): Likewise.
25436 (grub_xnu_heap_real_start): Removed.
25437 (grub_xnu_heap_start): Likewise.
25438 (grub_xnu_relocator): New variable.
25439 (grub_xnu_heap_target_start): Likewise.
25440 * tests/util/grub-shell.in: Support non-pc.
25441 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25443 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25445 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25447 (grub_bidi_logical_to_visual): Check that malloc succeded.
25448 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25450 (grub_xputs_normal): Likewise.
25452 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25454 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25457 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25459 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25461 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25463 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25465 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25467 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25470 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25472 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25474 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25476 * grub-core/normal/term.c (print_more): Fix a memory leak.
25477 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25478 (grub_xputs_normal): Likewise.
25480 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25482 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25483 the begining of the string
25485 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25487 * grub-core/script/script.c (grub_script_parse): Free parsed on
25490 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25492 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25495 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25497 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25500 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25502 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25503 (scroll_up): Fix a memory leak.
25505 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25507 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25510 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25512 Handle USB pendrives exposed as floppies.
25514 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25516 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25517 Check for partitions on all devices.
25519 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25521 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25522 (readkey): Likewise.
25524 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25526 Multiple variable names support to "export" command.
25528 * normal/context.c (grub_cmd_export): "export" command supports
25529 multiple variable names.
25531 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25533 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25534 --target=drive output to Mach device name.
25536 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25538 New Automake based build system for GRUB.
25540 * ABOUT-NLS: New file.
25541 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25542 in Makefile.util.def file.
25543 * Makefile.util.def: New file. Autogen build definitions file for
25545 * conf/Makefile.common: New file. Common variables for GRUB host
25546 utils and target modules.
25547 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25548 * docs/Makefile.am: New file. Automake file for docs.
25549 * gentpl.py: New file. Python script to generate Autogen
25551 * grub-core/Makefile.am: New file. GRUB target modules' rules
25552 that doesn't fit in Makefile.core.def file.
25553 * grub-core/Makefile.core.def: New file. Autogen build
25554 definitions file for GRUB target modules.
25555 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25556 specific setjmp.S file.
25557 * po/Makefile.am: New file.
25559 * .bzrignore: New ignores.
25560 * INSTALL: New requirements, without Ruby.
25561 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25562 * autogen.sh: Updated to invoke autogen as necessary.
25563 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25564 and defines for Automake conditionals.
25565 * geninit.sh: Refactoring.
25567 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25569 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25572 * include/grub/test.h: Fix functional test modules' naming.
25573 * grub-core/tests/example_functional_test.c: Fix test module name.
25575 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25576 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25577 * util/grub-editenv.c: Likewise.
25578 * util/grub-fstest.c: Likewise.
25579 * util/grub-mkdevicemap.c: Likewise.
25580 * util/grub-mkfont.c: Likewise.
25581 * util/grub-mkimage.c: Likewise.
25582 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25583 * util/grub-probe.c: Likewise.
25584 * util/grub-script-check.c: Likewise.
25585 * util/i386/pc/grub-setup.c: Likewise.
25586 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25588 * tests/util/grub-shell.in: Fix override directory path.
25589 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25590 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25592 * util/lvm.c: Update #includes.
25593 * util/raid.c: Likewise.
25594 * util/resolve.c: Likewise.
25595 * grub-core/bus/emu/pci.c: Likewise.
25596 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25597 * grub-core/lib/posix_wrap/string.h: Likewise.
25598 * grub-core/kern/emu/main.c: Likewise.
25600 * grub-core/gensymlist.sh: New file. Script for generating kernel
25602 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25604 * grub-core/gentrigtables.c: Fix unused variable warnings.
25606 * Makefile.in: Removed.
25607 * conf/any-emu.rmk: Removed.
25608 * conf/common.rmk: Removed.
25609 * conf/i386-coreboot.rmk: Removed.
25610 * conf/i386-efi.rmk: Removed.
25611 * conf/i386-ieee1275.rmk: Removed.
25612 * conf/i386-multiboot.rmk: Removed.
25613 * conf/i386-pc.rmk: Removed.
25614 * conf/i386-qemu.rmk: Removed.
25615 * conf/i386.rmk: Removed.
25616 * conf/mips-yeeloong.rmk: Removed.
25617 * conf/mips.rmk: Removed.
25618 * conf/powerpc-ieee1275.rmk: Removed.
25619 * conf/sparc64-ieee1275.rmk: Removed.
25620 * conf/tests.rmk: Removed.
25621 * conf/x86-efi.rmk: Removed.
25622 * conf/x86_64-efi.rmk: Removed.
25623 * gendistlist.sh: Removed.
25624 * geninitheader.sh: Removed.
25625 * genkernsyms.sh.in: Removed.
25626 * genmk.rb: Removed.
25627 * gensymlist.sh.in: Removed.
25628 * mkinstalldirs: Removed.
25630 * grub-core/boot: ... to here.
25632 * grub-core/bus: ... to here.
25633 * commands: Moved ...
25634 * grub-core/commands: ... to here.
25636 * grub-core/disk: ... to here.
25637 * efiemu: Moved ...
25638 * grub-core/efiemu: ... to here.
25640 * grub-core/font: ... to here.
25642 * grub-core/fs: ... to here.
25643 * gencmdlist.sh: Moved ...
25644 * grub-core/gencmdlist.sh: ... to here.
25645 * genemuinit.sh: Moved ...
25646 * grub-core/genemuinit.sh: ... to here.
25647 * genemuinitheader.sh: Moved ...
25648 * grub-core/genemuinitheader.sh: ... to here.
25649 * genfslist.sh: Moved ...
25650 * grub-core/genfslist.sh: ... to here.
25651 * genhandlerlist.sh: Moved ...
25652 * grub-core/genhandlerlist.sh: ... to here.
25653 * genmoddep.awk: Moved ...
25654 * grub-core/genmoddep.awk: ... to here.
25655 * genmodsrc.sh: Moved ...
25656 * grub-core/genmodsrc.sh: ... to here.
25657 * genpartmaplist.sh: Moved ...
25658 * grub-core/genpartmaplist.sh: ... to here.
25659 * genparttoollist.sh: Moved ...
25660 * grub-core/genparttoollist.sh: ... to here.
25661 * genterminallist.sh: Moved ...
25662 * grub-core/genterminallist.sh: ... to here.
25663 * gentrigtables.c: Moved ...
25664 * grub-core/gentrigtables.c: ... to here.
25665 * genvideolist.sh: Moved ...
25666 * grub-core/genvideolist.sh: ... to here.
25667 * gettext: Moved ...
25668 * grub-core/gettext: ... to here.
25669 * gfxmenu: Moved ...
25670 * grub-core/gfxmenu: ... to here.
25671 * gnulib: Moved ...
25672 * grub-core/gnulib: ... to here.
25674 * grub-core/hello: ... to here.
25676 * grub-core/hook: ... to here.
25678 * grub-core/io: ... to here.
25680 * grub-core/kern: ... to here.
25682 * grub-core/lib: ... to here.
25683 * loader: Moved ...
25684 * grub-core/loader: ... to here.
25686 * grub-core/mmap: ... to here.
25687 * normal: Moved ...
25688 * grub-core/normal: ... to here.
25689 * partmap: Moved ...
25690 * grub-core/partmap: ... to here.
25691 * parttool: Moved ...
25692 * grub-core/parttool: ... to here.
25693 * script: Moved ...
25694 * grub-core/script: ... to here.
25696 * grub-core/term: ... to here
25697 * tests/example_functional_test.c: Moved ...
25698 * grub-core/tests/example_functional_test.c: ... to here.
25699 * tests/lib/functional_test.c: Moved ...
25700 * grub-core/tests/lib/functional_test.c: ... to here.
25701 * tests/lib/test.c: Moved ...
25702 * grub-core/tests/lib/test.c: ... to here.
25704 * grub-core/video: ... to here.
25706 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25708 Replace --enable-grub-emu-modules with grub-emu-lite.
25710 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25713 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25714 * kern/emu/full.c: New file. For grub-emu specific initialization.
25715 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25716 * kern/emu/main.c: Call initialization function grub_emu_init.
25718 * Makefile.in: Include grub-emu-lite in install.
25719 * commands/parttool.c: Use grub_no_autoload to differentiate
25720 between grub-emu and grub-emu-lite.
25721 * include/grub/misc.h: New variable grub_no_autoload.
25723 * conf/any-emu.rmk: New rules for grub-emu-lite.
25724 * configure.ac: Remove --enable-grub-emu-modules.
25725 * genmk.rb: Cleanup unnecessary rules.
25726 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25728 * normal/main.c: Don't load list files on grub-emu-lite.
25729 * util/misc.c (grub_arch_sync_caches): Removed.
25731 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25733 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25734 grub-mkimage rather than grub-mkelfimage.
25735 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25737 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25739 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25740 a key after CapsLock or NumLock. It's just a qemu bug.
25742 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25744 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25745 needed by libusb wrapper.
25747 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25749 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25751 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25753 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25754 --nounzip is passed.
25756 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25758 USB hotunplugging and USB serial support.
25760 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25761 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25762 (grub_uhci_transfer): Respect timeout and set *actual.
25763 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25764 non-standard length.
25765 (grub_usb_device_attach): Autoload modules.
25766 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25767 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25768 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25770 (grub_usb_add_hub): Fill nports and children.
25771 (attach_root_port): Receive hub instead of controller.
25772 All users updated. Fill hub->devices.
25773 (grub_usb_root_hub): Allocate hub->devices.
25774 (detach_device): New function.
25775 (poll_nonroot_hub): Fill children and detach devices.
25776 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25777 actual arguments. All users updated.
25778 (grub_usb_bulk_read_extended): New function.
25779 * bus/usb/serial/common.c: New file.
25780 * bus/usb/serial/ftdi.c: Likewise.
25781 * bus/usb/serial/pl2303.c: Likewise.
25782 * commands/terminal.c (handle_command): Support wildcard.
25783 * commands/usbtest.c: Output "Unknown" instead of empty string.
25784 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25785 (usbserial_common_mod_SOURCES): New variable.
25786 (usbserial_common_mod_CFLAGS): Likewise.
25787 (usbserial_common_mod_LDFLAGS): Likewise.
25788 (pkglib_MODULES): Add usbserial_pl2303.mod.
25789 (usbserial_pl2303_mod_SOURCES): New variable.
25790 (usbserial_pl2303_mod_CFLAGS): Likewise.
25791 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25792 (pkglib_MODULES): Add usbserial_ftdi.mod.
25793 (usbserial_ftdi_mod_SOURCES): New variable.
25794 (usbserial_ftdi_mod_CFLAGS): Likewise.
25795 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25796 (pkglib_MODULES): Add serial.mod.
25797 (serial_mod_SOURCES): New variable.
25798 (serial_mod_CFLAGS): Likewise.
25799 (serial_mod_LDFLAGS): Likewise.
25800 * conf/i386-pc.rmk: Likewise.
25801 * conf/mips-yeeloong.rmk: Likewise.
25802 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25803 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25804 * disk/usbms.c (first_available_slot): New variable.
25805 (grub_usbms_attach): Don't reuse free slots due to potential cache
25807 * include/grub/serial.h: Moved to ..
25808 * include/grub/ns8250.h: ...this.
25809 * include/grub/serial.h: New file.
25810 * include/grub/term.h (grub_term_poll_usb): New variable.
25811 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25812 readkey. All users updated.
25813 (grub_terminfo_output_state): Pass term to put.
25814 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25815 (grub_usb_controller_dev): Add timeout and actual arguments to
25816 transfer. All users updated.
25817 (grub_usb_interface): New field detach_data.
25818 (grub_usb_device): New fields children and nports.
25819 (grub_usb_ep_type_t): New type.
25820 (grub_usb_get_ep_type): New function.
25821 (grub_usb_bulk_read_extended): Likewise.
25822 * include/grub/usbdesc.h (grub_usb_desc): New type.
25823 * include/grub/usbserial.h: New file.
25824 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25825 * kern/term.c (grub_term_poll_usb): New variable.
25826 (grub_getkey): Call grub_term_poll_usb if set.
25827 (grub_checkkey): Likewise.
25828 (grub_getkeystatus): Likewise.
25829 * term/serial.c: Moved controller-specific parts to ...
25830 * term/ns8250.c: ... here.
25831 * term/serial.c: Mostly rewritten.
25832 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25835 2010-08-20 Robert Millan <rmh@gnu.org>
25837 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25838 a separate module and maybe other interesting combinations.
25840 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25841 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25842 (kfreebsd_entry): Add generic filesystem module load routine.
25843 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25845 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25847 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25848 "numcenter" (I misunderstood the purpose of this entry).
25849 * docs/grub.texi (sendkey): Likewise.
25851 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25853 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25854 status flag options; simply omitting the option is equivalent and
25855 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25856 (keysym_table): Rename "num5numlock" to "numlock".
25857 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25858 can uniformly say that only the last of multiple `sendkey'
25859 invocations has any effect.
25860 * docs/grub.texi (sendkey): New section.
25862 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25864 * commands/i386/pc/sendkey.c (options): Fix three typos.
25866 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25868 Implement sendkey support.
25870 * commands/i386/pc/sendkey.c: New file.
25871 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25872 (sendkey_mod_SOURCES): New variable.
25873 (sendkey_mod_CFLAGS): Likewise.
25874 (sendkey_mod_LDFLAGS): Likewise.
25876 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25878 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25879 fix warnings from Autoconf.
25881 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25883 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25884 to avoid false positives with some assemblers that output things
25885 like "someprefix_func" as part of their output.
25887 2010-08-15 Robert Millan <rmh@gnu.org>
25889 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25891 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25892 grub_get_libzfs_handle() errors.
25894 2010-08-14 Robert Millan <rmh@gnu.org>
25896 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25897 filesystem is not ZFS.
25899 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25901 Fix for misspelled color names defaulting to black/black (bug
25902 reported by Doug Nazar)
25904 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25905 status to prototype.
25906 * normal/color.c (grub_parse_color_name_pair): Return failure
25908 (grub_env_write_color_normal): Ignore bad color names.
25909 (grub_env_write_color_highlight): Likewise.
25910 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25912 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25914 "shift" command support to GRUB script.
25916 * include/grub/script_sh.h (grub_script_shift): New prototype.
25917 * script/execute.c (grub_script_shift): New function.
25918 * script/main.c (grub_script_init): Register shift command.
25919 (grub_script_fini): Unregister shift command.
25920 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25922 * tests/grub_script_shift.in: New testcase.
25923 * conf/tests.rmk: Rules for new testcase.
25925 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25927 "continue" command support to GRUB script.
25929 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25930 (grub_script_break): Continue support.
25931 * script/main.c (grub_script_init): Register continue command.
25932 (grub_script_fini): Unregister continue command.
25934 * tests/grub_script_continue.in: New testcase.
25935 * conf/tests.rmk: Rules for new testcase.
25937 2010-08-12 BVK Chaitanya <bvk@dbook>
25939 "break" command support to GRUB script.
25941 * conf/common.rmk: Rule updates to grub-script-check.
25942 * include/grub/misc.h (grub_min): New function.
25943 * include/grub/script_sh.h (grub_script_init): New prototype.
25944 (grub_script_fini): New prototype.
25945 (grub_script_break): New prototype.
25946 * script/main.c (grub_script_init): New function.
25947 (grub_script_fini): New function.
25948 * script/execute.c (grub_script_break): New function.
25949 * normal/main.c: Calls to grub_script_{init,fini}.
25950 * util/grub-script-check.c (grub_script_break): New function.
25952 * tests/grub_script_break.in: New testcase.
25953 * conf/tests.rmk: Rules for new test case.
25955 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25957 Function parameters support to GRUB script.
25959 * script/yylex.l (VARIABLE): Regular expression update.
25960 * script/function.c (grub_script_function_call): Moved ...
25961 * script/execute.c (grub_script_function_call): ... to here.
25962 (grub_script_execute_arglist_to_argv): Removed.
25963 (grub_script_arglist_to_argv): New function.
25964 * script/argv.c: New file.
25965 (grub_script_argv_free): New function.
25966 (grub_script_argv_next): Likewise.
25967 (grub_script_argv_append): Likewise.
25968 (grub_script_argv_split_append): Likewise.
25969 * include/grub/script_sh.h (grub_script_argv): New struct.
25970 (grub_script_argv_free): New function.
25971 (grub_script_argv_next): Likewise.
25972 (grub_script_argv_append): Likewise.
25973 (grub_script_argv_split_append): Likewise.
25975 * conf/common.rmk (normal.mod): New source script/argv.c.
25977 * tests/grub_script_echo1.in: More tests.
25978 * tests/grub_script_vars1.in: Likewise.
25979 * tests/grub_script_functions.in: New test case.
25980 * conf/tests.rmk: Rules for new testcase.
25982 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25984 Remove grub_script_cmdblock struct.
25986 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25987 * script/parser.y: Likewise.
25988 * script/execute.c: Rename cmdblock suffix to cmdlist.
25989 * script/script.c: Likewise.
25990 * util/grub-script-check.c: Likewise.
25992 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25994 * .bzrignore: add grub-macho2img
25996 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25998 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26000 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26002 Remove the dump of sm712 initialisation sequence.
26004 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26005 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26006 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26007 (GRUB_VGA_CR_*): Added many registers.
26008 (GRUB_VGA_SR_*): Likewise.
26009 (GRUB_VGA_GR_*): Likewise.
26010 (grub_vga_write_arx): New function.
26011 (grub_video_hw_config): New struct.
26012 (grub_vga_set_geometry): New function.
26013 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26014 GRUB_PCI_CLASS_SUBCLASS_VGA.
26015 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26016 * video/sm712.c (grub_sm712_write_reg): New function
26017 (grub_sm712_read_reg): Likewise.
26018 (grub_sm712_sr_write): Likewise.
26019 (grub_sm712_gr_write): Likewise.
26020 (grub_sm712_cr_write): Likewise.
26021 (grub_sm712_write_arx): Likewise.
26022 (grub_sm712_cr_shadow_write): Likewise.
26023 (grub_sm712_write_dda_lookup): Likewise.
26024 (grub_video_sm712_setup): Initialise the video rather then
26025 blindly replay the dump.
26026 (main) [TEST]: Add a routine to be able to compile as standalone for
26028 * video/sm712_init.c (sm712_init): Removed.
26029 (sm712_sr_seq1): New array.
26030 (sm712_sr_seq2): Likewise.
26032 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26034 * include/grub/vga.h: Add missing grub/pci.h include.
26036 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26038 * util/grub-macho2img.c (main): fix typo
26040 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26042 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26043 (grub_vga_gr_read): Likewise.
26044 (grub_vga_cr_write): Likewise.
26045 (grub_vga_cr_read): Likewise.
26046 (grub_vga_sr_write): Likewise.
26047 (grub_vga_sr_read): Likewise.
26048 (grub_vga_palette_read): Likewise.
26049 (grub_vga_palette_write): Likewise.
26050 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26051 (grub_sm712_sr_read): New function.
26052 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26053 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26055 2010-08-09 Robert Millan <rmh@gnu.org>
26057 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26058 out unused variables on non-ZFS build.
26060 2010-08-08 Robert Millan <rmh@gnu.org>
26062 Fix path generation for sub-filesystems in ZFS.
26064 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26067 2010-08-08 Robert Millan <rmh@gnu.org>
26069 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26071 2010-08-08 Robert Millan <rmh@gnu.org>
26073 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26074 exist, issue a proper error message (rely on `ls' for translated
26077 2010-08-08 Robert Millan <rmh@gnu.org>
26079 Fix grub-probe invocation.
26081 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26083 2010-08-04 Robert Millan <rmh@gnu.org>
26085 * configure.ac: Remove checks for getfsstat() and getmntany().
26086 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26087 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26088 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26089 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26090 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26092 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26093 via find_mount_point_from_dir() and getfsstat() / getmntany().
26095 2010-08-04 Robert Millan <rmh@gnu.org>
26097 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26098 (grub_find_zpool_from_mount_point): Merge into ...
26099 (grub_find_zpool_from_dir): ... this.
26100 * kern/emu/misc.c: Likewise.
26103 (grub_make_system_path_relative_to_its_root): Replace
26104 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26105 with grub_find_zpool_from_dir().
26106 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26108 2010-08-04 Robert Millan <rmh@gnu.org>
26110 Support OpenSolaris in ZFS device resolution.
26112 * configure.ac: Check for getmntany().
26113 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26114 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26117 2010-08-03 Robert Millan <rmh@gnu.org>
26119 Fix grub-emu build.
26121 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26122 * include/grub/emu/misc.h: ... here.
26124 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26125 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26127 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26128 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26129 (grub_get_libzfs_handle): Move to ...
26130 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26131 (grub_get_libzfs_handle): ... here.
26133 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26135 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26136 as command name case.
26138 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26140 * disk/raid.c (insert_array): Select unique numbers for named arrays
26141 as well, for use as keys in the disk cache.
26143 2010-08-01 Robert Millan <rmh@gnu.org>
26145 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26146 kFreeBSD device name, except on ZFS where the filesystem label is
26148 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26149 `/boot/zfs/zpool.cache'.
26150 Set mountfrom kernel variable using ${kfreebsd_device}.
26152 2010-08-01 Robert Millan <rmh@gnu.org>
26154 Make it even harder to use uninitialized `libzfs_handle' (and
26155 make the interface a bit simpler).
26157 * include/grub/util/misc.h (grub_util_init_libzfs)
26158 (libzfs_handle): Remove.
26159 (grub_get_libzfs_handle): New prototype.
26161 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26163 (grub_util_init_libzfs): Remove.
26164 (grub_get_libzfs_handle): New function.
26166 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26167 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26168 accessing `libzfs_handle' directly.
26170 2010-08-01 Robert Millan <rmh@gnu.org>
26172 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26173 (grub_find_zpool_from_mount_point): New function prototypes.
26175 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26176 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26178 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26179 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26180 `static' attribute.
26182 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26183 finding zpool from mount point into ...
26184 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26186 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26187 requested path is part of a ZFS pool, use
26188 grub_find_zpool_from_mount_point() to detect its filesystem name,
26189 and generate a path with `/fsname@path' syntax.
26191 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26193 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26194 (void) rather than () so that this is a proper prototype.
26196 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26198 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26200 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26202 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26203 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26205 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26207 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26209 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26211 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26213 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26215 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26216 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26217 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26218 disable gfxpayload.
26219 (Shell-like scripting): Add real content.
26220 (Serial terminal): Suggest `terminal_input serial; terminal_output
26221 serial' rather than putting the two commands on separate lines,
26222 since console input will be inoperative after the first command.
26223 (menuentry): Document --class, --users, and --hotkey options.
26224 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26225 Vladimir Serbinenko).
26227 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26228 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26230 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26232 2010-08-01 Robert Millan <rmh@gnu.org>
26234 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26235 (grub_find_zpool_from_mount_point): New function prototypes.
26237 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26238 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26240 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26241 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26242 `static' attribute.
26244 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26245 finding zpool from mount point into ...
26246 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26248 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26249 requested path is part of a ZFS pool, use
26250 grub_find_zpool_from_mount_point() to detect its filesystem name,
26251 and generate a path with `/fsname@path' syntax.
26253 2010-08-01 Robert Millan <rmh@gnu.org>
26255 Prevent accidental use of uninitialized libzfs_handle.
26257 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26258 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26259 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26261 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26263 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26264 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26266 2010-08-01 Robert Millan <rmh@gnu.org>
26268 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26270 2010-07-31 Robert Millan <rmh@gnu.org>
26272 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26274 2010-07-31 Robert Millan <rmh@gnu.org>
26276 * kern/emu/misc.c: Add missing license header.
26278 2010-07-31 Robert Millan <rmh@gnu.org>
26280 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26282 * include/grub/util/libnvpair.h: Include `<config.h>'.
26283 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26284 declaring libnvpair prototypes ourselves.
26285 * include/grub/util/libzfs.h: Include `<config.h>'.
26286 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26287 declaring libzfs prototypes ourselves.
26289 (libzfs_handle): Moved to ...
26290 * include/grub/util/misc.h (libzfs_handle): ... here.
26291 Include `<grub/util/libzfs.h>'.
26293 2010-07-30 Robert Millan <rmh@gnu.org>
26295 * include/grub/emu/misc.h: Add missing license header.
26297 2010-07-30 Robert Millan <rmh@gnu.org>
26299 Enable `grub-probe -t device' resolution on ZFS.
26301 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26302 * include/grub/util/libnvpair.h: New file.
26303 * include/grub/util/libzfs.h: New file.
26305 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26306 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26307 `<grub/util/libnvpair.h>'.
26308 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26310 (find_mount_point_from_dir): New static function.
26311 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26313 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26314 find_root_device_from_libzfs() before ressorting to find_root_device().
26316 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26318 * util/misc.c: Include `<grub/util/libzfs.h>'.
26319 (grub_util_init_libzfs): New function.
26320 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26321 [HAVE_LIBZFS] (fini_libzfs): New static function.
26322 (grub_util_init_libzfs): New function.
26323 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26325 2010-07-30 Robert Millan <rmh@gnu.org>
26327 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26328 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26329 `warn_unused_result' attribute.
26330 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26331 (grub_xasprintf, grub_xvasprintf): Likewise.
26332 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26334 2010-07-29 Robert Millan <rmh@gnu.org>
26336 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26337 (probe): Handle `PRINT_FS_LABEL'.
26338 (main): Handle `-t fs_label'.
26340 2010-07-29 Robert Millan <rmh@gnu.org>
26342 * configure.ac: Remove grub-mkisofs checks.
26344 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26346 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26347 Reported by: Lennart Sorensen.
26349 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26351 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26352 prior to terminal_input/terminal_output separation. It's been over 1.5
26353 years and those versions weren't widely deployed.
26355 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26357 * disk/raid.c (insert_array): Don't count named arrays when looking
26358 for unused array numbers.
26359 Reported and tested by: Michael Guntsche.
26361 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26363 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26364 implementation of this so that grub-emu links again, with a note
26365 that this should support hotplugging in the future.
26367 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26369 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26371 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26373 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26375 (grub_loopback_close): Remove empty function.
26376 (grub_loopback_dev): Remove close method.
26378 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26380 Disable EFI cursor when the EFI console becomes inactive.
26382 * term/efi/console.c (grub_efi_console_init): New function.
26383 (grub_efi_console_fini): New function.
26384 (grub_console_term_output): Register init and fini methods.
26386 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26388 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26391 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26393 * disk/loopback.c (grub_loopback): Replace filename with file.
26394 (delete_loopback): Handle new semantics.
26395 (grub_cmd_loopback): Likewise.
26396 (grub_loopback_iterate): Likewise.
26397 (grub_loopback_close): Likewise.
26399 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26401 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26403 Reported by: Tito Keitel.
26405 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26407 * docs/grub.texi (Naming convention): Document new naming convention.
26409 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26410 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26412 Generate device.map in something closer to the old ordering.
26414 * util/deviceiter.c (struct device): New declaration.
26415 (compare_file_names): Rename to ...
26416 (compare_devices): ... this. Sort by kernel name in preference to
26417 the stable by-id name, but keep the latter as a fallback comparison.
26418 Update header comment.
26419 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26420 of `struct device' rather than of plain file names.
26422 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26424 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26427 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26429 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26431 (setv1table): Likewise.
26433 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26435 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26436 removing the homehost if present.
26437 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26438 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26439 removing the homehost if present.
26440 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26442 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26444 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26445 parameter. Set its pointer target to 0.
26446 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26447 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26448 `data_offset' value from the superblock for 1.x metadata.
26449 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26450 data on the device.
26451 (insert_array): Record the start sector of data on the device.
26452 (grub_raid_register): Pass start_sector parameters to
26453 grub_raid_list->detect and insert_array.
26454 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26456 (struct grub_raid): Add start_sector parameter to `detect'.
26458 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26459 __attribute__ ((packed)), leaving a comment.
26460 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26461 (grub_mdraid_detect_09): ... here and ...
26462 (grub_mdraid_detect_1x): ... here.
26464 2010-07-20 Peter Henn <peter.henn@web.de>
26466 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26467 chunk size and disk size, which are already given as sector counts
26468 as distinct from the 0.90 units. Fetch the correct device number
26469 from the role table instead of using the table index.
26471 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26473 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26474 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26475 (WriteMostly1): New macro.
26476 Set array->name to NULL for metadata format 0.90. Add support for
26477 metadata 1.x. Fix some comments.
26478 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26480 * util/getroot.c (grub_util_get_grub_dev): Add support for
26481 /dev/md/name style devices.
26483 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26485 * .bzrignore: Ignore 20_linux_xen.
26487 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26489 * util/import_unicode.py: Remove unnecessary imports.
26491 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26493 Hotplugging and USB hub support.
26495 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26496 (grub_ohci): Likewise.
26497 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26498 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26499 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26500 (GRUB_OHCI_CTRL_EDS): Likewise.
26501 (GRUB_OHCI_BULK_EDS): Likewise.
26502 (GRUB_OHCI_TDS): Likewise.
26503 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26504 (grub_ohci_ed_phys2virt): New function.
26505 (grub_ohci_virt_to_phys): Likewise.
26506 (grub_ohci_td_phys2virt): Likewise.
26507 (grub_ohci_td_virt2phys): Likewise.
26508 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26510 (grub_ohci_find_ed): New function.
26511 (grub_ohci_alloc_td): Likewise.
26512 (grub_ohci_free_td): Likewise.
26513 (grub_ohci_free_tds): Likewise.
26514 (grub_ohci_transfer): Use previously allocated memory.
26515 (grub_ohci_portstatus): Reset status changed bit.
26516 (grub_ohci_detect_dev): Supply status changed.
26517 (grub_ohci_fini_hw): Free memory.
26518 (grub_ohci_restore_hw): Reallocate memory.
26519 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26520 Reset status change.
26521 (grub_uhci_detect_dev): Supply status_change.
26522 * bus/usb/usb.c (attach_hooks): New var.
26523 (grub_usb_device_attach): New function.
26524 (grub_usb_register_attach_hook_class): Likewise.
26525 (grub_usb_unregister_attach_hook_class): Likewise.
26526 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26527 (grub_usb_add_hub): Reset connection changed bit.
26528 (attach_root_port): New function.
26529 (grub_usb_root_hub): Likewise.
26530 (poll_nonroot_hub): Likewise.
26531 (grub_usb_poll_devices): Likewise.
26532 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26533 * disk/usbms.c (grub_usbms_open): Use device hooks.
26534 (grub_usbms_iterate) :Poll devices.
26535 (grub_usbms_finddevs): Split into ...
26536 (grub_usbms_attach): ... this ...
26537 (grub_usbms_attach): ... and this.
26538 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26540 (grub_usb_interface): New fields attached and detach_hook.
26541 (grub_usb_attach_hook_class): New type.
26542 (grub_usb_attach_desc): New struct.
26543 (grub_usb_register_attach_hook_class): New function.
26544 (grub_usb_unregister_attach_hook_class): Likewise.
26545 (grub_usb_poll_devices): Likewise.
26546 (grub_usb_device_attach): Likewise.
26547 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26548 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26550 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26552 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26553 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26554 delta determination style. Works with most NetBSD partitions too.
26556 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26558 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26559 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26561 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26563 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26565 2010-07-14 Anton Blanchard <anton@samba.org>
26567 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26570 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26572 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26574 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26576 * kern/partition.c (grub_partition_check_containment): New function to
26577 check that a partition is physically contained in a parent. Since
26578 offsets are relative (and non-negative), this reduces to checking that
26579 the partition ends before its parent.
26580 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26581 (grub_partition_iterate): Likewise.
26582 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26584 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26585 partitions that start before their parent, and add debug printfs.
26587 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26589 * Makefile.in (.SUFFIX): Spell correctly, as ...
26590 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26591 bare module name without `.mod', e.g. `test') tried to invoke a
26594 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26596 * README: Point to the Info manual.
26598 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26600 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26601 2nd superblock position from partition size.
26603 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26605 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26606 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26607 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26610 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26612 Restructure SCSI .id handling.
26613 Reported and tested by: Aleš Nesrsta.
26615 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26616 (grub_atapi_dev): Changed .name to "ata". New field .id.
26617 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26618 (grub_usbms_dev): New field .id.
26619 * disk/scsi.c (grub_scsi_iterate): Generate name.
26620 (grub_scsi_open): Parse name.
26621 * include/grub/scsi.h (grub_make_scsi_id): New function.
26622 (grub_scsi_dev): Change iterate and open to number instead of naming
26623 busses. All users updated.
26624 (grub_scsi): Remove name. Add .bus.
26626 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26628 * commands/help.c (grub_cmd_help): Fix a typo.
26630 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26632 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26633 Reported and tested by: Colin Watson.
26635 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26637 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26640 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26642 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26644 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26646 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26649 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26651 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26652 and disk/raid6_recover.c.
26653 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26654 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26656 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26658 * term/gfxterm.c (repaint_schedulded): Rename to ...
26659 (repaint_scheduled): ... this. Update all callers.
26660 (repaint_was_schedulded): Rename to ...
26661 (repaint_was_scheduled): ... this. Update all callers.
26663 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26665 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26666 which we expect to be handled by upper layers.
26668 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26670 * bus/usb/usbhub.c: #include time.h header.
26672 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26674 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26675 entry_name also for entries without stat blocks (e.g. ".."); fixes
26676 corruption of the first entry in a directory.
26678 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26680 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26681 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26682 doesn't work otherwise.
26684 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26686 * docs/grub.texi (Features): Update list of supported file systems.
26687 (GNU/Linux): Update for GRUB 2.
26688 (Serial terminal): Remove mention of --disable-serial, which was a
26689 GRUB Legacy configure option. Update instructions to use
26690 `terminal_input' and `terminal_output' rather than `terminal'.
26691 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26692 configuration' and `Installing GRUB using grub-install'.
26693 (Menu entry editor): Update for GRUB 2.
26694 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26695 Document new -a, -u, and -v options.
26696 (initrd): New section.
26697 (initrd16): New section.
26698 (linux): New section.
26699 (linux16): New section.
26700 (search): The `var' argument to `--set' is optional.
26701 (GRUB only offers a rescue shell): Go into a little more detail on
26704 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26706 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26708 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26710 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26711 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26713 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26715 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26716 install_prefix, in line with install_dos_part and install_bsd_part.
26717 Add new prefix variable, which is copied to install_prefix after
26718 comparing core.img in memory with the one read from disk in the
26719 no-embedding case, and use that rather than overwriting
26720 install_prefix immediately when installing to a partition.
26721 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26724 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26726 * configure.ac: Avoid == in test command, it's not portable.
26727 * util/grub.d/30_os-prober.in: Likewise.
26729 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26731 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26733 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26735 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26736 multiple (top-level) partmaps.
26738 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26740 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26741 Reported by: Tino Keitel.
26743 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26745 Bidi and diacritics support.
26747 * Makefile.in (widthspec.bin): New target.
26748 (widthspec.h): Likewise.
26749 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26750 * autogen.sh: Generate unidata.c.
26751 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26752 * commands/ls.c (grub_ls_list_devices): Likewise.
26753 (grub_ls_list_files): Likewise.
26754 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26755 (grub_mini_cmd_lsmod): Likewise.
26756 * commands/read.c: Likewise.
26757 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26758 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26759 * lib/arg.c (grub_arg_show_help): Likewise.
26760 * lib/crypto.c (grub_password_get): Likewise.
26761 * normal/auth.c (grub_username_get): Likewise.
26762 * normal/misc.c (grub_normal_print_device_info): Likewise.
26763 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26764 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26765 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26766 (normal/charset.c_DEPENDENCIES): New variable.
26767 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26768 (pkglib_MODULES): Remove charset.mod.
26769 (charset_mod_SOURCES): Removed.
26770 (charset_mod_CFLAGS): Likewise.
26771 (charset_mod_LDFLAGS): Likewise.
26772 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26773 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26775 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26776 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26777 (kernel_img_HEADERS): Add terminfo.h.
26778 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26779 Fill ->font. Reverse ascii bitmaps.
26780 (grub_font_get_xheight): New function.
26781 * font/font.c (grub_font_get_string_width): Moved from here ...
26782 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26783 * font/font.c (grub_font_draw_string): Moved from here ...
26784 * gfxmenu/font.c (grub_font_draw_string): ... here.
26785 * font/font.c (grub_font_dup_glyph): New function.
26786 (grub_font_blit_glyph): Likewise.
26787 (grub_font_blit_glyph_mirror): Likewise.
26788 (blit_comb): Likewise.
26789 (grub_font_construct_dry_run): Likewise.
26790 (grub_font_get_constructed_device_width): Likewise.
26791 (grub_font_construct_glyph): Likewise.
26792 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26793 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26794 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26795 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26796 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26797 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26798 (grub_font_get_xheight): New proto.
26799 (grub_font_get_constructed_device_width): Likewise.
26800 (grub_font_construct_glyph): Likewise.
26801 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26802 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26803 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26804 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26805 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26806 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26807 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26808 (grub_console_getcharwidth): Likewise.
26809 * include/grub/misc.h (grub_xputs): New proto.
26810 (grub_puts): Inlined.
26811 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26812 (grub_normal_get_line_counter): Removed.
26813 (grub_install_newline_hook): Likewise.
26814 (grub_normal_get_char_counter): New proto.
26815 (grub_normal_reset_more): Likewise.
26816 (grub_xputs_normal): Likewise.
26817 * include/grub/powerpc/ieee1275/console.h: Removed.
26818 * include/grub/sparc64/ieee1275/console.h: Likewise.
26819 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26820 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26821 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26822 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26823 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26824 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26825 (grub_term_input): Pass reference to self. All users updated.
26826 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26827 Pass reference to self. New fields normal_color, highlight_color and
26828 data. All users updated.
26829 (grub_putchar): Removed.
26830 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26831 (grub_unicode_estimate_width): New function.
26832 (grub_term_getcharwidth): Add defaults.
26833 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26834 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26835 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26836 (grub_cls): Remove EXPORT_FUNC.
26837 (grub_setcolorstate): Inline.
26838 (grub_newline_hook): Removed.
26839 * include/grub/terminfo.h: Rewritten. All users updated.
26840 * include/grub/unicode.h: New file.
26841 * include/grub/video.h (grub_video_signed_rect): New type.
26842 * kern/emu/console.c (grub_console_highlight_color): Removed.
26843 (grub_console_normal_color): Likewise.
26844 (grub_console_standard_color): Made static.
26845 (grub_ncurses_putchar): Remove mapping.
26846 (grub_ncurses_getcharwidth): Removed.
26847 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26848 (grub_ncurses_setcolor): Removed.
26849 (grub_ncurses_getcolor): Likewise.
26850 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26851 (grub_console_putchar): ... this.
26852 (grub_console_putchar): Handle argument difference.
26853 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26854 console_init_early and console_init_lately.
26855 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26856 * kern/misc.c (grub_puts): Removed.
26857 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26858 (grub_vsnprintf_real): Remove str = NULL support.
26859 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26860 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26861 * kern/term.c (grub_putcode): Renamed to ...
26862 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26863 (grub_putchar): Removed.
26864 (grub_xputs_dumb): New function.
26865 (grub_xputs): New variable.
26866 * lib/charset.c: Move from here ...
26867 * normal/charset.c: ... to here.
26868 (grub_ucs4_to_utf8): New function.
26869 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26870 (join_types): New variable.
26871 (unpack_join): New function.
26872 (bidi_types): New variable.
26873 (unpack_bidi): New function.
26874 (get_bidi_type): Likewise.
26875 (get_join_type): Likewise.
26876 (is_mirrored): Likewise.
26877 (grub_unicode_get_comb_type): Likewise.
26878 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26879 (is_type_after): Likewise.
26880 (grub_unicode_aglomerate_comb): Likewise.
26881 (bidi_line_wrap): Likewise.
26882 (grub_bidi_line_logical_to_visual): Likewise.
26883 (grub_bidi_logical_to_visual): Likewise.
26884 (grub_unicode_mirror_code): Likewise.
26885 (grub_unicode_shape_code): Likewise.
26886 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26887 Don't use grub_putchar.
26888 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26889 (grub_normal_reader_init): Likewise.
26890 (grub_xputs_saved): New variable.
26891 (GRUB_MOD_INIT): Set grub_xputs.
26892 (GRUB_MOD_FINI): Restore grub_xputs.
26893 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26894 (menu_init): Avoid printing gfxmenu error.
26895 (show_menu): Use grub_normal_get_char_counter.
26896 * normal/menu_entry.c (update_screen): Fix out-of-array.
26897 (complete): Avoid NULL dereferencing.
26898 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26899 * normal/menu_text.c (print_spaces): Removed.
26900 (grub_print_ucs4): Likewise.
26901 (grub_print_message_indented): Use grub_print_ucs4.
26902 (print_message): Use grub_putcode.
26903 (print_entry): Hanlde diacritics.
26904 * normal/term.c (term_state): New type.
26905 (grub_more_lines): Removed.
26906 (term_states): New variable.
26907 (grub_normal_line_counter): Renamed to ..
26908 (grub_normal_char_counter): ...this. All users updated.
26909 (grub_normal_get_line_counter): Renamed to ...
26910 (grub_normal_get_char_counter): ... this.
26911 (grub_normal_reset_more): New function.
26912 (process_newline): Removed.
26913 (print_more): New function.
26914 (grub_install_newline_hook): Removed.
26915 (map_code): New function.
26916 (grub_puts_terminal): Use grub_print_ucs4.
26917 (putglyph): New function.
26918 (putcode_real): Likewise.
26919 (grub_putcode): Use putcode_real.
26920 (get_maxwidth): New function.
26921 (get_startwidth): Likewise.
26922 (print_ucs4_terminal): Likewise.
26923 (find_term_state): Likewise.
26924 (put_glyphs_terminal): Likewise.
26925 (print_backlog): Likewise.
26926 (print_ucs4_real): Likewise.
26927 (grub_print_ucs4): Likewise.
26928 (grub_xputs_normal): Likewise.
26929 * term/efi/console.c (grub_console_putchar): Output diacritics.
26930 (grub_console_getcharwidth): Removed.
26931 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26932 * term/gfxterm.c (clear_char): Free chars.
26933 (scroll_up): Avoid leaking memory.
26934 (grub_gfxterm_putchar): Support diacritics.
26935 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26936 * term/i386/pc/console.c (grub_console_term_output): Declare as
26937 GRUB_TERM_CODE_TYPE_VGA.
26938 * term/i386/pc/vga.c (grub_vga_term): Declare as
26939 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26940 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26941 GRUB_TERM_CODE_TYPE_VGA.
26942 * term/i386/vga_common.c (map_char): Removed.
26943 (grub_console_putchar): Likewise.
26944 (grub_console_getcharwidth): Likewise.
26945 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26946 (colors): Reordered to match terminfo.
26947 (grub_ofconsole_normal_color): Removed.
26948 (grub_ofconsole_writeesc): Likewise.
26949 (grub_ofconsole_highlight_color): Likewise.
26950 (grub_ofconsole_getcharwidth): Likewise.
26951 (grub_ofconsole_setcolorstate): Likewise.
26952 (grub_ofconsole_setcolor): Likewise.
26953 (grub_ofconsole_getcolor): Likewise.
26954 (grub_ofconsole_readkey): Renamed to ...
26955 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26957 (grub_ofconsole_checkkey): Removed.
26958 (grub_ofconsole_getkey): Likewise.
26959 (grub_ofconsole_getxy): Likewise.
26960 (grub_ofconsole_gotoxy): Likewise.
26961 (grub_ofconsole_cls): Likewise.
26962 (grub_ofconsole_refresh): Likewise.
26963 (grub_ofconsole_terminfo_input): New struct.
26964 (grub_ofconsole_terminfo_output): Likewise.
26965 (grub_ofconsole_term_input): Use terminfo.
26966 (grub_ofconsole_term_output): Likewise.
26967 (grub_console_init): Split into ...
26968 (grub_console_init_early): ...this and ...
26969 (grub_console_init_lately): ...this. Use terminfo.
26970 (grub_ofconsole_putchar): Renamed to ...
26971 (put): ... this. Remove mapping.
26972 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26973 * term/serial.c: Simplify using terminfo.
26976 (keep_track): Likewise.
26977 (registered): Likewise.
26978 (input_buf): Likewise.
26979 (npending): Likewise.
26980 (serial_translate_key_sequence): Likewise.
26981 (fill_input_buf): Likewise.
26982 (grub_serial_checkkey): Likewise.
26983 (grub_serial_getkey): Likewise.
26984 (grub_serial_getxy): Likewise.
26985 (grub_serial_gotoxy): Likewise.
26986 (grub_serial_putchar): Likewise.
26987 (grub_serial_cls): Likewise.
26988 (grub_serial_setcolorstate): Likewise.
26989 (grub_serial_setcursor): Likewise.
26990 (serial_hw_init): Use serial_hw_fetch.
26991 (grub_serial_terminfo_input): New variable.
26992 (grub_serial_terminfo_output): Likewise.
26993 (grub_serial_term_input): Use terminfo.
26994 (grub_serial_term_output): Likewise.
26995 * term/terminfo.c (putstr): Use put.
26996 (grub_terminfo_all_free): New function
26997 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26998 (grub_terminfo_output_register): New function.
26999 (grub_terminfo_output_unregister): Likewise.
27000 (grub_terminfo_getxy): Likewise.
27001 (grub_terminfo_readkey): Likewise.
27002 (grub_terminfo_checkkey): Likewise.
27003 (grub_terminfo_getkey): Likewise.
27004 (grub_terminfo_input_init): Likewise.
27005 (print_terminfo): Likewise.
27006 (grub_cmd_terminfo): Handle encoding.
27007 (grub_terminfo_gotoxy): Track position.
27008 (grub_terminfo_cls): Likewise.
27009 (grub_terminfo_putchar): Likewise.
27010 (grub_terminfo_setcolorstate): Handle colors
27011 (grub_terminfo_cursor_on): This ...
27012 (grub_terminfo_cursor_off): ... and this merged into ...
27013 (grub_terminfo_setcursor): ... this.
27014 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27015 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27016 * unicode/BidiMirroring.txt: Likewise.
27017 * unicode/UnicodeData.txt: Likewise.
27018 * unicode/COPYING: Likewise.
27019 * util/grub-editenv.c (grub_putchar): Removed.
27020 (grub_xputs_real): New function.
27021 (grub_xputs): New variable.
27022 * util/grub-fstest.c (grub_putchar): Removed.
27023 (grub_xputs_real): New function.
27024 (grub_xputs): New variable.
27025 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27026 (grub_xputs_real): New function.
27027 (grub_xputs): New variable.
27028 * util/grub-probe.c (grub_putchar): Removed.
27029 (grub_xputs_real): New function.
27030 (grub_xputs): New variable.
27031 * util/grub-script-check.c (grub_putchar): Removed.
27032 (grub_xputs_real): New function.
27033 (grub_xputs): New variable.
27034 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27035 (grub_xputs_real): New function.
27036 (grub_xputs): New variable.
27037 * util/import_unicode.py: New file.
27038 * util/grub-mkfont.c (ft_errmsgs): New array.
27039 (grub_glyph_info): Make bitmap a pointer.
27040 (file_formats): New type WIDTH_SPEC.
27041 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27042 (options): Add width-spec.
27044 (add_char): Renamed to ...
27045 (add_glyph): ... this.
27046 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27047 (glyph_replace): New type.
27048 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27049 (add_char): New function.
27050 (add_subst): Likewise.
27051 (process_cursive): Likewise.
27052 (add_font): Handle GSUB.
27053 (write_font_width_spec): New function.
27054 (main): Sort glyphs.
27055 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27056 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27057 * kern/term.c (grub_cls): Moved from here...
27058 * normal/term.c (grub_cls): ... here.
27060 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27062 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27063 suitable for using within the format argument of printf when
27064 converting grub_size_t.
27065 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27066 "x" to convert grub_size_t arguments.
27068 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27070 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27072 (list_get_minimal_size): Take selection box into account.
27074 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27076 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27079 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27081 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27082 devices when iterating over /dev/disk/by-id; they will be handled
27083 later if appropriate, which they aren't always (e.g. LVM).
27085 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27087 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27088 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27090 (grub_halt): Likewise.
27091 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27093 (grub_halt): Don't return, even if all of shut-down, power-off, and
27096 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27098 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27099 arguments, not three.
27101 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27103 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27104 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27105 LVM-on-RAID is handled correctly.
27107 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27109 * docs/grub.texi (Changes from GRUB Legacy): New section.
27110 (Future): Fix typo.
27112 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27114 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27115 grub.d/README accidentally ends up executable for one reason or
27116 another. Ignore it.
27118 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27120 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27121 (gpt_partition_map_iterate): Support non-512B sectors.
27123 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27125 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27126 Tested by: Seth Goldberg.
27128 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27130 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27131 Properly align mbi.
27132 Reported by: Seth Goldberg.
27134 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27136 * util/grub-mkrescue.in: Avoid module duplication.
27138 2010-07-01 Sean Finney <seanius@seanius.net>
27140 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27142 2010-07-01 Sean Finney <seanius@seanius.net>
27144 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27146 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27148 * disk/lvm.c (grub_lvm_checkvalue): New function.
27149 (grub_lvm_check_flag): Likewise.
27151 2010-07-01 Robert Millan <rmh@gnu.org>
27153 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27154 Support 'p' as partition separator on kernel of FreeBSD (used
27156 (grub_util_biosdisk_get_grub_dev): Likewise.
27158 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27160 Yeeloong firmware port.
27162 * boot/mips/yeeloong/fwstart.S: New file.
27163 * bus/cs5536.c (gpiodump): New const.
27164 (set_io_space): New function.
27165 (set_iod): Likewise.
27166 (set_p2d): Likewise.
27167 (grub_cs5536_init_geode): Likewise.
27168 * commands/mips/yeeloong/lsspd.c: New file.
27169 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27170 (serial_mod_SOURCES): New variable.
27171 (serial_mod_CFLAGS): Likewise.
27172 (serial_mod_LDFLAGS): Likewise.
27173 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27174 term/terminfo.c and term/tparm.c.
27175 (pkglib_IMAGES): Add fwstart.img.
27176 (fwstart_img_SOURCES): New variable.
27177 (fwstart_img_CFLAGS): Likewise.
27178 (fwstart_img_ASFLAGS): Likewise.
27179 (fwstart_img_LDFLAGS): Likewise.
27180 (fwstart_img_FORMAT): Likewise.
27181 (pkglib_MODULES): Add lsspd.mod.
27182 (lsspd_mod_SOURCES): New variable.
27183 (lsspd_mod_CFLAGS): Likewise.
27184 (lsspd_mod_LDFLAGS): Likewise.
27185 (pkglib_MODULES): Add halt.mod.
27186 (halt_mod_SOURCES): New variable.
27187 (halt_mod_CFLAGS): Likewise.
27188 (halt_mod_LDFLAGS): Likewise.
27189 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27190 (serial_mod_SOURCES): Removed.
27191 (serial_mod_CFLAGS): Likewise.
27192 (serial_mod_LDFLAGS): Likewise.
27193 * disk/ata.c (check_device): New function.
27194 (grub_ata_device_initialize): Use check_device.
27195 (grub_ata_iterate): Recheck devices.
27196 (grub_ata_open): Likewise.
27197 (grub_atapi_iterate): Likewise.
27198 (grub_atapi_open): Likewise.
27199 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27200 (GRUB_ATA_CH1_PORT1): Likewise.
27201 (GRUB_ATA_CH0_PORT2): Likewise.
27202 (GRUB_ATA_CH1_PORT2): Likewise.
27203 * include/grub/mips/loongson.h: New file.
27204 * include/grub/mips/yeeloong/ec.h: Likewise.
27205 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27206 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27207 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27208 * include/grub/misc.h (grub_halt): Declare as noreturn.
27209 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27210 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27211 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27212 (UART_ENABLE_DTRRTS): Likewise.
27213 (UART_ENABLE_MODEM): Removed.
27214 (UART_ENABLE_OUT2): New const.
27215 * include/grub/term.h (grub_term_register_input_active): New function.
27216 (grub_term_register_output_active): Likewise.
27217 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27219 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27220 (init_pci): New function.
27221 (grub_machine_init): Execute platform init when firmware. Init serial.
27222 (grub_halt): Implement.
27223 (grub_exit): Likewise.
27224 (grub_reboot): Likewise.
27225 * term/serial.c (serial_hw_init): Update macros.
27226 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27227 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27228 (image_targets): New target mipsel-yeeloong-flash.
27229 (generate_image): Support IMAGE_YEELOONG_FLASH.
27230 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27231 (grub_video_sm712_setup): Init card.
27232 (grub_video_sm712_set_palette): Removed.
27233 * video/sm712_init.c: New file.
27235 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27237 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27238 PATH when running help2man and then run it on the unadorned
27239 executable names, rather than passing $(builddir)/* paths to
27240 help2man. This avoids the build directory ending up in generated
27243 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27245 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27246 to avoid accidents when debugging with 'sh -x'.
27247 * util/grub-mkrescue.in: Likewise.
27248 * util/grub.d/00_header.in: Likewise.
27249 * util/grub.d/10_hurd.in: Likewise.
27250 * util/grub.d/10_kfreebsd.in: Likewise.
27251 * util/grub.d/10_linux.in: Likewise.
27252 * util/grub.d/10_netbsd.in: Likewise.
27253 * util/grub.d/10_windows.in: Likewise.
27254 * util/grub.d/20_linux_xen.in: Likewise.
27255 * util/grub.d/30_os-prober.in: Likewise.
27256 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27258 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27260 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27261 last character in the buffer.
27262 Reported by: Vladimir Serbinenko.
27264 2010-06-29 Robert Millan <rmh@gnu.org>
27266 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27267 (Command-line and menu entry commands): Document `badram' command.
27269 2010-06-28 Robert Millan <rmh@gnu.org>
27271 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27272 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27273 command using ${GRUB_BADRAM} as parameter.
27275 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27277 * docs/grub.texi (Device map): New section.
27278 (Themes): New section (stub).
27279 * Makefile.in (docs/grub.info): The info documentation now builds
27280 without errors. Make sure it stays that way.
27282 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27284 Use normal parser for menu entries.
27285 Reported by: Thomas Frauendorfer
27287 * include/grub/parser.h (grub_parser_execute): Don't export.
27288 * normal/menu.c (grub_menu_execute_entry_real): New function.
27289 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27291 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27293 * docs/grub.texi (Embedded configuration): New section (replacing
27294 old "Preset Menu" stub).
27295 (Images): New section.
27296 (configfile): Note that any menu entries defined in `file' are shown
27299 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27301 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27303 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27305 * util/grub-install.in: Add --debug-image= option.
27307 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27309 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27312 * util/deviceiter.c (check_device): Rename to ...
27313 (check_device_readable_unique): ... this. Update all callers.
27314 Maintain and check a list of which devices (by canonicalized name)
27315 have already been seen.
27316 (clear_seen_devices): New function.
27317 (compare_file_names) [__linux__]: New function.
27318 (grub_util_iterate_devices): Clear the list of seen devices on exit
27319 and (just in case) on entry.
27320 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27321 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27322 seen-devices list, superseded by general code in check_device.
27324 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27326 * commands/cat.c (options): New variable.
27327 (grub_cmd_cat): Parse options. If the --dos option is given, print
27328 DOS-style "\r\n" line endings as simple newlines (Debian bug
27330 (GRUB_MOD_INIT): Use extcmd.
27331 (GRUB_MOD_FINI): Likewise.
27332 * docs/grub.texi (cat): Document --dos.
27334 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27336 XEN with Linux grub-mkconfig support.
27338 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27339 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27340 GRUB_CMDLINE_XEN_DEFAULT.
27341 * util/grub.d/20_linux_xen.in: New file.
27343 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27345 Initialise VGA video on qemu ourselves.
27347 * boot/i386/qemu/boot.S: Don't call 0xc000.
27348 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27349 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27350 (kernel_img_HEADERS): Add pci.h.
27351 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27352 * configure.ac: Force unifont on qemu and yeeloong.
27353 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27354 (grub_vga_palette_write): Use correct register.
27355 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27356 Call grub_qemu_init_cirrus.
27357 * kern/i386/qemu/init.c: New file.
27358 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27360 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27362 2010-06-26 Pavel Roskin <proski@gnu.org>
27364 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27367 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27369 * docs/grub.texi (Simple configuration): Explain that
27370 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27371 set to `true' to disable their respective recovery entries, not
27374 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27376 Make the `source' command slightly faster.
27378 * normal/main.c (grub_normal_execute): Don't re-read list files when
27381 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27383 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27384 field position and mask size to red fields from mode_info, not
27386 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27387 Remove redundant tag->common.framebuffer_type assignment.
27388 Reported by: Seth Goldberg.
27390 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27392 Sync up other versions of the Linux loader with Robert Millan's
27393 change of 2010-01-09, "Make loader output a bit more user-friendly".
27395 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27397 (grub_cmd_linux): Likewise.
27398 (grub_cmd_initrd): Likewise.
27399 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27400 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27402 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27404 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27405 larger than MEMORY_MAP_SIZE.
27407 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27409 Fix parallel build.
27411 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27413 * script/parser.y: #include grub_script.tab.h header.
27415 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27417 Support >3GiB and <16MiB RAM in i386-qemu.
27419 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27420 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27421 (grub_lower_mem): Removed.
27422 (grub_upper_mem): Likewise.
27423 (mem_size): Made static.
27424 (above_4g): New variable.
27425 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27426 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27429 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27431 Cirrus 5446 and Bochs video cards support.
27433 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27435 (video_cirrus_mod_SOURCES): New variable.
27436 (video_cirrus_mod_CFLAGS): Likewise.
27437 (video_cirrus_mod_LDFLAGS): Likewise.
27438 (video_bochs_mod_SOURCES): Likewise.
27439 (video_bochs_mod_CFLAGS): Likewise.
27440 (video_bochs_mod_LDFLAGS): Likewise.
27441 * include/grub/vga.h: New file.
27442 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27443 (grub_video_fb_set_page_t): New type.
27444 (grub_video_fb_setup): New prototype.
27445 (grub_video_fb_swap_buffers): Likewise.
27446 (grub_video_fb_get_info_and_fini): Likewise.
27447 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27448 (CRTC_DATA_PORT): Likewise.
27449 (CRTC_CURSOR): Likewise.
27450 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27451 (CRTC_CURSOR_ADDR_LOW): Likewise.
27452 (CRTC_CURSOR_DISABLE): Likewise.
27453 (update_cursor): Use grub_vga_cr_write.
27454 (grub_vga_text_setcursor): Likewise.
27455 * video/bochs.c: New file.
27456 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27457 (palette): Likewise.
27458 (palette_size): Likewise.
27459 (framebuffer): New variable.
27460 (grub_video_fb_init): Use 'framebuffer'.
27461 (grub_video_fb_fini): Likewise.
27462 (grub_video_fb_get_info): Likewise.
27463 (grub_video_fb_get_palette): Likewise.
27464 (grub_video_fb_set_palette): Likewise.
27465 (grub_video_fb_set_viewport): Likewise.
27466 (grub_video_fb_get_viewport): Likewise.
27467 (grub_video_fb_map_color): Likewise.
27468 (grub_video_fb_map_rgb): Likewise.
27469 (grub_video_fb_map_rgba): Likewise.
27470 (grub_video_fb_unmap_color): Likewise.
27471 (grub_video_fb_unmap_color_int): Likewise.
27472 (grub_video_fb_fill_rect): Likewise.
27473 (grub_video_fb_blit_bitmap): Likewise.
27474 (grub_video_fb_blit_render_target): Likewise.
27475 (grub_video_fb_scroll): Likewise.
27476 (grub_video_fb_create_render_target): Likewise.
27477 (grub_video_fb_doublebuf_blit_init): Likewise.
27478 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27479 (doublebuf_pageflipping_update_screen): New function.
27480 (doublebuf_pageflipping_init): Likewise.
27481 (grub_video_fb_setup): Likewise.
27482 (grub_video_fb_swap_buffers): Likewise.
27483 (grub_video_fb_get_info_and_fini): Likewise.
27484 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27486 (doublebuf_pageflipping_commit): Restructured into ...
27487 (doublebuf_pageflipping_set_page): ... this.
27488 (doublebuf_pageflipping_update_screen): Removed.
27489 (doublebuf_pageflipping_init): Likewise.
27490 (double_buffering_init): Likewise.
27491 (grub_video_vbe_setup): Use grub_video_fb_setup.
27492 (grub_video_vbe_swap_buffers): Removed.
27493 (grub_video_vbe_set_active_render_target): Likewise.
27494 (grub_video_vbe_get_active_render_target): Likewise.
27495 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27496 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27497 grub_video_fb_set_active_render_target and
27498 grub_video_fb_get_active_render_target.
27499 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27500 (SEQUENCER_DATA_PORT): Likewise.
27501 (MAP_MASK_REGISTER): Likewise.
27502 (CRTC_ADDR_PORT): Likewise.
27503 (CRTC_DATA_PORT): Likewise.
27504 (START_ADDR_HIGH_REGISTER): Likewise.
27505 (START_ADDR_LOW_REGISTER): Likewise.
27506 (GRAPHICS_ADDR_PORT): Likewise.
27507 (GRAPHICS_DATA_PORT): Likewise.
27508 (READ_MAP_REGISTER): Likewise.
27509 (INPUT_STATUS1_REGISTER): Likewise.
27510 (INPUT_STATUS1_VERTR_BIT): Likewise.
27511 (get_map_mask): Use grub_vga_sr_read.
27512 (set_map_mask): Use grub_vga_sr_write.
27513 (set_read_map): Use grub_vga_gr_write.
27514 (set_start_address): Use grub_vga_cr_write.
27515 * video/sm712.c (framebuffer): Remove leftover fields.
27517 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27519 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27520 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27521 instead. Replace the gfxterm backend check with a check that
27522 ${GRUB_PREFIX}/video.lst is non-empty.
27523 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27525 (load_video): New generated function. Call it before loading
27526 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27527 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27528 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27529 * docs/grub.texi (Simple configuration): Document
27530 GRUB_VIDEO_BACKEND.
27532 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27534 Use video functions in linux and xnu loaders.
27536 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27537 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27538 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27539 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27540 loader/i386/pc/linux.c.
27541 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27542 (find_line_len): Removed.
27543 (find_framebuf): Likewise.
27544 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27545 * loader/i386/efi/xnu.c: Removed.
27546 * loader/i386/pc/xnu.c: Moved from here...
27547 * loader/i386/xnu.c: ...here.
27549 Enable priorities in video drivers.
27551 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27552 (grub_video_adapter): New field prio.
27553 (grub_video_register): Respect prio when inserting.
27554 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27555 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27556 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27557 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27558 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27559 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27560 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27564 * include/grub/video.h (grub_video_driver_id_t): New value
27565 GRUB_VIDEO_DRIVER_SDL.
27566 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27568 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27570 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27571 argument to printf.
27572 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27574 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27576 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27577 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27579 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27581 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27582 directly, and recommend grub-install instead.
27583 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27585 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27587 Fix i386-pc prefix handling with nested partitions (Debian bug
27588 #585068). Note that the case where the core image is booted using
27589 multiboot and relocated from its original location still requires
27592 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27593 with "(,", fill the boot drive in between those two characters, but
27594 expect that a full partition specification including partition map
27596 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27597 specified, write a prefix without the drive name but including a
27598 full partition specification.
27600 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27602 * util/grub-mkconfig.in: Ignore non-option arguments, for
27603 compatibility with older versions (before 2010-06-12) which did the
27604 same. In particular, this makes it easier to ship an update-grub
27605 wrapper which is compatible with that used with GRUB Legacy (Debian
27608 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27610 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27611 for manual page generation.
27613 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27615 * po/POTFILES: Remove leftover commands/handler.c.
27617 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27619 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27620 left this script non-functional.
27622 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27624 * docs/man/grub-emu.h2m: New file.
27626 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27628 * docs/grub.texi (Commands): Document reduced command set in rescue
27630 (cpuid): New section.
27632 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27634 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27635 new partition naming style.
27636 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27638 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27640 Add "-o grub.iso" like cmdline options support.
27642 * util/grub-install.in: Improve cmdline option parsing.
27643 * util/grub-mkconfig.in: Likewise.
27644 * util/grub-mkrescue.in: Likewise.
27645 * util/grub-reboot.in: Likewise.
27646 * util/grub-set-default.in: Likewise.
27647 * util/i386/efi/grub-install.in: Likewise.
27648 * util/ieee1275/grub-install.in: Likewise.
27649 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27651 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27653 * .bzrignore: Ignore 41_custom.
27655 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27657 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27659 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27661 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27662 prototype declarations.
27664 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27665 generating fs, partmap, and video lists.
27666 * include/grub/fs.h (grub_fs_register): Omit prototype if
27667 GRUB_LST_GENERATOR is defined.
27668 * include/grub/partition.h (grub_partition_map_register): Likewise.
27669 * include/grub/video.h (grub_video_register): Likewise.
27671 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27673 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27675 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27677 * util/grub-mkrescue.in: Support --xorriso argument.
27679 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27681 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27682 Suggested by: Thomas Schmitt.
27684 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27686 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27687 Suggested by: Thomas Schmitt.
27689 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27691 custom.cfg support.
27693 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27694 * util/grub.d/41_custom.in: New file.
27696 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27698 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27699 been merged back into normal.
27701 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27703 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27704 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27706 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27708 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27709 when generating manual pages.
27710 * docs/man/grub-bin2h.h2m: New file.
27711 * docs/man/grub-editenv.h2m: New file.
27712 * docs/man/grub-fstest.h2m: New file.
27713 * docs/man/grub-install.h2m: New file.
27714 * docs/man/grub-macho2img.h2m: New file.
27715 * docs/man/grub-mkconfig.h2m: New file.
27716 * docs/man/grub-mkdevicemap.h2m: New file.
27717 * docs/man/grub-mkfont.h2m: New file.
27718 * docs/man/grub-mkimage.h2m: New file.
27719 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27720 * docs/man/grub-mkrelpath.h2m: New file.
27721 * docs/man/grub-mkrescue.h2m: New file.
27722 * docs/man/grub-ofpathname.h2m: New file.
27723 * docs/man/grub-pe2elf.h2m: New file.
27724 * docs/man/grub-probe.h2m: New file.
27725 * docs/man/grub-reboot.h2m: New file.
27726 * docs/man/grub-script-check.h2m: New file.
27727 * docs/man/grub-set-default.h2m: New file.
27728 * docs/man/grub-setup.h2m: New file.
27730 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27732 Use FOR_* macros instead of *_iterate whenever possible.
27734 * commands/handler.c: Removed.
27735 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27736 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27737 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27738 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27739 (grub_probe_SOURCES): Remove kern/parser.c.
27740 (util/grub-script-check.c_DEPENDENCIES): Removed.
27741 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27742 and grub_script_check_init.c.
27743 (grub_script_check_init.lst): Removed.
27744 (grub_script_check_init.h): Likewise.
27745 (grub_script_check_init.c): Likewise.
27746 (pkglib_MODULES): Remove handler.mod and sh.mod.
27747 (handler_mod_SOURCES): Removed.
27748 (handler_mod_CFLAGS): Likewise.
27749 (handler_mod_LDFLAGS): Likewise.
27750 (normal_mod_SOURCES): Remove normal/handler.c.
27751 Add script/main.c, script/script.c, script/execute.c,
27752 script/function.c, script/lexer.c, grub_script.tab.c
27753 and grub_script.yy.c.
27754 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27755 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27756 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27757 (grub_setup_SOURCES): Remove kern/parser.c.
27758 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27759 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27760 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27761 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27762 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27763 (grub_setup_SOURCES): Remove kern/parser.c.
27764 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27765 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27766 * include/grub/command.h (grub_command_iterate): Removed.
27767 (FOR_COMMANDS): New macro.
27768 * include/grub/dl.h (grub_dl): New member next.
27769 (grub_dl_iterate): Removed.
27770 (grub_dl_head): New variable declaration.
27771 (FOR_DL_MODULES): New macro.
27772 * include/grub/fs.h: Include list.h.
27773 (grub_fs): Make next first element.
27774 (grub_fs_list): New variable declaration.
27775 (grub_fs_register): Make inline.
27776 (grub_fs_unregister): Likewise.
27777 (grub_fs_iterate): Removed.
27778 (FOR_FILESYSTEMS): New macro.
27779 * include/grub/handler.h: Removed.
27780 * include/grub/list.h (grub_list_hook_t): Removed.
27781 (grub_list_test_t): Likewise.
27782 (grub_list_pop): Likewise.
27783 (grub_list_iterate): Likewise.
27784 (grub_list_insert): Likewise.
27785 (FOR_LIST_ELEMENTS): New macro.
27786 * include/grub/parser.h (grub_parser_class): Removed.
27787 (grub_parser_register): Likewise.
27788 (grub_parser_unregister): Likewise.
27789 (grub_parser_get_current): Likewise.
27790 (grub_parser_set_current): Likewise.
27791 (grub_register_rescue_parser): Likewise.
27792 (grub_rescue_parse_line): New function.
27793 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27794 * include/grub/script_sh.h (grub_script_function_list): New variable
27796 (FOR_SCRIPT_FUNCTIONS): New macro.
27797 (grub_script_function_iterate): Removed.
27798 (grub_normal_parse_line): New prototype.
27799 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27800 (FOR_DISABLED_TERM_INPUTS): Likewise.
27801 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27802 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27803 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27805 (grub_video_register): Inline.
27806 (grub_video_unregister): Likewise.
27807 (grub_video_adapter_list): New variable declaration.
27808 (grub_video_iterate): Removed.
27809 (FOR_VIDEO_ADAPTERS): New macro.
27810 * kern/dl.c (grub_dl_list): Removed. All users updated.
27811 (grub_dl_iterate): Removed.
27812 * kern/fs.c (grub_fs_list): Make global.
27813 (grub_fs_register): Removed.
27814 (grub_fs_unregister): Likewise.
27815 (grub_fs_iterate): Likewise.
27816 * kern/handler.c: Removed.
27817 * kern/list.c (grub_list_pop): Removed.
27818 (grub_list_iterate): Likewise.
27819 (grub_list_insert): Likewise.
27820 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27821 (grub_prio_list_insert): Don't use grub_list_insert.
27822 * kern/main.c (grub_register_rescue_parser): Don't call
27823 grub_register_rescue_parser.
27824 * kern/parser.c (grub_parser_class): Removed.
27825 (grub_parser_execute): Use grub_rescue_parse_line.
27826 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27827 (grub_rescue_parser): Removed.
27828 (grub_register_rescue_parser): Likewise.
27829 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27830 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27831 (grub_auth_check_authentication): Likewise.
27832 * normal/completion.c (iterate_command): Removed.
27833 (grub_normal_do_completion): Use FOR_COMMANDS.
27834 * normal/handler.c: Removed.
27835 * normal/main.c (read_config_file): Remove parser changing.
27836 (grub_normal_execute): Don't call read_handler_list.
27837 (grub_normal_read_line_real): Statically allocate prompt.
27838 (grub_cmdline_run): Use grub_normal_parse_line.
27839 (GRUB_MOD_FINI): Don't call free_handler_list.
27840 * normal/menu_entry.c (run): Likewise.
27841 * script/function.c (grub_script_function_list): Make global.
27842 (grub_script_function_iterate): Removed.
27843 * script/main.c (grub_normal_parse_line): Make global.
27844 (grub_sh_parser): Removed.
27845 (GRUB_MOD_INIT): Likewise.
27846 (GRUB_MOD_FINI): Likewise.
27847 * tests/lib/functional_test.c (grub_functional_test): Use
27849 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27850 (grub_test_run): Use FOR_LIST_ELEMENTS.
27851 * tests/lib/unit_test.c (main): Likewise.
27852 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27854 * util/grub-fstest.c (grub_term_input_class): Removed.
27855 (grub_term_output_class): Likewise.
27856 * util/grub-probe.c: Likewise.
27857 * util/i386/pc/grub-setup.c: Likewise.
27858 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27859 * util/grub-script-check.c (main): Don't call grub_init_all and
27861 * video/video.c (grub_video_adapter_list): Make global.
27862 (grub_video_register): Removed.
27863 (grub_video_unregister): Likewise.
27864 (grub_video_iterate): Likewise.
27866 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27868 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27869 reported by Henrique Ferreiro.
27871 2010-06-09 Robert Millan <rmh@gnu.org>
27873 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27874 ones, when both are available.
27876 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27878 Make --version uniform and avoid hard-coded program name.
27880 * util/grub-mkimage.c (main): Use `program_name' instead of
27882 * util/i386/pc/grub-setup.c (main): Likewise.
27883 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27884 * util/grub-install.in: Save the basename of $0 in $self, and use the
27885 latter in informational messages. Use the same format for --version
27886 as the binary programs.
27887 * util/grub-mkconfig.in: Likewise.
27888 * util/grub-mkrescue.in: Likewise.
27889 * util/grub-reboot.in: Likewise.
27890 * util/grub-set-default.in: Likewise.
27891 * util/i386/efi/grub-install.in: Likewise.
27892 * util/ieee1275/grub-install.in: Likewise.
27893 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27895 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27897 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27898 embedding area. Use <= instead of == when checking for non-emptiness.
27900 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27902 * configure.ac: Add `.' to the directories searched for unifont.
27904 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27906 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27909 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27911 * docs/grub.texi (History): Expand to cover GRUB 2.
27912 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27913 commands, not `terminal'.
27914 (serial): Likewise.
27915 (terminal_input): New section.
27916 (terminal_output): New section.
27917 (uppermem): New section (stub).
27918 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27920 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27922 * docs/grub.texi (Security): Menu entries are unrestricted by
27923 default, not restricted to superusers as I had previously thought.
27924 Reword to account for this.
27926 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27928 * kern/emu/misc.c (device_mapper_null_log): New function.
27929 (grub_device_mapper_supported): New function.
27930 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27932 * kern/emu/hostdisk.c (find_partition_start): Check whether
27933 device-mapper is supported before trying to use it.
27934 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27936 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27938 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27939 (File name syntax): Likewise.
27940 (help): --all is no longer supported in GRUB 2. Be more precise
27941 about pattern matching.
27943 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27945 * normal/completion.c (grub_normal_do_completion): When completing
27946 arguments to "set" and the current word contains an equals sign,
27947 skip to after the equals sign before starting completion.
27949 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27951 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27953 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27955 * docs/grub.texi (Network): New section.
27956 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27957 `(nd)' as in GRUB Legacy.
27958 (pxe_unload): New section.
27960 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27962 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27963 in the rescue shell, so recommend using `set' instead. Thanks,
27966 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27968 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27969 (password): New section.
27970 (password_pbkdf2): New section.
27971 (search): New section.
27972 (Security): New section.
27973 (Troubleshooting): New section, currently very incomplete.
27974 (Invoking grub-mkpasswd-pbkdf2): New section.
27975 (Internals): New section, currently very incomplete.
27977 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27979 * util/grub.d/00_header.in: Add some more quoting (of
27980 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27982 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27984 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27986 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27987 to `count', fixing variable shadowing that broke the -c option.
27989 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27991 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27992 in case they contain spaces.
27994 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27996 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27997 "part_" to partmap module names, in line with grub-install.
27998 Reported by: Jindřich Makovička (Debian bug #584426).
28000 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28002 * util/grub-mkimage.c: Make target-related error messages slightly
28003 more helpful; -O talks about "format". Explicitly point to the use
28004 of -O if no target is specified.
28005 Reported by: Didier Raboud (Debian bug #584415).
28007 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28009 * INSTALL: Document several build requirements for optional features
28010 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28012 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28014 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28015 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28016 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28018 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28020 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28021 Thanks to Jordan Uggla for spotting this.
28023 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28025 Finally make USB usable.
28027 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28028 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28029 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28030 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28031 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28032 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28033 (GRUB_OHCI_FSMPS): Likewise.
28034 (GRUB_OHCI_PERIODIC_START): Likewise.
28035 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28036 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28037 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28038 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28039 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28040 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28041 (grub_ohci_transaction): Likewise.
28042 (grub_ohci_transfer): Improve condition detection algorithms.
28043 Handle toggle property. Program the transactions correctly.
28044 Improve error handling. Various important fixups.
28045 (grub_ohci_portstatus): Put register writes in right order.
28046 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28047 (grub_uhci_transfer): Don't show "failed" message on success.
28048 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28050 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28051 determine its size.
28052 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28053 before initialization is completed. Use IN direction for empty
28054 transfers. Use last_trans and compute toggle.
28055 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28056 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28057 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28058 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28059 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28060 (grub_usb_device): Increase toggle to 256.
28061 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28062 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28063 GRUB_USBMS_SUBCLASS_SFF8070.
28064 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28065 (grub_scsi_inquiry): New member page and alloc_length.
28066 (grub_scsi_request_sense): New structure.
28067 (grub_scsi_request_sense_data): Likewise.
28068 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28070 * disk/scsi.c (grub_scsi_request_sense): New function.
28071 (grub_scsi_test_unit_ready): Likewise.
28072 (grub_scsi_inquiry): Fill new fields.
28073 (grub_scsi_read_capacity): Likewise.
28074 (grub_scsi_read10): Add request sense at the end.
28075 (grub_scsi_read12): Likewise.
28076 (grub_scsi_write10): Likewise.
28077 (grub_scsi_write12): Likewise.
28078 (grub_scsi_open): Add Test Unit Ready.
28079 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28080 Support additional subclasses. Con't clear halt yet. Activate the
28081 proper config. Calculate LUNs correctly.
28082 (grub_usbms_transfer): Various important fixups.
28084 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28086 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28087 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28088 (grub_ohci_fini_hw): New function.
28089 (grub_ohci_restore_hw): Likewise.
28090 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28091 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28092 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28094 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28096 Dedicated DMA allocations.
28098 * bus/pci.c (grub_memalign_dma32): New function
28099 (grub_dma_free): Likewise.
28100 (grub_dma_get_virt): Likewise.
28101 (grub_dma_get_phys): Likewise.
28102 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28103 (grub_ohci_pci_iter): Use dma32_alloc.
28104 (grub_ohci_transfer): Likewise.
28105 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28106 (grub_usb_bulk_readwrite): Likewise.
28107 * include/grub/pci.h: Add declarations.
28109 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28113 * bus/cs5536.c: New file.
28114 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28115 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28116 (cs5536_mod_SOURCES): New variable.
28117 (cs5536_mod_CFLAGS): Likewise.
28118 (cs5536_mod_LDFLAGS): Likewise.
28119 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28121 (kernel_img_SOURCES): Add bus/cs5536.c.
28122 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28124 (usb_mod_SOURCES): New variable.
28125 (usb_mod_CFLAGS): New variable.
28126 (usb_mod_LDFLAGS): New variable.
28127 (usbtest_mod_SOURCES): New variable.
28128 (usbtest_mod_CFLAGS): New variable.
28129 (usbtest_mod_LDFLAGS): New variable.
28130 (ohci_mod_SOURCES): New variable.
28131 (ohci_mod_CFLAGS): New variable.
28132 (ohci_mod_LDFLAGS): New variable.
28133 (usbms_mod_SOURCES): New variable.
28134 (usbms_mod_CFLAGS): New variable.
28135 (usbms_mod_LDFLAGS): New variable.
28136 (usb_keyboard_mod_SOURCES): New variable.
28137 (usb_keyboard_mod_CFLAGS): New variable.
28138 (usb_keyboard_mod_LDFLAGS): New variable.
28139 * include/grub/smbus.h: New file.
28140 * include/grub/cs5536.h: New file.
28142 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28144 * util/grub.d/00_header.in: Add safety check to make sure that
28145 ${locale_dir} exists before trying to probe it.
28147 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28149 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28150 per the GNU Coding Standards; this is now too obscure to be worth
28153 (chainloader): Remove cross-reference to `SCO UnixWare'.
28155 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28157 * docs/grub.texi (Chain-loading): New section.
28158 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28159 adjusted for GRUB 2.
28160 (SCO UnixWare): Likewise.
28162 (chainloader): Add reference to `Block list syntax'.
28163 (drivemap): New section.
28164 (parttool): New section.
28166 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28168 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28170 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28171 (Installing GRUB using grub-install): Remove reference to the grub
28172 shell; mention `grub-mkimage' and `grub-setup' instead.
28173 (Invoking grub-install): Likewise.
28174 (Interface): Add reference to `Menu entry editor'.
28175 (serial): Remove `--device' option.
28177 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28179 * docs/grub.texi (Configuration): New section, documenting
28180 configuration file generation using grub-mkconfig. I've left a slot
28181 for documenting the full shell scripting format but have not yet
28182 started on writing that up.
28183 (Invoking grub-mkconfig): New section.
28185 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28187 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28188 (GNU GRUB manual): Likewise.
28189 (General commands): Update description of `terminfo' for GRUB 2.
28191 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28193 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28194 (GRUB_MOD_INIT): Fix capitalisation.
28195 * docs/grub.texi (Command-line and menu entry commands): Document
28196 gettext and gptsync commands.
28198 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28200 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28201 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28203 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28205 Add btrfs probing support, currently only in the single-device case.
28207 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28209 (grub_guess_root_device): Call find_root_device_from_mountinfo
28210 before looking in /dev.
28212 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28214 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28215 GRUB_DISK_SIZE_UNKNOWN.
28216 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28218 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28220 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28221 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28222 corrupted or not synced properly.
28224 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28226 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28227 Reported by: Seth Goldberg.
28229 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28231 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28233 Reported by: Seth Goldberg.
28235 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28237 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28238 Reported by: Seth Goldberg.
28240 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28242 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28243 64-bit address as signed on MIPS.
28245 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28247 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28248 to the empty string.
28250 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28252 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28254 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28255 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28256 * kern/misc.c (__enable_execute_stack): Disable on
28259 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28261 Make grub-probe work with symbolic links under /dev/mapper as well
28262 as with real block devices. The Linux world seems to be (at best)
28263 in transition here, and GRUB shouldn't get caught in the middle.
28265 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28268 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28270 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28271 input files (in which case exit zero).
28273 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28275 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28276 return NULL for various reasons even if it has a maximum-length
28277 buffer: for example, there might be a symlink loop, or the path
28278 might exceed PATH_MAX. If this happens, return NULL.
28280 2010-05-27 Robert Millan <rmh@gnu.org>
28282 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28283 partmap module to handle cross-partmap setups.
28284 Reported by Orestes Mas. Gràcies!
28286 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28288 * util/grub-mkrescue.in: Initialise override_dir rather than
28289 assuming that it's unset or empty in the environment.
28291 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28293 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28294 variable index into p_index to suppress a warning with -Wshadow.
28296 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28298 * INSTALL: Added flex >= 2.5.35 requirement.
28300 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28302 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28304 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28308 * commands/i386/cmostest.c: New file.
28309 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28310 (cmostest_mod_SOURCES): New variable.
28311 (cmostest_mod_CFLAGS): Likewise.
28312 (cmostest_mod_LDFLAGS): Likewise.
28313 * conf/i386-pc.rmk: Likewise.
28314 * docs/grub.texi (Vendor power-on keys): New section.
28315 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28316 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28317 and GRUB_BUTTON_CMOS_ADDRESS.
28318 * util/grub.d/00_header.in: Handle powering-on by separate button.
28320 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28322 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28323 Removed drawing_scrollbar argument. All users updated
28325 Reported by Jo Shields
28327 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28329 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28330 buffer since gfxterm handles double repaint.
28332 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28334 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28335 * term/gfxterm.c (real_scroll): Likewise.
28337 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28339 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28340 before calling BIOS.
28342 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28344 * include/grub/i18n.h: Always enable grub_gettext.
28346 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28348 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28349 partition naming style.
28351 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28353 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28354 not the first option.
28356 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28358 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28360 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28362 * util/misc.c: Move inclusion of <limits.h> to ...
28363 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28365 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28367 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28368 Fix merge error in NetBSD code.
28369 (find_partition_start) [__NetBSD__]: Likewise.
28371 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28373 Fix grub-mkrescue usage unit testing.
28375 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28377 2010-05-18 Christian Franke <franke@computer.org>
28379 * util/grub.d/10_windows.in: Use path names instead of
28380 drive letters to prevent warning from Cygwin 1.7.
28381 Add drivemap command to menuentry if needed.
28383 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28385 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28386 gnumach and gnumach.gz.
28388 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28390 * include/grub/i18n.h (gettext): Inline instead of using #define.
28391 (grub_gettext): Likewise.
28394 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28396 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28397 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28398 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28399 (main): Add a slash after pkglibdirroot.
28401 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28403 * util/grub-install.in: Add missing "in" keyword.
28405 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28407 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28408 Reported by: Seth Goldberg.
28410 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28412 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28414 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28416 * configure.ac: Check for Linux device-mapper support.
28418 * util/hostdisk.c (device_is_mapped): New function.
28419 (find_partition_start): New function, partly broken out from
28420 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28421 device-mapper support added.
28422 (linux_find_partition): Use find_partition_start.
28423 (convert_system_partition_to_system_disk): Add `st' argument.
28424 Support Linux /dev/mapper/* devices if device-mapper support is
28425 available; only DM-RAID devices are understood at present.
28426 (find_system_device): Add `st' argument. Pass it to
28427 convert_system_partition_to_system_disk.
28428 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28429 find_system_device and convert_system_partition_to_system_disk. Use
28430 find_partition_start.
28432 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28433 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28434 * util/deviceiter.c [__linux__]: Define MINOR.
28435 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28436 * util/mkdevicemap.c (grub_putchar): New function.
28437 (grub_getkey): New function.
28438 (grub_refresh): New function.
28439 (main): Set debug=all if -v -v is used.
28441 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28443 Fix build with non-GNU libcs.
28445 * util/misc.c (canonicalize_file_name): Move to ...
28446 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28447 grub_make_system_path_relative_to_its_root.
28449 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28451 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28452 we handle finding grub-mkimage. Default to finding grub-mkimage in
28453 ${bindir} with program_transform_name applied, and provide a
28454 --grub-mkimage option to override this.
28456 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28458 Remove grub-mkisofs.
28460 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28461 (grub_mkisofs_SOURCES): Removed.
28462 (grub_mkisofs_CFLAGS): Removed.
28463 * util/mkisofs/defaults.h: Removed.
28464 * util/mkisofs/eltorito.c: Likewise.
28465 * util/mkisofs/exclude.h: Likewise.
28466 * util/mkisofs/hash.c: Likewise.
28467 * util/mkisofs/include/: Likewise.
28468 * util/mkisofs/include/fctldefs.h: Likewise.
28469 * util/mkisofs/include/mconfig.h: Likewise.
28470 * util/mkisofs/include/prototyp.h: Likewise.
28471 * util/mkisofs/include/statdefs.h: Likewise.
28472 * util/mkisofs/iso9660.h: Likewise.
28473 * util/mkisofs/joliet.c: Likewise.
28474 * util/mkisofs/match.c: Likewise.
28475 * util/mkisofs/match.h: Likewise.
28476 * util/mkisofs/mkisofs.c: Likewise.
28477 * util/mkisofs/mkisofs.h: Likewise.
28478 * util/mkisofs/msdos_partition.h: Likewise.
28479 * util/mkisofs/multi.c: Likewise.
28480 * util/mkisofs/name.c: Likewise.
28481 * util/mkisofs/rock.c: Likewise.
28482 * util/mkisofs/tree.c: Likewise.
28483 * util/mkisofs/write.c: Likewise.
28485 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28487 Unify grub-mkimage accross platforms.
28489 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28490 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28491 (grub_mkelfimage_SOURCES): Removed.
28492 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28493 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28494 (bin_UTILITIES): Add grub-mkimage.
28495 (grub_mkimage_SOURCES): New variable.
28496 (kernel_img_HEADERS): Remove machine/kernel.h.
28497 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28498 (pkglib_PROGRAMS): Add kernel.img.
28499 (kernel_img_HEADERS): Add machine/kernel.h.
28500 (kernel_img_FORMAT): Removed.
28501 (bin_UTILITIES): Remove grub-mkimage.
28502 (grub_mkimage_SOURCES): Removed.
28503 (grub_mkimage_CFLAGS): Likewise.
28504 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28505 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28506 (pkglib_PROGRAMS): Add kernel.img.
28507 (bin_UTILITIES): Remove grub-mkimage.
28508 (grub_mkimage_SOURCES): Removed.
28509 (grub_mkimage_CFLAGS): Likewise.
28510 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28511 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28512 (pkglib_PROGRAMS): Add kernel.img.
28513 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28514 (pkglib_PROGRAMS): Add kernel.img.
28515 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28516 (grub_mkimage_SOURCES): Removed.
28517 (grub_mkimage_CFLAGS): Likewise.
28518 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28519 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28520 (pkglib_PROGRAMS): Add kernel.img.
28521 (bin_UTILITIES): Remove grub-mkimage.
28522 (grub_mkimage_SOURCES): Removed.
28523 (grub_mkimage_CFLAGS): Likewise.
28524 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28525 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28526 (grub_mkimage_SOURCES): Removed.
28527 (grub_mkimage_CFLAGS): Likewise.
28528 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28529 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28530 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28531 (grub_pe32_optional_header): ... this.
28532 (grub_pe64_optional_header): ... and this. All users updated.
28533 (GRUB_PE32_PE32_MAGIC): Split into ..
28534 (GRUB_PE32_PE32_MAGIC): .. this.
28535 (GRUB_PE32_PE64_MAGIC): .. and this.
28536 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28537 * include/grub/elf.h (PT_GNU_STACK): New definition.
28538 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28539 * include/grub/i386/efi/kernel.h: Likewise.
28540 * include/grub/i386/kernel.h: Likewise.
28541 * include/grub/i386/pc/kernel.h: Likewise.
28542 * include/grub/i386/qemu/boot.h: Likewise.
28543 * include/grub/mips/kernel.h: Likewise.
28544 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28545 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28546 * include/grub/powerpc/kernel.h: Likewise.
28547 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28548 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28549 * include/grub/sparc64/kernel.h: Likewise.
28550 * include/grub/x86_64/efi/kernel.h: Likewise.
28551 * include/grub/x86_64/kernel.h: Likewise.
28552 * include/grub/offsets.h: New file.
28553 * include/grub/kernel.h (grub_module_info): Split into ...
28554 (grub_module_info32): ... this.
28555 (grub_module_info64): ... and this.
28556 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28557 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28558 (grub_boot_blocklist): Moved from here ...
28559 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28560 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28561 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28562 * include/grub/types.h (grub_target_to_host16): Removed.
28563 (grub_target_to_host32): Likewise.
28564 (grub_target_to_host64): Likewise.
28565 (grub_host_to_target16): Likewise.
28566 (grub_host_to_target32): Likewise.
28567 (grub_host_to_target64): Likewise.
28568 (grub_host_to_target_addr): Likewise.
28570 Support grub-mkrescue for efi, coreboot and qemu.
28572 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28573 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28574 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28575 * util/grub-mkrawimage.c: Moved from here ...
28576 * util/grub-mkimage.c: ... here. All users updated.
28577 (ALIGN_ADDR): Use image_target.
28578 (TARGET_NO_FIELD): New const.
28579 (image_target_desc): New type.
28580 (image_targets): New array.
28581 (grub_target_to_host64): Use image_target.
28582 (grub_target_to_host32): Likewise.
28583 (grub_target_to_host16): Likewise.
28584 (grub_host_to_target64): Likewise.
28585 (grub_host_to_target32): Likewise.
28586 (grub_host_to_target16): Likewise.
28587 (grub_host_to_target_addr): Likewise.
28588 (generate_image): Handle multiimage.
28589 (main): Require -O parameter. All users updated.
28590 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28591 util/efi/grub-mkimage.c
28592 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28593 New option --rom-directory.
28595 * util/i386/efi/grub-mkimage.c: Removed.
28596 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28597 (grub_target_to_host32): Likewise.
28598 (grub_target_to_host64): Likewise.
28599 (grub_host_to_target16): Likewise.
28600 (grub_host_to_target32): Likewise.
28601 (grub_host_to_target64): Likewise.
28602 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28603 (grub_target_to_host32): Likewise.
28604 (grub_target_to_host64): Likewise.
28605 (grub_host_to_target16): Likewise.
28606 (grub_host_to_target32): Likewise.
28607 (grub_host_to_target64): Likewise.
28609 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28611 Source tree is reorganized for emu build.
28613 * include/grub/util/console.h: Move from here...
28614 * include/grub/emu/console.h: ...to here.
28615 * include/grub/util/getroot.h: Move from here...
28616 * include/grub/emu/getroot.h: ...to here.
28617 * include/grub/util/hostdisk.h: Move from here...
28618 * include/grub/emu/hostdisk.h: ...to here.
28619 * util/console.c: Move from here...
28620 * kern/emu/console.c: ...to here.
28621 * util/getroot.c: Move from here...
28622 * kern/emu/getroot.c: ...to here.
28623 * util/grub-emu.c: Move from here...
28624 * kern/emu/main.c: ...to here.
28625 * util/hostdisk.c: Move from here...
28626 * kern/emu/hostdisk.c: ...to here.
28627 * util/hostfs.c: Move from here...
28628 * kern/emu/hostfs.c: ...to here.
28629 * util/mm.c: Move from here...
28630 * kern/emu/mm.c: ...to here.
28631 * util/pci.c: Move from here...
28632 * bus/emu/pci.c: ...to here.
28633 * util/sdl.c: Move from here...
28634 * video/emu/sdl.c: ...to here.
28635 * util/time.c: Move from here...
28636 * kern/emu/time.c: ...to here.
28637 * util/usb.c: Move from here...
28638 * bus/usb/emu/usb.c: ...to here.
28640 * include/grub/emu/misc.h: New header for grub-emu functions.
28641 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28643 * conf/any-emu.rmk: Rule updates for above renames.
28644 * conf/common.rmk: Likewise.
28645 * conf/i386-pc.rmk: Likewise.
28646 * conf/i386-qemu.rmk: Likewise.
28647 * conf/mips.rmk: Likewise.
28648 * conf/sparc64-ieee1275.rmk: Likewise.
28649 * conf/x86-efi.rmk: Likewise.
28651 * disk/lvm.h: #include updates for above renames.
28652 * util/grub-mkrelpath.c: Likewise.
28653 * util/grub-probe.c: Likewise.
28654 * util/i386/pc/grub-setup.c: Likewise.
28655 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28656 * kern/emu/console.c: Likewise.
28657 * kern/emu/getroot.c: Likewise.
28658 * kern/emu/hostdisk.c: Likewise.
28659 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28661 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28662 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28663 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28664 * util/misc.c: Remove grub-emu functions.
28666 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28669 Reported by: Thorsten Grützmacher.
28671 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28673 (circprog_set_property): Register and unregister timeout hook.
28674 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28675 (label_destroy): Free template. and unregister hook.
28676 (label_set_state): New function.
28677 (label_set_property): Handle templates and hooks.
28678 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28680 (progress_bar_set_property): Register and unregister timeout hook.
28681 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28682 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28683 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28684 (update_timeout_visit): Removed.
28685 (update_timeouts): New function.
28686 (redraw_timeouts): Likewise.
28687 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28688 (grub_gfxmenu_clear_timeout): Likewise.
28689 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28690 (grub_gfxmenu_timeout_notify): Likewise.
28691 (grub_gfxmenu_timeout_notifications): New external variable.
28692 (grub_gfxmenu_timeout_register): New function.
28693 (grub_gfxmenu_timeout_unregister): Likewise.
28695 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28697 Transform (broken) vga terminal into (working) vga video driver.
28699 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28700 video/i386/pc/vga.c.
28701 * include/grub/video.h (grub_video_driver_id):
28702 Add GRUB_VIDEO_DRIVER_VGA.
28703 * term/i386/pc/vga.c: Renamed to ...
28704 * video/i386/pc/vga.c: ...this
28705 (DEBUG_VGA): Removed.
28706 (CHAR_WIDTH): Likewise.
28707 (CHAR_HEIGHT): Likewise.
28708 (TEXT_WIDTH): Likewise.
28709 (TEXT_HEIGHT): Likewise.
28710 (DEFAULT_FG_COLOR): Likewise.
28711 (DEFAULT_BG_COLOR): Likewise.
28712 (colored_char): Likewise.
28715 (cursor_state): Likewise.
28716 (fg_color): Likewise.
28717 (bg_color): Likewise.
28718 (text_buf): Likewise.
28721 (framebuffer): New variable.
28722 (set_read_map): Disabled.
28723 (setup): New variable.
28724 (is_target): Likewise.
28725 (grub_vga_mod_init): Likewise.
28726 (grub_vga_mod_fini): Likewise.
28727 (check_vga_mem): Likewise.
28728 (write_char): Likewise.
28729 (write_cursor): Likewise.
28730 (scroll_up): Likewise.
28731 (grub_vga_putchar): Likewise.
28732 (grub_vga_getcharwidth): Likewise.
28733 (grub_vga_getwh): Likewise.
28734 (grub_vga_getxy): Likewise.
28735 (grub_vga_gotoxy): Likewise.
28736 (grub_vga_cls): Likewise.
28737 (grub_vga_setcolorstate): Likewise.
28738 (grub_vga_setcursor): Likewise.
28739 (grub_video_vga_init): New function.
28740 (grub_video_vga_setup): Likewise.
28741 (grub_video_vga_fini): Likewise.
28742 (update_target): Likewise.
28743 (grub_video_vga_blit_bitmap): Likewise.
28744 (grub_video_vga_blit_render_target): Likewise.
28745 (grub_video_vga_set_active_render_target): Likewise.
28746 (grub_video_vga_get_active_render_target): Likewise.
28747 (grub_video_vga_swap_buffers): Likewise.
28748 (grub_video_vga_set_palette): Likewise.
28749 (grub_video_vga_get_info_and_fini): Likewise.
28750 (grub_vga_term): Removed.
28751 (grub_video_vga_adapter): New variable.
28752 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28753 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28755 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28757 * video/readers/jpeg.c: Indented.
28759 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28761 Various jpeg cleanups.
28763 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28764 (grub_jpeg_decode_quan_table): Use sizeof.
28765 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28767 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28769 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28770 tables. Ignore non-last ac bit.
28771 (grub_jpeg_decode_quan_table): Likewise.
28773 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28775 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28776 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28777 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28778 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28779 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28780 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28782 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28784 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28787 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28789 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28791 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28793 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28796 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28798 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28801 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28803 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28806 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28808 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28810 2010-05-01 Christian Franke <franke@computer.org>
28812 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28813 Remove broken Cygwin path conversion.
28814 * util/misc.c: [__CYGWIN__] Add include and define.
28815 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28817 (make_system_path_relative_to_its_root): Simplify loop, replace early
28819 [__CYGWIN__] Add conversion to win32 path.
28820 Include "/" case in trailing slash removal.
28822 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28824 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28825 Reported by: Seth Goldberg
28827 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28829 * commands/help.c (grub_cmd_help): Fix a typo.
28830 Reported by: Seth Goldberg
28832 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28834 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28836 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28837 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28838 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28839 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28840 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28841 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28842 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28843 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28844 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28845 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28846 * normal/context.c (GRUB_MOD_INIT): Likewise.
28847 * normal/main.c (GRUB_MOD_INIT): Likewise.
28848 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28849 * term/serial.c (GRUB_MOD_INIT): Likewise.
28850 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28852 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28854 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28857 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28859 * commands/iorw.c: New file.
28860 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28861 (iorw_mod_SOURCES): New variable.
28862 (iorw_mod_CFLAGS): Likewise.
28863 (iorw_mod_LDFLAGS): Likewise.
28865 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28869 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28870 * normal/main.c (hotkey_aliases): New variable.
28871 (grub_normal_add_menu_entry): Parse "--hotkey".
28872 * normal/menu_text.c (run_menu): Handle hotkeys.
28874 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28876 * kern/i386/coreboot/init.c (grub_machine_init): Call
28877 grub_machine_mmap_init on qemu.
28879 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28881 * boot/i386/qemu/boot.S: Add a missing .code16.
28883 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28885 Use LBIO on coreboot.
28887 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28888 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28889 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28891 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28892 grub_machine_mmap_init on coreboot.
28893 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28894 GRUB_LINUXBIOS_MEMBER_LINK.
28895 (grub_machine_mmap_iterate): Fix declaration.
28896 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28898 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28900 Split coreboot and multiboot ports.
28902 * conf/i386-multiboot.rmk: New file.
28903 * configure.ac: Add multiboot port.
28904 * include/grub/i386/multiboot/boot.h: New file.
28905 * include/grub/i386/multiboot/console.h: Likewise.
28906 * include/grub/i386/multiboot/init.h: Likewise.
28907 * include/grub/i386/multiboot/kernel.h: Likewise.
28908 * include/grub/i386/multiboot/loader.h: Likewise.
28909 * include/grub/i386/multiboot/memory.h: Likewise.
28910 * include/grub/i386/multiboot/serial.h: Likewise.
28911 * include/grub/i386/multiboot/time.h: Likewise.
28912 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28913 * loader/multiboot.c: Likewise.
28914 * loader/multiboot_mbi2.c: Likewise.
28915 * util/grub-mkrescue.in: Generate multiboot rescue.
28917 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28919 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28921 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28923 Merge handling of input and output terminals. Fix a hang.
28925 * commands/terminal.c (abstract_terminal): New struct.
28926 (handle_command): New function. Based on grub_cmd_terminal_input.
28927 (grub_cmd_terminal_input): Use handle_command.
28928 (grub_cmd_terminal_output): Use handle_command.
28930 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28932 Fix comment handling.
28934 * tests/grub_script_comments.in: New testcase.
28935 * conf/tests.rmk: Rules for new testcase.
28936 * script/yylex.l: Updated flex rules.
28938 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28940 * docs/grub.texi (play): Document that zero pitches produce rests.
28941 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28944 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28946 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28949 2010-04-26 Christian Franke <franke@computer.org>
28951 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28952 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28953 (grub_get_prefix): Remove function.
28954 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28955 make_system_path_relative_to_its_root ().
28956 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28958 2010-04-24 Christian Franke <franke@computer.org>
28960 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28961 (kernel_img_LDFLAGS): Remove -static-libgcc.
28963 2010-04-24 Christian Franke <franke@computer.org>
28965 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28966 and CHECK_END_SYMBOL if grub-emu is built.
28967 Unset TARGET_OBJ2ELF if grub-emu is built
28968 without module support.
28970 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28974 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28975 (grub_fstest_SOURCES): Likewise.
28976 (pkglib_MODULES): Add nilfs2.mod.
28977 (nilfs2_mod_SOURCES): New variable.
28978 (nilfs2_mod_CFLAGS): Likewise.
28979 (nilfs2_mod_LDFLAGS): Likewise.
28980 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28981 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28982 * fs/nilfs2.c: New file.
28984 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28986 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28989 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28991 Add grub-mkconfig support for NetBSD.
28993 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28994 * util/grub-mkconfig.in: export new NetBSD specific variables.
28995 * po/POTFILES-shell: added 10_netbsd.in.
28996 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28998 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29000 Fix emu build with grub-emu-pci and grub-emu-modules.
29002 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29004 * include/grub/libpciaccess.h: New file.
29005 * conf/any-emu.rmk: Update kernel headers for emu build.
29007 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29009 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29011 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29013 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29015 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29017 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29018 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29019 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29020 util/ieee1275/ofpath.c.
29021 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29022 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29023 * include/grub/sparc64/ieee1275/boot.h
29024 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29025 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29026 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29027 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29029 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29030 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29031 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29034 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29036 * util/grub-mkconfig.in: Corrected two == equality tests.
29037 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29038 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29039 expect a number appended to it.
29040 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29041 expects a number appended to it.
29043 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29045 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29047 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29049 * util/hostdisk.c (make_device_name): Change to new partition naming.
29051 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29053 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29055 2010-04-17 Christian Franke <franke@computer.org>
29057 * Makefile.in: Add missing localedir setting.
29059 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29061 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29062 mistake in r2156. Noticed by Anthony Fok.
29064 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29066 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29068 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29070 Fix a spurious, uninitialized variable warning.
29072 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29073 Initialize variable, shdr.
29074 (grub_freebsd_load_elfmodule): Likewise.
29075 (grub_freebsd_load_elf_meta): Likewise.
29077 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29079 Fix for escaped dollar in double quoted strings.
29081 * script/yylex.l: Updated flex rules.
29082 * conf/tests.rmk: Rule for new testcase.
29083 * tests/grub_script_dollar.in: New testcase.
29085 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29086 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29088 Enclose all translated strings in grub.cfg in single quotes, and
29089 escape them appropriately (Ubuntu bug #552921).
29091 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29092 * util/grub.d/10_hurd.in: Use it.
29093 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29094 * util/grub.d/10_linux.in (linux_entry): Likewise.
29096 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29098 Fix cygwin compilation.
29100 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29101 * include/grub/misc.h (__register_frame_info)
29102 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29103 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29104 * kern/misc.c (__register_frame_info)
29105 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29106 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29108 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29110 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29112 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29114 Unify libgcc processing.
29116 * Makefile.in (kernel_img_LDFLAGS): New variable.
29117 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29118 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29120 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29121 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29122 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29123 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29124 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29125 overwriting. Remove -lgcc and -static-libgcc
29126 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29127 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29128 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29129 (kernel_img_LDFLAGS): Append instead of overwriting.
29130 Remove -lgcc and -static-libgcc
29131 * conf/sparc64-ieee1275.rmk: Likewise.
29132 * include/grub/powerpc/libgcc.h: Move to ...
29133 * include/grub/libgcc.h: .. this.
29134 * include/grub/libgcc.h: Don't export most of the function on x86.
29135 (__bswapsi2): New export.
29136 (__bswapdi2): Likewise.
29137 * include/grub/mips/libgcc.h: Removed.
29138 * include/grub/sparc64/libgcc.h: Likewise.
29140 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29142 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29143 disk_info_msg (conflicts with gettexting into languages with cases).
29145 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29147 Add grub-probe support for NetBSD.
29149 * util/getroot.c (find_root_device): Convert block device to
29150 character device on NetBSD.
29151 * util/probe.c (probe): Require character device on NetBSD.
29152 * util/hostdisk.c: NetBSD specific headers.
29153 (configure_device_driver): new function to tune device driver
29154 parameters (currently only for NetBSD floppy driver).
29155 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29156 via disklabel ioctl).
29157 (open_device): call configure_device_driver on NetBSD.
29158 (convert_system_partition_to_system_disk): NetBSD specific code.
29159 (device_is_wholedisk): Likewise.
29160 (grub_util_biosdisk_get_grub_dev): Likewise.
29161 (make_device_name): Fixed a typo in bsd_part_str.
29162 * configure.ac: check for opendisk() and getrawpartition() on
29163 NetBSD and set LIBUTIL.
29164 * Makefile.in: add LIBUTIL to LIBS.
29166 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29170 * util/grub-script-check.c: Better help message.
29172 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29176 * configure.ac: Flex version check.
29177 * conf/common.rmk: Add -Wno-error to sh.mod.
29178 * script/yylex.l: Remove all #pragma.
29180 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29182 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29184 Reported by: Seth Goldberg.
29186 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29188 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29189 Rename "module" to "module2".
29190 Reported by: Seth Goldberg.
29192 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29194 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29196 Reported by: Seth Goldberg.
29198 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29200 * lib/posix_wrap/locale.h: Add missing file.
29201 Reported by: Seth Goldberg.
29203 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29205 grub-emu module load support.
29207 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29208 NO_DYNAMIC_MODULES switched to this.
29209 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29210 (CFLAGS): Likewise.
29211 * conf/any-emu.rmk: Generate symlist.
29212 (kernel_img_HEADERS): Add util/datetime.h.
29213 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29214 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29215 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29216 kern/$(target_cpu)/cache.S.
29217 * configure.ac (grub-emu-modules): New option.
29218 * genmk.rb: Handle multiple source lists.
29219 * include/grub/sdl.h: New file.
29220 * include/grub/libusb.h: Likewise.
29221 * util/grub-emu.c (main): Hanle (host) root.
29222 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29223 GRUB_ERR_UNKNOWN_DEVICE.
29224 * util/misc.c: Move mm functions to ...
29225 * util/mm.c: ... here. All users updated.
29227 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29229 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29230 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29232 (maintainer-clean): Remove libgcrypt-grub.
29234 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29236 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29238 2010-04-09 EFI Coder <eficoder@hotmail.com>
29240 * normal/menu_text.c (print_message): Clean up the message and show
29241 the Fn information when on EFI
29242 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29244 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29246 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29248 * normal/crypto.c (read_crypto_list): Likewise.
29249 * normal/dyncmd.c (read_command_list): Likewise.
29250 * normal/term.c (read_terminal_list): Likewise.
29251 * normal/main.c (read_lists): Use explicit prefix.
29252 (read_lists_hook): Use read_lists.
29253 (grub_normal_execute): Likewise.
29255 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29257 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29258 Reported by: Thomas Schmitt.
29259 Add -no-emul-boot to grub-mkisofs parameters.
29261 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29263 * font/font.c: Indented.
29265 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29267 Elif support to GRUB script (by Deepak Vankadaru).
29269 * tests/grub_script_if.in: New testcase.
29270 * conf/tests.rmk: Rule for new testcase.
29271 * script/parser.y: Grammar rules for elif.
29273 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29275 While and until loops support to GRUB script.
29277 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29278 (grub_script_create_cmdwhile): New function prototype.
29279 (grub_script_execute_cmdwhile): New function prototype.
29280 * script/execute.c (grub_script_execute_cmdwhile): New function.
29281 * script/parser.y (command): New commands.
29282 (whilecmd): New grammar rule.
29283 (untilcmd): New grammar rule.
29284 * script/script.c (grub_script_create_cmdwhile): New function.
29285 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29288 * tests/grub_script_while1.in: New testcase.
29289 * conf/tests.rmk: Rule for new testcase.
29291 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29293 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29296 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29298 GRUB_BACKGROUND support.
29300 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29301 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29303 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29305 Load fonts and modules for gfxmenu in grub-mkconfig.
29306 Idea by: Mario Vazquez
29308 * util/grub.d/00_header.in: Load pf2 and image modules.
29310 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29312 grub-mkconfig multiple terminal support.
29314 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29315 * util/grub.d/00_header.in: Likewise.
29317 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29319 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29320 we use cd $(srcdir).
29322 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29324 * util/grub.d/10_linux.in: Only use the first word of
29325 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29326 spaces in GRUB_DISTRIBUTOR.
29327 * util/grub.d/10_kfreebsd.in: Likewise.
29328 * util/grub.d/10_hurd.in: Likewise.
29330 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29332 Fix unit testing framework for Qemu 0.12.
29334 * tests/util/grub-shell.in: Remove -serial stdio option.
29336 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29338 POSIX header file wrappers.
29340 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29342 * lib/posix_wrap/ctype.h: Likewise.
29343 * lib/posix_wrap/errno.h: Likewise.
29344 * lib/posix_wrap/langinfo.h: Likewise.
29345 * lib/posix_wrap/limits.h: Likewise.
29346 * lib/posix_wrap/localcharset.h: Likewise.
29347 * lib/posix_wrap/stdint.h: Likewise.
29348 * lib/posix_wrap/stdio.h: Likewise.
29349 * lib/posix_wrap/stdlib.h: Likewise.
29350 * lib/posix_wrap/string.h: Likewise.
29351 * lib/posix_wrap/sys/types.h: Likewise.
29352 * lib/posix_wrap/unistd.h: Likewise.
29353 * lib/posix_wrap/wchar.h: Likewise.
29354 * lib/posix_wrap/wctype.h: Likewise.
29355 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29356 (grub_script.yy.h): Likewise.
29357 * script/yylex.l: Remove POSIX emulation #defines.
29358 * Makefile.in (POSIX_CFLAGS): New variable.
29359 (GNULIB_UTIL_CFLAGS): Likewise.
29363 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29364 (regexp_mod_SOURCES): New variable.
29365 (regexp_mod_CFLAGS): Likewise.
29366 (regexp_mod_LDFLAGS): Likewise.
29367 * commands/regexp.c: New file.
29368 * gnulib/regcomp.c: New file. Imported from gnulib.
29369 * gnulib/regex.c: Likewise.
29370 * gnulib/regex_internal.c: Likewise.
29371 * gnulib/regex_internal.h: Likewise.
29372 * gnulib/regexec.c: Likewise.
29373 * gnulib/regex.h: Likewise.
29375 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29377 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29378 unsupported video mode types.
29380 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29382 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29384 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29386 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29387 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29389 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29391 Remove unused grub_vga_get_font.
29393 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29394 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29396 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29398 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29399 * include/grub/misc.h: Likewise.
29401 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29403 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29404 for which failure is fatal.
29406 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29408 * util/grub-install.in: Use mkdir -p to create grub directory.
29409 * util/i386/efi/grub-install.in: Likewise.
29410 * util/ieee1275/grub-install.in: Likewise.
29412 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29414 * Makefile.in (LEX): new variable.
29416 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29418 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29419 `=' and added double quotes on operands of this equality test.
29421 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29423 * Makefile.in (uninstall): Remove a leftover debug echo.
29424 Reported by: Grégoire Sutre
29426 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29428 MIPS multiboot2 support.
29430 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29431 (multiboot2_mod_SOURCES): New variable.
29432 (multiboot2_mod_CFLAGS): Likewise.
29433 (multiboot2_mod_LDFLAGS): Likewise.
29434 (multiboot2_mod_ASFLAGS): Likewise.
29435 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29437 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29438 (MULTIBOOT_MBI_REGISTER): Likewise.
29439 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29440 (MULTIBOOT_ELF32_MACHINE): Likewise.
29441 (MULTIBOOT_ELF64_MACHINE): Likewise.
29442 * include/grub/mips/multiboot.h: New file.
29443 * include/grub/video.h (grub_video_driver_id): New type
29444 GRUB_VIDEO_DRIVER_SM712.
29445 (grub_video_get_info_and_fini): Export.
29446 (grub_video_get_palette): Likewise.
29447 (grub_video_get_driver_id): Likewise.
29448 * include/multiboot2.h: Resynced with spec.
29449 * loader/i386/multiboot.c: Moved from here ...
29450 * loader/multiboot.c: ... here. All users updated.
29451 (grub_multiboot_boot): Use platform-specific macros.
29452 * loader/i386/multiboot_elfxx.c: Moved from here ...
29453 * loader/multiboot_elfxx.c: ... here. All users updated.
29454 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29455 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29456 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29458 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29460 Import gnulib argp module.
29462 * gnulib/argp-ba.c: New file.
29463 * gnulib/argp-eexst.c: Likewise.
29464 * gnulib/argp-fmtstream.c: Likewise.
29465 * gnulib/argp-fmtstream.h: Likewise.
29466 * gnulib/argp-fs-xinl.c: Likewise.
29467 * gnulib/argp-help.c: Likewise.
29468 * gnulib/argp-namefrob.h: Likewise.
29469 * gnulib/argp-parse.c: Likewise.
29470 * gnulib/argp-pin.c: Likewise.
29471 * gnulib/argp-pv.c: Likewise.
29472 * gnulib/argp-pvh.c: Likewise.
29473 * gnulib/argp-version-etc.c: Likewise.
29474 * gnulib/argp-version-etc.h: Likewise.
29475 * gnulib/argp-xinl.c: Likewise.
29476 * gnulib/argp.h: Likewise.
29478 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29480 * kern/device.c (grub_device_iterate): Clear errors after failed
29483 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29485 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29486 returned by firmware.
29488 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29490 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29491 compilation on coreboot and qemu
29493 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29495 * include/multiboot2.h: Resync with spec.
29497 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29499 Multiboot2 tag support
29501 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29502 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29503 Remove loader/multiboot_loader.c.
29504 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29505 (grub_multiboot2_real_boot): Likewise.
29506 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29507 (grub_get_multiboot_mmap_count): New proto.
29508 (grub_fill_multiboot_mmap): Likewise.
29509 (grub_multiboot_set_video_mode): Likewise.
29510 (grub_multiboot_set_console): Likewise.
29511 (grub_multiboot_load): Likewise.
29512 (grub_multiboot_load_elf): Likewise.
29513 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29514 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29515 * include/multiboot.h: Resynced with specification.
29516 * include/multiboot2.h: Resynced with specification.
29517 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29518 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29519 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29520 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29522 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29523 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29524 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29526 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29528 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29529 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29531 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29532 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29533 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29535 * loader/i386/multiboot_mbi2.c: New file.
29537 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29539 Resync with gnulib.
29541 * Makefile.in (GNULIB_CFLAGS): New variable.
29542 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29543 (grub_script_check_CFLAGS): New variable.
29544 * gnulib/alloca.h: Resync with gnulib.
29545 * gnulib/error.c: Likewise.
29546 * gnulib/error.h: Likewise.
29547 * gnulib/fnmatch.c: Likewise.
29548 * gnulib/fnmatch_loop.c: Likewise.
29549 * gnulib/getdelim.c: Likewise.
29550 * gnulib/getline.c: Likewise.
29551 * gnulib/getopt.c: Likewise.
29552 * gnulib/getopt1.c: Likewise.
29553 * gnulib/getopt_int.h: Likewise.
29554 * gnulib/gettext.h: Likewise.
29555 * gnulib/progname.c: Likewise.
29556 * gnulib/progname.h: Likewise.
29558 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29560 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29561 which is the case with --disabled-nls.
29563 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29564 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29565 * util/misc.c: Likewise.
29566 * util/mkisofs/mkisofs.c: Likewise.
29567 * util/mkisofs/mkisofs.h: Likewise.
29569 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29571 Simplify Apple CC support.
29573 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29574 Add 0 byte at the end not to have a symbol with empty target.
29575 * mmap/i386/pc/mmap_helper.S: Likewise.
29576 * genmk.rb: Ignore errors 2030 and 2050.
29577 * kern/i386/pc/startup.S: Use LOCAL when possible.
29579 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29581 Testcase and the fix for final semicolon on cmdline.
29583 * tests/grub_script_final_semicolon.in: New testcase.
29584 * conf/tests.rmk: Rules for the new testcase.
29585 * script/parser.y: Grammar fix.
29587 2010-03-26 BVK Chaitanya <bvk@localhost>
29589 Blank lines testcase for GRUB script.
29591 * tests/grub_script_blanklines.in: New testcase.
29592 * conf/tests.rmk: Rules for the new testcase.
29594 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29596 Don't use __FILE__.
29598 * genmk.rb: Add -DGRUB_FILE to all C targets.
29599 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29600 * include/grub/list.h: Likewise.
29601 * include/grub/misc.h: Likewise.
29602 * include/grub/mm.h: Likewise.
29603 * include/grub/test.h: Likewise.
29604 * kern/mm.c: Likewise.
29605 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29607 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29609 Sunpc partitions support.
29611 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29612 (grub_fstest_SOURCES): Likewise.
29613 (pkglib_MODULES): Add part_sunpc.mod.
29614 (part_sunpc_mod_SOURCES): New variable.
29615 (part_sunpc_mod_CFLAGS): Likewise.
29616 (part_sunpc_mod_LDFLAGS): Likewise.
29617 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29618 * partmap/sunpc.c: New file.
29620 2010-03-26 BVK Chaitanya <bvk@localhost>
29622 For loop support to GRUB script.
29624 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29625 (grub_script_create_cmdfor): New function prototype.
29626 (grub_script_execute_cmdfor): New function prototype.
29627 * script/execute.c (grub_script_execute_cmdfor): New function.
29628 * script/parser.y (command): New for command.
29629 (forcmd): New grammar rule.
29630 * script/script.c (grub_script_create_cmdfor): New function.
29631 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29633 * tests/grub_script_for1.in: New testcase.
29634 * conf/tests.rmk: Rules for new testcase.
29636 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29640 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29641 'partition' is NULL, grub_partition_get_start already does that.
29642 * commands/loadenv.c (check_blocklists): Likewise.
29643 (write_blocklists): Likewise.
29644 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29645 (grub_fstest_SOURCES): Likewise.
29646 (pkglib_MODULES): Add part_bsd.mod.
29647 (part_bsd_mod_SOURCES): New variable.
29648 (part_bsd_mod_CFLAGS): Likewise.
29649 (part_bsd_mod_LDFLAGS): Likewise.
29650 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29651 (grub_emu_SOURCES): Likewise.
29652 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29653 * include/grub/bsdlabel.h: New file.
29654 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29656 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29657 (grub_partition_map_list): New variable.
29658 (grub_partition_map_register): Inline.
29659 (grub_partition_map_unregister): Likewise.
29660 (FOR_PARTITION_MAPS): New macro.
29661 (grub_partition_map_iterate): Removed.
29662 (grub_partition_get_start): Handle nested partitions.
29663 * include/grub/msdos_partition.h: Remove bsd-related entries.
29664 (grub_pc_partition): Remove.
29665 * kern/disk.c (grub_disk_close): Free partition data.
29666 (grub_disk_adjust_range): Handle nested partitions.
29667 * kern/partition.c (grub_partition_map_probe): New function.
29668 (grub_partition_probe): Parse name to number, handle subpartitions.
29669 (get_partmap): New function.
29670 (grub_partition_iterate): Handle subpartitions.
29671 (grub_partition_get_name): Likewise.
29672 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29673 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29674 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29675 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29677 (acorn_partition_map_probe): Remove.
29678 (acorn_partition_map_get_name): Likewise.
29679 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29681 Set 'index' to 0 since there can be only one partition entry per sector.
29682 (amiga_partition_map_probe): Remove.
29683 (amiga_partition_map_get_name): Likewise.
29684 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29686 Set 'offset' and 'index' to real positions of partitions.
29687 (apple_partition_map_probe): Remove.
29688 (apple_partition_map_get_name): Likewise.
29689 * partmap/bsdlabel.c: New file.
29690 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29692 Allocate 'data' so it can be correctly freed.
29693 Set 'index' to offset inside sector.
29694 (gpt_partition_map_probe): Remove.
29695 (gpt_partition_map_get_name): Likewise.
29696 * partmap/msdos.c (grub_partition_parse): Remove.
29697 (pc_partition_map_iterate): Don't force raw access.
29699 Make 'ext_offset' a local variable.
29700 (pc_partition_map_probe): Remove.
29701 (pc_partition_map_get_name): Remove.
29702 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29704 (sun_partition_map_probe): Remove.
29705 (sun_partition_map_get_name): Likewise.
29706 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29707 (grub_pcpart_type): Likewise.
29708 * util/hostdisk.c (open_device): Handle new numbering scheme.
29709 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29710 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29711 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29712 * util/grub-install.in: Insert all subpartition modules.
29713 * util/ieee1275/grub-install.in: Likewise.
29715 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29717 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29720 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29722 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29724 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29726 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29727 match where 'make install' puts them.
29728 * util/i386/efi/grub-install.in: Likewise.
29730 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29732 * .bzrignore: Add gentrigtables, grub-script-check,
29733 grub_script_check_init.c, grub_script_check_init.h, and
29736 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29738 * kern/parser.c: Indented.
29740 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29742 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29744 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29746 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29747 alpha_mask_size == 0 case.
29749 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29751 GRUB shell lexer and parser improvements.
29753 * conf/any-emu.rmk: Build rule updates.
29754 * conf/common.rmk: Likewise.
29755 * conf/i386-coreboot.rmk: Likewise.
29756 * conf/i386-efi.rmk: Likewise.
29757 * conf/i386-ieee1275.rmk: Likewise.
29758 * conf/i386-pc.rmk: Likewise.
29759 * conf/powerpc-ieee1275.rmk: Likewise.
29760 * conf/x86_64-efi.rmk: Likewise.
29762 * configure.ac: Configure check for flex.
29764 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29766 (grub_lexer_param): Struct member updates.
29767 (grub_parser_param): Likewise.
29768 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29769 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29770 (grub_script_lexer_init): Prototype update.
29771 (grub_script_lexer_record_start): Likewise.
29772 (grub_script_lexer_record_stop): Likewise.
29773 (grub_script_lexer_yywrap): New function prototype.
29774 (grub_script_lexer_fini): Likewise.
29775 (grub_script_execute_argument_to_string): Removed by...
29776 (grub_script_execute_argument_to_argv): ...better version.
29778 * script/execute.c (ROUND_UPTO): New macro.
29779 (grub_script_execute_cmdline): Out of memory fixes.
29780 (grub_script_execute_menuentry): Likewise.
29781 (grub_script_execute_argument_to_string): Removed. Update all
29783 (grub_script_execute_argument_to_argv): ...better version.
29784 * script/function.c (grub_script_function_create): Use
29785 grub_script_execute_argument_to_argv instead of
29786 grub_script_execute_argument_to_string.
29788 * script/lexer.c (check_varstate): Removed.
29789 (check_textstate): Removed.
29790 (grub_script_lexer_record_start): Likewise.
29791 (grub_script_lexer_record_stop): Likewise.
29792 (recordchar): Replaced with...
29793 (grub_script_lexer_record): ...new function.
29794 (nextchar): Removed.
29795 (grub_script_lexer_init): Rewritten.
29796 (grub_script_yylex): Rewritten.
29797 (append_newline): New function.
29798 (grub_script_lexer_yywrap): New function.
29799 (grub_script_lexer_fini): New function.
29800 (grub_script_yyerror): Sets error flag.
29802 * script/yylex.l: New file.
29803 (grub_lexer_yyfree): Wrapper for flex yyffre.
29804 (grub_lexer_yyalloc): Likewise.
29805 (grub_lexer_yyrealloc): Likewise.
29806 * script/parser.y: Refactored.
29808 * script/script.c (grub_script_arg_add): Out of memory fixes.
29809 (grub_script_add_arglist): Likewise.
29810 (grub_script_create_cmdline): Likewise.
29811 (grub_script_create_cmdmenu): Likewise.
29812 (grub_script_add_cmd): Likewise.
29813 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29814 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29817 * tests/grub_script_echo1.in: New testcase.
29818 * tests/grub_script_vars1.in: New testcase.
29819 * tests/grub_script_echo_keywords.in: New testcase.
29821 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29823 Remove some redundancy in build system.
29825 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29826 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29827 (TARGET_LDFLAGS): Add -nostdlib.
29828 (TARGET_IMG_LDFLAGS): Likewise.
29829 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29830 anything since mmap isn't available.
29831 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29833 (pkglib_MODULES): Remove reboot.mod.
29834 (reboot_mod_SOURCES): Removed.
29835 (reboot_mod_CFLAGS): Likewise.
29836 (reboot_mod_LDFLAGS): Likewise.
29837 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29838 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29839 (DEFSYMFILES): Add kernel_syms.lst.
29840 (kernel_img_HEADERS): Add common headers.
29841 (symlist.c): New target.
29842 (kernel_syms.lst): Likewise.
29843 (pkglib_MODULES): Add memdisk.mod.
29844 (memdisk_mod_SOURCES): New variable.
29845 (memdisk_mod_CFLAGS): Likewise.
29846 (memdisk_mod_LDFLAGS): Likewise.
29847 (pkglib_MODULES): Add reboot.mod.
29848 (reboot_mod_SOURCES): New variable.
29849 (reboot_mod_CFLAGS): Likewise.
29850 (reboot_mod_LDFLAGS): Likewise.
29851 (pkglib_MODULES): Add date.mod.
29852 (date_mod_SOURCES): New variable.
29853 (date_mod_CFLAGS): Likewise.
29854 (date_mod_LDFLAGS): Likewise.
29855 (pkglib_MODULES): Add datehook.mod.
29856 (datehook_mod_SOURCES): New variable.
29857 (datehook_mod_CFLAGS): Likewise.
29858 (datehook_mod_LDFLAGS): Likewise.
29859 (pkglib_MODULES): Add lsmmap.mod.
29860 (lsmmap_mod_SOURCES): New variable.
29861 (lsmmap_mod_CFLAGS): Likewise.
29862 (lsmmap_mod_LDFLAGS): Likewise.
29863 (pkglib_MODULES): Add boot.mod.
29864 (boot_mod_SOURCES): New variable.
29865 (boot_mod_CFLAGS): Likewise.
29866 (boot_mod_LDFLAGS): Likewise.
29867 * conf/i386-coreboot.rmk: Removed redundant parts.
29868 * conf/i386-ieee1275.rmk: Likewise.
29869 * conf/i386-pc.rmk: Likewise.
29870 * conf/mips-yeeloong.rmk: Likewise.
29871 * conf/mips.rmk: Likewise.
29872 * conf/powerpc-ieee1275.rmk: Likewise.
29873 * conf/sparc64-ieee1275.rmk: Likewise.
29874 * conf/x86_64-efi.rmk: Likewise.
29875 * conf/i386-coreboot.rmk: Moved qemu parts ..
29876 * conf/i386-qemu.rmk: ... here
29877 * conf/i386-efi.rmk: Moved common parts to...
29878 * conf/x86-efi.rmk: ... here.
29879 * conf/i386.rmk: Added modules common to all x86 variants.
29880 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29881 * disk/memdisk.c: Remove grub/machine/kernel.h.
29882 * gensymlist.sh.in: Include symbol.h.
29883 * hook/datehook.c: Correct module name.
29884 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29885 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29886 * include/grub/i386/efi/serial.h: New file.
29887 * include/grub/x86_64/efi/serial.h: Likewise.
29888 * util/time.c: Likewise.
29889 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29891 2010-03-14 Colin King <colin.king@ubuntu.com>
29892 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29894 Shrink the pre-partition-table part of boot.img by eight bytes.
29896 * boot/i386/pc/boot.S (ERR): New macro.
29897 (chs_mode): Use ERR.
29898 (geometry_error): Likewise.
29899 (hd_probe_error): Remove. This is only used once, so we wrwite
29901 (read_error): Instead of printing read_error_string, just set up
29902 %si and fall through to ...
29903 (error_message): ... this new function, also used by ERR.
29905 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29907 Speed up consecutive hostdisk operations on the same device.
29909 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29910 (grub_util_biosdisk_open): Initialise disk->data.
29911 (struct linux_partition_cache): New structure.
29912 (linux_find_partition): Cache partition start positions; these are
29913 expensive to compute on every read and write.
29914 (open_device): Cache open file descriptor in disk->data, so that we
29915 don't have to reopen it and flush the buffer cache for consecutive
29916 operations on the same device.
29917 (grub_util_biosdisk_close): New function.
29918 (grub_util_biosdisk_dev): Set `close' member.
29920 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29921 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29922 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29923 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29924 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29926 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29928 Compile parts of grub-emu as modules.
29930 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29931 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29932 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29933 (all-local): Add $(GRUB_EMU).
29934 (install-local): Install $(GRUB_EMU).
29935 (uninstall): Uninstall $(GRUB_EMU).
29936 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29937 * kern/dl.c: Likewise.
29938 * commands/sleep.c: Not include machine/time.h.
29939 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29940 (COMMON_CFLAGS): Likewise.
29941 (sbin_UTILITIES): Remove grub-emu.
29942 (grub_emu_SOURCES): Removed.
29943 (kernel_img_RELOCATABLE): New variable.
29944 (pkglib_PROGRAMS): Add kernel.img.
29945 (kernel_img_SOURCES): New variable
29946 (kernel_img_CFLAGS): Likewise.
29947 (kernel_img_LDFLAGS): Likewise.
29948 (TARGET_NO_STRIP): Likewise.
29949 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29950 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29951 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29952 (grub-emu): New target.
29953 (GRUB_EMU): New variable.
29954 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29955 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29956 * loader/xnu.c: Likewise.
29957 * include/grub/pci.h: Likewise.
29958 * genemuinit.sh: New file.
29959 * genemuinitheader.sh: Likewise.
29960 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29961 Support TARGET_NO_DYNAMIC_MODULES.
29962 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29963 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29964 * disk/loopback.c: Likewise.
29965 * font/font_cmd.c: Likewise.
29966 * partmap/acorn.c: Likewise.
29967 * partmap/amiga.c: Likewise.
29968 * partmap/apple.c: Likewise.
29969 * partmap/gpt.c: Likewise.
29970 * partmap/msdos.c: Likewise.
29971 * partmap/sun.c: Likewise.
29972 * parttool/msdospart.c: Likewise.
29973 * term/gfxterm.c: Likewise.
29974 * video/bitmap.c: Likewise.
29975 * video/readers/jpeg.c: Likewise.
29976 * video/readers/png.c: Likewise.
29977 * video/readers/tga.c: Likewise.
29978 * video/video.c: Likewise.
29979 * util/grub-emu.c (read_command_list): Removed.
29980 (main): Don't call util_init_nls.
29981 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29982 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29984 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29986 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29987 date.mod, datehook.mod.
29988 (datetime_mod_SOURCES): New variable.
29989 (datetime_mod_CFLAGS): Likewise.
29990 (datetime_mod_LDFLAGS): Likewise.
29991 (date_mod_SOURCES): Likewise.
29992 (date_mod_CFLAGS): Likewise.
29993 (date_mod_LDFLAGS): Likewise.
29994 (datehook_mod_SOURCES): Likewise.
29995 (datehook_mod_CFLAGS): Likewise.
29996 (datehook_mod_LDFLAGS): Likewise.
29997 * conf/sparc64-ieee1275.rmk: Likewise.
29998 * lib/ieee1275/datetime.c: New file.
30000 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30002 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30003 (ieee1275_fb_mod_SOURCES): New variable.
30004 (ieee1275_fb_mod_CFLAGS): Likewise.
30005 (ieee1275_fb_mod_LDFLAGS): Likewise.
30006 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30008 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30009 (HEAP_MAX_ADDR): Likewise.
30010 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30012 Correct stop condition.
30013 (grub_ieee1275_devices_iterate): New function.
30014 * video/ieee1275.c: New file.
30016 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30018 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30020 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30022 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30023 SCRATCH_PAD_DISKBOOT as scratch.
30024 (bootit): Pass Openfirmware pointer in %o4.
30025 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30027 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30028 with util/grub-mkrawimage.c.
30029 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30030 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30031 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30032 (grub_aout_load) [GRUB_UTIL]: Likewise.
30033 * include/grub/kernel.h (grub_modules_get_end): New proto.
30034 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30035 (SCRATCH_PAD_BOOT): New definition.
30036 (SCRATCH_PAD_DISKBOOT): Likewise.
30037 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30038 * include/grub/sparc64/ieee1275/ieee1275.h
30039 (grub_ieee1275_original_stack): New variable
30040 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30042 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30043 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30044 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30045 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30046 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30047 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30048 (grub_platform_image_format_t): New type.
30049 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30050 * kern/main.c (grub_modules_get_end)
30051 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30052 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30053 (codestart): Switch stacks.
30054 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30056 (grub_heap_init): Use grub_modules_get_end.
30057 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30059 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30061 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30063 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30065 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30067 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30069 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30072 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30074 * genmoddep.awk: Output all missing symbols and not only first.
30076 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30078 * NEWS: Put the date of 1.98 release.
30080 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30082 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30085 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30087 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30088 completition in the middle of string.
30090 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30092 * util/grub-mkrescue.in: Use mktemp with explicit template.
30094 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30096 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30098 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30100 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30103 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30105 Fix FreeBSD compilation.
30107 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30108 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30110 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30112 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30114 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30116 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30118 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30120 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30122 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30124 Support relative image path in theme file.
30126 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30127 (image_set_property): Handle theme_dir and relative path.
30129 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30131 * configure.ac: Alias amd64 to x86_64.
30133 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30135 * NEWS: mention multiboot on EFI.
30137 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30139 * kern/main.c (grub_load_modules): Handle errors from init functions of
30142 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30144 * normal/autofs.c (autoload_fs_module): Handle errors.
30146 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30148 Disable linux.mod on qemu-mips since it's not functional and leads
30149 to compilation failure.
30151 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30152 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30153 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30154 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30155 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30156 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30157 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30158 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30159 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30160 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30161 Reported by: BVK Chaitanya
30163 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30165 * INSTALL: Add gettext as a dependency and add qemu to a new section
30166 "Prerequisites for make-check".
30168 2010-03-04 Christian Franke <franke@computer.org>
30170 * util/grub-pe2elf.c: Add missing include "progname.h".
30172 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30174 * normal/crypto.c (read_crypto_list): Fix a typo.
30175 Reported by: Seth Goldberg.
30177 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30179 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30180 Reported by: Seth Goldberg.
30182 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30184 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30187 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30189 * genmk.rb: Remove terminal*.lst in make clean.
30190 Reported by: Seth Goldberg.
30192 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30194 * util/i386/efi/grub-install.in: Copy gettext files.
30196 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30198 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30200 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30202 Wait for user entry basing on presence of output rather than on errors.
30204 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30205 (grub_install_newline_hook): Likewise.
30206 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30207 * normal/menu.c (show_menu): Check line_counter to determine presence
30209 * normal/term.c (grub_normal_line_counter): New variable.
30210 (grub_normal_get_line_counter): New function.
30211 (grub_install_newline_hook): Likewise.
30213 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30215 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30217 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30219 * configure.ac: Update version to 1.98.
30221 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30223 * util/grub.d/10_linux.in (linux_entry): Don't default to
30224 gfxpayload=keep if Linux doesn't support video handover.
30226 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30228 Don't compile video modules on yeeloong since video subsystem is part
30231 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30232 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30233 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30234 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30235 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30236 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30237 * include/grub/bitmap_scale.h: Likewise.
30238 * include/grub/bufio.h: Likewise.
30239 * include/grub/font.h: Likewise.
30240 * include/grub/gfxterm.h: Likewise.
30241 * include/grub/video.h: Likewise.
30242 * include/grub/vbe.h: Don't include video_fb.h.
30243 * video/i386/pc/vbe.c: Include video_fb.h.
30244 * commands/i386/pc/vbetest.c: Include video.h.
30246 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30248 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30249 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30250 default entry if GRUB_SAVEDEFAULT=true. This allows using
30251 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30252 saving a new default on every boot.
30254 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30256 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30257 * normal/term.c (read_terminal_list): Likewise.
30258 * normal/main.c (grub_normal_init_page): Likewise.
30259 (grub_normal_read_line_real): Likewise.
30261 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30263 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30265 Reported by: Seth Goldberg.
30267 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30269 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30270 duplicate declaration of `start'.
30272 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30274 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30276 Reported by: Georgy Buranov
30278 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30280 * util/grub-mkrawimage.c (usage): Change string formatting to
30283 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30285 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30288 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30290 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30291 Reported by: Michael Suchanek.
30293 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30295 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30296 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30298 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30300 Remove any reference to non-free fonts.
30302 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30303 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30304 uses non-free components.
30305 * font/font.c (grub_font_get_name): Remove example name.
30306 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30307 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30308 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30309 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30311 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30313 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30315 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30317 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30319 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30321 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30323 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30325 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30327 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30329 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30330 * docs/grub.texi (Command-line and menu entry commands): Document play
30333 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30335 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30336 parse arguments as inline tempo and notes. Move code for playing notes
30338 (play): ... new function.
30340 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30342 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30343 grub_uint16_t instead of short.
30344 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30345 disk from little endian to cpu endianness.
30347 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30349 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30350 GRUB_TICKS_PER_SECOND instead of 120.
30352 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30354 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30355 escape sequence after \e.
30357 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30359 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30360 non-ASCII characters.
30362 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30364 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30365 set root in single quotes to prevent \, from being unescaped.
30367 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30369 Prevent unknown commands from stopping menuentry execution.
30371 * script/execute.c (grub_script_execute_cmdline): Print error after
30374 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30376 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30377 Reported by: Pavel Pisa.
30379 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30381 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30383 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30385 Merge grub_ieee1275_map_physical into grub_map and rename to
30388 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30389 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30391 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30392 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30394 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30396 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30398 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30399 opening and not after.
30401 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30403 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30406 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30408 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30409 (alloc_phys): Use ALIGN_UP instead of align_addr.
30411 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30413 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30415 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30417 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30419 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30421 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30424 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30426 Fix over-4GiB seek on sparc64.
30428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30429 Replace pos_i and pos_lo with pos. All users updated.
30430 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30432 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30434 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30437 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30439 * util/grub-mkrawimage.c (main): Call set_program_name.
30441 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30443 Properly align 64-bit targets.
30445 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30446 (generate_image): Use ALIGN_ADDR.
30448 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30450 Properly create cross-endian images.
30452 * include/grub/types.h (grub_host_to_target_addr): New macro
30453 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30455 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30457 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30459 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30461 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30463 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30464 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30465 (grub_linux_boot): Divide by 64K when on VESA.
30467 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30469 Support GRUB_GFXPAYLOAD_LINUX.
30471 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30472 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30474 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30476 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30477 to show messages instead of discarding them.
30478 Process errors after executing command and not before. Keep old method
30481 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30483 * configure.ac: Check for ft2build.h.
30485 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30487 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30489 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30491 * genkernsyms.sh.in: Use TARGET_CC.
30493 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30497 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30499 * include/grub/multiboot2.h: Remove leftover file.
30500 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30501 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30503 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30505 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30507 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30509 Fix warnings in grub-emu when compiling with maximum warning options.
30511 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30512 (grub_arch_modules_addr): Return 0 and not NULL.
30513 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30514 (xstrdup): Use newstr instead of dup.
30515 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30516 of disk to dsk to avoid shadowing.
30517 (find_free_slot): Fix prototype.
30518 * util/getroot.c (grub_util_is_dmraid): Make static.
30519 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30520 Add missing prototype.
30521 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30523 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30525 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30528 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30530 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30533 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30535 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30536 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30537 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30538 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30539 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30540 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30542 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30544 * include/grub/err.h (grub_err_printf): Don't export.
30546 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30548 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30550 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30552 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30553 * kern/misc.c (grub_gettext_dummy): Make static.
30555 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30557 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30559 * kern/term.c (grub_putchar): Likewise.
30561 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30563 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30564 buggy hook call and memory leak.
30566 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30568 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30570 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30572 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30574 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30576 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30578 Return grub_errno on allocation error.
30580 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30582 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30584 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30586 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30587 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30589 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30591 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30593 (grub_pxefs_open): Likewise.
30595 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30597 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30598 * util/grub.d/10_kfreebsd.in: Likewise.
30599 * util/grub.d/10_linux.in: Likewise.
30601 2010-02-06 Colin D Bennett <colin@gibibit.com>
30603 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30604 (gfxmenu_mod_SOURCES): New variable.
30605 (gfxmenu_mod_CFLAGS): Likewise.
30606 (gfxmenu_mod_LDFLAGS): Likewise.
30607 * include/grub/term.h (grub_term_set_current_output): Declare
30609 * docs/gfxmenu-theme-example.txt: New file.
30610 * gfxmenu/gfxmenu.c: Likewise.
30611 * gfxmenu/gui_box.c: Likewise.
30612 * gfxmenu/gui_canvas.c: Likewise.
30613 * gfxmenu/gui_circular_progress.c: Likewise.
30614 * gfxmenu/gui_image.c: Likewise.
30615 * gfxmenu/gui_label.c: Likewise.
30616 * gfxmenu/gui_list.c: Likewise.
30617 * gfxmenu/gui_progress_bar.c: Likewise.
30618 * gfxmenu/gui_string_util.c: Likewise.
30619 * gfxmenu/gui_util.c: Likewise.
30620 * gfxmenu/icon_manager.c: Likewise.
30621 * gfxmenu/model.c: Likewise.
30622 * gfxmenu/named_colors.c: Likewise.
30623 * gfxmenu/theme_loader.c: Likewise.
30624 * gfxmenu/view.c: Likewise.
30625 * gfxmenu/widget-box.c: Likewise.
30626 * include/grub/gfxmenu_model.h: Likewise.
30627 * include/grub/gfxmenu_view.h: Likewise.
30628 * include/grub/gfxwidgets.h: Likewise.
30629 * include/grub/gui.h: Likewise.
30630 * include/grub/gui_string_util.h: Likewise.
30631 * include/grub/icon_manager.h: Likewise.
30633 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30635 Agglomerate scrolling in gfxterm.
30637 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30638 (grub_virtual_screen_setup): Initialise 'total_screen'.
30639 (write_char): Split to ...
30640 (paint_char): ... this ...
30641 (write_char): ... and this.
30642 (paint_char): Handle delayed scrolling.
30643 (draw_cursor): Likewise.
30644 (scroll_up): Split to ...
30645 (real_scroll): ... this ...
30646 (scroll_up): ... and this.
30647 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30649 (grub_gfxterm_refresh): Call real_scroll.
30651 2010-02-06 Colin D Bennett <colin@gibibit.com>
30653 * include/grub/misc.h (grub_iscntrl): New inline function.
30654 (grub_isalnum): Likewise.
30655 (grub_strtol): Likewise.
30657 2010-02-06 Colin D Bennett <colin@gibibit.com>
30659 * normal/menu_text.c (get_entry_number): Move from here ...
30660 * normal/menu.c (get_entry_number): ... moved here.
30661 * include/grub/menu.h (grub_menu_get_default_entry_index):
30663 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30664 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30665 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30666 (grub_menu_viewer_should_return): Likewise.
30667 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30668 * normal/menu_text.c (run_menu): Enable menu switching.
30669 * normal/menu_viewer.c (should_return): New variable.
30670 (menu_viewer_changed): Likewise.
30671 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30672 (grub_menu_viewer_should_return): New function.
30673 (menuviewer_write_hook): Likewise.
30674 (grub_menu_viewer_init): Likewise.
30676 2010-02-06 Colin D Bennet <colin@gibibit.com>
30677 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30679 Support for gfxterm in a window.
30681 * include/grub/gfxterm.h: New file.
30682 * include/grub/video.h (struct grub_video_rect): New declaration.
30683 (grub_video_rect_t): Likewise.
30684 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30685 (refcount): New variable.
30686 (render_target): Likewise.
30687 (window): Likewise.
30688 (repaint_callback): Likewise.
30689 (grub_virtual_screen_setup): Use 'render_target'.
30690 (init_window): New function.
30691 (grub_gfxterm_init_window): Likewise.
30692 (grub_gfxterm_init): Check reference counter.
30694 (destroy_window): New function.
30695 (grub_gfxterm_destroy_window): Likewise.
30696 (grub_gfxterm_fini): Check reference counter.
30697 Use destroy_window.
30698 (redraw_screen_rect): Restore viewport.
30699 Use 'render_target' and 'window'.
30700 Call 'repaint_callback'.
30701 (write_char): Use 'render_target'.
30702 (draw_cursor): Likewise.
30703 (scroll_up): Restore viewport.
30704 Use 'render_target' and 'window'.
30705 Call 'repaint_callback'.
30706 (grub_gfxterm_cls): Likewise.
30707 (grub_gfxterm_refresh): Use 'window'.
30708 (grub_gfxterm_set_repaint_callback): New function.
30709 (grub_gfxterm_background_image_cmd): Use 'window'.
30710 (grub_gfxterm_get_term): New function.
30711 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30713 2010-02-06 Colin D Bennett <colin@gibibit.com>
30715 Bitmap scaling support.
30717 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30718 (bitmap_scale_mod_SOURCES): New variable.
30719 (bitmap_scale_mod_CFLAGS): Likewise.
30720 (bitmap_scale_mod_LDFLAGS): Likewise.
30721 * include/grub/bitmap_scale.h: New file.
30722 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30723 (background_image_cmd_options): New variable.
30724 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30725 (cmd): Rename and change type to ...
30726 (background_image_cmd_handle): ... this. All users updated.
30727 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30728 * video/bitmap_scale.c: New file.
30730 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30734 * Makefile.in (LIBSDL): New variable.
30735 (enable_grub_emu_sdl): Likewise.
30736 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30737 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30738 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30739 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30740 * util/sdl.c: New file.
30742 2010-02-06 Colin D Bennett <colin@gibibit.com>
30743 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30745 Double buffering support.
30747 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30748 * include/grub/video.h: Update comment.
30749 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30751 (grub_video_fb_doublebuf_blit_init): New prototype.
30752 * term/gfxterm.c (scroll_up): Support double buffering.
30753 (grub_gfxterm_refresh): Likewise.
30754 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30755 (grub_video_fb_doublebuf_blit_init): Likewise.
30756 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30757 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30758 'displayed_page', 'render_page' and 'update_screen'.
30759 (grub_video_vbe_fini): Free offscreen buffer.
30760 (doublebuf_pageflipping_commit): New function.
30761 (doublebuf_pageflipping_update_screen): Likewise.
30762 (doublebuf_pageflipping_init): Likewise.
30763 (double_buffering_init): Likewise.
30764 (grub_video_vbe_setup): Enable doublebuffering.
30765 (grub_video_vbe_swap_buffers): Implement.
30766 (grub_video_vbe_set_active_render_target): Handle double buffering.
30767 (grub_video_vbe_get_active_render_target): Likewise.
30768 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30769 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30770 (grub_video_vbe_enable_double_buffering): Likewise.
30771 (grub_video_vbe_swap_buffers): Use update_screen.
30772 (grub_video_set_mode): Use double buffering.
30774 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30776 * maintainance/gentrigtables.py: Remove.
30777 * lib/trig.c: Likewise.
30779 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30781 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30783 (trigtables.c): New rule.
30784 (gentrigtables): Likewise.
30785 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30787 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30789 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30792 2010-02-06 Colin D Bennet <colin@gibibit.com>
30794 Trigonometry support.
30796 * include/grub/trig.h: New file.
30797 * lib/trig.c: Likewise.
30798 * maintainance/gentrigtables.py: Likewise.
30799 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30800 (trig_mod_SOURCES): New variable.
30801 (trig_mod_CFLAGS): Likewise.
30802 (trig_mod_LDFLAGS): Likewise.
30804 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30806 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30809 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30811 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30814 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30816 * util/hostdisk.c (open_device): Don't use partition device when reading
30817 before the partition.
30818 (grub_util_biosdisk_read): Don't read from partition and before the
30819 partition in single operation.
30820 (grub_util_biosdisk_write): Don't write to partition and before the
30821 partition in single operation.
30823 2010-02-03 Torsten Landschoff <torsten@debian.org>
30825 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30828 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30830 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30832 (grub_biosdisk_write): Refuse to write to CDROM.
30834 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30836 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30838 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30840 * font/font.c (find_glyph): Check that bmp_idx is available before
30842 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30843 with (font == NULL).
30845 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30847 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30849 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30851 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30852 * util/grub-script-check.c (getline): Fix empty lines case.
30854 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30856 * Makefile.in (check): Exit with fail status when one of the tests
30858 * tests/example_functional_test.c (example_test): Fix reversed assert.
30859 * tests/example_unit_test.c (example_test): Likewise.
30861 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30863 * util/grub.d/10_linux.in: This script does not use any of the
30864 contents of gettext.sh, only the external command `gettext', so stop
30865 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30866 the same prefix as GRUB.)
30867 * util/grub.d/10_kfreebsd.in: Likewise.
30869 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30871 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30874 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30876 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30879 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30881 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30882 having a 4KiB and not 32KiB buffer size.
30884 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30886 * util/hostfs.c: Include `<errno.h>'.
30887 (grub_hostfs_read): Handle errors from fseeko() and fread().
30889 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30891 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30892 loop when using read hooks on files whose size isn't sector-aligned.
30894 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30896 Remove unused parameter.
30898 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30899 (grub_iso9660_open): Remove initialization of `data->length'.
30901 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30903 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30904 memleak conditions.
30906 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30908 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30909 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30911 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30913 * util/bin2h.c (usage): Fix warning (space after backslash).
30915 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30917 * font/font.c: Include `grub/fontformat.h.
30918 Remove font file format constants.
30919 (grub_font_load): Use the new macros.
30920 * include/grub/fontformat.h: New file.
30921 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30922 (write_font_pf2): Use the new macros.
30924 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30926 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30929 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30931 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30933 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30934 (_start): Macroify `0x7F'.
30936 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30937 (make_install_device): Use "(pxe)" as fallback prefix when booting
30940 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30942 * configure.ac: Reset LIBS after check for libgcc symbols.
30944 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30946 * util/hostdisk.c (open_device): Add trailing newline to debug
30949 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30951 * configure.ac: Check for `limits.h'.
30952 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30954 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30956 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30957 capitalize error strings.
30959 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30961 * util/grub.d/10_hurd.in: Add a recovery mode.
30963 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30965 * configure.ac: Check for libgcc symbols with -nostdlib.
30967 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30969 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30971 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30973 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30974 stack since heap may be unavailable at that point.
30975 (grub_ofconsole_gotoxy): Likewise.
30977 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30979 * configure.ac: Check for _restgpr_14_x.
30980 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30981 and _savegpr_* prototypes.
30983 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30985 Use generic grub_reboot() for i386-efi.
30987 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30988 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30989 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30991 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30993 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30994 presence of "prefix" variable as it breaks when normal.mod is
30997 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30999 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31000 stack since heap is unavailable at that point.
31002 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31004 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31005 (grub_freebsd_bootinfo): Rewritten.
31006 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31008 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31010 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31012 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31014 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31017 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31019 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31020 around for handling "/" to the correct fix. Fix a memory leak. Use
31021 xstrdup instead of strdup.
31023 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31025 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31027 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31029 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31031 * font/font.c (struct grub_font): New member 'bmp_idx'.
31032 (font_init): Initialise 'bmp_idx'.
31033 (load_font_index): Fill 'bmp_idx'.
31034 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31036 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31038 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31041 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31043 Move context handling out of the kernel.
31045 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31046 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31047 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31048 * conf/i386-efi.rmk: Likewise.
31049 * conf/i386-ieee1275.rmk: Likewise.
31050 * conf/i386-pc.rmk: Likewise.
31051 * conf/powerpc-ieee1275.rmk: Likewise.
31052 * conf/sparc64-ieee1275.rmk: Likewise.
31053 * conf/x86_64-efi.rmk: Likewise.
31054 * include/grub/env.h: Include grub/menu.h.
31055 (grub_env_var_type): Removed.
31056 (grub_env_var): Replaced field 'type' with 'global'.
31057 (grub_env_find): New prototype.
31058 (grub_env_context_open): Remove EXPORT_FUNC.
31059 (grub_env_context_close): Likewise.
31060 (grub_env_export): Likewise.
31061 (grub_env_set_data_slot): Removed.
31062 (grub_env_get_data_slot): Likewise.
31063 (grub_env_unset_data_slot): Likewise.
31064 (grub_env_unset_menu): New prototype.
31065 (grub_env_set_menu): Likewise.
31066 (grub_env_get_menu): Likewise.
31067 * include/grub/env_private.h: New file.
31068 * include/grub/normal.h (grub_context_init): New prototype.
31069 (grub_context_fini): Likewise.
31070 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31071 * normal/context.c (grub_cmd_export): ... to here.
31072 * kern/env.c: Include env_private.h.
31073 (HASHSZ): Moved to include/grub/env_private.h.
31074 (grub_env_context): Likewise.
31075 (grub_env_sorted_var): Likewise.
31076 (current_context): Renamed from this ...
31077 (grub_current_context): ...to this. 'static' removed. All users updated.
31078 (grub_env_find): Removed 'static'.
31079 (grub_env_context_open): Moved to normal/context.c.
31080 (grub_env_context_close): Likewise.
31081 (grub_env_export): Likewise.
31082 (mangle_data_slot_name): Removed.
31083 (grub_env_set_data_slot): Likewise.
31084 (grub_env_get_data_slot): Likewise.
31085 (grub_env_unset_data_slot): Likewise.
31086 * kern/main.c (grub_set_root_dev): Don't export root.
31087 It will be done later.
31088 (grub_main): Don't export prefix.
31089 It will be done later.
31090 * normal/context.c: New file.
31091 * normal/main.c (free_menu): Use grub_env_unset_menu.
31092 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31093 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31094 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31095 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31097 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31101 * commands/setpci.c: New file.
31102 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31103 (setpci_mod_SOURCES): New variable.
31104 (setpci_mod_CFLAGS): Likewise.
31105 (setpci_mod_LDFLAGS): Likewise.
31107 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31109 Byte-addressable PCI configuration space.
31111 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31113 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31114 GRUB_PCI_REG_CACHELINE.
31115 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31116 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31117 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31118 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31119 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31120 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31121 grub_pci_make_address.
31122 (lock_rom_area): Likewise.
31123 * commands/lspci.c (grub_lspci_iter): Use macroses
31124 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31125 of grub_pci_make_address.
31126 * disk/ata.c (grub_ata_pciinit): Likewise.
31127 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31128 (GRUB_PCI_REG_VENDOR): Likewise.
31129 (GRUB_PCI_REG_DEVICE): Likewise.
31130 (GRUB_PCI_REG_COMMAND): Likewise.
31131 (GRUB_PCI_REG_STATUS): Likewise.
31132 (GRUB_PCI_REG_REVISION): Likewise.
31133 (GRUB_PCI_REG_CLASS): Likewise.
31134 (GRUB_PCI_REG_CACHELINE): Likewise.
31135 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31136 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31137 (GRUB_PCI_REG_BIST): Likewise.
31138 (GRUB_PCI_REG_ADDRESSES): Likewise.
31139 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31140 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31141 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31142 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31143 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31144 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31145 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31146 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31147 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31148 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31149 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31150 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31151 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31152 (GRUB_PCI_REG_MIN_GNT): Likewise.
31153 (GRUB_PCI_REG_MAX_LAT): Likewise.
31154 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31155 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31156 * video/efi_uga.c (find_framebuf): Likewise.
31157 * video/sm712.c (grub_video_sm712_setup): Likewise.
31158 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31161 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31163 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31164 can be reliably determined to be supported.
31166 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31168 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31169 that VESA is supported.
31170 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31173 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31175 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31177 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31179 * util/misc.c (make_system_path_relative_to_its_root): Work around
31180 special-casing of "/", as previous incarnation of this routine did.
31182 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31184 Fix any-emu compilation.
31186 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31187 * grub_bin2h_SOURCES: New variable.
31189 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31191 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31193 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31195 * util/grub.d/00_header.in: Fix handling of locale_dir.
31197 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31199 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31200 as possible unifont location (Gentoo).
31201 Reported by: Alexander Brüning
31203 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31205 Don't try to generate lists for kernel.img.
31207 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31208 (pkglib_MODULES): Remove kernel.img.
31209 (kernel_img_EXPORTS): Removed.
31210 (kernel_img_RELOCATABLE): New variable.
31211 * conf/x86_64-efi.rmk: Likewise.
31212 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31214 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31216 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31217 grub_xasprintf or grub_snprintf.
31218 (grub_vsprintf): Likewise.
31219 (grub_snprintf): New proto.
31220 (grub_vsnprintf): Likewise.
31221 (grub_xasprintf): Likewise.
31222 (grub_xvasprintf): Likewise.
31223 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31224 (grub_sprintf): Removed.
31225 (grub_vsnprintf): New function.
31226 (grub_snprintf): Likewise.
31227 (grub_xvasprintf): Likewise.
31228 (grub_xasprintf): Likewise.
31229 (grub_vsprintf): Renamed to ...
31230 (grub_vsnprintf_real): ...this. New argument max_len.
31232 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31234 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31235 fix grub-script-check warning.
31237 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31239 * include/grub/font.h (grub_font_load): Fix prototype.
31241 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31243 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31245 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31247 * include/grub/x86_64/at_keyboard.h: New file.
31249 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31251 * loader/mips/linux.c: Include missing grub/i18n.h.
31253 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31255 * normal/menu.c (notify_execution_failure): Clarify error message.
31257 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31259 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31260 return value (and revert all return statements). Update users.
31262 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31264 * kern/device.c (grub_device_iterate): Allocate new part_ent
31265 structure based on sizeof (*p) rather than sizeof (p->next), to
31266 account for structure padding.
31268 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31269 disk is NULL, which might happen for LVM physical volumes with no
31272 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31274 * loader/mips/linux.c (grub_cmd_initrd)
31275 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31277 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31279 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31280 (grub_video_video_init, grub_video_bitmap_init)
31281 (grub_font_manager_init, grub_term_gfxterm_init)
31282 (grub_at_keyboard_init): New extern declarations.
31283 (grub_machine_init): Initialize gfxterm and at_keyboard.
31285 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31287 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31288 `gfxterm.mod' into core image.
31290 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31291 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31292 (kernel_img_FORMAT): Copy to ...
31294 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31295 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31296 (kernel_img_FORMAT): ... here, and ...
31298 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31299 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31300 (kernel_img_FORMAT): ... here.
31302 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31303 and input (at_keyboard) terminals in kernel.
31304 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31306 (pkglib_MODULES): Remove `pci.mod'.
31307 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31308 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31309 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31310 (at_keyboard_mod_LDFLAGS): Remove variables.
31312 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31314 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31316 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31318 * include/grub/mips/libgcc.h: Only export symbols for functions
31319 that libgcc provides.
31321 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31325 * bus/bonito.c: New file.
31326 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31327 GRUB_PCI_NUM_DEVICES.
31328 * term/i386/pc/serial.c: Move to ...
31329 * term/serial.c: ... here. All users updated.
31330 * util/i386/pc/grub-mkimage.c: Move to ...
31331 * util/grub-mkrawimage.c: ... here. All users updated.
31332 * term/i386/pc/at_keyboard.c: Move to ...
31333 * term/at_keyboard.c: ... here. All users updated.
31334 * conf/mips-qemu-mips.rmk: New file.
31335 * conf/mips-yeeloong.rmk: Likewise.
31336 * conf/mips.rmk: Likewise.
31337 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31339 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31341 (grub_ata_pciinit): Support CS5536.
31342 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31343 * font/font_cmd.c (loadfont_command): Open file before passing it to
31345 (pseudo_file_read): New function.
31346 (pseudo_file_close): Likewise.
31347 (pseudo_fs): New structure.
31348 (load_font_module): New function.
31349 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31350 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31351 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31352 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31353 * include/grub/i386/at_keyboard.h: Split into ...
31354 * include/grub/at_keyboard.h: ... this ...
31355 * include/grub/i386/at_keyboard.h: ... and this.
31356 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31358 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31360 (grub_elf64_size): Likewise.
31361 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31363 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31364 * include/grub/i386/coreboot/serial.h: Rewritten.
31365 * include/grub/i386/ieee1275/serial.h: Include
31366 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31367 * include/grub/i386/pc/serial.h: Moved from here ...
31368 * include/grub/serial.h: ... to here. All users updated.
31369 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31370 (GRUB_PCI_NUM_BUS): Likewise.
31371 (GRUB_PCI_NUM_DEVICES): Likewise.
31372 (grub_pci_device_map_range): Add missing volatile keyword.
31373 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31374 * include/grub/mips/at_keyboard.h: New file.
31375 * include/grub/mips/cache.h: Likewise.
31376 * include/grub/mips/io.h: Likewise.
31377 * include/grub/mips/kernel.h: Likewise.
31378 * include/grub/mips/libgcc.h: Likewise.
31379 * include/grub/mips/pci.h: Likewise.
31380 * include/grub/mips/qemu-mips/boot.h: Likewise.
31381 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31382 * include/grub/mips/qemu-mips/loader.h: Likewise.
31383 * include/grub/mips/qemu-mips/memory.h: Likewise.
31384 * include/grub/mips/qemu-mips/serial.h: Likewise.
31385 * include/grub/mips/qemu-mips/time.h: Likewise.
31386 * include/grub/mips/relocator.h: Likewise.
31387 * include/grub/mips/time.h: Likewise.
31388 * include/grub/mips/types.h: Likewise.
31389 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31390 * include/grub/mips/yeeloong/boot.h: Likewise.
31391 * include/grub/mips/yeeloong/kernel.h: Likewise.
31392 * include/grub/mips/yeeloong/loader.h: Likewise.
31393 * include/grub/mips/yeeloong/memory.h: Likewise.
31394 * include/grub/mips/yeeloong/pci.h: Likewise.
31395 * include/grub/mips/yeeloong/serial.h: Likewise.
31396 * include/grub/mips/yeeloong/time.h: Likewise.
31397 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31398 * kern/elf.c (grub_elf32_size): New parameter. All users
31400 (grub_elf64_size): Likewise.
31401 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31402 Load modules before saying "Welcome to GRUB!".
31403 Call grub_refresh after saying "Welcome to GRUB!".
31404 * kern/mips/cache.S: New file.
31405 * kern/mips/cache_flush.S: Likewise.
31406 * kern/mips/dl.c: Likewise.
31407 * kern/mips/init.c: Likewise.
31408 * kern/mips/qemu-mips/init.c: Likewise.
31409 * kern/mips/startup.S: Likewise.
31410 * kern/mips/yeeloong/init.c: Likewise.
31411 * kern/term.c (grub_putcode): Handle NULL terminal.
31412 (grub_getcharwidth): Likewise.
31413 (grub_getkey): Likewise.
31414 (grub_checkkey): Likewise.
31415 (grub_getkeystatus): Likewise.
31416 (grub_getxy): Likewise.
31417 (grub_getwh): Likewise.
31418 (grub_gotoxy): Likewise.
31419 (grub_cls): Likewise.
31420 (grub_setcolorstate): Likewise.
31421 (grub_setcolor): Likewise.
31422 (grub_getcolor): Likewise.
31423 (grub_refresh): Likewise.
31424 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31425 (write_jump): Add hatch nop.
31426 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31427 * lib/mips/setjmp.S: New file.
31428 * loader/mips/linux.c: Likewise.
31429 * term/i386/pc/at_keyboard.c: Move from here ...
31430 * term/at_keyboard.c: ... to here.
31431 * term/i386/pc/serial.c: Moved from here ...
31432 * term/serial.c: ... to here. All users updated.
31433 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31434 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31435 (serial_translate_key_sequence): Avoid deadlock.
31436 (grub_serial_getkey): Handle backspace.
31437 (grub_serial_putchar): Fix newline handling.
31438 * util/i386/pc/grub-mkimage.c: Move from here ...
31439 * util/grub-mkrawimage.c: ... to here. All users updated.
31440 (generate_image): New parameters 'font_path' and 'format'.
31441 Support embedding font.
31442 Use grub_host_to_target* instead of grub_cpu_to_le*.
31443 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31444 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31445 (options): New option "--font".
31447 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31448 (main): Handle "--font".
31449 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31450 (grub_virtual_screen_setup): Set bg_color_display.
31451 (redraw_screen_rect): Use bg_color_display instead of incorrect
31453 (grub_gfxterm_cls): Likewise.
31454 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31455 Support embedding config file.
31456 (add_segments): Likewise.
31457 (options): New option "--config".
31458 (main): Handle "--config".
31459 * video/sm712.c: New file.
31461 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31463 Fix parallel builds.
31465 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31466 font.c depend on ascii.h).
31468 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31470 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31472 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31474 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31475 By default: disabled.
31476 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31479 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31481 * font/font.c: Update copyright years.
31482 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31484 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31486 * font/font.c: Include `ascii.h'.
31487 (ASCII_BITMAP_SIZE): New macro.
31488 (ascii_font_glyph): Define.
31489 (ascii_glyph_lookup): New function.
31490 (grub_font_get_string_width): Change comment. If glyph not found, use
31491 ascii_glyph_lookup.
31492 (grub_font_get_glyph_with_fallback): If glyph not available returns
31493 ascii_glyph_lookup.
31494 * util/grub-mkfont.c (file_formats): New enum.
31495 (options): Add `ascii-bitmaps' new option.
31496 (usage): Add `asii-bitmaps' new option.
31497 (write_font_ascii_bitmap): New function.
31498 (write_font): Rename to ...
31499 (write_font_p2): ... this. Remove print_glyphs call.
31500 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31501 used. Call print_glyphs.
31502 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31504 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31506 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31507 (grub_bin2h_SOURCES): New variable.
31508 * util/bin2h.c: New file.
31510 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31512 * include/multiboot.h: Resynced with spec.
31513 * include/multiboot2.h: Likewise.
31514 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31515 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31517 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31519 * include/grub/term.h (grub_term_register_input,
31520 grub_term_register_output): Check return of terminal init()
31521 routines, and abort if errors are raised.
31523 * commands/terminal.c: Update copyright year.
31525 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31527 * commands/terminal.c (grub_cmd_terminal_input)
31528 (grub_cmd_terminal_output): Check return of terminal init()
31529 routines, and abort if errors are raised.
31531 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31533 * include/grub/i386/bsd.h: Fix include pathes.
31535 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31537 Add missing *BSD copyright headers.
31539 * include/grub/aout.h: Add BSD licence.
31540 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31541 * include/grub/i386/freebsd_linker.h: ... here,
31542 * include/grub/i386/freebsd_reboot.h: ... here,
31543 * include/grub/i386/netbsd_bootinfo.h: ... here,
31544 * include/grub/i386/netbsd_reboot.h: ... here,
31545 * include/grub/i386/openbsd_bootarg.h: ... here,
31546 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31547 licence to each file.
31549 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31551 * acinclude.m4: Remove `nop' assembly instruction; it's not
31552 implemented by all architectures.
31554 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31556 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31557 ELILO. This is no longer necessary.
31559 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31561 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31563 * util/grub-script-check.c: grub-script-check tool.
31564 * conf/common.rmk: Make rules for grub-script-check.
31566 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31568 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31569 spotting it back in 2008. Shame on me for forgetting he did.
31571 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31573 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31575 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31576 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31577 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31578 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31579 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31580 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31582 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31584 * include/grub/test.h: Add license header.
31585 * tests/example_functional_test.c: Likewise.
31586 * tests/example_unit_test.c: Likewise.
31587 * tests/lib/functional_test.c: Likewise.
31588 * tests/lib/test.c: Likewise.
31589 * tests/lib/unit_test.c: Likewise.
31591 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31593 Use flag-based instead of hook-based video mode selection and "auto"
31596 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31597 (grub_video_set_mode): Changed prototype. All users updated.
31598 (grub_video_check_mode_flag): New inline function.
31599 * video/video.c (parse_modespec): New function.
31600 (grub_video_set_mode): Parse flags and keywords.
31602 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31604 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31607 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31609 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31611 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31613 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31615 * util/grub-emu.c (usage): Likewise.
31616 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31617 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31618 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31619 * util/i386/pc/grub-setup.c (usage): Likewise.
31621 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31623 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31625 (grub_util_info): Likewise.
31626 (grub_util_error): Likewise.
31627 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31628 and/or new lines in `grub_util_warna', `grub_util_info',
31629 `grub_util_error' calls.
31630 * util/getroot.c: Likewise.
31631 * util/grub-editenv.c: Likewise.
31632 * util/grub-emu.c: Likewise.
31633 * util/grub-fstest.c: Likewise.
31634 * util/grub-mkdevicemap.c: Likewise.
31635 * util/grub-mkfont.c: Likewise.
31636 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31637 * util/grub-mkrelpath.c: Likewise.
31638 * util/grub-pe2elf.c: Likewise.
31639 * util/grub-probe.c: Likewise.
31640 * util/hostdisk.c: Likewise.
31641 * util/i386/efi/grub-mkimage.c: Likewise.
31642 * util/i386/pc/grub-mkimage.c: Likewise.
31643 * util/i386/pc/grub-setup.c: Likewise.
31644 * util/ieee1275/ofpath.c: Likewise.
31645 * util/mkisofs/eltorito.c: Likewise.
31646 * util/mkisofs/rock.c: Likewise.
31647 * util/mkisofs/write.c: Likewise.
31648 * util/raid.c: Likewise.
31649 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31650 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31652 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31654 Enable multiboot on non-pc.
31656 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31657 multiboot.mod and multiboot2.mod to ...
31658 * conf/i386.rmk (pkglib_MODULES): ... here.
31659 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31661 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31662 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31664 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31665 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31667 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31668 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31670 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31671 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31673 (ata_mod_SOURCES): Removed.
31674 (ata_mod_CFLAGS): Likewise.
31675 (ata_mod_LDFLAGS): Likewise.
31676 (relocator_mod_SOURCES): Removed.
31677 (relocator_mod_CFLAGS): Likewise.
31678 (relocator_mod_ASFLAGS): Likewise.
31679 (relocator_mod_LDFLAGS): Likewise.
31681 * include/grub/x86_64/multiboot.h: New file.
31682 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31685 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31687 Video multiboot support.
31689 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31691 * include/multiboot.h: Resynced with multiboot specification.
31692 * include/multiboot2.h: Likewise.
31693 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31694 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31695 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31696 (HAS_VGA_TEXT): Likewise.
31697 (accepts_video): New variable.
31698 (grub_multiboot_set_accepts_video): New function.
31699 (grub_multiboot_get_mbi_size): Account for video structures.
31700 (set_video_mode): New function.
31701 (retrieve_video_parameters): Likewise.
31702 (grub_multiboot_make_mbi): Fill video fields.
31704 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31708 * include/grub/video.h (grub_video_driver_id): New type.
31709 (grub_video_adapter): New member 'id'. All users updated.
31710 (grub_video_get_driver_id): New proto.
31711 * video/video.c (grub_video_get_driver_id): New function.
31713 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31715 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31718 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31720 * normal/cmdline.c (print_completion): Gettextizze.
31722 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31724 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31726 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31728 * gettext/gettext.c (grub_gettext_translate): Push and pop
31730 (grub_gettext_delete_list): Change comment style.
31731 * kern/err.c (grub_error): Gettextizze.
31732 (grub_fatal): Gettextizze.
31734 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31736 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31737 (grub_linux16_real_boot): ... this.
31738 * kern/i386/loader.S: Likewise.
31739 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31740 (grub_linux16_boot): New function. Switches to text mode and calls
31741 grub_linux16_real_boot().
31743 * loader/i386/bsd.c: Include `<grub/video.h>'.
31744 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31745 text mode before calling grub_unix_real_boot().
31747 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31748 (grub_multiboot_boot): Switch to text mode before calling
31749 grub_relocator32_boot().
31751 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31752 (grub_chainloader_boot): Switch to text mode before calling
31753 grub_chainloader_real_boot().
31755 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31756 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31758 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31761 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31762 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31764 * util/grub.d/00_header.in: Define a "savedefault" function for use
31766 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31768 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31769 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31771 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31772 saved_entry if boot_once is unset.
31773 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31774 previous saved entry (i.e. grub-reboot).
31776 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31778 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31780 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31782 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31784 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31786 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31788 * util/grub-reboot.in: Fix --version output.
31789 * util/grub-set-default.in: Likewise.
31791 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31793 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31796 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31798 * util/grub.d/00_header.in: Quote the value assigned to `default',
31799 in case it contains spaces.
31801 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31803 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31804 `save_default_entry' call from the macosx case to the linux case.
31806 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31807 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31809 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31810 in `chosen' environment variable.
31811 * normal/menu_text.c (get_entry_number): Check if the variable
31812 matches the title of a menu entry.
31813 (run_menu): Pass menu to get_entry_number.
31815 * util/grub-reboot.in: New file.
31816 * util/grub-set-default.in: New file.
31817 * conf/common.rmk (grub-reboot): New utility.
31818 (grub-set-default): New utility.
31820 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31821 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31822 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31823 move it to `saved_entry' for the next boot. Load environment on
31825 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31826 * util/grub.d/10_hurd.in: Likewise.
31827 * util/grub.d/10_linux.in (linux_entry): Likewise.
31828 * util/grub.d/10_windows.in: Likewise.
31829 * util/grub.d/30_os-prober.in: Likewise.
31831 * util/grub-install.in: Create environment block.
31832 * util/i386/efi/grub-install.in: Likewise.
31833 * util/ieee1275/grub-install.in: Likewise.
31834 * util/sparc64/ieee1275/grub-install.in: Likewise.
31836 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31838 Unit testing framework for GRUB.
31840 * Makefile.in: Test framework build rules for 'make check'.
31841 * conf/tests.rmk: Build rules for individual tests and framework.
31843 * include/grub/test.h: Header file for whitebox tests.
31844 * tests/lib/functional_test.c: Framework support for whitebox
31846 * tests/lib/test.c: Common whitebox testing code for unit and
31848 * tests/lib/unit_test.c: Framework support for whitebox unit
31851 * tests/util/grub-shell-tester.in: Support utility for grub-script
31853 * tests/util/grub-shell.in: Utility to execute grub-script
31854 commands in a Qemu instance.
31856 * tests/example_functional_test.c: Example whitebox functional
31858 * tests/example_grub_script_test.in: Example grub-script test.
31859 * tests/example_scripted_test.in: Example scripted test.
31860 * tests/example_unit_test.c: Example whitebox unit test.
31862 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31864 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31865 Add loader/i386/multiboot_mbi.c.
31866 (multiboot2_mod_SOURCES): Likewise.
31867 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31868 (multiboot2_mod_SOURCES): Likewise.
31869 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31870 (grub_multiboot_make_mbi): Likewise.
31871 (grub_multiboot_free_mbi): Likewise.
31872 (grub_multiboot_init_mbi): Likewise.
31873 (grub_multiboot_add_module): Likewise.
31874 (grub_multiboot_set_bootdev): Likewise.
31875 * loader/i386/multiboot.c (mbi): Removed.
31876 (mbi_dest): Likewise.
31877 (alloc_mbi): New variable.
31878 (grub_multiboot_payload_size): Removed. All users updated.
31879 (grub_multiboot_pure_size): New variable.
31880 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31881 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31882 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31883 (grub_fill_multiboot_mmap): Likewise.
31884 (grub_multiboot_get_bootdev): Likewise.
31885 (grub_multiboot): Use multiboot_mbi functions.
31886 * loader/i386/multiboot_mbi.c: New file.
31888 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31890 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31891 it would result in module crash.
31893 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31895 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31896 (grub_ofconsole_getwh): Split to ...
31897 (grub_ofconsole_getwh): ... this.
31898 (grub_ofconsole_dimensions): ...and this.
31899 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31901 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31903 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31905 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31907 * loader/i386/pc/multiboot2.c: Removed stalled file.
31909 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31911 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31912 Reported by: Grégoire Sutre
31914 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31916 * util/misc.c (canonicalize_file_name): New function.
31917 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31918 instead of realpath().
31920 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31922 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31923 and make it clearer that it's optional. Based on confusion
31926 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31928 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31929 in premature implicit newline.
31931 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31933 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31934 which resulted in garbled command line at the end of screen.
31936 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31938 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31939 initialization with similar approach as with other Linux loaders.
31941 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31943 Fix i386-ieee1275 build.
31945 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31946 and grub_term_height() for video_{width,height} initialization.
31948 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31950 Fix grub-emu build.
31952 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31954 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31955 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31957 Support for multiple terminals.
31959 * Makefile.in (pkglib_DATA): terminal.lst.
31960 (terminal.lst): New target.
31961 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31962 (GRUB_MOD_INIT(handler)): Likewise.
31963 (GRUB_MOD_FINI(handler)): Likewise.
31964 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31965 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31966 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31967 (grub_cmd_sleep): Use grub_term_save_pos.
31968 * commands/terminal.c: New file.
31969 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31970 commands/terminal.c and lib/charset.c.
31971 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31972 (pkglib_MODULES): Add terminal.mod.
31973 (terminal_mod_SOURCES): New variable.
31974 (terminal_mod_CFLAGS): Likewise.
31975 (terminal_mod_LDFLAGS): Likewise.
31976 * genhandlerlist.sh: Don't handle terminals.
31977 * genmk.rb: Generate terminal-*.lst.
31978 * genterminallist.sh: New file.
31979 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31980 (grub_is_valid_utf8): Likewise.
31981 (grub_utf8_to_ucs4_alloc): Likewise.
31982 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31983 (grub_menu_register_viewer): Changed argument.
31984 (grub_menu_try_text): New proto.
31985 (grub_gfxmenu_try_hook): New declaration.
31986 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31987 (grub_menu_init_page): Additional argument term.
31988 (grub_normal_init_page): Likewise.
31989 (grub_cmdline_get): Arguments simplified.
31990 (grub_utf8_to_ucs4_alloc): Removed.
31991 (grub_print_ucs4): Additional argument term.
31992 (grub_getstringwidth): Likewise.
31993 (grub_print_message_indented): Likewise.
31994 (grub_menu_text_register_instances): New proto.
31995 (grub_show_menu): Likewise.
31996 (read_terminal_list): Likewise.
31997 (grub_set_more): Likewise.
31998 * include/grub/parser.h: Include handler.h.
31999 * include/grub/reader.h: Rewritten.
32000 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32001 (GRUB_TERM_WIDTH): Changed to function.
32002 (GRUB_TERM_HEIGHT): Likewise.
32003 (GRUB_TERM_BORDER_WIDTH): Likewise.
32004 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32005 (GRUB_TERM_NUM_ENTRIES): Likewise.
32006 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32007 (GRUB_TERM_CURSOR_X): Likewise.
32008 (grub_term_input_class): Likewise.
32009 (grub_term_output_class): Likewise.
32010 (grub_term_outputs_disabled): New declaration.
32011 (grub_term_inputs_disabled): Likewise.
32012 (grub_term_outputs): Likewise.
32013 (grub_term_inputs): Likewise.
32014 (grub_term_register_input): Rewritten.
32015 (grub_term_register_output): Likewise.
32016 (grub_term_unregister_input): Likewise.
32017 (grub_term_unregister_output): Likewise.
32018 (FOR_ACTIVE_TERM_INPUTS): New macro.
32019 (FOR_DISABLED_TERM_INPUTS): Likewise.
32020 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32021 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32022 * include/grub/terminfo.h: Add oterm argument to all protypes.
32023 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32024 Use grub_rescue_run.
32025 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32027 * kern/reader.c: Removed. All users updated.
32028 * kern/rescue_reader.c (grub_rescue_init): Removed.
32029 (grub_rescue_reader): Likewise.
32030 (grub_register_rescue_reader): Likewise.
32031 (grub_rescue_run): New function based on kern/reader.c.
32032 * kern/term.c: Adapted for multiterm.
32033 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32034 (grub_is_valid_utf8): Likewise.
32035 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32036 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32038 * loader/i386/linux.c (grub_linux_boot): Likewise.
32039 * normal/auth.c (grub_username_get): New function.
32040 (grub_auth_check_authentication): Use grub_username_get.
32041 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32042 * normal/color.c: Adapt for multiterm.
32043 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32044 (grub_normal_init_page): Additional argument term.
32045 (read_lists): Call read_terminal_lists.
32046 (grub_enter_normal_mode): Call grub_cmdline_run.
32047 Handle grub_normal_exit_level.
32048 (grub_cmd_normal): Make reentrant.
32049 (grub_cmd_normal_exit): New function.
32050 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32051 * normal/menu.c: Adapt for multiterm.
32052 * normal/menu_entry.c: Likewise.
32053 * normal/menu_text.c: Likewise.
32054 * normal/menu_viewer.c: Removed. All users updated.
32055 * normal/term.c: New file.
32056 * util/console.c: Change order of includes to workaround a bug in
32058 * term/terminfo.c: New argument oterm on all exported functions.
32060 * util/grub-editenv.c (grub_term_input_class): Removed.
32061 (grub_term_output_class): Likewise.
32063 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32065 Make loader output a bit more user-friendly.
32067 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32068 is being loaded. Likewise for the Hurd.
32070 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32071 that kernel of FreeBSD ${version} is being loaded.
32073 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32075 (grub_cmd_initrd): Likewise.
32076 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32077 that Linux ${version} is being loaded. Likewise for initrd.
32079 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32081 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32083 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32085 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32086 (GRUB_MOD_INIT): Gettextizze.
32087 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32088 (GRUB_MOD_INIT): Gettextizze.
32089 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32090 (grub_cmd_linux): Capitalise Linux.
32091 (GRUB_MOD_INIT): Gettextizze.
32092 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32093 (grub_cmd_linux): Capitalise Linux.
32094 (GRUB_MOD_INIT): Gettextizze.
32095 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32096 (grub_cmd_linux): Capitalise Linux.
32097 (GRUB_MOD_INIT): Gettextizze.
32098 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32099 (GRUB_MOD_INIT): Gettextizze.
32100 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32101 (grub_cmd_linux): Capitalise Linux.
32102 (GRUB_MOD_INIT): Gettextizze.
32103 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32104 (grub_cpu_xnu_init): Gettextizze.
32105 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32106 (GRUB_MOD_INIT): Gettextizze.
32107 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32108 (GRUB_MOD_INIT): Gettextizze.
32109 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32110 (grub_linux_load64): Capitalise Linux.
32111 (GRUB_MOD_INIT): Gettextizze.
32112 * loader/xnu.c: Include `<grub/i18n.h>'.
32113 (GRUB_MOD_INIT): Gettextizze.
32114 * po/POTFILES: Add `loader/efi/appleloader.c',
32115 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32116 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32117 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32118 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32119 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32120 and `loader/xnu.c'.
32122 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32124 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32126 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32128 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32129 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32130 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32132 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32134 Reset Multiboot 2 support. New loader implements the draft in
32135 /branches/multiboot2 and shares as much code as possible with the
32136 production Multiboot 1 implementation.
32138 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32139 * loader/multiboot2.c: Likewise.
32140 * loader/i386/multiboot_helper.S: Likewise.
32141 * include/multiboot2.h: Replace with latest version from the draft
32142 in /branches/multiboot2.
32144 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32145 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32146 and `loader/multiboot2.c'.
32147 (pkglib_MODULES): Add `multiboot2.mod'.
32148 (multiboot2_mod_SOURCES): New variable.
32149 (multiboot2_mod_LDFLAGS): Likewise.
32150 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32152 * conf/i386-pc.rmk: Likewise.
32154 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32155 (multiboot_mod_SOURCES): Remove variable.
32156 (multiboot_mod_LDFLAGS): Likewise.
32157 (multiboot_mod_CFLAGS): Likewise.
32159 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32160 `<multiboot2.h>' instead of `<multiboot.h>'.
32161 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32162 (MULTIBOOT_HEADER_MAGIC): New macros.
32164 * loader/multiboot_loader.c (module_version_status): Remove variable.
32165 (find_multi_boot2_header): Remove function.
32166 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32167 logic. Always check for the Multiboot version we're compiling for.
32168 (grub_cmd_module_loader): Likewise.
32169 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32170 command instead of `multiboot'.
32172 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32174 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32175 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32178 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32179 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32181 Fix breakage introduced with previous commit.
32183 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32185 * normal/handler.c (read_handler_list): Revert part of previous commit
32186 affecting this file.
32187 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32188 (grub_normal_execute): ... here.
32190 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32192 Merge prefix-redefinition-fix branch.
32194 * normal/autofs.c (read_fs_list): Make function capable of being
32195 run multiple times, gracefuly replacing the previous data
32197 * normal/dyncmd.c (read_command_list): Likewise.
32198 * normal/handler.c (read_handler_list): Likewise.
32199 * normal/main.c (read_lists): New function. Calls all the
32200 list reading functions.
32201 (grub_normal_execute): Use read_lists() instead of calling all
32202 list reading functions explicitly. Register read_lists() as a
32203 variable hook attached to ${prefix}.
32205 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32207 Merge crypto branch.
32209 * Makefile.in (pkglib_DATA): Add crypto.lst.
32210 (crypto.lst): New target.
32211 * commands/hashsum.c: New file.
32212 * commands/password.c (check_password): Use grub_crypto_memcmp.
32213 * commands/password_pbkdf2.c: New file.
32214 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32215 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32216 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32217 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32218 -I$(srcdir)/lib/libgcrypt_wrap.
32219 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32220 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32221 password_pbkdf2.mod.
32222 (crypto_mod_SOURCES): New variable.
32223 (crypto_mod_CFLAGS): Likewise.
32224 (crypto_mod_LDFLAGS): Likewise.
32225 (hashsum_mod_SOURCES): New variable.
32226 (hashsum_mod_CFLAGS): Likewise.
32227 (hashsum_mod_LDFLAGS): Likewise.
32228 (pbkdf2_mod_SOURCES): New variable.
32229 (pbkdf2_mod_CFLAGS): Likewise.
32230 (pbkdf2_mod_LDFLAGS): Likewise.
32231 (password_pbkdf2_mod_SOURCES): New variable.
32232 (password_pbkdf2_mod_CFLAGS): Likewise.
32233 (password_pbkdf2_mod_LDFLAGS): Likewise.
32234 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32235 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32236 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32237 Include conf/gcry.rmk.
32238 * include/grub/auth.h: Rewritten.
32239 * include/grub/crypto.h: New file.
32240 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32241 * include/grub/normal.h (read_crypto_list): New prototype.
32242 * lib/crypto.c: New file.
32243 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32244 * lib/pbkdf2.c: Likewise.
32245 * normal/auth.c (grub_auth_strcmp): Removed.
32246 (grub_iswordseparator): Likewise.
32247 (grub_auth_strword): Likewise.
32248 (is_authenticated): Use grub_strword.
32249 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32250 and grub_strword. Pass entered password to authentication callback.
32251 * normal/crypto.c: New file.
32252 * normal/main.c: Call read_crypto_list.
32253 * util/grub-mkpasswd-pbkdf2.c: New file.
32254 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32256 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32258 Fix descent and ascent calculation.
32260 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32261 (options): New option "asce".
32263 (add_char): Ignore invalid glyphs for descent calculation.
32264 Calculate ascent from actual content.
32265 (print_glyphs): Use 'asce'.
32266 (write_font): Likewise. Allow ascent override.
32267 (main): Handle "asce" option.
32269 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32271 * kern/err.c: Include `<grub/i18n.h>'.
32272 (grub_print_error): Add full stop. Gettextizze.
32273 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32274 (grub_bsd_load_elf): Capitalise ELF.
32275 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32276 (grub_cmd_freebsd_module): Likewise.
32277 (grub_cmd_freebsd_module_elf): Likewise.
32278 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32280 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32282 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32283 * commands/search_file.c (HELP_MESSAGE): New macro.
32284 * commands/search_label.c (HELP_MESSAGE): Likewise.
32285 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32286 * po/POTFILES: Add `commands/search_file.c',
32287 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32288 `commands/search.c'.
32290 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32292 * config.rpath: Update from Gnulib.
32294 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32296 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32298 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32300 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32302 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32304 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32305 arguments to fread so that we get a return value in bytes, rather
32306 than something that will normally be rounded down to 0.
32307 Adjust error handling to avoid producing garbage when size_t is not
32308 the same size as long long.
32310 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32312 * util/mkisofs/write.c (padblock_write): Check return value of
32315 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32317 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32320 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32322 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32324 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32325 instead of manual alignment.
32326 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32327 verbose). Avoid attempts to read past end of the device
32328 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32329 but GRUB_DISK_CACHE_SIZE may exceed that).
32331 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32333 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32334 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32337 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32339 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32341 (grub_efi_piwg_device_path): New structure
32342 (grub_efi_piwg_device_path_t): New type.
32343 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32344 (devpath_1): Transform to a structure. All users updated.
32345 (devpath_2): Likewise.
32346 (devpath_3): Likewise.
32347 (devpath_4): Likewise.
32348 (devpath_5): Likewise.
32350 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32352 * loader/efi/appleloader.c: Restored. Update all users.
32354 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32356 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32358 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32359 (struct boot_blocklist): Move from here ...
32360 * include/grub/i386/pc/boot.h [ASM_FILE]
32361 (struct grub_boot_blocklist): ... to here. Update all users.
32362 (setup): Only initialize `start' member of `first_block'
32363 structure. Add assert() calls to verify the other members.
32365 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32366 (generate_image): Fix broken blocklist length initialization.
32367 Add assert() call to verify blocklist `segment' field.
32369 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32371 * loader/efi/appleloader.c: Remove. Update all users.
32373 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32375 * boot/i386/pc/boot.S: Update copyright year.
32376 * boot/i386/pc/cdboot.S: Likewise.
32377 * boot/i386/pc/diskboot.S: Likewise.
32378 * boot/i386/pc/lnxboot.S: Likewise.
32379 * boot/i386/pc/pxeboot.S: Likewise.
32380 * bus/pci.c: Likewise.
32381 * commands/cmp.c: Likewise.
32382 * commands/help.c: Likewise.
32383 * commands/hexdump.c: Likewise.
32384 * commands/i386/pc/halt.c: Likewise.
32385 * commands/i386/pc/play.c: Likewise.
32386 * commands/i386/pc/vbeinfo.c: Likewise.
32387 * commands/ls.c: Likewise.
32388 * commands/test.c: Likewise.
32389 * disk/dmraid_nvidia.c: Likewise.
32390 * disk/i386/pc/biosdisk.c: Likewise.
32391 * disk/ieee1275/nand.c: Likewise.
32392 * disk/ieee1275/ofdisk.c: Likewise.
32393 * disk/lvm.c: Likewise.
32394 * disk/raid.c: Likewise.
32395 * disk/raid6_recover.c: Likewise.
32396 * disk/scsi.c: Likewise.
32397 * fs/affs.c: Likewise.
32398 * fs/cpio.c: Likewise.
32399 * fs/ext2.c: Likewise.
32400 * fs/hfs.c: Likewise.
32401 * fs/iso9660.c: Likewise.
32402 * fs/ntfs.c: Likewise.
32403 * fs/sfs.c: Likewise.
32404 * fs/udf.c: Likewise.
32405 * fs/ufs.c: Likewise.
32406 * fs/xfs.c: Likewise.
32407 * gencmdlist.sh: Likewise.
32408 * genmk.rb: Likewise.
32409 * include/grub/disk.h: Likewise.
32410 * include/grub/efi/api.h: Likewise.
32411 * include/grub/efi/efi.h: Likewise.
32412 * include/grub/efi/pe32.h: Likewise.
32413 * include/grub/elf.h: Likewise.
32414 * include/grub/fs.h: Likewise.
32415 * include/grub/i386/at_keyboard.h: Likewise.
32416 * include/grub/i386/pc/memory.h: Likewise.
32417 * include/grub/i386/pc/vbe.h: Likewise.
32418 * include/grub/i386/pci.h: Likewise.
32419 * include/grub/i386/tsc.h: Likewise.
32420 * include/grub/ieee1275/ieee1275.h: Likewise.
32421 * include/grub/ntfs.h: Likewise.
32422 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32423 * include/grub/sparc64/libgcc.h: Likewise.
32424 * include/grub/symbol.h: Likewise.
32425 * include/grub/types.h: Likewise.
32426 * include/multiboot2.h: Likewise.
32427 * io/gzio.c: Likewise.
32428 * kern/device.c: Likewise.
32429 * kern/disk.c: Likewise.
32430 * kern/efi/efi.c: Likewise.
32431 * kern/efi/mm.c: Likewise.
32432 * kern/elf.c: Likewise.
32433 * kern/file.c: Likewise.
32434 * kern/i386/dl.c: Likewise.
32435 * kern/i386/pc/init.c: Likewise.
32436 * kern/i386/pc/startup.S: Likewise.
32437 * kern/ieee1275/ieee1275.c: Likewise.
32438 * kern/ieee1275/init.c: Likewise.
32439 * kern/main.c: Likewise.
32440 * kern/mm.c: Likewise.
32441 * kern/powerpc/dl.c: Likewise.
32442 * kern/sparc64/dl.c: Likewise.
32443 * kern/x86_64/dl.c: Likewise.
32444 * lib/hexdump.c: Likewise.
32445 * loader/efi/appleloader.c: Likewise.
32446 * loader/i386/ieee1275/linux.c: Likewise.
32447 * loader/i386/pc/chainloader.c: Likewise.
32448 * loader/i386/pc/linux.c: Likewise.
32449 * loader/i386/pc/multiboot2.c: Likewise.
32450 * loader/ieee1275/multiboot2.c: Likewise.
32451 * loader/multiboot2.c: Likewise.
32452 * loader/multiboot_loader.c: Likewise.
32453 * loader/powerpc/ieee1275/linux.c: Likewise.
32454 * normal/completion.c: Likewise.
32455 * normal/menu_entry.c: Likewise.
32456 * partmap/apple.c: Likewise.
32457 * util/grub.d/10_hurd.in: Likewise.
32458 * util/hostfs.c: Likewise.
32459 * video/readers/png.c: Likewise.
32461 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32463 * include/grub/misc.h (GNUC_PREREQ): New macro.
32464 (ATTRIBUTE_ERROR): New macro.
32465 * include/grub/list.h (grub_bad_type_cast_real): Use
32468 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32470 * normal/menu_text.c (print_message): Change messages.
32472 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32474 * normal/menu_entry.c (store_completion): Gettextizze.
32476 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32478 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32480 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32482 * po/POTFILES: Sort correctly.
32484 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32486 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32487 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32488 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32490 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32491 summary. Gettextizze the strings.
32492 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32493 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32494 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32496 (GRUB_MOD_INIT): Remove command name from summary.
32497 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32499 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32500 * term/i386/pc/serial.c (options): Add full stops.
32501 (GRUB_MOD_INIT): Remove command name from the summary.
32503 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32505 * commands/acpi.c: Gettextizze help strings and/or options. Include
32506 `grub/i18n.h' if needed.
32507 * commands/blocklist.c: Likewise.
32508 * commands/boot.c: Likewise.
32509 * commands/cat.c: Likewise.
32510 * commands/cmp.c: Likewise.
32511 * commands/configfile.c: Likewise.
32512 * commands/crc.c: Likewise.
32513 * commands/date.c: Likewise.
32514 * commands/echo.c: Likewise.
32515 * commands/efi/fixvideo.c: Likewise.
32516 * commands/efi/loadbios.c: Likewise.
32517 * commands/gptsync.c: Likewise.
32518 * commands/halt.c: Likewise.
32519 * commands/handler.c: Likewise.
32520 * commands/hdparm.c: Likewise.
32521 * commands/hexdump.c: Likewise.
32522 * commands/i386/cpuid.c: Likewise.
32523 * commands/i386/pc/drivemap.c: Likewise.
32524 * commands/i386/pc/halt.c: Likewise.
32525 * commands/i386/pc/pxecmd.c: Likewise.
32526 * commands/i386/pc/vbeinfo.c: Likewise.
32527 * commands/i386/pc/vbetest.c: Likewise.
32528 * commands/ieee1275/suspend.c: Likewise.
32529 * commands/keystatus.c: Likewise.
32530 * commands/loadenv.c: Likewise.
32531 * commands/ls.c: Likewise.
32532 * commands/lsmmap.c: Likewise.
32533 * commands/lspci.c: Likewise.
32534 * commands/memrw.c: Likewise.
32535 * commands/minicmd.c: Likewise.
32536 * commands/parttool.c: Likewise.
32537 * commands/password.c: Likewise.
32538 * commands/probe.c: Likewise.
32539 * commands/read.c: Likewise.
32540 * commands/reboot.c: Likewise.
32541 * commands/search.c: Likewise.
32542 * commands/sleep.c: Likewise.
32543 * commands/test.c: Likewise.
32544 * commands/true.c: Likewise.
32545 * commands/usbtest.c: Likewise.
32546 * commands/videotest.c: Likewise.
32547 * commands/xnu_uuid.c: Likewise.
32548 * disk/loopback.c: Likewise.
32549 * hello/hello.c: Likewise.
32550 * loader/i386/bsd.c: Likewise.
32551 * term/i386/pc/serial.c: Likewise.
32552 * po/POTFILES: Add new files.
32554 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32556 * term/i386/pc/at_keyboard.c
32557 (keyboard_controller_wait_untill_ready): Rename to ...
32558 (keyboard_controller_wait_until_ready): ... this. Update all users.
32560 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32562 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32563 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32564 string using string width.
32565 * normal/menu_text.c (grub_print_message_indented): Use
32566 grub_print_spaces and not print_spaces.
32567 (print_timeout): Likewise.
32568 (print_spaces): Move to...
32569 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32571 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32573 Import from Gnulib.
32575 * gnulib/getdelim.c: New file.
32576 * gnulib/getline.c: Likewise.
32578 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32580 * include/grub/list.h (grub_assert_fail): Removed.
32581 (grub_bad_type_cast_real): New function.
32582 (grub_bad_type_cast): New macro.
32583 (GRUB_AS_LIST): Use grub_bad_type_cast.
32584 (GRUB_AS_LIST_P): Likewise.
32585 (GRUB_AS_NAMED_LIST): Likewise.
32586 (GRUB_AS_NAMED_LIST_P): Likewise.
32587 (GRUB_AS_PRIO_LIST): Likewise.
32588 (GRUB_AS_PRIO_LIST_P): Likewise.
32589 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32591 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32593 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32596 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32598 * configure.ac: Check for TARGET_CFLAGS initialization before we
32599 initialize it ourselves (sigh).
32600 Move a few modifications to TARGET_CFLAGS to be unconditional
32601 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32604 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32605 * term/i386/pc/at_keyboard.c
32606 (keyboard_controller_wait_untill_ready): Likewise.
32607 (keyboard_controller_led): Rename `led_status' paramter to avoid
32610 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32612 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32615 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32617 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32619 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32621 * normal/menu_text.c (grub_print_message_indented): Prevent
32622 past-the-end-of-array dereference.
32624 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32626 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32627 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32629 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32631 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32632 * normal/main.c (grub_normal_read_line): Remove a space from the
32635 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32637 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32638 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32639 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32640 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32641 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32642 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32643 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32645 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32647 * video/readers/jpeg.c (cmd): Declare.
32648 (grub_cmd_jpegtest): Use `grub_command_t' type.
32649 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32651 (GRUB_MOD_FINI): Use `cmd' to unregister.
32652 * video/readers/png.c (cmd): Declare.
32653 (grub_cmd_pngtest): Use `grub_command_t' type.
32654 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32656 (GRUB_MOD_FINI): Use `cmd' to unregister.
32657 * video/readers/tga.c (cmd): Declare.
32658 (grub_cmd_tgatest): Use `grub_command_t' type.
32659 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32661 (GRUB_MOD_FINI): Use `cmd' to unregister.
32663 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32665 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32667 * kern/corecmd.c (grub_register_core_commands): Likewise.
32668 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32669 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32670 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32671 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32672 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32673 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32674 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32675 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32676 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32677 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32678 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32679 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32680 * normal/handler.c (insert_handler): Likewise.
32681 * normal/main.c (GRUB_MOD_INIT): Likewise.
32682 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32684 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32686 * commands/help.c (grub_cmd_help): Print the command name before the
32688 (GRUB_MOD_INIT): Remove command name from the summary.
32689 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32691 * lib/arg.c (find_long): Print the command name before the summary.
32692 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32694 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32695 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32696 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32697 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32698 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32699 * commands/date.c (GRUB_MOD_INIT): Likewise.
32700 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32701 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32702 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32703 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32704 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32705 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32706 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32707 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32708 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32709 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32710 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32711 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32712 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32713 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32714 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32715 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32716 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32717 * commands/password.c (GRUB_MOD_INIT): Likewise.
32718 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32719 * commands/read.c (GRUB_MOD_INIT): Likewise.
32720 * commands/search.c (GRUB_MOD_INIT): Likewise.
32721 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32722 * commands/test.c (GRUB_MOD_INIT): Likewise.
32723 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32724 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32725 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32726 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32727 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32728 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32729 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32730 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32731 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32732 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32733 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32734 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32735 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32736 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32738 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32740 Use search command for preliminar UUID search.
32742 * commands/search.c: Split into ...
32743 * commands/search_wrap.c: ...this
32744 * commands/search.c: ...and this.
32745 * commands/search_file.c: New file.
32746 * commands/search_label.c: New file.
32747 * commands/search_uuid.c: New file.
32748 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32749 Add commands/search_wrap.c, commands/search_file.c,
32750 commands/search_label.c and commands/search_uuid.c.
32751 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32752 (search_mod_SOURCES): Set to commands/search_wrap.c.
32753 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32755 (search_fs_file_mod_SOURCES): New variable.
32756 (search_fs_file_mod_CFLAGS): Likewise.
32757 (search_fs_file_mod_LDFLAGS): Likewise.
32758 (search_label_mod_SOURCES): Likewise.
32759 (search_label_mod_CFLAGS): Likewise.
32760 (search_label_mod_LDFLAGS): Likewise.
32761 (search_fs_uuid_mod_SOURCES): New variable.
32762 (search_fs_uuid_mod_CFLAGS): Likewise.
32763 (search_fs_uuid_mod_LDFLAGS): Likewise.
32764 (fs_file_mod_SOURCES): Removed.
32765 (fs_file_mod_CFLAGS): Likewise.
32766 (fs_file_mod_LDFLAGS): Likewise.
32767 (fs_uuid_mod_SOURCES): Removed.
32768 (fs_uuid_mod_CFLAGS): Likewise.
32769 (fs_uuid_mod_LDFLAGS): Likewise.
32770 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32771 Set to util/grub-install.in.
32772 * disk/fs_file.c: Removed.
32773 * disk/fs_uuid.c: Likewise.
32774 * include/grub/search.h: New file.
32775 * util/grub-install.in: Handle sparc64.
32776 Create and use load.cfg.
32777 * util/sparc64/ieee1275/grub-install.in: Removed.
32779 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32781 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32782 Ignore return status if CF is cleared.
32783 (grub_biosdisk_get_diskinfo_standard): Likewise.
32785 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32787 * term/i386/pc/at_keyboard.c
32788 (keyboard_controller_wait_untill_ready): New function.
32789 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32790 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32791 for keyboard polling, rather than duplicate the same loop. This
32792 saves a few bytes in code size.
32794 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32796 Support for (pxe[:server[:gateway]]) syntax and
32797 use environment variable for PXE.
32799 * commands/i386/pc/pxecmd.c (options): Removed.
32800 (print_ip): Removed.
32801 (grub_cmd_pxe): Removed
32802 (grub_cmd_pxe_unload): New function.
32803 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32804 (grub_pxe_your_ip): Made static.
32805 (grub_pxe_default_server_ip): Likewise.
32806 (grub_pxe_default_gateway_ip): Likewise.
32807 (grub_pxe_blksize): Likewise.
32808 (parse_ip): New function.
32809 (grub_pxe_open): Support server and gateway specification.
32810 (grub_pxe_close): Free disk->data.
32811 (grub_pxefs_open): Use disk->data.
32812 (grub_pxefs_read): Likewise.
32813 (grub_env_write_readonly): New function.
32814 (set_mac_env): Likewise.
32815 (set_env_limn_ro): Likewise.
32816 (parse_dhcp_vendor): Likewise.
32817 (grub_pxe_detect): Set the environment variables.
32818 (set_ip_env): New function.
32819 (write_ip_env): Likewise.
32820 (grub_env_write_pxe_default_server): Likewise.
32821 (grub_env_write_pxe_default_gateway): Likewise.
32822 (grub_env_write_pxe_blocksize): Likewise.
32823 (GRUB_MOD_INIT(pxe)): Set environment variables.
32824 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32825 (grub_pxe_mac_addr_t): ... this. All users updated.
32826 (grub_pxe_your_ip): Removed.
32827 (grub_pxe_server_ip): Likewise.
32828 (grub_pxe_gateway_ip): Likewise.
32829 (grub_pxe_blksize): Likewise.
32831 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32833 * commands/help.c: Include `<grub/i18n.h>'.
32834 (grub_cmd_help): Gettextizze.
32835 (GRUB_MOD_INIT): Likewise.
32836 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32837 (GRUB_MOD_INIT): Gettextizze.
32838 * commands/search.c: Include `<grub/i18n.h>'.
32839 (options): Gettextizze.
32840 (GRUB_MOD_INIT): Gettextizze.
32841 * lib/arg.c: Include `<grub/i18n.h>'.
32842 (help_options): Gettextizze.
32843 (find_long): Likewise.
32844 (grub_arg_show_help): Likewise.
32845 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32846 (read_command_list): Gettextizze.
32847 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32848 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32850 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32852 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32853 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32854 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32855 (led_status): New variable.
32856 (keyboard_controller_led): New function.
32857 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32858 update led status for caps lock, num lock and scroll lock.
32860 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32862 * util/hostdisk.c (open_device): Fix a comment.
32864 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32866 * util/grub-install.in (host_os): New variable.
32867 * util/i386/efi/grub-install.in (host_os): Likewise.
32869 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32871 * util/mkisofs/write.c (padblock_write): Abort when given an
32872 excedingly large embed image, instead of silently truncating it.
32874 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32876 * include/multiboot.h: Indentation fixes.
32878 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32880 * include/multiboot.h (struct multiboot_aout_symbol_table)
32881 (struct multiboot_elf_section_header_table): New structure
32882 declarations (stolen from GRUB Legacy).
32883 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32886 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32887 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32890 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32892 * include/multiboot.h: Make comments src2texi-friendly.
32894 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32896 For consistency with [multiboot]/docs/boot.S.
32898 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32899 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32900 (MULTIBOOT_MAGIC2): Rename from this ...
32901 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32903 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32905 * include/multiboot.h: Remove `<grub/types.h>'.
32906 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32907 types. Update all users.
32909 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32911 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32912 `couldn't' and `can not' by `cannot'.
32913 * commands/i386/pc/drivemap.c: Likewise.
32914 * disk/ata.c: Likewise.
32915 * disk/ieee1275/nand.c: Likewise.
32916 * fs/affs.c: Likewise.
32917 * fs/fat.c: Likewise.
32918 * fs/hfs.c: Likewise.
32919 * fs/hfsplus.c: Likewise.
32920 * fs/iso9660.c: Likewise.
32921 * fs/jfs.c: Likewise.
32922 * fs/minix.c: Likewise.
32923 * fs/reiserfs.c: Likewise.
32924 * fs/sfs.c: Likewise.
32925 * fs/udf.c: Likewise.
32926 * fs/ufs.c: Likewise.
32927 * fs/xfs.c: Likewise.
32928 * loader/powerpc/ieee1275/linux.c: Likewise.
32929 * loader/sparc64/ieee1275/linux.c: Likewise.
32930 * util/grub-probe.c: Likewise.
32931 * util/misc.c: Likewise.
32933 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32935 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32937 * commands/acpi.c: Likewise.
32938 * commands/blocklist.c: Likewise.
32939 * commands/efi/loadbios.c: Likewise.
32940 * commands/i386/pc/drivemap.c: Likewise.
32941 * commands/loadenv.c: Likewise.
32942 * commands/memrw.c: Likewise.
32943 * commands/password.c: Likewise.
32944 * commands/videotest.c: Likewise.
32945 * disk/ata.c: Likewise.
32946 * disk/ata_pthru.c: Likewise.
32947 * disk/dmraid_nvidia.c: Likewise.
32948 * disk/ieee1275/nand.c: Likewise.
32949 * disk/ieee1275/ofdisk.c: Likewise.
32950 * disk/loopback.c: Likewise.
32951 * disk/lvm.c: Likewise.
32952 * disk/mdraid_linux.c: Likewise.
32953 * disk/raid.c: Likewise.
32954 * disk/raid6_recover.c: Likewise.
32955 * disk/scsi.c: Likewise.
32956 * efiemu/main.c: Likewise.
32957 * efiemu/mm.c: Likewise.
32958 * efiemu/pnvram.c: Likewise.
32959 * efiemu/symbols.c: Likewise.
32960 * font/font.c: Likewise.
32961 * fs/cpio.c: Likewise.
32962 * fs/hfsplus.c: Likewise.
32963 * fs/iso9660.c: Likewise.
32964 * fs/jfs.c: Likewise.
32965 * fs/minix.c: Likewise.
32966 * fs/ntfs.c: Likewise.
32967 * fs/ntfscomp.c: Likewise.
32968 * fs/reiserfs.c: Likewise.
32969 * fs/ufs.c: Likewise.
32970 * fs/xfs.c: Likewise.
32971 * gettext/gettext.c: Likewise.
32972 * include/grub/auth.h: Likewise.
32973 * kern/elf.c: Likewise.
32974 * kern/file.c: Likewise.
32975 * kern/ieee1275/init.c: Likewise.
32976 * kern/ieee1275/mmap.c: Likewise.
32977 * kern/ieee1275/openfw.c: Likewise.
32978 * kern/powerpc/dl.c: Likewise.
32979 * kern/sparc64/dl.c: Likewise.
32980 * lib/arg.c: Likewise.
32981 * loader/i386/bsd.c: Likewise.
32982 * loader/i386/bsdXX.c: Likewise.
32983 * loader/i386/efi/linux.c: Likewise.
32984 * loader/i386/efi/xnu.c: Likewise.
32985 * loader/i386/ieee1275/linux.c: Likewise.
32986 * loader/i386/linux.c: Likewise.
32987 * loader/i386/multiboot.c: Likewise.
32988 * loader/i386/pc/linux.c: Likewise.
32989 * loader/i386/pc/multiboot2.c: Likewise.
32990 * loader/i386/xnu.c: Likewise.
32991 * loader/ieee1275/multiboot2.c: Likewise.
32992 * loader/macho.c: Likewise.
32993 * loader/machoXX.c: Likewise.
32994 * loader/multiboot2.c: Likewise.
32995 * loader/multiboot_loader.c: Likewise.
32996 * loader/powerpc/ieee1275/linux.c: Likewise.
32997 * loader/sparc64/ieee1275/linux.c: Likewise.
32998 * loader/xnu.c: Likewise.
32999 * loader/xnu_resume.c: Likewise.
33000 * mmap/i386/pc/mmap.c: Likewise.
33001 * normal/menu_viewer.c: Likewise.
33002 * partmap/acorn.c: Likewise.
33003 * partmap/amiga.c: Likewise.
33004 * partmap/apple.c: Likewise.
33005 * script/lexer.c: Likewise.
33006 * term/gfxterm.c: Likewise.
33007 * term/i386/pc/serial.c: Likewise.
33008 * term/i386/pc/vga.c: Likewise.
33009 * term/ieee1275/ofconsole.c: Likewise.
33010 * term/terminfo.c: Likewise.
33011 * video/bitmap.c: Likewise.
33012 * video/efi_gop.c: Likewise.
33013 * video/efi_uga.c: Likewise.
33014 * video/fb/video_fb.c: Likewise.
33015 * video/i386/pc/vbe.c: Likewise.
33016 * video/readers/tga.c: Likewise.
33017 * video/video.c: Likewise.
33019 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33021 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33022 * commands/lspci.c: Likewise.
33023 * commands/probe.c: Likewise.
33024 * commands/xnu_uuid.c: Likewise.
33025 * conf/i386-coreboot.rmk: Likewise.
33026 * conf/i386-efi.rmk: Likewise.
33027 * conf/i386-ieee1275.rmk: Likewise.
33028 * conf/i386-pc.rmk: Likewise.
33029 * conf/powerpc-ieee1275.rmk: Likewise.
33030 * conf/sparc64-ieee1275.rmk: Likewise.
33031 * conf/x86_64-efi.rmk: Likewise.
33032 * fs/i386/pc/pxe.c: Likewise.
33033 * gettext/gettext.c: Likewise.
33034 * include/grub/efi/graphics_output.h: Likewise.
33035 * include/grub/i386/pc/memory.h: Likewise.
33036 * kern/env.c: Likewise.
33037 * kern/i386/qemu/startup.S: Likewise.
33038 * lib/i386/pc/biosnum.c: Likewise.
33039 * lib/i386/relocator.c: Likewise.
33040 * lib/i386/relocator_asm.S: Likewise.
33041 * lib/relocator.c: Likewise.
33042 * loader/i386/bsd.c: Likewise.
33043 * loader/i386/multiboot.c: Likewise.
33044 * loader/i386/pc/chainloader.c: Likewise.
33045 * loader/i386/xnu.c: Likewise.
33046 * loader/xnu.c: Likewise.
33047 * normal/main.c: Likewise.
33048 * normal/menu_text.c: Likewise.
33049 * util/getroot.c: Likewise.
33050 * util/grub-mkconfig_lib.in: Likewise.
33051 * util/grub.d/00_header.in: Likewise.
33052 * util/i386/pc/grub-mkimage.c: Likewise.
33053 * util/mkisofs/eltorito.c: Likewise.
33054 * util/mkisofs/exclude.h: Likewise.
33055 * util/mkisofs/hash.c: Likewise.
33056 * util/mkisofs/iso9660.h: Likewise.
33057 * util/mkisofs/joliet.c: Likewise.
33058 * util/mkisofs/mkisofs.c: Likewise.
33059 * util/mkisofs/mkisofs.h: Likewise.
33060 * util/mkisofs/multi.c: Likewise.
33061 * util/mkisofs/name.c: Likewise.
33062 * util/mkisofs/rock.c: Likewise.
33063 * util/mkisofs/tree.c: Likewise.
33064 * util/mkisofs/write.c: Likewise.
33065 * video/efi_gop.c: Likewise.
33067 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33069 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33072 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33074 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33075 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33077 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33079 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33080 (GRUB_MOD_INIT(memrw)): Update help line.
33082 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33084 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33085 Use grub_extcmd_t. All users updated.
33086 (options): New variable.
33087 (grub_cmd_read): Restructure for readability. Support "-v" option.
33088 (grub_cmd_write): Restructure for readability.
33090 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33092 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33094 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33096 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33097 with the actual contents of the correspondending make variable.
33098 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33099 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33100 specifying `*.lst' and `efiemu??.o'
33102 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33104 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33105 after function name.
33106 Noticed by Rene Engelhard <rene@debian.org>.
33108 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33110 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33111 (options): New variable.
33112 (iospace): Likewise.
33113 (grub_lspci_iter): List IO spaces if "-i" was given.
33114 (grub_cmd_lspci): Parse options.
33115 (GRUB_MOD_INIT(lspci)): Use extcmd.
33116 (GRUB_MOD_FINI(lspci)): Likewise.
33118 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33120 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33121 `function' keyword.
33122 Patch by Tony Mancill <tmancill@debian.org>.
33124 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33126 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33127 (grub_uhci_portstatus): Likewise.
33128 (grub_uhci_portstatus): Add necessary delay.
33129 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33131 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33133 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33134 (GRUB_MOD_INIT): Likewise.
33135 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33136 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33137 * commands/echo.c (options): Fix capitalizations and/or full stops.
33138 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33139 (enable_rom_area): Likewise.
33140 (GRUB_MOD_INIT): Likewise.
33141 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33142 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33143 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33144 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33145 * commands/hexdump.c (options): Likewise.
33146 * commands/i386/cpuid.c (options): Likewise.
33147 (GRUB_MOD_INIT): Likewise.
33148 * commands/i386/pc/drivemap.c (options): Likewise.
33149 (GRUB_MOD_INIT): Likewise.
33150 * commands/i386/pc/halt (options): Likewise.
33151 (GRUB_MOD_INIT): Likewise.
33152 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33153 * commands/i386/pc/pxecmd.c (options): Likewise.
33154 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33155 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33156 * commands/keystatus.c (options): Likewise.
33157 (GRUB_MOD_INIT): Likewise.
33158 * commands/loadenv.c (options): Likewise.
33159 * commands/ls.c (options): Likewise.
33160 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33161 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33162 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33163 * commands/parttool.c (helpmsg): Likewise.
33164 * commands/probe.c (options): Likewise.
33165 * commands/read.c (GRUB_MOD_INIT): Likewise.
33166 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33167 * commands/search.c (options): Likewise.
33168 * commands/sleep.c (options): Likewise.
33169 * commands/test.c (GRUB_MOD_INIT): Likewise.
33170 * commands/true.c (GRUB_MOD_INIT): Likewise.
33171 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33172 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33173 * lib/arg.c (help_options): Likewise.
33174 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33176 * po/POTFILES: Add `commands/loadenv.c'.
33178 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33180 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33181 instead of specifying them explicit.
33183 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33185 * NEWS: Add grub-probe support for GNU/Hurd.
33187 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33189 * NEWS: gettext was added after 1.97.
33191 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33193 * util/mkisofs/msdos_partition.h: New file (based on
33194 include/grub/msdos_partition.h).
33195 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33196 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33197 (ld_options, main): Recognize --protective-msdos-label.
33198 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33199 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33200 (padblock_write): If `use_protective_msdos_label' is set, patch a
33201 protective DOS-style label in the output image.
33203 * util/grub-mkrescue.in: Use --protective-msdos-label.
33205 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33207 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33210 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33212 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33214 (ld_options, main): Recognize `--embedded-boot'.
33215 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33217 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33218 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33219 (padblock_write): Likewise. Rewrite to support embedded boot image.
33221 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33222 for BIOS-based disk boot instead of only ElTorito.
33224 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33226 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33227 build (not needed for bootstrap).
33229 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33231 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33232 from i386-pc build (not needed for bootstrap).
33233 Rewrite a pair of strings.
33235 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33237 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33239 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33241 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33243 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33245 * kern/env.c (grub_env_context_open): Mark exported variable for
33248 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33250 * kern/env.c (grub_env_export): Create nonexistent variables before
33253 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33255 * include/grub/auth.h: Include `<grub/i18n.h>'.
33256 (GRUB_GET_PASSWORD): Gettextizze string.
33257 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33259 (grub_utf8_to_ucs4_alloc): Fix indentation.
33260 (grub_print_ucs4): Likewise.
33261 (grub_getstringwidth): Likewise.
33262 (print_message_indented): New declaration.
33263 * normal/auth.c: Include `<grub/i18n.h>'.
33264 (grub_auth_check_authentication): Gettexttize string.
33265 * normal/cmdline.c: Include `<grub/i18n.h>'.
33266 (grub_cmdline_get): Gettextizze.
33267 * normal/color.c: Include `<grub/i18n.h>'.
33268 (grub_parse_color_name_pair): Gettexttize strings.
33269 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33270 string (use `print_message_indented').
33271 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33272 `include/grub/normal.h'.
33273 (print_message_indented): Renamed to ...
33274 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33275 used in normal/main.c).
33276 (print_message): Use `grub_print_message_indented' instead of
33277 `print_message_indented'.
33278 (print_timeout): Likewise.
33279 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33280 (grub_normal_print_device_info): Gettexttize strings.
33281 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33283 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33285 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33286 of arguments. Return number of tokens and not arguments. All users
33289 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33291 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33292 non-MSDOS paritions.
33294 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33296 * include/grub/types.h (UNUSED): Removed since it conflicts with
33297 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33298 Reported by Grégoire Sutre.
33300 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33302 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33303 (grub_print_ucs4_alloc): Likewise.
33304 (grub_getstringwidth): Likewise.
33305 * normal/main.c (grub_normal_init_page): Gettextize version string.
33306 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33307 (getstringwidth): Renamed to ...
33308 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33309 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33310 (grub_print_ucs4): Remove `static' qualifer (now used in
33312 * po/POTFILES: Add normal/main.c.
33314 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33316 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33317 (print_message_indented): Add `margin_left' and `margin_right'
33319 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33321 (print_timeout): Use `print_message_indented' to print the message.
33322 Deletes `second_stage' parameter.
33323 (run_menu): Update `print_timeout' calls.
33325 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33327 Fix console palette on OpenFirmware.
33329 * term/ieee1275/ofconsole.c (MAX): Removed.
33330 (colors): Redone based on VGA palette.
33331 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33332 colors are supported.
33333 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33335 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33337 Fix potential EfiEmu double prepare.
33339 * efiemu/main.c (prepared): New variable
33340 (grub_efiemu_unload): Set prepare to '0'.
33341 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33343 set_virtual_address_map support.
33345 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33347 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33349 (grub_efiemu_crc32): Likewise.
33350 (grub_efiemu_crc64): Likewise.
33351 (grub_efiemu_set_virtual_address_map): Likewise.
33352 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33354 (grub_autoefi_set_virtual_address_map): Likewise.
33355 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33356 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33357 Restructure flow to accomodate it.
33358 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33359 (grub_efiemu_crc): Recompute CRC32.
33360 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33361 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33362 * efiemu/symbols.c (relocated_handle): New variable.
33363 (grub_efiemu_free_syms): Free relocated_handle.
33364 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33365 (grub_efiemu_write_sym_markers): New function.
33366 (grub_efiemu_set_virtual_address_map): Likewise.
33368 Newer XNU parameters.
33370 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33371 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33372 (grub_xnu_fill_devicetree): New prototype.
33373 (grub_xnu_heap_real_start): New variable.
33374 * loader/xnu.c (get_name_ptr): New function.
33375 (grub_xnu_load_driver): Fill namelen and name.
33377 64-bit xnu support.
33379 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33380 and 'loader/macho64.c'.
33381 * conf/i386-pc.rmk: Likewise.
33382 * conf/x86_64-efi.rmk: Likewise.
33383 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33384 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33385 * include/grub/macho.h (grub_macho_segment64): New structure.
33386 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33387 (grub_macho_size32): ... to this.
33388 (grub_macho32_get_entry_point): Renamed from ...
33389 (grub_macho_get_entry_point32): ... to this.
33390 (grub_macho_contains_macho64): New prototype.
33391 (grub_macho_size64): Likewise.
33392 (grub_macho_get_entry_point64): Likewise.
33393 (grub_macho32_load): Renamed from ...
33394 (grub_macho_load32): ... to this.
33395 (grub_macho32_filesize): Renamed from ...
33396 (grub_macho_filesize32): ... to this.
33397 (grub_macho32_readfile): Renamed from ...
33398 (grub_macho_readfile32): ... to this.
33399 (grub_macho_filesize64): New prototype.
33400 (grub_macho_readfile64): Likewise.
33401 (grub_macho_parse32): Likewise.
33402 (grub_macho_parse64): Likewise.
33403 * loader/macho.c: Split into ...
33404 * loader/machoXX.c: ... and this. Replace 32 with XX.
33405 * loader/macho32.c: New file.
33406 * loader/macho64.c: Likewise.
33407 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33408 (grub_cmd_xnu_kernel): Make 32-bit only.
33409 (grub_cmd_xnu_kernel64): New function.
33410 (grub_xnu_load_driver): Support Mach-O 64.
33411 (grub_cmd_xnu_mkext): Likewise.
33412 * util/grub.d/30_os-prober.in (osx_entry): New function.
33413 Generate entries for 64-bit boot too.
33415 Eliminate ad-hoc tree format in XNU and EfiEmu.
33417 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33418 * efiemu/pnvram.c: Rewritten to use environment variables.
33421 Inline utf16_to_utf8.
33423 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33424 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33426 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33428 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33429 * commands/usbtest.c (grub_usb_get_string): ... move here.
33430 (usb_print_str): Fix error handling.
33431 * include/grub/usb.h (grub_usb_get_string): Remove.
33433 UTF-8 to UTF-16 transformation.
33435 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33436 (charset_mod_SOURCES): New variable.
33437 (charset_mod_CFLAGS): Likewise.
33438 (charset_mod_LDFLAGS): Likewise.
33439 * include/grub/utf.h: New file.
33440 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33442 Support for device properties.
33444 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33445 (grub_xnu_devprop_device_header): Likewise.
33446 (grub_xnu_devprop_device_descriptor): Likewise.
33447 (grub_xnu_devprop_add_device): New prototype.
33448 (grub_xnu_devprop_remove_device): Likewise.
33449 (grub_xnu_devprop_remove_property): Likewise.
33450 (grub_xnu_devprop_add_property_utf8): Likewise.
33451 (grub_xnu_devprop_add_property_utf16): Likewise.
33452 (grub_cpu_xnu_init): Likewise.
33453 (grub_cpu_xnu_fini): Likewise.
33454 (grub_cpu_xnu_unload): Likewise.
33455 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33456 (property_descriptor): Likewise.
33457 (devices): New variable.
33458 (grub_xnu_devprop_remove_property): New function.
33459 (grub_xnu_devprop_add_device): Likewise.
33460 (grub_xnu_devprop_remove_device): Likewise.
33461 (grub_xnu_devprop_add_property): Likewise.
33462 (grub_xnu_devprop_add_property_utf8): Likewise.
33463 (grub_xnu_devprop_add_property_utf16): Likewise.
33464 (hextoval): Likewise.
33465 (grub_cpu_xnu_fill_devprop): Likewise.
33466 (grub_cmd_devprop_load): Likewise.
33467 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33468 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33469 (cmd_devprop_load): New variable.
33470 (grub_cpu_xnu_init): New function.
33471 (grub_cpu_xnu_fini): Likewise.
33472 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33473 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33474 (grub_cmd_xnu_devtree): Likewise.
33475 (hextoval): New function.
33476 (unescape): Likewise.
33477 (grub_xnu_fill_devicetree): Likewise.
33479 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33480 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33482 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33484 Workaround for broken ATI VBE.
33486 * video/i386/pc/vbe.c (last_set_mode): New variable.
33487 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33488 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33489 (grub_video_vbe_setup): Don't check for reserved flag.
33491 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33493 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33494 the `find' command.
33496 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33498 UUID support for HFS.
33500 * fs/hfs.c (grub_hfs_uuid): New function.
33501 (grub_hfs_fs): New value .uuid.
33502 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33504 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33506 Fix a segfault with parsing unknown long options.
33508 * util/grub-mkrelpath.c (options): Zero terminate it.
33510 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33512 * include/grub/misc.h (grub_puts): New declaration.
33513 (grub_puts_): Likewise.
33514 * kern/misc.c (grub_puts): New definition.
33515 (grub_puts_): Likewise.
33517 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33519 * util/grub-probe.c (probe): Improve error message.
33521 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33523 * loader/i386/multiboot_elfxx.c
33524 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33527 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33529 Relocator framework
33531 * loader/i386/xnu_helper.S: Removed. All users updated.
33532 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33533 (relocator_mod_SOURCES): New variable.
33534 (relocator_mod_CFLAGS): Likewise.
33535 (relocator_mod_LDFLAGS): Likewise.
33536 (relocator_mod_ASFLAGS): Likewise.
33537 * conf/x86_64.rmk: Likewise.
33538 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33539 (grub_multiboot_payload_entry_offset): Likewise.
33540 (grub_multiboot_forward_relocator): Likewise.
33541 (grub_multiboot_forward_relocator_end): Likewise.
33542 (grub_multiboot_backward_relocator): Likewise.
33543 (grub_multiboot_backward_relocator_end): Likewise.
33544 (grub_multiboot_payload_eip): New variable.
33545 (grub_multiboot_payload_orig): Likewise.
33546 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33547 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33548 * include/grub/i386/memory.h
33549 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33550 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33551 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33552 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33553 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33554 * include/grub/i386/relocator.h: New file.
33555 * include/grub/x86_64/relocator.h: Likewise.
33556 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33557 (XNU_RELOCATOR): New macro.
33558 (grub_xnu_launcher_start): Remove.
33559 (grub_xnu_launcher_end): Likewise.
33560 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33561 (grub_xnu_heap_real_start): Remove.
33562 (grub_xnu_heap_start): Change to void *. All users updated.
33563 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33564 * lib/i386/relocator.c: New file.
33565 * lib/i386/relocator_asm.S: Likewise.
33566 * lib/i386/relocator_backward.S: Likewise.
33567 * lib/mips/relocator.c: Likewise.
33568 * lib/mips/relocator_asm.S: Likewise.
33569 * lib/relocator.c: Likewise.
33570 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33572 (playground): Likewise.
33573 (grub_multiboot_payload_orig): New variable.
33574 (grub_multiboot_payload_dest): Likewise.
33575 (grub_multiboot_payload_size): Likewise.
33576 (grub_multiboot_payload_eip): Likewise.
33577 (grub_multiboot_payload_esp): Likewise.
33578 (grub_multiboot_boot): Use grub_relocator32_boot.
33579 (grub_multiboot_unload): Free relocators.
33580 (grub_multiboot): Setup stack. Use relocators.
33581 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33582 (grub_multiboot_load_elfXX): Use relocators.
33583 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33584 (grub_multiboot_payload_size): Likewise.
33585 (grub_multiboot_payload_dest): Likewise.
33586 (grub_multiboot_payload_entry_offset): Likewise.
33587 (grub_multiboot_forward_relocator): Likewise.
33588 (grub_multiboot_backward_relocator): Likewise.
33589 (grub_multiboot_real_boot): Likewise.
33590 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33591 (grub_xnu_entry_point): Likewise.
33592 (grub_xnu_arg1): Likewise.
33593 (grub_xnu_stack): Likewise.
33594 (grub_xnu_launch): Removed.
33595 (grub_xnu_boot_resume): New function.
33596 (grub_xnu_boot): Use relocators.
33597 * loader/i386/xnu_helper.S: Removed.
33598 * loader/xnu.c (grub_xnu_heap_start): New variable.
33599 (grub_xnu_heap_size): Likewise.
33600 (grub_xnu_heap_malloc): Use relocators.
33601 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33603 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33605 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33608 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33610 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33611 GRUB_ERR_NONE before calling grub_env_set.
33613 2009-12-12 Robert Millan <rmh@aybabtu.com>
33615 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33616 * genmk.rb (video): New variable.
33617 (CLEANFILES, VIDEOFILES): Add #{video}.
33618 (#{video}): New target rule.
33619 * genvideolist.sh: New file.
33620 * Makefile.in (pkglib_DATA): Add video.lst.
33621 (video.lst): New target rule.
33622 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33624 * util/grub.d/30_os-prober.in: Replace `vbe' with
33625 ${GRUB_VIDEO_BACKEND}.
33627 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33629 * THANKS: Add David Miller.
33631 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33633 libpciaccess support.
33635 * Makefile.in (LIBPCIACCESS): New variable.
33636 (enable_grub_emu_pci): Likewise.
33637 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33638 util/pci.c and commands/lspci.c.
33639 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33640 * configure.ac (grub-emu-pci): New option.
33641 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33642 (grub_pci_device_unmap_range): Likewise.
33643 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33644 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33645 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33646 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33647 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33648 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33649 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33650 * include/grub/pciutils.h: New file.
33651 * util/pci.c: Likewise.
33653 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33655 * util/misc.c: Don't include <errno.h> twice.
33657 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33659 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33660 name in an error message.
33661 (grub_biosdisk_rw): Likewise.
33663 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33665 Eliminate NTFS 4Gib barrier.
33667 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33668 (read_run_data): Likewise.
33669 (grub_ntfs_read_run_list): Likewise.
33670 (grub_ntfs_read_block): Likewise.
33671 (grub_ntfs_iterate_dir): Likewise.
33672 (read_mft): Likewise.
33673 (read_data): Likewise.
33675 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33676 to avoid 64-bit division
33677 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33678 (grub_ntfs_rlst): Use grub_disk_addr_t.
33680 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33682 Eliminate grub-fstest 4Gib barrier.
33684 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33685 (read_file): Fix error reporting.
33687 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33689 Eliminate hexdump 4Gib barrier.
33691 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33692 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33694 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33696 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33699 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33701 Remove miscellaneous files in distclean target.
33703 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33705 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33707 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33708 if they're already set. This resolves the conflict between my
33709 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33710 fixing the --grub-probe option again.
33711 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33712 change on 2009-10-06, so that we now once again source
33713 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33715 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33717 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33718 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33719 `util/devicemap.c'.
33721 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33723 * include/grub/misc.h (grub_printf_): New declaration.
33724 * kern/misc.c (grub_printf_): New definition.
33725 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33726 instead of `grub_printf' and `_'.
33727 * normal/menu_entry.c (store_completion): Likewise.
33729 (grub_menu_entry_run): Likewise.
33730 * normal/menu_text.c (grub_wait_after_message): Likewise.
33731 (notify_booting): Likewise.
33732 (notify_fallback): Likewise.
33733 (notify_execution_failure): Likewise.
33735 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33737 * configure.ac: Check for vasprintf.
33738 * util/misc.c (asprintf): Move allocation from here ...
33739 (vasprintf): ... to here. New function.
33740 (xasprintf): New function.
33741 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33743 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33744 * util/grub-mkfont.c (write_font): Likewise.
33745 * util/grub-probe.c (probe): Likewise.
33746 * util/hostdisk.c (make_device_name): Likewise.
33748 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33750 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33751 anything even prefixed with 'cdrom' as a cdrom.
33753 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33755 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33758 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33760 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33761 grub_gettext_msg_list.
33762 (grub_gettext_gettranslation_from_position): Return const char *
33764 (grub_gettext_translate): Add the translated strings into a list,
33765 returns from the list if existing there.
33766 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33767 (grub_gettext_delete_list): Delete the list.
33768 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33769 lang environment variable is changed.
33770 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33772 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33774 Rename kernel.mod to kernel.img.
33776 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33777 (kernel_mod_EXPORTS): Rename to ...
33778 (kernel_img_EXPORTS): ... this.
33779 (kernel_mod_SOURCES): Rename to ...
33780 (kernel_img_SOURCES): ... this.
33781 (kernel_mod_HEADERS): Rename to ...
33782 (kernel_img_HEADERS): ... this. All users updated.
33783 (kernel_mod_CFLAGS): Rename to ...
33784 (kernel_img_CFLAGS): ... this.
33785 (kernel_mod_ASFLAGS): Rename to ...
33786 (kernel_img_ASFLAGS): ... this.
33787 (kernel_mod_LDFLAGS): Rename to ...
33788 (kernel_img_LDFLAGS): ... this.
33789 * conf/x86_64-efi.rmk: Likewise.
33790 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33791 (read_kernel_image): ... this. All users updated.
33792 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33794 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33796 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33797 (print_spaces): New function.
33798 (grub_print_ucs4): New function.
33799 (getstringwidth): New function.
33800 (print_message_indented): New function.
33801 (print_message): Gettexttize strings using print_message_indented.
33802 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33804 (get_entry_number): Gettextize and uses dynamic terminal width.
33805 (notify_booting, notify_fallback, notify_execution_failure):
33807 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33810 (grub_menu_entry_run): Likewise.
33811 * PO/POTFILES: Add normal/menu_entry.c.
33813 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33815 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33817 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33819 * util/grub-install.in: Install gettext .mo files.
33820 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33822 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33824 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33827 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33829 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33830 non-firmware-dependant one in realmode.S takes precedence.
33832 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33834 * commands/halt.c: Replace misc arch-specific headers with
33836 * commands/reboot.c: Likewise.
33837 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33839 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33840 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33841 (kernel_img_SOURCES): ... to here.
33843 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33844 * include/grub/i386/pc/init.h: Likewise.
33845 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33846 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33848 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33850 * include/grub/i386/halt.h: Remove.
33851 * include/grub/i386/reboot.h: Likewise.
33853 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33855 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33857 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33858 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33859 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33861 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33862 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33863 (usage): Add missing comma in printf.
33865 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33867 Use the same reboot approach on i386 coreboot and qemu as we do on
33870 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33871 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33872 * kern/i386/reboot.c: Remove.
33873 * include/grub/i386/reboot.h (grub_reboot): Export function.
33874 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33875 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33876 0xf000:0xfff0 instead of 0xffff:0x0000.
33877 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33878 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33880 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33882 Fix $srcdir != $objdir build.
33884 * Makefile.in (po/%.po): Rewrite as ...
33885 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33887 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33889 Fix GNU/Hurd grub-install crash.
33890 * util/grub-probe.c (probe): Try to access `path' only when it is not
33893 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33895 Correct module naming.
33897 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33898 (GRUB_MOD_INIT(efi_uga)): ... to this
33899 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33900 (GRUB_MOD_FINI(efi_uga)): ... to this
33901 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33902 (GRUB_MOD_INIT(efi_gop)): ... to this
33903 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33904 (GRUB_MOD_FINI(efi_gop)): ... to this
33906 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33908 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33910 (usage): Translate `arg' strings using gettext().
33911 Thanks to Jordi Mallach for the suggestion.
33913 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33915 GOP support. Based on patch from Bean
33916 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33918 * video/efi_gop.c: New file.
33919 * include/grub/efi/graphics_output.h: Likewise.
33920 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33921 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33923 * conf/x86_64-efi.rmk: Likewise.
33925 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33927 Rename efi_fb to efi_uga.
33929 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33931 (efi_fb_mod_SOURCES): Rename this ...
33932 (efi_uga_mod_SOURCES): ... to this.
33933 (efi_fb_mod_CFLAGS): Rename this ...
33934 (efi_uga_mod_CFLAGS): ... to this.
33935 (efi_fb_mod_LDFLAGS): Rename this ...
33936 (efi_uga_mod_LDFLAGS): ... to this.
33937 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33939 (efi_fb_mod_SOURCES): Rename this ...
33940 (efi_uga_mod_SOURCES): ... to this.
33941 (efi_fb_mod_CFLAGS): Rename this ...
33942 (efi_uga_mod_CFLAGS): ... to this.
33943 (efi_fb_mod_LDFLAGS): Rename this ...
33944 (efi_uga_mod_LDFLAGS): ... to this.
33945 * video/efi_fb.c: Move this ...
33946 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33948 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33950 * po/README: New file. Explain our PO file workflow.
33952 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33954 * po/ChangeLog: Remove. Move relevant entries back to ...
33955 * ChangeLog: ... here.
33956 * po/ca.po: Remove (now handled by TLP).
33957 * po/id.po: Likewise.
33958 * po/zh_CN.po: Likewise.
33959 * Makefile.in (LINGUAS): Initialize in a way that supports
33962 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33964 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33965 reliing on po/LINGUAS.
33966 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33967 (po/%.po): ... this.
33969 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33971 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33972 (main): Use `program_name' instead of nonexistent `progname'.
33974 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33976 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33977 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33979 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33981 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33983 * conf/i386-efi.rmk: Likewise.
33984 * conf/i386-ieee1275.rmk: Likewise.
33985 * conf/powerpc-ieee1275.rmk: Likewise.
33986 * conf/sparc64-ieee1275.rmk: Likewise.
33987 * conf/x86_64-efi.rmk: Likewise.
33989 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33991 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33993 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33995 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33997 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33999 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34000 (grub_mkdevicemap_SOURCES): New variable.
34001 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34002 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34003 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34004 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34005 (grub_mkdevicemap_SOURCES): Remove.
34006 * conf/i386-efi.rmk: Likewise.
34007 * conf/i386-ieee1275.rmk: Likewise.
34008 * conf/i386-pc.rmk: Likewise.
34009 * conf/powerpc-ieee1275.rmk: Likewise.
34010 * conf/sparc64-ieee1275.rmk: Likewise.
34011 * conf/x86_64-efi.rmk: Likewise.
34012 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34013 (usage): Fix strings to use `program_name'.
34014 (main): Initialize gettext.
34015 * util/grub-editenv.c: Likewise.
34016 * util/grub-emu.c: Likewise.
34017 * util/grub-fstest.c: Likewise.
34018 * util/grub-mkdevicemap.c: Likewise.
34019 * util/grub-mkfont.c: Likewise.
34020 * util/grub-mkrelpath.c: Likewise.
34021 * util/grub-pe2elf.c: Likewise.
34022 * util/grub-probe.c: Likewise.
34023 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34024 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34025 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34027 * util/misc.c: Include `"progname.h"'.
34028 (progname): Remove variable.
34029 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34031 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34033 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34034 printf and print a newline after the menuentry header line.
34035 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34037 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34039 autoconf >= 2.60 support $(localedir).
34041 * INSTALL: Note that autoconf 2.60 is required.
34042 * configure.ac (AC_PREREQ): Bump to 2.60.
34043 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34044 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34046 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34048 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34051 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34053 * normal/main.c (grub_normal_read_line): Fix off-by-one
34056 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34058 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34059 "parser.grub" in grub_command_execute() call.
34061 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34063 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34064 * conf/i386-efi.rmk: Likewise.
34065 * conf/i386-ieee1275.rmk: Likewise.
34066 * conf/i386-pc.rmk: Likewise.
34067 * conf/powerpc-ieee1275.rmk: Likewise.
34068 * conf/sparc64-ieee1275.rmk: Likewise.
34069 * conf/x86_64-efi.rmk: Likewise.
34070 * gettext/gettex.c: Include <grub/i18n.h>.
34071 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34073 * include/grub/i18n.h: ... to here
34074 * include/grub/i18n.h: ... to here.
34075 * kern/misc.c: Include <grub/i18n.h>
34076 (grub_gettext_dummy): Move above user.
34078 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34080 * util/Makefile.in (install-local): Convert a `for' into a normal
34083 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34085 * autogen.sh: Add automake call.
34086 * config.guess: Remove.
34087 * config.sub: Likewise.
34088 * install-sh: Likewise.
34090 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34092 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34094 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34096 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34097 function to a normal shell `for'.
34099 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34101 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34103 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34105 * util/grub-mkrelpath.c: New file.
34106 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34107 (grub_mkrelpath_SOURCES): New variable.
34108 * include/grub/util/misc.h: New function prototype.
34109 * util/misc.c (make_system_path_relative_to_its_root): New function.
34111 * util/grub-mkconfig_lib.in (bindir): New variable.
34112 (grub_mkrelpath): Likewise.
34113 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34115 * util/probe.c (probe): Make the file path relative to its root.
34116 Change a info message to use the GRUB path. Enable again the
34117 check if we can read the file with GRUB facilities.
34119 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34122 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34124 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34127 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34129 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34132 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34134 * util/getroot.c (grub_util_is_dmraid): New function.
34135 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34136 devices as normal ones, not as LVM.
34138 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34140 * conf/common.rmk: Add grub-gettext_lib target and updates
34141 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34143 * gettext/gettext.c: New file. (Reads mo files).
34144 * include/grub/file.h (grub_file_pread): New prototype.
34145 * include/grub/i18n.h (_): New prototype.
34146 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34148 * kern/misc.c (grub_gettext_dummy): New function.
34149 * normal/menu_text.c: Include <grub/i18n.h>.
34150 * normal/menu_text.c (print_timeout): Gettexttize string.
34151 * normal/menu_text.c (print_message): Gettexttize string.
34152 * po/POTFILES: Add `normal/menu_text.c'.
34153 * po/ca.po: Add new translations.
34154 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34155 gettext module and defines locale_dir and lang in grub.cfg.
34156 * NEWS: Add gettext support.
34158 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34160 * util/hostdisk.c: Include `<grub/i18n.h>'.
34161 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34162 (make_device_name): Rewrite using asprintf.
34163 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34164 (find_system_device): If a device is not found, generate one just
34165 by reusing the OS path name.
34166 (read_device_map): Make it permissible for device.map not to exist.
34168 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34170 * script/sh/execute.c: Move from here ...
34171 * script/execute.c: ... to here. Update all users.
34172 * script/sh/function.c: Move from here ...
34173 * script/function.c: ... to here. Update all users.
34174 * script/sh/lexer.c: Move from here ...
34175 * script/lexer.c: ... to here. Update all users.
34176 * script/sh/main.c: Move from here ...
34177 * script/main.c: ... to here. Update all users.
34178 * script/sh/parser.y: Move from here ...
34179 * script/parser.y: ... to here. Update all users.
34180 * script/sh/script.c: Move from here ...
34181 * script/script.c: ... to here. Update all users.
34183 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34185 * configure.ac: Detect all `emu' platforms. Define
34186 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34187 --enable-grub-emu logic. Disable include/grub/machine
34188 symlink on `emu' platforms.
34190 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34191 * gensymlist.sh.in: Likewise.
34193 * include/grub/i386/coreboot/machine.h: Remove file.
34194 * include/grub/i386/efi/machine.h: Likewise.
34195 * include/grub/i386/ieee1275/machine.h: Likewise.
34196 * include/grub/i386/pc/machine.h: Likewise.
34197 * include/grub/i386/qemu/machine.h: Likewise.
34198 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34199 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34200 * include/grub/x86_64/efi/machine.h: Likewise.
34202 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34203 * commands/halt.c: Likewise.
34204 * commands/reboot.c: Likewise.
34205 * include/grub/autoefi.h: Likewise.
34206 * include/grub/i386/at_keyboard.h: Likewise.
34207 * include/grub/i386/kernel.h: Likewise.
34208 * include/grub/i386/loader.h: Likewise.
34209 * include/grub/i386/pc/memory.h: Likewise.
34210 * kern/dl.c: Likewise.
34211 * kern/i386/coreboot/init.c: Likewise.
34212 * loader/i386/bsd.c: Likewise.
34213 * loader/i386/linux.c: Likewise.
34214 * loader/multiboot_loader.c: Likewise.
34215 * term/i386/pc/serial.c: Likewise.
34216 * term/usb_keyboard.c: Likewise.
34218 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34219 `<grub/machine/machine.h>'
34220 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34221 * util/misc.c: Remove `<grub/machine/machine.h>' and
34222 `<grub/machine/time.h>'.
34224 * Makefile.in (enable_grub_emu): Remove variable.
34225 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34227 * conf/any-emu.rmk: New file.
34228 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34229 (grub_emu_init.c): Move from here ...
34230 * conf/any-emu.rmk: ... to here.
34232 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34233 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34234 * conf/any-emu.rmk: ... to here.
34236 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34238 * include/grub/parser.h (grub_parser_register): Document need
34239 of `name' parameter.
34240 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34241 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34244 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34246 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34248 * include/grub/i18n.h (N_): New macro.
34249 * util/mkisofs/mkisofs.h: Likewise.
34250 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34252 (usage): Use gettext() to translate help strings when printing them.
34254 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34256 Based on patch from Bean
34257 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34259 * video/efi_fb.c: New file.
34260 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34261 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34263 * conf/x86_64-efi.rmk: Likewise.
34265 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34267 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34268 * util/i386/pc/grub-setup.c: Likewise.
34270 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34272 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34274 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34275 file_get_storage_info to implement grub_guess_root_device.
34277 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34279 * Makefile.in (target): Use make's builtin $(shell) function
34280 instead of calling directly $(SHELL) to create the locale directories,
34281 inside the $(foreach) function.
34283 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34285 * util/grub-mkrescue.in: Print an error and usage if output option
34286 has not been given.
34288 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34290 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34291 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34292 root and /boot are on different devices.
34294 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34296 Fix build for srcdir != objdir.
34298 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34299 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34301 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34302 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34303 reference for input.
34305 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34307 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34308 or hardlinking it). Remove -J option, Joliet is not compatible with
34309 multiple source directories.
34311 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34312 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34314 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34315 (process_input_dir): New function. Process an arbitrary input
34317 Misc adjustments to support both "override mode" and system-wide mode.
34319 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34321 * configure.ac (UNIFONT_BDF): Rename to ...
34322 (FONT_SOURCE): ... this. Update all users.
34324 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34326 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34327 to the list of unifont files to look for.
34329 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34331 Patch from Joe Auricchio <jauricchio@gmail.com>
34332 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34333 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34334 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34336 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34338 * Makefile.in (install-local): Add a missing backslash.
34340 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34342 * include/grub/x86_64/io.h: New file.
34344 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34346 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34347 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34348 Include `"progname.h"'.
34349 (main): Initialize gettext.
34350 * util/i386/pc/grub-setup.c: Gettexttize.
34351 * util/i386/pc/grub-mkimage.c: Likewise.
34353 * Makefile.in (po/*.po): Redefine as ...
34354 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34356 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34358 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34360 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34361 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34362 (program_name): Remove.
34363 (main): Initialize gettext support.
34364 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34365 Include `<libintl.h>'.
34368 * util/mkisofs/eltorito.c: Gettexttize.
34369 * util/mkisofs/joliet.c: Likewise.
34370 * util/mkisofs/mkisofs.c: Likewise.
34371 * util/mkisofs/multi.c: Likewise.
34372 * util/mkisofs/rock.c: Likewise.
34373 * util/mkisofs/tree.c: Likewise.
34374 * util/mkisofs/write.c: Likewise.
34376 * po/POTFILES: Update with new files.
34378 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34380 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34381 * util/mkisofs/iso9660.h: Likewise.
34382 * util/mkisofs/joliet.c: Likewise.
34383 * util/mkisofs/mkisofs.c: Likewise.
34384 * util/mkisofs/mkisofs.h: Likewise.
34385 * util/mkisofs/rock.c: Likewise.
34386 * util/mkisofs/tree.c: Likewise.
34387 * util/mkisofs/write.c: Likewise.
34389 * util/mkisofs/eltorito.c (rcsid): Remove.
34390 * util/mkisofs/hash.c: Likewise.
34391 * util/mkisofs/joliet.c: Likewise.
34392 * util/mkisofs/name.c: Likewise.
34393 * util/mkisofs/rock.c: Likewise.
34394 * util/mkisofs/tree.c: Likewise.
34395 * util/mkisofs/write.c: Likewise.
34397 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34399 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34400 instead of static allocation.
34401 * util/mkisofs/match.h: Likewise.
34403 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34405 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34406 and `util/grub.d/10_linux.in'.
34407 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34408 translatable Shell files.
34410 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34412 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34414 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34416 * INSTALL: Document Automake is needed for bootstrap.
34417 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34418 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34419 Add gettext initialization.
34420 (kfreebsd_entry): Make menuentry output translatable.
34422 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34424 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34425 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34426 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34427 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34428 (LINGUAS): Auto-generate using `po/LINGUAS'.
34429 * po/LINGUAS: New file.
34431 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34433 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34435 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34436 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34437 bindtextdomain() calls for gettext initialization.
34439 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34441 * gnulib/progname.c: New file (imported from Gnulib).
34442 * gnulib/progname.h: Likewise.
34443 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34444 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34445 (usage): Replace `progname' with `program_name'.
34446 (main): Use set_program_name() for program name initialization.
34448 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34450 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34452 * Makefile.in (CPPFLAGS): ... to here.
34454 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34456 * aclocal.m4: Move from here ...
34457 * acinclude.m4: ... to here.
34458 * autogen.sh: Add call to `aclocal'.
34459 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34461 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34463 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34464 (LINGUAS): New variable.
34465 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34466 (install-local): Install MO files.
34467 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34468 * include/grub/i18n.h: New file.
34469 * po/POTFILES: New file.
34470 * po/ca.po: New file.
34471 * util/grub.d/10_linux.in (bindir): New variable.
34472 Add gettext initialization.
34473 (linux_entry): Make menuentry output translatable.
34474 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34475 (usage): Make --help output translatable.
34476 (main): Initialize gettext.
34478 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34480 * import_gcry.py: New file (written by Vladimir with minor
34482 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34484 * INSTALL: Document that Python is required for bootstrap.
34486 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34488 Import ciphers from libgcrypt 1.4.4.
34490 * lib/libgcrypt/cipher/ChangeLog
34491 * lib/libgcrypt/cipher/ac.c
34492 * lib/libgcrypt/cipher/arcfour.c
34493 * lib/libgcrypt/cipher/bithelp.h
34494 * lib/libgcrypt/cipher/blowfish.c
34495 * lib/libgcrypt/cipher/camellia-glue.c
34496 * lib/libgcrypt/cipher/camellia.c
34497 * lib/libgcrypt/cipher/camellia.h
34498 * lib/libgcrypt/cipher/cast5.c
34499 * lib/libgcrypt/cipher/cipher.c
34500 * lib/libgcrypt/cipher/crc.c
34501 * lib/libgcrypt/cipher/des.c
34502 * lib/libgcrypt/cipher/dsa.c
34503 * lib/libgcrypt/cipher/ecc.c
34504 * lib/libgcrypt/cipher/elgamal.c
34505 * lib/libgcrypt/cipher/hash-common.c
34506 * lib/libgcrypt/cipher/hash-common.h
34507 * lib/libgcrypt/cipher/hmac-tests.c
34508 * lib/libgcrypt/cipher/md.c
34509 * lib/libgcrypt/cipher/md4.c
34510 * lib/libgcrypt/cipher/md5.c
34511 * lib/libgcrypt/cipher/primegen.c
34512 * lib/libgcrypt/cipher/pubkey.c
34513 * lib/libgcrypt/cipher/rfc2268.c
34514 * lib/libgcrypt/cipher/rijndael-tables.h
34515 * lib/libgcrypt/cipher/rijndael.c
34516 * lib/libgcrypt/cipher/rmd.h
34517 * lib/libgcrypt/cipher/rmd160.c
34518 * lib/libgcrypt/cipher/rsa.c
34519 * lib/libgcrypt/cipher/seed.c
34520 * lib/libgcrypt/cipher/serpent.c
34521 * lib/libgcrypt/cipher/sha1.c
34522 * lib/libgcrypt/cipher/sha256.c
34523 * lib/libgcrypt/cipher/sha512.c
34524 * lib/libgcrypt/cipher/tiger.c
34525 * lib/libgcrypt/cipher/twofish.c
34526 * lib/libgcrypt/cipher/whirlpool.c
34528 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34530 Fix build for systems without error().
34532 * gnulib/error.c: New file (imported from Gnulib).
34533 * gnulib/error.h: Likewise.
34534 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34535 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34536 (this variable is now used by error()).
34538 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34540 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34541 instead of relying that char is signed.
34543 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34545 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34546 blocksize different from specified.
34547 (grub_pxefs_read): Likewise.
34549 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34551 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34553 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34554 (grub_ata_readwrite): Likewise. Update 2 format strings.
34555 (grub_atapi_read): Likewise.
34557 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34558 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34559 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34560 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34561 (ata_mod_LDFLAGS): Move from here ...
34562 * conf/i386.rmk: ... to here ...
34563 * conf/x86_64-efi.rmk: ... and here.
34564 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34565 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34567 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34569 Relicense multiboot.h, with RMS' blessing.
34571 * include/multiboot.h: Change to X11 license.
34573 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34575 Support --version in grub-mkisofs.
34577 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34578 (OPTION_VERSION): New macro.
34579 (ld_options): Recognize --version.
34580 (usage): Move `program_name' from here ...
34581 (program_name): ... to here. Add `static' qualifier.
34582 (main): Recognize `OPTION_VERSION'.
34584 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34586 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34587 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34589 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34591 Fix help2man generation for mkisofs.
34593 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34594 (usage): Send output to stdout (rather than stderr).
34596 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34598 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34599 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34600 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34601 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34602 (bin_SCRIPTS): Add `grub-mkfloppy'.
34603 (grub_mkfloppy_SOURCES): New variable.
34605 * util/grub-mkrescue.in: New file.
34606 * util/i386/pc/grub-mkfloppy.in: New file.
34608 * util/i386/coreboot/grub-mkrescue.in: Remove.
34609 * util/i386/pc/grub-mkrescue.in: Remove.
34611 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34613 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34615 * include/multiboot.h (struct multiboot_header): ... to here. Update
34617 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34619 * include/multiboot.h (struct multiboot_info): ... to here. Update
34621 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34623 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34625 * include/grub/multiboot.h (struct grub_mod_list): Move
34627 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34630 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34632 * include/multiboot2.h (multiboot_word): Rename from this ...
34633 (multiboot2_word): ... to this. Update all users.
34634 (multiboot_header): Rename from this ...
34635 (multiboot2_header): ... to this. Update all users.
34636 (multiboot_tag_header): Rename from this ...
34637 (multiboot2_tag_header): ... to this. Update all users.
34638 (multiboot_tag_start): Rename from this ...
34639 (multiboot2_tag_start): ... to this. Update all users.
34640 (multiboot_tag_name): Rename from this ...
34641 (multiboot2_tag_name): ... to this. Update all users.
34642 (multiboot_tag_module): Rename from this ...
34643 (multiboot2_tag_module): ... to this. Update all users.
34644 (multiboot_tag_memory): Rename from this ...
34645 (multiboot2_tag_memory): ... to this. Update all users.
34646 (multiboot_tag_unused): Rename from this ...
34647 (multiboot2_tag_unused): ... to this. Update all users.
34648 (multiboot_tag_end): Rename from this ...
34649 (multiboot2_tag_end): ... to this. Update all users.
34651 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34653 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34654 this platform we should support Multiboot1 first.
34656 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34657 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34658 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34660 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34662 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34663 of write calls (converting them to fwrite() if they aren't already).
34664 (get_torito_desc): Likewise.
34665 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34667 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34669 * util/i386/pc/grub-install.in: Move from here ...
34670 * util/grub-install.in: ... to here. Update all users.
34672 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34674 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34676 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34678 Support for El Torito without floppy emulation.
34680 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34681 (init_boot_catalog): Improve error handling.
34682 (get_torito_desc): Don't use floppy emulation unless requested by
34683 user. Patch boot information table when requested via
34684 `-boot-info-table'.
34685 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34686 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34687 (use_boot_info_table): New variables.
34688 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34689 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34690 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34691 `--eltorito-emul-floppy'.
34692 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34693 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34694 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34695 (use_boot_info_table, get_731): New prototypes.
34696 * util/mkisofs/write.c (get_731): New function.
34698 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34700 Fix the generation of the man page.
34702 * util/pc/i386/grub-install.in: Source
34703 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34705 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34707 Large file support for grub-mkisofs.
34709 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34710 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34711 (session_start): Upgrade type to `uint64_t'. Update all users.
34712 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34713 (struct directory_entry): Upgrade type of `starting_block' and
34714 `size' to `uint64_t'. Update all users.
34715 (struct deferred): Remove unused structure.
34716 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34718 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34719 file is larger than `UINT32_MAX'.
34720 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34721 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34723 (struct deferred_write): Upgrade type of `extent' and `size' to
34724 `uint64_t'. Update all users.
34725 (last_extent_written): Upgrade type to `uint64_t'. Update all
34727 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34728 Update all users. Upgrade type of `remain' to `int64_t' and
34729 `use' to `size_t'. Use error() to handle fread() errors.
34730 (write_files): Rely on write_one_file() rather than calling
34731 xfwrite() directly.
34733 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34735 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34737 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34739 * util/mkisofs/fnmatch.c: Remove.
34740 * util/mkisofs/getopt1.c: Likewise.
34741 * util/mkisofs/getopt.c: Likewise.
34742 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34743 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34744 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34745 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34746 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34748 * configure.ac: Detect `mingw32msvc' host_os.
34749 Check for lstat(), getuid() and getgid().
34751 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34752 instances of `u_char' with `uint8_t'.
34754 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34755 [!HAVE_GETUID] (getuid): New function (stub).
34756 [!HAVE_GETGID] (getgid): Likewise.
34757 [!HAVE_LSTAT] (lstat): Likewise.
34758 [!S_IROTH] (S_IROTH): New macro (dummy).
34759 [!S_IRGRP] (S_IRGRP): Likewise.
34761 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34763 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34764 conditional expression).
34766 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34768 Import from Gnulib.
34770 * gnulib/fnmatch.c: New file.
34771 * gnulib/fnmatch.h: Likewise.
34772 * gnulib/fnmatch_loop.c: Likewise.
34773 * gnulib/getopt.c: Likewise.
34774 * gnulib/getopt.h: Likewise.
34775 * gnulib/getopt1.c: Likewise.
34776 * gnulib/getopt_int.h: Likewise.
34777 * gnulib/gettext.h: Likewise.
34779 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34781 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34782 * normal/handler.c (read_handler_list): Likewise.
34784 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34788 * kern/command.c (grub_register_command_prio): Use
34789 grub_zalloc() instead of explicitly zeroing data.
34790 * kern/list.c: Include `<grub/mm.h>'.
34791 (grub_named_list_find): Replace `0' with `NULL'.
34792 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34793 (fs_module_list): Change type to `grub_named_list_t'. Update all
34795 * normal/dyncmd.c (read_command_list): Add space between function
34796 call and parenthesis.
34797 * normal/handler.c (read_handler_list): Likewise.
34799 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34801 * normal/auth.c (punishment_delay): Moved from here ...
34802 (grub_auth_strcmp): ... to here (inside function).
34804 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34806 * include/grub/list.h (struct grub_named_list): Remove `const'
34807 qualifier from `name'.
34808 (struct grub_prio_list): Likewise.
34810 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34812 * normal/auth.c: Include `<grub/time.h>'.
34813 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34815 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34817 * normal/auth.c (punishment_delay): New variable.
34818 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34819 (grub_auth_check_authentication): Punish failed login attempts with
34820 an incremental (2^N) delay.
34822 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34824 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34825 path with $(srcdir).
34827 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34829 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34831 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34833 * util/i386/coreboot/grub-mkrescue.in: New file.
34834 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34837 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34838 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34839 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34841 * util/mkisofs/defaults.h: New file.
34842 * util/mkisofs/eltorito.c: Likewise.
34843 * util/mkisofs/exclude.h: Likewise.
34844 * util/mkisofs/fnmatch.c: Likewise.
34845 * util/mkisofs/getopt.c: Likewise.
34846 * util/mkisofs/getopt1.c: Likewise.
34847 * util/mkisofs/hash.c: Likewise.
34848 * util/mkisofs/include/fctldefs.h: Likewise.
34849 * util/mkisofs/include/mconfig.h: Likewise.
34850 * util/mkisofs/include/prototyp.h: Likewise.
34851 * util/mkisofs/include/statdefs.h: Likewise.
34852 * util/mkisofs/iso9660.h: Likewise.
34853 * util/mkisofs/joliet.c: Likewise.
34854 * util/mkisofs/match.c: Likewise.
34855 * util/mkisofs/match.h: Likewise.
34856 * util/mkisofs/mkisofs.c: Likewise.
34857 * util/mkisofs/mkisofs.h: Likewise.
34858 * util/mkisofs/multi.c: Likewise.
34859 * util/mkisofs/name.c: Likewise.
34860 * util/mkisofs/rock.c: Likewise.
34861 * util/mkisofs/tree.c: Likewise.
34862 * util/mkisofs/write.c: Likewise.
34864 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34866 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34869 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34871 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34872 `grub-mkimage' (and use $0 when possible).
34874 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34876 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34877 error message for excessively large memory map.
34879 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34881 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34884 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34886 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34887 message for coreboot users.
34889 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34891 Fix build with GNU gold.
34893 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34894 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34895 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34897 * aclocal.m4: Likewise.
34899 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34901 * configure.ac (AC_PREREQ): Bump to 2.59d.
34902 * INSTALL: Make it more clear when Autoconf and Ruby are
34903 needed and when to run `./autogen.sh'.
34905 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34907 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34910 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34912 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34914 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34916 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34917 giving it to GNU Mach.
34919 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34921 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34922 GNU partition number to get internal GRUB partition number.
34924 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34926 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34927 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34929 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34931 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34932 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34935 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34937 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34939 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34943 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34944 `-isystem=$(srcdir)/include'.
34946 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34948 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34949 checked (grub-install doesn't currently rely on it).
34951 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34955 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34956 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34957 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34958 * conf/i386-ieee1275.rmk: Likewise.
34959 * conf/i386-pc.rmk: Likewise.
34960 * conf/powerpc-ieee1275.rmk: Likewise.
34961 * conf/sparc64-ieee1275.rmk: Likewise.
34962 * conf/x86_64-efi.rmk: Likewise.
34964 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34966 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34968 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34970 * include/grub/misc.h: Stop checking for APPLE_CC.
34972 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34974 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34975 doesn't cause an infinite call loop.
34977 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34979 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34982 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34984 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34986 * Makefile.in: Likewise.
34988 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34990 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34992 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34994 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34996 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34998 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35000 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35002 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35004 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35006 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35008 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35009 in $(MAKEINFO) invocation. This makes it clear in output that
35010 errors are being ignored.
35012 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35014 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35016 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35017 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35018 * conf/i386-ieee1275.rmk: Likewise.
35019 * conf/i386-pc.rmk: Likewise.
35020 * conf/powerpc-ieee1275.rmk: Likewise.
35021 * conf/sparc64-ieee1275.rmk: Likewise.
35022 * conf/x86_64-efi.rmk: Likewise.
35024 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35026 * util/grub-editenv.c (main): If only a command is given, use
35027 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35028 (usage): FILENAME is now optional and has a default.
35030 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35032 Improve grub-mkconfig performance when there are several menu
35033 entries on a single filesystem.
35035 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35036 prepare_grub_to_access_device.
35037 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35038 * util/grub.d/30_os-prober.in: Likewise.
35040 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35042 * util/grub.d/10_freebsd.in: Remove.
35043 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35044 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35046 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35048 * docs/grub.cfg: Fix example usage of *BSD loaders.
35050 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35052 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35053 grub_util_error() call.
35055 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35057 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35058 `reserved_first_sector' member.
35059 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35060 `reserved_first_sector' to 1.
35061 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35062 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35063 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35064 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35065 filesystems which begin at first sector.
35066 (options): New option --skip-fs-probe.
35067 (main): Handle --skip-fs-probe and pass it to setup().
35069 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35071 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35072 (memset): Fix function prototype.
35074 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35075 2009-10-25 Vasily Averin <vvs@parallels.com>
35077 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35078 `dirent.direntlen == 0'.
35080 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35082 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35084 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35086 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35088 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35089 `__trampoline_setup' and `__ucmpdi2'.
35090 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35091 that libgcc provides.
35093 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35095 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35096 * include/grub/sparc64/libgcc.h (memset): Likewise.
35097 * include/grub/misc.h (memset, memcmp): New function prototypes.
35099 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35101 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35103 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35105 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35107 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35108 * docs/grub.cfg: Compensate for recent change in multiboot
35109 loader (since 2009-08-14 it won't pass filename to payload).
35110 * util/grub.d/10_hurd.in: Likewise.
35112 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35114 * config.guess: Update to latest version from config git
35116 * config.sub: Likewise.
35118 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35120 Fix build on sparc64.
35122 * configure.ac: Perform checks for libgcc symbols before
35123 adding `-nostdlib' to LDFLAGS.
35125 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35127 Let user specify OpenBSD root device.
35129 * loader/i386/bsd.c (openbsd_root): New variable.
35130 (openbsd_opts): New option 'root'.
35131 (OPENBSD_ROOT_ARG): New macro.
35132 (grub_openbsd_boot): Use 'openbsd_root'.
35133 (grub_cmd_openbsd): Fill 'openbsd_root'.
35135 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35137 * NEWS: Misc adjustments.
35139 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35141 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35143 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35145 * configure.ac: Bump version to 1.97.
35147 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35149 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35150 -mno-3dnow on x86 architectures. Some toolchains enable these
35151 features by default, but they rely on registers that aren't enabled
35152 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35154 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35156 Make entry text a bit more readable.
35158 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35160 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35162 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35164 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35166 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35169 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35171 * configure.ac: Add missing dollar.
35173 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35175 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35177 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35178 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35180 * include/grub/sparc64/libgcc.h: Likewise. Use
35181 preprocessor conditionals.
35183 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35185 * conf/common.rmk (grub-dumpbios): Remove rule.
35186 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35187 * util/grub-dumpbios.in: Remove file.
35189 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35191 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35192 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35194 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35195 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35198 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35199 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35200 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35201 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35204 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35206 * term/tparm.c: Switch to GPLv3.
35208 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35210 * include/grub/i386/cpuid.h: Add header protection.
35212 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35214 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35216 * include/grub/i386/cpuid.h: New file.
35217 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35218 (has_longmode): Rename to ...
35219 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35220 `static' attribute.
35221 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35222 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35223 on a CPU that doesn't implement AMD64 instruction set.
35225 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35227 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35228 that version.texi is rebuilt on version number changes.
35230 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35232 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35235 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35237 * util/i386/pc/grub-install.in: Source
35238 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35239 that the --grub-probe option will work.
35240 * util/sparc64/ieee1275/grub-install.in: Likewise.
35242 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35244 * configure.ac: Bump version to 1.97~beta4.
35246 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35248 Resync grub-mkdevicemap in x86_64-efi.
35250 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35251 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35252 `util/devicemap.c'.
35254 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35256 * util/grub-editenv.c (create_envblk_file): Write new block with a
35257 .new suffix and then rename it into place, to ensure atomic
35260 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35262 Do not automatically install headers.
35264 * Makefile.in (include_DATA): Remove. Update all users.
35266 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35268 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35269 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35271 * util/osdetect.lua: Remove.
35272 * script/lua/lauxlib.c: Likewise.
35273 * script/lua/ldebug.c: Likewise.
35274 * script/lua/grub_main.c: Likewise.
35275 * script/lua/lauxlib.h: Likewise.
35276 * script/lua/ldebug.h: Likewise.
35277 * script/lua/ltablib.c: Likewise.
35278 * script/lua/liolib.c: Likewise.
35279 * script/lua/lstrlib.c: Likewise.
35280 * script/lua/lualib.h: Likewise.
35281 * script/lua/ldo.c: Likewise.
35282 * script/lua/ldump.c: Likewise.
35283 * script/lua/ldo.h: Likewise.
35284 * script/lua/loslib.c: Likewise.
35285 * script/lua/lundump.c: Likewise.
35286 * script/lua/grub_lib.c: Likewise.
35287 * script/lua/ldblib.c: Likewise.
35288 * script/lua/lundump.h: Likewise.
35289 * script/lua/lmem.c: Likewise.
35290 * script/lua/grub_lib.h: Likewise.
35291 * script/lua/lmathlib.c: Likewise.
35292 * script/lua/lstate.c: Likewise.
35293 * script/lua/ltm.c: Likewise.
35294 * script/lua/lvm.c: Likewise.
35295 * script/lua/lmem.h: Likewise.
35296 * script/lua/lstate.h: Likewise.
35297 * script/lua/ltm.h: Likewise.
35298 * script/lua/ltable.c: Likewise.
35299 * script/lua/lvm.h: Likewise.
35300 * script/lua/llex.c: Likewise.
35301 * script/lua/lgc.c: Likewise.
35302 * script/lua/grub_lua.h: Likewise.
35303 * script/lua/loadlib.c: Likewise.
35304 * script/lua/lfunc.c: Likewise.
35305 * script/lua/lopcodes.c: Likewise.
35306 * script/lua/lparser.c: Likewise.
35307 * script/lua/ltable.h: Likewise.
35308 * script/lua/llex.h: Likewise.
35309 * script/lua/lgc.h: Likewise.
35310 * script/lua/lfunc.h: Likewise.
35311 * script/lua/lbaselib.c: Likewise.
35312 * script/lua/lopcodes.h: Likewise.
35313 * script/lua/lparser.h: Likewise.
35314 * script/lua/lzio.c: Likewise.
35315 * script/lua/linit.c: Likewise.
35316 * script/lua/lobject.c: Likewise.
35317 * script/lua/llimits.h: Likewise.
35318 * script/lua/lstring.c: Likewise.
35319 * script/lua/lzio.h: Likewise.
35320 * script/lua/lapi.c: Likewise.
35321 * script/lua/lcode.c: Likewise.
35322 * script/lua/lua.h: Likewise.
35323 * script/lua/lobject.h: Likewise.
35324 * script/lua/lstring.h: Likewise.
35325 * script/lua/lapi.h: Likewise.
35326 * script/lua/lcode.h: Likewise.
35327 * script/lua/luaconf.h: Likewise.
35329 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35331 * docs/grub.texi (Command-line and menu entry commands): Document
35332 date and echo commands.
35334 2009-09-24 Pavel Roskin <proski@gnu.org>
35336 * include/grub/kernel.h (struct grub_module_header): Remove
35337 `grub_module_header_types'. Make `type' unsigned. Make `size'
35338 32-bit on all platforms.
35339 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35340 8-bit field. Use grub_host_to_target32() for `size'.
35341 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35342 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35343 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35345 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35347 Fix "lost keypress" bug in at_keyboard.
35349 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35350 Checks for readyness of input buffer (without flushing it).
35351 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35352 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35354 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35356 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35357 size check within GRUB_MACHINE_PCBIOS section.
35359 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35361 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35363 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35364 KEYBOARD_ISREADY check.
35365 (grub_at_keyboard_checkkey): Rename to ...
35366 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35367 Remove gratuitous cast.
35369 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35371 * configure.ac: Call AC_PROG_MKDIR_P.
35372 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35373 version.texi in $(builddir) rather than $(srcdir).
35374 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35375 to makeinfo's @include search path.
35377 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35379 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35381 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35383 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35386 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35388 Build info documentation. Some code borrowed from Automake.
35390 * configure.ac: Check for makeinfo.
35391 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35392 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35394 (MOSTLYCLEANFILES): Add vti.tmp.
35395 (docs/version.texi, docs/stamp-vti): Update automatically.
35396 (docs/grub.info): Build info documentation. Use --force and ignore
35398 (all-local): Add $(INFOS).
35399 (install-local): Install info files.
35400 (uninstall): Uninstall info files.
35401 * docs/version.texi: Remove from revision control. This file is
35402 automatically generated on build now.
35403 * gendistlist.sh: Add `*.info'.
35405 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35407 * kern/term.c: Fix indentation.
35409 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35411 * util/hostdisk.c: Fix a comment.
35413 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35415 Fix regression introduced in r2539.
35417 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35420 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35422 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35423 os-prober. Under normal operation, it does not print anything to
35424 stderr; if it does, we need to debug it, and throwing away stderr
35425 makes that excessively difficult.
35427 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35429 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35431 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35433 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35434 AC_LANG_PROGRAM from autoconf.
35435 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35436 prototypes (fixes warning).
35438 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35439 `--disable-werror' was used.
35441 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35443 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35444 uninitialized `lastaddr'.
35446 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35448 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35450 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35452 * commands/test.c (get_fileinfo): Return immediately if
35453 grub_fs_probe fails.
35455 2009-09-14 José Martínez <xosemp@gmail.com>
35457 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35459 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35461 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35464 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35466 * configure.ac: Remove --enable-grub-pe2elf. Only build
35467 grub-pe2elf when needed by the build system itself.
35468 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35470 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35472 * configure.ac: Bump version to 1.97~beta3.
35473 * docs/version.texi: Likewise.
35475 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35477 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35478 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35480 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35481 (grub_linux_setup_video): ... to here (with some adjustments).
35483 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35485 Fix memory corruption issue (spotted by Colin Watson).
35487 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35488 causing returned size to be stored in an incorrect memory location.
35489 Fix use of uninitialized value when storing the returned size.
35491 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35493 Change clean rules to properly remove files
35495 * genmk.rb: add new clean rules
35496 * Makefile.in (clean): add the new targets
35497 (mostlyclean): likewise
35499 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35501 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35503 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35504 non-resident files.
35506 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35508 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35509 part of bug #27349.
35511 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35513 * util/grub-mkconfig.in: Make the created config mode 400 and
35514 print a warning if it fails.
35516 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35518 * util/grub.d/40_custom.in: Ask user to type custom entries below
35519 comment, rather than below 'exec tail' line.
35521 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35523 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35524 visible in grub.cfg.
35526 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35528 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35531 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35533 * docs/grub.cfg: Add an example menu entry for memtest86+.
35535 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35537 * config.guess: Update to latest version from config git.
35538 * config.sub: Likewise.
35540 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35542 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35543 unknown-command case. Fixes bug #27320.
35545 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35547 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35548 `help' if the command exists.
35550 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35552 * INSTALL: Require GCC 4.1.3 or later.
35554 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35556 * Makefile.in (RMKFILES): add i386-qemu.rmk
35557 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35558 $(srcdir)/stamp-h.in
35560 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35562 * util/grub-probe.c (probe): Comment out buggy codepath, which
35563 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35564 should be re-enabled after 1.97.
35566 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35568 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35571 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35573 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35574 unnecessary calls to grub_error.
35576 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35578 * NEWS: Mention `keystatus' and Unicode fonts.
35580 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35582 * configure.ac: Bump version to 1.97~beta2.
35583 * docs/version.texi: Likewise.
35585 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35587 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35588 containing unwind information in some cases where it previously did
35589 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35590 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35593 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35595 Embedding loadenv module into grub-emu
35597 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35599 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35600 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35601 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35603 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35604 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35606 2009-09-03 Magnus Granberg <zorry@ume.nu>
35608 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35609 include -fPIE in the default specs.
35610 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35613 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35615 * INSTALL: Note that GNU Bison 2.3 or later is required.
35617 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35619 * kern/i386/pc/startup.S: Fix typo.
35621 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35623 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35626 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35628 * docs/grub.texi (Naming convention): Describe one-based partition
35630 (Device syntax): Likewise.
35631 (File name syntax): Likewise.
35632 (Block list syntax): Likewise.
35633 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35635 (File name syntax): Likewise.
35636 (Command-line and menu entry commands): Document acpi, blocklist,
35637 crc, export, insmod, keystatus, ls, set, and unset commands.
35639 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35641 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35642 to avoid implying that only one of --shift, --ctrl, or --alt may be
35645 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35647 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35648 rather than comparing against S_IFREG, which will almost never work.
35650 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35652 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35653 (write_blocklists): Likewise.
35655 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35657 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35658 argument to grub_printf.
35660 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35662 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35665 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35667 * kern/file.c (grub_file_read): Spelling fix
35669 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35671 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35672 loading of headers in some cases.
35674 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35676 * configure.ac: Bump version to 1.97~beta1.
35677 * docs/version.texi: Likewise.
35679 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35681 * include/grub/i386/xnu.h: Add license header.
35682 include grub/err.h explicitly.
35684 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35686 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35687 to `ufs' in the vfs.root.mountfrom kernel parameter.
35689 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35691 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35693 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35694 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35696 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35697 `ARRAY_SIZE' macro.
35699 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35701 * kern/file.c (grub_file_read): Check offset.
35702 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35703 * fs/jfs.c (grub_jfs_read_file): Likewise.
35704 * fs/ntfs.c (grub_ntfs_read): Likewise.
35705 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35706 * fs/minix.c (grub_minix_read_file): Correct offset check.
35707 * fs/ufs.c (grub_ufs_read_file): Likewise.
35709 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35711 * term/i386/pc/console.c (bios_data_area): Cast
35712 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35714 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35716 1-bit optimised blitters.
35718 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35720 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35721 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35722 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35723 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35724 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35725 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35726 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35728 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35729 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35730 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35731 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35732 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35733 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35734 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35736 * video/video.c (grub_video_get_blit_format): Return
35737 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35739 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35741 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35742 the first argument to grub_printf.
35744 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35745 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35747 Add `getkeystatus' terminal method. Add a new `keystatus' command
35750 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35751 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35752 modifier key bitmasks.
35753 (struct grub_term_input): Add `getkeystatus' member.
35754 (grub_getkeystatus): Add prototype.
35755 * kern/term.c (grub_getkeystatus): New function.
35757 * include/grub/i386/pc/memory.h
35758 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35759 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35761 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35762 (grub_console_term_input): Set `getkeystatus' member.
35763 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35765 (grub_usb_keyboard_getreport): Likewise.
35766 (grub_usb_keyboard_checkkey): Likewise.
35767 (grub_usb_keyboard_getkeystatus): New function.
35768 (grub_usb_keyboard_term): Set `getkeystatus' member.
35770 * commands/keystatus.c: New file.
35771 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35772 (keystatus_mod_SOURCES): New variable.
35773 (keystatus_mod_CFLAGS): Likewise.
35774 (keystatus_mod_LDFLAGS): Likewise.
35775 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35776 commands/keystatus.c.
35777 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35778 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35779 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35781 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35782 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35784 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35786 Split befs.mod and afs.mod into *_be.mod and *.mod
35788 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35789 (grub_fstest_SOURCES): Likewise.
35790 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35791 (afs_be_mod_SOURCES): New variable.
35792 (afs_be_mod_CFLAGS): Likewise.
35793 (afs_be_mod_LDFLAGS): Likewise.
35794 (befs_be_mod_SOURCES): Likewise.
35795 (befs_be_mod_CFLAGS): Likewise.
35796 (befs_be_mod_LDFLAGS): Likewise.
35797 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35798 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35799 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35800 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35801 (grub_emu_SOURCES): Likewise.
35802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35803 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35804 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35805 * fs/afs_be.c: New file.
35806 * fs/befs_be.c: New file.
35807 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35808 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35809 (U16): Replaced with ...
35810 (grub_afs_to_cpu16): ...this. All users updated.
35811 (U32): Replaced with ...
35812 (grub_afs_to_cpu32): ...this. All users updated.
35813 (U64): Replaced with ...
35814 (grub_afs_to_cpu64): ...this. All users updated.
35815 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35816 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35817 (grub_afs_validate_sblock): Check only one endianness.
35818 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35819 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35820 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35821 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35822 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35823 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35824 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35825 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35827 2009-08-26 Bean <bean123ch@gmail.com>
35829 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35831 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35832 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35833 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35835 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35837 NetBSD memory map support.
35839 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35840 (grub_netbsd_btinfo_mmap_header): New structure.
35841 (grub_netbsd_btinfo_mmap_entry): Likewise.
35842 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35844 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35846 Enable bsd.mod on coreboot.
35848 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35849 (bsd_mod_SOURCES): New variable.
35850 (bsd_mod_CFLAGS): Likewise.
35851 (bsd_mod_LDFLAGS): Likewise.
35852 (bsd_mod_ASFLAGS): Likewise.
35853 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35854 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35856 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35858 Cleanup NetBSD root support.
35860 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35861 grub_bsd_get_device.
35864 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35866 * util/grub.d/00_header.in: Move check for the video backend of
35867 gfxterm from here ...
35868 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35869 a suitable video backend.
35871 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35873 Fix breakage in grub-setup.
35875 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35876 "msdos_partition_map".
35878 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35880 Fix breakage in normal/auth.c.
35882 * normal/auth.c (grub_iswordseparator): New function.
35884 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35886 Authentication support.
35888 * commands/password.c: New file.
35889 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35890 (password_mod_SOURCES): New variable.
35891 (password_mod_CFLAGS): Likewise.
35892 (password_mod_LDFLAGS): Likewise.
35893 (normal_mod_SOURCES): Add normal/auth.c.
35894 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35896 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35897 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35898 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35899 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35900 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35901 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35902 * include/grub/auth.h: New file.
35903 * include/grub/err.h (grub_err_t): New enum value
35904 GRUB_ERR_ACCESS_DENIED.
35905 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35907 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35908 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35910 * normal/auth.c: New file.
35911 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35912 (grub_cmdline_run): Don't allow to go to command line without
35914 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35915 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35916 menuentry without superuser rights.
35917 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35918 user isn't a superuser.
35920 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35922 Save space by inlining misc.c functions.
35924 * kern/misc.c (grub_iswordseparator): Made static.
35925 * kern/misc.c (grub_strcat): Moved from here ...
35926 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35927 * kern/misc.c (grub_strncat): Moved from here ...
35928 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35929 * kern/misc.c (grub_strcasecmp): Moved from here ...
35930 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35931 * kern/misc.c (grub_strncasecmp): Moved from here ...
35932 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35933 * kern/misc.c (grub_isalpha): Moved from here ...
35934 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35935 * kern/misc.c (grub_isdigit): Moved from here ...
35936 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35937 * kern/misc.c (grub_isgraph): Moved from here ...
35938 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35939 * kern/misc.c (grub_tolower): Moved from here ...
35940 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35942 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35944 * script/sh/function.c (grub_script_function_find): Cut error message
35945 not to flood terminal.
35946 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35948 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35950 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35952 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35953 `report' grub_uint8_t *.
35954 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35955 Use a 50-millisecond timeout rather than just repeating
35956 grub_usb_keyboard_getreport 50 times.
35957 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35959 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35961 Rename *_partition_map to part_*
35963 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35964 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35965 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35966 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35968 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35970 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35971 * util/grub-probe.c (probe_partmap): Don't transform partition name
35972 to get module name.
35974 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35976 Fix OpenBSD and NetBSD support.
35978 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35979 memory address conflict.
35980 (OPENBSD_MMAP_ACPI): New definition.
35981 (OPENBSD_MMAP_NVS): Likewise.
35982 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35983 and OPENBSD_MMAP_NVS.
35984 Add memory map terminator
35985 Explicit cast when calling grub_unix_real_boot.
35986 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35988 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35990 Let user specify NetBSD root device.
35992 * loader/i386/bsd.c (netbsd_root): New variable.
35993 (netbsd_opts): New option 'root'.
35994 (NETBSD_ROOT_ARG): New macro.
35995 (grub_netbsd_boot): Use 'netbsd_root'.
35996 (grub_bsd_unload): Free 'netbsd_root'.
35997 (grub_cmd_netbsd): Fill 'netbsd_root'.
35999 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36001 Support for 64-bit NetBSD.
36003 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36004 point when booting non-FreeBSD.
36006 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36008 Support --no-smp and --no-acpi for NetBSD.
36010 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36011 (NETBSD_AB_NOACPI): Likewise.
36012 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36013 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36015 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36017 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36019 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36020 errors. Call grub_error when needed.
36022 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36024 * commands/search.c (search_fs): Try searching without autoload first.
36025 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36026 filesystem module explicitly for faster booting.
36028 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36030 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36032 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36034 * util/grub.d/30_os-prober.in: Disable os-prober if
36035 `GRUB_DISABLE_OS_PROBER' was set to true.
36037 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36039 * partmap/pc.c: Rename to ...
36040 * partmap/msdos.c: ... this. Update all users.
36041 (grub_pc_partition_map): Rename to ...
36042 (grub_msdos_partition_map): ... this. Update all users.
36044 * parttool/pcpart.c: Rename to ...
36045 * parttool/msdospart.c: ... this. Update all users.
36047 * include/grub/pc_partition.h: Rename to ...
36048 * include/grub/msdos_partition.h: ... this. Update all users.
36049 (grub_pc_partition_bsd_entry): Rename to ...
36050 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36051 (grub_pc_partition_disk_label): Rename to ...
36052 (grub_msdos_partition_disk_label): ... this. Update all users.
36053 (grub_pc_partition_entry): Rename to ...
36054 (grub_msdos_partition_entry): ... this. Update all users.
36055 (grub_pc_partition_mbr): Rename to ...
36056 (grub_msdos_partition_mbr): ... this. Update all users.
36057 (grub_pc_partition): Rename to ...
36058 (grub_msdos_partition): ... this. Update all users.
36059 (grub_pc_partition_is_empty): Rename to ...
36060 (grub_msdos_partition_is_empty): ... this. Update all users.
36061 (grub_pc_partition_is_extended): Rename to ...
36062 (grub_msdos_partition_is_extended): ... this. Update all users.
36063 (grub_pc_partition_is_bsd): Rename to ...
36064 (grub_msdos_partition_is_bsd): ... this. Update all users.
36066 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36067 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36068 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36069 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36070 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36071 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36072 (gpt_mod_LDFLAGS): Rename to ...
36073 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36074 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36075 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36076 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36077 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36078 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36079 (part_gpt_mod_LDFLAGS): ... this.
36080 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36081 `pcpart.mod' to `msdospart.mod'.
36082 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36084 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36085 (msdospart_mod_LDFLAGS): ... this.
36087 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36089 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36090 (openbsd_opts): Likewise.
36091 (netbsd_opts): Likewise.
36092 (freebsd_flags): Added 0 terminator.
36093 (openbsd_flags): Likewise.
36094 (netbsd_flags): Likewise.
36095 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36096 (grub_cmd_freebsd): Transformed into extended command.
36097 (grub_cmd_openbsd): Likewise.
36098 (grub_cmd_netbsd): Likewise.
36099 (cmd_freebsd): Changed type to grub_extcmd_t.
36100 (cmd_openbsd): Likewise.
36101 (cmd_netbsd): Likewise.
36102 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36103 grub_cmd_openbsd as extended commands.
36104 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36105 cmd_netbsd and cmd_openbsd
36107 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36109 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36111 2009-08-21 Pavel Roskin <proski@gnu.org>
36113 * Makefile.in (install-local): When checking if a file is in the
36114 build directory, use "test -e" to detect symlinks.
36116 * Makefile.in (install-local): Remove all files in
36117 $(DESTDIR)$(pkglibdir) before installing new files there.
36119 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36121 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36124 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36126 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36127 explicitly specified by the user.
36129 2009-08-18 Pavel Roskin <proski@gnu.org>
36131 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36132 grub_uint8_t pointer for data.
36133 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36135 * video/fb/fbutil.c: Remove unnecessary casts.
36137 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36141 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36142 (grub_vbe_set_video_mode): Save active mode info
36143 only after setting the mode.
36144 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36147 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36149 Rename variables for clarity.
36151 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36152 (active_vbe_mode_info): ... this. All users updated.
36153 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36155 (initial_mode): Rename to ...
36156 (initial_vbe_mode): ... this. All users updated.
36157 (mode_in_use): Rename to ..
36158 (vbe_mode_in_use): ... this. All users updated.
36159 (mode_list): Rename to ..
36160 (vbe_mode_list): ... this. All users updated.
36161 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36162 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36163 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36164 'mode_list_size' to 'vbe_mode_list_size'.
36165 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36166 'best_mode_info' to 'best_vbe_mode_info' and
36167 'best_mode' to 'best_vbe_mode'
36169 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36171 Remove duplicate grub_video_fb_get_video_ptr.
36173 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36174 (grub_video_fb_get_video_ptr): ... this.
36175 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36176 * video/fb/fbutil.c: Add comment about addressing.
36177 (get_data_ptr): Rename to ...
36178 (grub_video_fb_get_video_ptr): ... this. All users updated.
36179 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36181 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36183 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36184 grub_dprintf() that was just added.
36186 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36188 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36189 (DEFAULT_VIDEO_MODE): Remove macros.
36190 (grub_linux_boot): Remove assumption that Linux has FB support,
36191 and use "text" as default video mode.
36193 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36195 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36197 * fs/fat.c (grub_fat_read_data): Likewise.
36199 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36201 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36203 (grub_module): Likewise.
36205 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36207 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36208 mbi->cmdline but free playground.
36210 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36212 Handle group offset on UFS1.
36214 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36215 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36217 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36219 Split ufs.mod into ufs1.mod and ufs2.mod.
36221 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36222 (grub_fstest_SOURCES): Likewise.
36223 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36224 (ufs_mod_SOURCES): Remove.
36225 (ufs_mod_CFLAGS): Likewise.
36226 (ufs_mod_LDFLAGS): Likewise.
36227 (ufs1_mod_SOURCES): New variable.
36228 (ufs1_mod_CFLAGS): Likewise.
36229 (ufs1_mod_LDFLAGS): Likewise.
36230 (ufs2_mod_SOURCES): New variable.
36231 (ufs2_mod_CFLAGS): Likewise.
36232 (ufs2_mod_LDFLAGS): Likewise.
36233 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36234 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36236 (grub_emu_SOURCES): Likewise.
36237 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36238 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36239 (grub_setup_SOURCES): Likewise.
36240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36241 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36242 (grub_setup_SOURCES): Likewise.
36243 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36245 * fs/ufs2.c: New file.
36246 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36248 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36252 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36253 subsystem at the end.
36254 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36255 (video_fb_mod_SOURCES): New variable.
36256 (video_fb_mod_CFLAGS): Likewise.
36257 (video_fb_mod_LDFLAGS): Likewise.
36258 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36259 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36260 * video/i386/pc/vbeblit.c: Moved from here ...
36261 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36262 * video/i386/pc/vbefill.c: Moved from here ...
36263 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36264 * video/i386/pc/vbeutil.c: Moved from here ...
36265 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36266 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36267 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36268 * include/grub/i386/pc/vbefill.h: Moved from here ...
36269 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36270 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36271 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36272 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36273 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36274 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36275 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36276 (grub_video_adapter): Added 'get_info_and_fini'.
36277 (grub_video_get_info_and_fini): New prototype.
36278 (grub_video_set_mode): make modestring const char *.
36279 * loader/i386/linux.c (grub_linux_setup_video): Use
36280 grub_video_get_info_and_fini.
36281 (grub_linux_boot): Move modesetting just before booting.
36282 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36283 grub_video_get_info_and_fini.
36284 * video/i386/pc/vbe.c: Moved framebuffer part ...
36285 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36286 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36287 grub_video_fbstd_colors and grub_video_fb_set_palette.
36288 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36289 grub_video_fb_init.
36290 (grub_video_vbe_fini): Use grub_video_fb_fini.
36291 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36292 render_target and use grub_video_fb_set_active_render_target and
36293 grub_video_fb_set_palette.
36294 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36295 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36296 (grub_video_vbe_adapter): Use framebuffer.
36297 * video/video.c (grub_video_get_info_and_fini): New function.
36298 (grub_video_set_mode): Make modestring const char *.
36299 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36300 values are already initialised.
36302 2009-08-14 Pavel Roskin <proski@gnu.org>
36304 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36306 * boot/i386/pc/diskboot.S: Likewise.
36307 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36308 sectors allow compilation on MacOSX.
36309 * conf/i386-pc.rmk: Enable unconditional compilation of
36312 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36314 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36315 * util/grub.d/00_header.in: Enter interruptible sleep if
36316 GRUB_HIDDEN_TIMEOUT is set.
36318 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36320 * include/grub/symbol.h: Add the LOCAL macro.
36321 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36322 starting with "L_".
36324 2009-08-13 Pavel Roskin <proski@gnu.org>
36326 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36327 any modern compilers we support.
36329 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36330 Use local labels starting with "L_" so that Apple assembler
36331 knows they are local.
36333 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36335 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36336 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36337 (bsd_kernel_types): ... this enum.
36339 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36340 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36341 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36343 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36344 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36345 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36348 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36350 * util/grub-dumpdevtree: Moved from here ...
36351 * util/i386/efi/grub-dumpdevtree: ... to here.
36352 (hexify): New function. Converts a string to its hex version.
36353 Generate hex versions of "efi" and "device-properties" by calling
36354 hexify() on the ASCII strings rather than by hardcoding numbers.
36356 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36358 * fs/jfs.c: Update copyright year.
36360 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36362 * util/grub.d/00_header.in: Fix a comment.
36363 * util/grub.d/10_linux.in: Likewise.
36364 * util/grub.d/10_windows.in: Likewise.
36365 * util/grub.d/10_hurd.in: Likewise.
36367 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36369 * util/grub-mkconfig.in: Allow the user to specify the used font
36372 2009-08-08 Pavel Roskin <proski@gnu.org>
36374 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36375 available, xfs.mod needs it now.
36377 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36378 the "g" modifier in sed when the intention is to strip something
36379 once. This fixes comparison of kernels with multiple dashes.
36381 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36382 on it. Add missing space before closing bracket. Fix
36383 misleading formatting.
36385 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36387 * docs/grub.texi: Major overhaul. Remove all sections that are
36388 specific to GRUB Legacy, or mostly composed of Legacy-specific
36391 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36393 * docs/version.texi: New file. Provides version information for
36396 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36398 * docs/grub.texi: Update CVS information to SVN.
36399 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36401 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36403 * util/grub-mkconfig.in: Remove a wrong `fi'.
36405 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36407 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36408 (grub_jfs_uuid): New function.
36409 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36411 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36413 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36415 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36416 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36418 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36420 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36421 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36424 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36425 not just "vmlinu[zx]".
36426 Moved from here ...
36427 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36430 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36431 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36434 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36436 * util/grub.d/10_freebsd.in: Use an absolute device path for
36437 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36439 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36441 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36442 handling of multiple abstraction modules.
36444 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36446 Fix a bug resulting in black screen when loading Linux using a
36449 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36452 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36453 (grub_vbe_bios_getset_dac_palette_width): New function.
36454 (grub_vbe_bios_get_dac_palette_width)
36455 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36456 grub_vbe_bios_getset_dac_palette_width()).
36458 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36459 check for return status.
36460 (grub_vbe_get_video_mode_info): When getting information for a packed
36461 mode (<= 8 bpp), obtain DAC palette width using
36462 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36463 {red,green,blue}_mark_size.
36465 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36467 * commands/search.c (options): Fix help output to match actual code.
36469 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36471 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36474 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36476 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36477 on XFS or ReiserFS.
36479 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36481 Support Apple partition map with sector size different from 512 bytes.
36483 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36484 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36485 and 'apart.partmap_size'.
36487 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36488 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36492 * commands/i386/cpuid.c (options): New variable.
36493 (grub_cmd_cpuid): Return real error.
36494 (GRUB_MOD_INIT(cpuid)): Declare options.
36496 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36498 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36501 2009-07-31 Bean <bean123ch@gmail.com>
36503 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36505 (grub_fshelp_node): Move inode field to the end.
36506 (grub_xfs_data): Remove inode field.
36507 (grub_xfs_inode_block): Calculate inode size using sblock.
36508 (grub_xfs_inode_offset): Likewise.
36509 (grub_xfs_read_inode): Calculate inode size using sblock.
36510 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36511 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36512 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36513 to match inode size.
36514 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36515 not accessible when data is null.
36516 (grub_xfs_open): Likewise.
36518 2009-07-31 Bean <bean123ch@gmail.com>
36520 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36521 Don't change pv->disk if it's already set.
36523 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36524 (grub_raid_register): ... here.
36525 (grub_raid_rescan): Removed.
36527 * include/grub/raid.h (grub_raid_rescan): Removed.
36529 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36530 (fstest): Replace grub_raid_rescan with module fini function followed
36533 * util/grub-probe.c: Add include file <grub/raid.h>.
36534 (probe_raid_level): New function.
36535 (probe): Detect abstraction by walking the disk device, support two
36536 level of abstraction (LVM on RAID) when detecting partition map.
36538 2009-07-31 Pavel Roskin <proski@gnu.org>
36540 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36541 to grub_zalloc(), it was erroneous.
36542 Reported by Bean <bean123ch@gmail.com>
36544 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36546 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36547 embedding zone, not only the first one.
36549 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36551 * term/gfxterm.c (clear_char): New function.
36552 (grub_virtual_screen_setup): Use clear_char.
36553 (scroll_up): Likewise.
36554 (grub_virtual_screen_cls): Likewise.
36556 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36558 * util/deviceiter.c (get_acceleraid_disk_name): New static
36560 (grub_util_iterate_devices): Handle Accelraid devices.
36561 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36563 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36565 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36566 separator for the suggested gfxpayload string (';' collides with the
36567 parser and needs escaping).
36569 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36571 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36572 Clear direction flag before jumping to OS.
36573 (grub_multiboot2_real_boot): Likewise.
36575 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36577 * util/i386/pc/grub-install: Fix parsing of --disk-module
36580 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36582 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36585 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36587 * util/grub-mkconfig.in (package_version): New variable.
36588 Use it do display the version.
36590 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36592 * kern/file.c (grub_file_open): Revert to previous check with
36595 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36597 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36598 from help line. It's out of sync with code.
36600 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36602 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36603 entries on failed boot.
36605 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36607 * kern/file.c (grub_file_open): Fix an error check.
36609 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36611 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36612 partition map couldn't be identified.
36614 2009-07-23 Pavel Roskin <proski@gnu.org>
36616 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36617 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36618 case of little endian words becomes just an optimization.
36619 Respect const modifier.
36620 (md5_final): Use code that doesn't depend on endianness.
36622 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36623 to avoid loss of upper bits if align is unsigned and shorter
36626 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36628 UUID support for UFS
36630 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36631 (grub_ufs_uuid): New function.
36632 (grub_ufs_fs): add .uuid
36634 2009-07-21 Pavel Roskin <proski@gnu.org>
36636 * kern/dl.c (grub_dl_check_header): Make static.
36638 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36640 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36641 add drivemap for Vista. It breaks Windows 7.
36643 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36645 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36648 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36652 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36653 (grub_fstest_SOURCES): Likewise.
36654 (pkglib_MODULES): Add befs.mod.
36655 (befs_mod_SOURCES): New variable.
36656 (befs_mod_CFLAGS): Likewise.
36657 (befs_mod_LDFLAGS): Likewise.
36658 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36659 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36660 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36661 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36662 (grub_setup_SOURCES): Likewise.
36663 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36664 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36665 (grub_setup_SOURCES): Likewise.
36666 * fs/befs.c: New file.
36667 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36668 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36669 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36670 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36671 (B_KEY_INDEX_ALIGN): New declaration.
36672 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36673 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36674 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36675 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36676 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36677 (grub_afs_mount) [MODE_BFS]: Likewise.
36678 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36679 (grub_afs_fs): Use GRUB_AFS_FSNAME
36680 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36681 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36682 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36683 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36685 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36687 * util/getroot.c (find_root_device): Add support for MacOSX.
36688 * util/hostdisk.c: Likewise.
36690 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36692 * font/font.c (find_glyph): Check whether a font is present to avoid
36693 segmentation fault.
36695 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36697 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36699 2009-07-20 Pavel Roskin <proski@gnu.org>
36701 * configure.ac: Trim excessively wordy excuses.
36703 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36705 Add symlink, mtime and label support to AtheFS.
36707 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36708 (grub_afs_iterate_dir): Handle symlinks.
36709 (grub_afs_open): Use grub_afs_read_symlink.
36710 (grub_afs_dir): Likewise.
36712 (grub_afs_label): New function.
36713 (grub_afs_fs): Add grub_afs_label.
36714 (grub_afs_read_symlink): New function.
36716 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36718 Fix AtheFS support.
36720 * fs/afs.c: Fix comments style.
36721 (grub_afs_blockrun): Declare as packed.
36722 (grub_afs_datastream): Likewise.
36723 (grub_afs_bnode): Likewise.
36724 (grub_afs_btree): Likewise.
36725 (grub_afs_sblock): Likewise.
36726 Declare `name' as char.
36727 (grub_afs_inode): Declare as packed.
36728 Change void *vnode to grub_uint32_t unused.
36729 (grub_afs_iterate_dir): Check that key_size is positive.
36730 (grub_afs_mount): Don't read superblock twice.
36731 (grub_afs_dir): Don't free node in case of error,
36732 grub_fshelp_find_file already handles this.
36733 (grub_afs_open): Likewise.
36735 2009-07-19 Pavel Roskin <proski@gnu.org>
36737 * Makefile.in: Remove LIBLZO and enable_lzo.
36738 * conf/i386-pc.rmk: Remove lzo support.
36739 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36740 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36742 * kern/i386/pc/lzo1x.S: Remove.
36743 * kern/i386/pc/startup.S: Remove lzo support.
36744 * util/i386/pc/grub-mkimage.c: Likewise.
36746 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36748 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36749 * fs/xfs.c (grub_xfs_dir): Likewise.
36750 * fs/afs.c (grub_afs_dir): Likewise.
36751 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36752 (grub_iso9660_open): Likewise.
36753 * fs/jfs.c (grub_jfs_open): Likewise.
36754 * fs/ext2.c (grub_ext2_dir): Likewise.
36755 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36756 * script/sh/lexer.c (grub_script_yylex): Likewise.
36758 2009-07-16 Pavel Roskin <proski@gnu.org>
36760 * configure.ac: Never add "-c" to CFLAGS.
36762 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36764 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36765 grub_cv_cc_efiemu should be used.
36767 * configure.ac: Typo fixes.
36769 * kern/mm.c (grub_zalloc): New function.
36770 (grub_debug_zalloc): Likewise.
36771 * include/grub/mm.h: Declare grub_zalloc() and
36772 grub_debug_zalloc().
36773 * util/misc.c (grub_zalloc): New function.
36774 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36775 instead of grub_malloc(), remove unneeded initializations.
36776 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36777 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36778 * commands/parttool.c (grub_cmd_parttool): Likewise.
36779 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36780 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36781 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36782 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36783 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36784 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36785 (grub_cmd_efiemu_pnvram): Likewise.
36786 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36787 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36788 (grub_iso9660_iterate_dir): Likewise.
36789 * fs/jfs.c (grub_jfs_opendir): Likewise.
36790 * fs/ntfs.c (list_file): Likewise.
36791 (grub_ntfs_mount): Likewise.
36792 * kern/disk.c (grub_disk_open): Likewise.
36793 * kern/dl.c (grub_dl_load_core): Likewise.
36794 * kern/elf.c (grub_elf_file): Likewise.
36795 * kern/env.c (grub_env_context_open): Likewise.
36796 (grub_env_set): Likewise.
36797 (grub_env_set_data_slot): Likewise.
36798 * kern/file.c (grub_file_open): Likewise.
36799 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36800 * loader/i386/multiboot.c (grub_module): Likewise.
36801 * loader/xnu.c (grub_xnu_create_key): Likewise.
36802 (grub_xnu_create_value): Likewise.
36803 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36804 (read_config_file): Likewise.
36805 * normal/menu_entry.c (make_screen): Likewise.
36806 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36807 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36808 * script/sh/script.c (grub_script_parse): Likewise.
36809 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36810 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36811 * video/readers/png.c (grub_png_output_byte): Likewise.
36812 (grub_video_reader_png): Likewise.
36814 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36816 Enable all targets that can be built by default
36818 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36819 grub-mkfont and grub-fstest if they can be built
36821 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36823 Fix hang and segmentation fault in grub-emu-usb
36825 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36826 * util/usb.c (grub_libusb_devices): likewise
36827 (grub_libusb_init): rename to ...
36828 (GRUB_MOD_INIT (libusb)):...this
36829 (grub_libusb_fini): rename to ..
36830 (GRUB_MOD_FINI (libusb)):...this
36831 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36832 * include/grub/disk.h (grub_raid_init): removed, it's useless
36833 (grub_raid_fini): likewise
36834 (grub_lvm_init): likewise
36835 (grub_lvm_fini): likewise
36836 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36839 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36843 * Makefile.in (LIBUSB): new macro
36844 * genmk.rb (Utility/print_tail): new method
36845 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36846 (top level): call util.print_tail at the end.
36848 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36850 Make FreeBSD accept zpool.cache
36852 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36853 type is /boot/zfs/zpool.cache
36855 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36859 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36860 correct wrong typedef
36861 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36863 2009-07-15 Pavel Roskin <proski@gnu.org>
36865 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36866 * kern/disk.c (struct grub_disk_cache): Likewise.
36868 * commands/probe.c (options): Typo fix.
36870 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36871 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36873 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36875 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36876 the end of "Error" to make the message more readable.
36878 * boot/i386/pc/boot.S (kernel_segment): Remove.
36879 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36882 * boot/i386/pc/boot.S (boot_version): Remove.
36883 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36886 * include/grub/i386/pc/boot.h: Sort all offsets.
36887 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36888 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36889 * boot/i386/pc/boot.S: Assert location of every offset listed in
36890 include/grub/i386/pc/boot.h.
36892 2009-07-13 Pavel Roskin <proski@gnu.org>
36894 * include/grub/i386/coreboot/machine.h: Rename
36895 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36896 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36897 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36899 * kern/dl.c: Force native word size to suppress warnings when
36900 compiling grub-emu.
36902 * kern/device.c (grub_device_iterate): Change struct part_ent to
36903 hold the name, not a pointer to it. Use one grub_malloc() per
36904 partition, not two. Free partition_name if grub_malloc() fails.
36905 Set ents to NULL only before grub_partition_iterate() is called.
36907 2009-07-11 Bean <bean123ch@gmail.com>
36909 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36912 2009-07-10 Bean <bean123ch@gmail.com>
36913 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36915 * kern/ieee1275/openfw.c (grub_children_iterate)
36916 (grub_devalias_iterate): Fix size evaluation for property or path
36917 strings, which was broken since r2132.
36919 2009-07-07 Pavel Roskin <proski@gnu.org>
36921 * commands/search.c (search_file): Merge into ...
36922 (search_fs): ... this. Accept search type as argument.
36923 (grub_cmd_search): Pass search type to search_fs().
36925 * include/grub/util/console.h: New file.
36926 * util/console.c: Use it instead of grub/machine/console.h.
36927 * util/grub-emu.c: Likewise.
36929 * lib/arg.c (find_long_option): Remove.
36930 (find_long): Add `len' argument, make `s' const char *.
36931 (grub_arg_parse): Parse long options in place, not in a
36934 2009-07-06 Pavel Roskin <proski@gnu.org>
36936 * commands/search.c (search_fs): Fix potential NULL pointer
36939 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36942 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36944 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36947 2009-07-05 Pavel Roskin <proski@gnu.org>
36949 * include/grub/i386/linux.h (struct linux_kernel_params):
36950 Restore padding3, it's still needed.
36952 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36954 * util/osdetect.lua: Likewise.
36956 2009-07-05 Bean <bean123ch@gmail.com>
36958 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36960 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36961 (grub_lua_getenv): Likewise.
36962 (grub_lua_setenv): Likewise.
36963 (save_errno): New function.
36964 (push_result): Likewise.
36965 (grub_lua_enum_device): Likewise.
36966 (grub_lua_enum_file): Likewise.
36967 (grub_lua_file_open): Likewise.
36968 (grub_lua_file_close): Likewise.
36969 (grub_lua_file_seek): Likewise.
36970 (grub_lua_file_read): Likewise.
36971 (grub_lua_file_getline): Likewise.
36972 (grub_lua_file_getsize): Likewise.
36973 (grub_lua_file_getpos): Likewise.
36974 (grub_lua_file_eof): Likewise.
36975 (grub_lua_file_exist): Likewise.
36976 (grub_lua_add_menu): Likewise.
36978 * script/lua/grub_lua.h (isupper): New inline function.
36979 (islower): Likewise.
36980 (ispunct): Likewise.
36981 (isxdigit): Likewise.
36982 (strcspn): Change to normal function.
36983 (strpbkr): New function declaration.
36984 (memchr): Likewise.
36986 * script/lua/grub_main.c (scan_str): New function.
36987 (strcspn): Likewise.
36988 (strpbrk): Likewise.
36989 (memchr): Likewise.
36991 * script/lua/linit.c (lualibs): Enable the string library.
36993 * util/osdetect.lua: New file.
36995 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36997 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36998 `capabilities' member.
37000 2009-07-02 Pavel Roskin <proski@gnu.org>
37002 * genparttoollist.sh: Add missing newline at the end.
37004 2009-07-01 Pavel Roskin <proski@gnu.org>
37006 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37008 * util/hostdisk.c (open_device): Remove `const' from
37009 `sysctl_size', as sysctlbyname() can change it (in this case it
37010 doesn't actually happen).
37012 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37013 using signed long int constants.
37015 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37016 constant to avoid a warning on FreeBSD.
37018 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37021 * Makefile.in: Install include/grub/machine symlink.
37023 * Makefile.in: When installing symlinks, use "cp -fR", which
37024 works on FreeBSD and MacOSX.
37025 From Yves Blusseau <cl7m42e02@sneakemail.com>
37027 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37028 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37030 * util/misc.c: Move grub_reboot() and grub_halt() ...
37031 * util/grub-emu.c: ... here. Make main_env static.
37032 * include/grub/util/misc.h: Remove main_env.
37034 * kern/mm.c: Use correct format to print size_t.
37036 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37037 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37038 * kern/powerpc/dl.c: Likewise.
37039 * kern/sparc64/dl.c: Likewise.
37040 * kern/x86_64/dl.c: Likewise.
37042 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37044 Fix grub-emu build on sparc64-ieee1275.
37046 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37049 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37051 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37052 (grub_reboot, grub_halt): New functions.
37054 * util/i386/pc/misc.c: Delete. Update all users.
37055 * util/sparc64/ieee1275/misc.c: Likewise.
37056 * util/powerpc/ieee1275/misc.c: Likewise.
37058 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37060 * conf/i386.rmk (setjmp_mod_SOURCES)
37061 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37062 * conf/common.rmk (setjmp_mod_SOURCES)
37063 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37064 to use $(target_cpu).
37065 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37066 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37067 * conf/powerpc-ieee1275.rmk: Likewise.
37068 * conf/sparc64-ieee1275.rmk: Likewise.
37070 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37071 $(target_cpu) for kern/$(target_cpu)/dl.c.
37072 * conf/i386-efi.rmk: Likewise.
37073 * conf/i386-ieee1275.rmk: Likewise.
37074 * conf/x86_64-efi.rmk: Likewise.
37075 * conf/i386-coreboot.rmk: Likewise.
37076 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37077 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37078 kern/$(target_cpu)/cache.S.
37079 * conf/sparc64-ieee1275.rmk: Likewise.
37081 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37083 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37084 type to `grub_uint8_t', and adjust `padding9' accordingly.
37086 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37088 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37090 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37091 assembly in final jump, using register constraints.
37093 (grub_linux_boot): For text mode, initialize `have_vga' using
37094 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37096 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37097 right before the final jump.
37099 Set `video_mode' to 0x3.
37101 Document initialization of `video_page', `video_mode' and
37104 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37106 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37107 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37108 and set GRUB_LINUX_FLAG_QUIET appropriately.
37110 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37112 Fix build on Debian / sparc.
37114 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37116 2009-06-28 Pavel Roskin <proski@gnu.org>
37118 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37121 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37123 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37125 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37128 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37132 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37133 file can't be opened. grub_file_open() is already supposed to set
37134 grub_errno / grub_errmsg appropriately.
37135 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37137 2009-06-27 Pavel Roskin <proski@gnu.org>
37138 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37140 * include/grub/dl.h: Include grub/elf.h.
37141 (struct grub_dl): Add symtab field.
37142 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37143 GRUB_MODULES_MACHINE_READONLY.
37144 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37145 of the header for read-only modules.
37146 (grub_dl_unload): Free mod->symtab for read-only modules.
37147 * kern/i386/dl.c: Use mod->symtab.
37148 * kern/powerpc/dl.c: Likewise.
37149 * kern/sparc64/dl.c: Likewise.
37150 * kern/x86_64/dl.c: Likewise.
37152 * conf/i386-qemu.rmk: New file.
37153 * kern/i386/qemu/startup.S: Likewise.
37154 * kern/i386/qemu/mmap.c: Likewise.
37155 * boot/i386/qemu/boot.S: Likewise.
37156 * include/grub/i386/qemu/time.h: Likewise.
37157 * include/grub/i386/qemu/serial.h: Likewise.
37158 * include/grub/i386/qemu/kernel.h: Likewise.
37159 * include/grub/i386/qemu/console.h: Likewise.
37160 * include/grub/i386/qemu/boot.h: Likewise.
37161 * include/grub/i386/qemu/init.h: Likewise.
37162 * include/grub/i386/qemu/machine.h: Likewise.
37163 * include/grub/i386/qemu/loader.h: Likewise.
37164 * include/grub/i386/qemu/memory.h: Likewise.
37166 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37167 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37168 [qemu] (pkglib_IMAGES): Add `boot.img'.
37169 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37170 [qemu] (boot_img_FORMAT): New variables.
37171 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37172 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37173 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37174 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37175 [qemu] (kernel_img_FORMAT): New variables.
37177 * configure.ac: Recognise `i386-qemu'.
37179 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37180 (for no compression).
37181 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37182 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37183 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37184 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37187 2009-06-27 Pavel Roskin <proski@gnu.org>
37189 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37191 * efiemu/prepare32.c: Likewise.
37192 * efiemu/prepare64.c: Likewise.
37194 2009-06-26 Pavel Roskin <proski@gnu.org>
37196 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37197 * include/grub/elf.h: Define symbols without "32" or "64" based
37198 on GRUB_TARGET_WORDSIZE.
37199 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37200 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37202 * efiemu/loadcore64.c: Likewise.
37203 * loader/i386/bsd32.c: Likewise.
37204 * loader/i386/bsd64.c: Likewise.
37205 * kern/dl.c: Remove own ELF definitions.
37206 * util/i386/efi/grub-mkimage.c: Likewise.
37208 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37210 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37211 segment 0x0 unconditionally, because the reference generated by
37212 GAS is an absolute address.
37214 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37216 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37217 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37219 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37221 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37222 indexes. Check for -f explicitly.
37223 (search_file): Improve error message.
37224 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37226 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37228 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37229 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37231 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37233 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37234 * conf/i386-ieee1275.rmk: Likewise.
37235 * conf/i386-coreboot.rmk: Likewise.
37237 * kern/i386/pc/startup.S (grub_stop): Remove function.
37238 * kern/i386/ieee1275/startup.S: Likewise.
37239 * kern/i386/coreboot/startup.S: Likewise.
37240 * kern/i386/misc.S (grub_stop): New function.
37242 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37244 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37245 * kern/i386/realmode.S (real_to_prot): ... to here.
37247 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37249 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37251 (kernel_elf_SOURCES): Rename to ...
37252 (kernel_img_SOURCES): ... this.
37253 (kernel_elf_HEADERS): Rename to ...
37254 (kernel_img_HEADERS): ... this. Update all users.
37255 (kernel_elf_ASFLAGS): Rename to ...
37256 (kernel_img_ASFLAGS): ... this.
37257 (kernel_elf_CFLAGS): Rename to ...
37258 (kernel_img_CFLAGS): ... this.
37259 (kernel_elf_LDFLAGS): Rename to ...
37260 (kernel_img_LDFLAGS): ... this.
37261 * conf/i386-coreboot.rmk: Likewise.
37262 * conf/powerpc-ieee1275.rmk: Likewise.
37264 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37267 2009-06-21 Pavel Roskin <proski@gnu.org>
37269 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37270 to match nested functions.
37271 * loader/sparc64/ieee1275/linux.c: Likewise.
37273 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37275 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37277 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37278 all i386 platforms.
37280 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37282 Fix asm file handling on ELF, and remove workarounds.
37284 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37285 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37286 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37287 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37289 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37291 Load BSD ELF modules
37293 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37294 and loader/i386/bsd64.c
37295 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37296 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37297 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37298 (grub_freebsd_load_elfmodule32): New declaration
37299 (grub_freebsd_load_elfmoduleobj64): Likewise
37300 (grub_freebsd_load_elf_meta32): Likewise
37301 (grub_freebsd_load_elf_meta64): Likewise
37302 (grub_freebsd_add_meta): Likewise
37303 (grub_freebsd_add_meta_module): Likewise
37304 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37305 (grub_freebsd_add_meta_module): Likewise and move module-specific
37306 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37307 (grub_cmd_freebsd): Add elf-kernel specific parts
37308 based on grub_freebsd_add_meta_module
37309 (grub_cmd_freebsd_module): Add type parsing moved from
37310 grub_freebsd_add_meta_module
37311 (grub_cmd_freebsd_module_elf): New function
37312 (cmd_freebsd_module_elf): New variable
37313 (GRUB_MOD_INIT): Register freebsd_module_elf
37314 * loader/i386/bsd32.c: New file
37315 * loader/i386/bsd64.c: Likewise
37316 * loader/i386/bsdXX.c: Likewise
37317 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37318 (grub_elf64_load): Likewise
37319 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37321 (grub_elf64_load_hook_t): Likewise
37323 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37325 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37327 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37328 don't write a menu entry for recovery mode.
37330 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37332 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37333 after it's no longer needed.
37335 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37337 * include/grub/i386/loader.h (grub_linux_prot_size)
37338 (grub_linux_tmp_addr, grub_linux_real_addr)
37339 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37340 GRUB_MACHINE_PCBIOS.
37341 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37342 common grub_util_info() call to ...
37343 (generate_image): ... here.
37344 Fix use of uninitialized memory, comparison of signed with
37345 unsigned integers and memory leak.
37346 Remove bogus module address message.
37348 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37350 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37352 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37354 2009-06-19 Pavel Roskin <proski@gnu.org>
37356 * configure.ac: Remove stray AC_MSG_CHECKING.
37358 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37360 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37362 2009-06-18 Pavel Roskin <proski@gnu.org>
37364 * conf/common.rmk: Add fs_file.mod.
37365 * disk/fs_file.c: New file.
37366 * include/grub/disk.h (enum grub_disk_dev_id): Add
37367 GRUB_DISK_DEVICE_FILE_ID.
37369 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37371 Fix build with Apple's toolchain. Part 2
37373 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37376 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37378 Fix build with Apple's toolchain. Part 1
37380 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37382 * configure.ac: remove a leftover AC_MSG_RESULT
37383 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37386 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37390 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37391 (decomp_block): initialize ch
37392 use grub_memcpy instead of memcpy
37394 2009-06-17 Pavel Roskin <proski@gnu.org>
37396 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37397 version, use declarations needed to use vga_text as the startup
37400 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37401 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37403 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37404 and grub_at_keyboard_fini(), it's done on module load and
37407 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37409 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37410 file can't be found.
37411 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37413 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37415 Fix newline handling
37417 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37418 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37419 (grub_script_yylex): don't segfault on unterminated script
37420 newline terminates command and variable
37422 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37424 avoid double grub_adjust_range call. Bug reported by David Simner
37426 * kern/disk.c (grub_disk_write): change to raw disk access before
37429 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37431 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37432 spaces, for the benefit of help2man.
37433 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37435 2009-06-16 Pavel Roskin <proski@gnu.org>
37437 * kern/i386/halt.c: Include grub/machine/init.h.
37438 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37440 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37442 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37443 drivemap menuentry.
37445 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37447 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37450 2009-06-16 Pavel Roskin <proski@gnu.org>
37452 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37453 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37454 save %dx, we only need %dl and we never change it.
37455 * boot/i386/pc/cdboot.S: Don't set the root drive.
37456 * boot/i386/pc/pxeboot.S: Likewise.
37457 * include/grub/i386/pc/boot.h: Remove
37458 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37459 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37460 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37461 * kern/i386/pc/init.c (make_install_device): Remove references
37462 to grub_root_drive.
37463 * kern/i386/pc/startup.S: Likewise.
37464 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37466 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37470 * commands/xnu_uuid.c: new file
37471 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37472 (xnu_uuid_mod_SOURCES): new variable
37473 (xnu_uuid_mod_CFLAGS): likewise
37474 (xnu_uuid_mod_LDFLAGS): likewise
37475 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37476 * conf/i386-ieee1275.rmk: likewise
37477 * conf/i386-pc.rmk: likewise
37478 * conf/powerpc-ieee1275.rmk: likewise
37479 * conf/sparc64-ieee1275.rmk: likewise
37480 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37482 2009-06-16 Pavel Roskin <proski@gnu.org>
37484 * configure.ac: Avoid '==' in test command, it's not portable.
37486 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37490 * commands/probe.c: new file
37491 * conf/common.rmk (pkglib_MODULES): add probe.mod
37492 (probe_mod_SOURCES): new variable
37493 (probe_mod_CFLAGS): likewise
37494 (probe_mod_LDFLAGS): likewise
37495 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37496 * conf/i386-ieee1275.rmk: likewise
37497 * conf/i386-pc.rmk: likewise
37498 * conf/powerpc-ieee1275.rmk: likewise
37499 * conf/sparc64-ieee1275.rmk: likewise
37501 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37503 Fix handling of string like \"hello\" and "a
37506 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37507 (grub_script_yylex): fix parsing of quoting, escaping and newline
37509 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37511 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37514 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37516 * util/grub-mkconfig.in: Fix parsing of --output option.
37518 2009-06-12 Pavel Roskin <proski@gnu.org>
37520 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37521 genmk.rb don't need to be generated or installed.
37523 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37525 * commands/i386/pc/drivemap_int13h.S: add more comments
37527 2009-06-11 Pavel Roskin <proski@gnu.org>
37529 * Makefile.in (uninstall): Uninstall manuals.
37531 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37532 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37533 and update-grub_lib in two places.
37534 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37536 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37537 a compiler warning.
37539 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37540 `entry_lo' to fix variable shadowing.
37542 2009-06-11 Christian Franke <franke@computer.org>
37544 * kern/misc.c (__enable_execute_stack): Add missing return type
37545 to prevent gcc warning.
37547 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37549 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37551 2009-06-11 Pavel Roskin <proski@gnu.org>
37553 * Makefile.in: Don't rely on any scripts being executable.
37554 Always use $(SHELL) to run shell scripts.
37556 * configure.ac: Always define ___main if using -nostdlib. This
37557 fixes tests on Cygwin.
37559 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37563 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37564 is in bytes and not in blocks
37566 2009-06-11 Pavel Roskin <proski@gnu.org>
37568 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37571 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37573 * util/grub.d/30_os-prober.in: Fix a comment. Source
37574 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37575 to set the root device. Place drivemap command in the generated
37578 2009-06-11 Pavel Roskin <proski@gnu.org>
37580 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37581 have long been resolved.
37583 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37585 * util/grub.d/10_linux.in: Capitalise "Linux".
37587 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37589 2009-06-11 Pavel Roskin <proski@gnu.org>
37591 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37592 fix a gcc warning and ensure that the function won't ever exit.
37594 * kern/i386/ieee1275/init.c: Add missing prototype for
37595 grub_stop_floppy().
37597 * loader/ieee1275/multiboot2.c [__i386__]: Include
37598 grub/cpu/multiboot.h.
37600 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37601 casts to short - they are not portable and cause warnings. Fix
37602 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37604 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37608 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37610 (grub_get_root_biosnumber_saved): new variable
37611 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37612 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37613 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37614 %dx after the call if necessary
37615 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37616 (boot_mod_SOURCES): remove
37617 (boot_mod_CFLAGS): remove
37618 (boot_mod_LDFLAGS): remove
37619 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37620 (boot_mod_SOURCES): new variable
37621 (boot_mod_CFLAGS): likewise
37622 (boot_mod_LDFLAGS): likewise
37623 * conf/i386-efi.rmk: likewise
37624 * conf/i386-ieee1275.rmk: likewise
37625 * conf/i386-pc.rmk: likewise
37626 * conf/powerpc-ieee1275.rmk: likewise
37627 * conf/sparc64-ieee1275.rmk: likewise
37628 * conf/x86_64-efi.rmk: likewise
37629 * include/grub/i386/pc/biosnum.h: new file
37630 * lib/i386/pc/biosnum.c: likewise
37631 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37632 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37633 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37635 2009-06-10 Pavel Roskin <proski@gnu.org>
37637 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37638 Use separate variables. Read only the file size at the end, but
37639 not the checksum that we don't use.
37641 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37642 Adjust all callers.
37644 * kern/ieee1275/openfw.c: Remove libc includes.
37645 * kern/ieee1275/cmain.c: Likewise.
37646 * include/grub/ieee1275/ieee1275.h: Likewise.
37648 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37651 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37653 * Makefile.in: Remove all trailing whitespace.
37654 * conf/i386-pc.rmk: Likewise.
37655 * conf/powerpc-ieee1275.rmk: Likewise.
37656 * conf/sparc64-ieee1275.rmk: Likewise.
37657 * docs/grub.texi: Likewise.
37658 * docs/texinfo.tex: Likewise.
37659 * disk/fs_uuid.c: Likewise.
37660 * disk/lvm.c: Likewise.
37661 * disk/scsi.c: Likewise.
37662 * disk/ata.c: Likewise.
37663 * disk/ieee1275/ofdisk.c: Likewise.
37664 * disk/i386/pc/biosdisk.c: Likewise.
37665 * disk/host.c: Likewise.
37666 * disk/raid.c: Likewise.
37667 * disk/efi/efidisk.c: Likewise.
37668 * disk/usbms.c: Likewise.
37669 * disk/memdisk.c: Likewise.
37670 * disk/loopback.c: Likewise.
37671 * kern/powerpc/dl.c: Likewise.
37672 * kern/device.c: Likewise.
37673 * kern/dl.c: Likewise.
37674 * kern/sparc64/dl.c: Likewise.
37675 * kern/ieee1275/ieee1275.c: Likewise.
37676 * kern/term.c: Likewise.
37677 * kern/fs.c: Likewise.
37678 * kern/i386/dl.c: Likewise.
37679 * kern/i386/pc/startup.S: Likewise.
37680 * kern/i386/pc/init.c: Likewise.
37681 * kern/i386/pc/mmap.c: Likewise.
37682 * kern/i386/pc/lzo1x.S: Likewise.
37683 * kern/i386/ieee1275/init.c: Likewise.
37684 * kern/i386/realmode.S: Likewise.
37685 * kern/i386/tsc.c: Likewise.
37686 * kern/partition.c: Likewise.
37687 * kern/corecmd.c: Likewise.
37688 * kern/file.c: Likewise.
37689 * kern/efi/efi.c: Likewise.
37690 * kern/efi/init.c: Likewise.
37691 * kern/efi/mm.c: Likewise.
37692 * kern/main.c: Likewise.
37693 * kern/err.c: Likewise.
37694 * kern/env.c: Likewise.
37695 * kern/disk.c: Likewise.
37696 * kern/generic/millisleep.c: Likewise.
37697 * kern/generic/rtc_get_time_ms.c: Likewise.
37698 * kern/misc.c: Likewise.
37699 * kern/parser.c: Likewise.
37700 * genmk.rb: Likewise.
37701 * configure.ac: Likewise.
37702 * boot/i386/pc/diskboot.S: Likewise.
37703 * boot/i386/pc/pxeboot.S: Likewise.
37704 * boot/i386/pc/boot.S: Likewise.
37705 * boot/i386/pc/lnxboot.S: Likewise.
37706 * boot/i386/pc/cdboot.S: Likewise.
37707 * parttool/pcpart.c: Likewise.
37708 * video/readers/tga.c: Likewise.
37709 * video/video.c: Likewise.
37710 * video/bitmap.c: Likewise.
37711 * lib/envblk.c: Likewise.
37712 * lib/i386/setjmp.S: Likewise.
37713 * fs/xfs.c: Likewise.
37714 * fs/afs.c: Likewise.
37715 * fs/fat.c: Likewise.
37716 * fs/ntfs.c: Likewise.
37717 * fs/udf.c: Likewise.
37718 * fs/affs.c: Likewise.
37719 * fs/iso9660.c: Likewise.
37720 * fs/hfs.c: Likewise.
37721 * fs/fshelp.c: Likewise.
37722 * fs/ext2.c: Likewise.
37723 * fs/jfs.c: Likewise.
37724 * fs/reiserfs.c: Likewise.
37725 * fs/hfsplus.c: Likewise.
37726 * fs/minix.c: Likewise.
37727 * fs/cpio.c: Likewise.
37728 * fs/sfs.c: Likewise.
37729 * fs/ufs.c: Likewise.
37730 * efiemu/prepare.c: Likewise.
37731 * efiemu/loadcore_common.c: Likewise.
37732 * efiemu/runtime/efiemu.sh: Likewise.
37733 * efiemu/runtime/efiemu.S: Likewise.
37734 * efiemu/runtime/efiemu.c: Likewise.
37735 * efiemu/pnvram.c: Likewise.
37736 * efiemu/main.c: Likewise.
37737 * efiemu/i386/pc/cfgtables.c: Likewise.
37738 * efiemu/i386/loadcore64.c: Likewise.
37739 * efiemu/i386/loadcore32.c: Likewise.
37740 * efiemu/loadcore.c: Likewise.
37741 * efiemu/symbols.c: Likewise.
37742 * efiemu/mm.c: Likewise.
37743 * include/grub/autoefi.h: Likewise.
37744 * include/grub/datetime.h: Likewise.
37745 * include/grub/term.h: Likewise.
37746 * include/grub/hfs.h: Likewise.
37747 * include/grub/lvm.h: Likewise.
37748 * include/grub/i386/tsc.h: Likewise.
37749 * include/grub/i386/linux.h: Likewise.
37750 * include/grub/i386/xnu.h: Likewise.
37751 * include/grub/i386/efiemu.h: Likewise.
37752 * include/grub/i386/pc/biosdisk.h: Likewise.
37753 * include/grub/i386/pc/memory.h: Likewise.
37754 * include/grub/i386/pc/vbe.h: Likewise.
37755 * include/grub/parttool.h: Likewise.
37756 * include/grub/video.h: Likewise.
37757 * include/grub/memory.h: Likewise.
37758 * include/grub/fs.h: Likewise.
37759 * include/grub/partition.h: Likewise.
37760 * include/grub/xnu.h: Likewise.
37761 * include/grub/efi/api.h: Likewise.
37762 * include/grub/efi/pe32.h: Likewise.
37763 * include/grub/efi/memory.h: Likewise.
37764 * include/grub/multiboot.h: Likewise.
37765 * include/grub/usbdesc.h: Likewise.
37766 * include/grub/multiboot2.h: Likewise.
37767 * include/grub/acpi.h: Likewise.
37768 * include/grub/efiemu/efiemu.h: Likewise.
37769 * include/grub/disk.h: Likewise.
37770 * include/grub/ieee1275/ieee1275.h: Likewise.
37771 * include/grub/net.h: Likewise.
37772 * include/grub/machoload.h: Likewise.
37773 * include/grub/macho.h: Likewise.
37774 * include/multiboot.h: Likewise.
37775 * genmoddep.awk: Likewise.
37776 * normal/main.c: Likewise.
37777 * normal/menu_entry.c: Likewise.
37778 * normal/menu_viewer.c: Likewise.
37779 * normal/completion.c: Likewise.
37780 * normal/cmdline.c: Likewise.
37781 * normal/misc.c: Likewise.
37782 * normal/datetime.c: Likewise.
37783 * bus/usb/usbtrans.c: Likewise.
37784 * bus/usb/ohci.c: Likewise.
37785 * bus/usb/uhci.c: Likewise.
37786 * bus/usb/usb.c: Likewise.
37787 * mmap/efi/mmap.c: Likewise.
37788 * mmap/i386/pc/mmap_helper.S: Likewise.
37789 * mmap/i386/pc/mmap.c: Likewise.
37790 * mmap/i386/mmap.c: Likewise.
37791 * mmap/i386/uppermem.c: Likewise.
37792 * mmap/mmap.c: Likewise.
37793 * commands/acpi.c: Likewise.
37794 * commands/echo.c: Likewise.
37795 * commands/blocklist.c: Likewise.
37796 * commands/loadenv.c: Likewise.
37797 * commands/usbtest.c: Likewise.
37798 * commands/boot.c: Likewise.
37799 * commands/parttool.c: Likewise.
37800 * commands/search.c: Likewise.
37801 * commands/cat.c: Likewise.
37802 * commands/i386/pc/play.c: Likewise.
37803 * commands/i386/pc/drivemap.c: Likewise.
37804 * commands/i386/pc/vbeinfo.c: Likewise.
37805 * commands/i386/pc/acpi.c: Likewise.
37806 * commands/i386/pc/vbetest.c: Likewise.
37807 * commands/ls.c: Likewise.
37808 * commands/cmp.c: Likewise.
37809 * commands/test.c: Likewise.
37810 * commands/efi/acpi.c: Likewise.
37811 * commands/gptsync.c: Likewise.
37812 * commands/help.c: Likewise.
37813 * partmap/amiga.c: Likewise.
37814 * partmap/apple.c: Likewise.
37815 * partmap/acorn.c: Likewise.
37816 * partmap/pc.c: Likewise.
37817 * partmap/sun.c: Likewise.
37818 * partmap/gpt.c: Likewise.
37819 * script/sh/lexer.c: Likewise.
37820 * script/sh/function.c: Likewise.
37821 * font/font.c: Likewise.
37822 * font/font_cmd.c: Likewise.
37823 * loader/powerpc/ieee1275/linux.c: Likewise.
37824 * loader/efi/chainloader.c: Likewise.
37825 * loader/multiboot_loader.c: Likewise.
37826 * loader/macho.c: Likewise.
37827 * loader/i386/multiboot.c: Likewise.
37828 * loader/i386/linux.c: Likewise.
37829 * loader/i386/pc/linux.c: Likewise.
37830 * loader/i386/pc/multiboot2.c: Likewise.
37831 * loader/i386/pc/chainloader.c: Likewise.
37832 * loader/i386/pc/xnu.c: Likewise.
37833 * loader/i386/bsd_trampoline.S: Likewise.
37834 * loader/i386/efi/linux.c: Likewise.
37835 * loader/i386/multiboot_elfxx.c: Likewise.
37836 * loader/i386/bsd_helper.S: Likewise.
37837 * loader/i386/bsd.c: Likewise.
37838 * loader/i386/linux_trampoline.S: Likewise.
37839 * loader/i386/xnu_helper.S: Likewise.
37840 * loader/i386/xnu.c: Likewise.
37841 * loader/i386/bsd_pagetable.c: Likewise.
37842 * loader/i386/multiboot_helper.S: Likewise.
37843 * loader/xnu.c: Likewise.
37844 * loader/xnu_resume.c: Likewise.
37845 * io/gzio.c: Likewise.
37846 * term/efi/console.c: Likewise.
37847 * term/terminfo.c: Likewise.
37848 * term/ieee1275/ofconsole.c: Likewise.
37849 * term/i386/pc/serial.c: Likewise.
37850 * term/i386/pc/vesafb.c: Likewise.
37851 * term/i386/pc/vga.c: Likewise.
37852 * term/usb_keyboard.c: Likewise.
37853 * term/gfxterm.c: Likewise.
37854 * aclocal.m4: Likewise.
37855 * util/lvm.c: Likewise.
37856 * util/grub.d/30_os-prober.in: Likewise.
37857 * util/grub.d/10_hurd.in: Likewise.
37858 * util/console.c: Likewise.
37859 * util/grub-macho2img.c: Likewise.
37860 * util/grub-probe.c: Likewise.
37861 * util/hostfs.c: Likewise.
37862 * util/i386/pc/grub-mkimage.c: Likewise.
37863 * util/i386/pc/grub-setup.c: Likewise.
37864 * util/i386/efi/grub-mkimage.c: Likewise.
37865 * util/grub-mkconfig.in: Likewise.
37866 * util/raid.c: Likewise.
37867 * util/resolve.c: Likewise.
37868 * util/grub-mkdevicemap.c: Likewise.
37869 * util/grub-emu.c: Likewise.
37870 * util/getroot.c: Likewise.
37871 * util/hostdisk.c: Likewise.
37872 * util/usb.c: Likewise.
37873 * util/grub-editenv.c: Likewise.
37874 * util/misc.c: Likewise.
37876 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37878 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37879 `genparttoollist.sh'.
37880 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37881 Add `*.sh' to the list find searches for and change `mdate.sh'
37884 2009-06-10 Pavel Roskin <proski@gnu.org>
37886 * include/grub/multiboot2.h: Provide compatibility defines for
37888 * include/multiboot2.h: Include stdint.h only if needed, using
37890 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37892 * loader/ieee1275/multiboot2.c: Likewise.
37893 * loader/multiboot2.c: Likewise.
37894 * loader/multiboot_loader.c: Likewise.
37896 * configure.ac: Use -nostdlib when probing for the target. It
37897 should not be required to have libc for the target.
37899 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37900 they fail without libc headers for the target.
37901 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37903 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37904 preprocessor conditionals.
37906 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37907 build system doesn't need to be aware of the tar.c internals.
37909 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37911 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37913 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37915 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37916 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37918 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37920 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37921 aren't available if ata.mod gets used.
37923 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37925 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37926 initialising controller.
37927 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37929 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37931 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37932 to choose between ata and biosdisk module on i386-pc.
37934 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37936 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37937 Subclass and Programming Interface fields in terms of the 3 byte
37938 Class Code register.
37939 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37941 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37942 interface is OHCI. Add grub_dprintf for symmetry with
37944 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37945 interface is UHCI. Add interf variable for programming
37946 interface. Print interface with class/subclass.
37948 * bus/usb/ohci.c: Set interf with correct field.
37950 * bus/usb/uhci.c: Remove unneeded doubled lines.
37951 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37952 Remove whitespace inside comment.
37954 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37956 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37957 as fallback an equivalent option without depth.
37959 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37961 Not fail if unable to retrieve C/H/S on LBA disks
37963 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37964 if unable to retrieve C/H/S on LBA disks
37966 2009-06-08 Pavel Roskin <proski@gnu.org>
37968 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37971 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37973 * Makefile.in (uninstall): Remove all $lib_DATA files.
37975 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37977 Bugfix: install on partitionless device
37979 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37982 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37984 * Makefile.in (uninstall): Remove all $include_DATA files.
37986 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37988 * commands/true.c: New file. Implement the true and false commands.
37989 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37990 (true_mod_SOURCES): New variable.
37991 (true_mod_CFLAGS): Likewise.
37992 (true_mod_LDFLAGS): Likewise.
37994 2009-06-05 Colin D Bennett <colin@gibibit.com>
37996 Optimized font character lookup using binary search instead of linear
37997 search. Fonts now are required to have the character index ordered by
38000 * font/font.c (load_font_index): Verify that fonts have ordered
38002 (find_glyph): Use binary search instead of linear search to find a
38003 character in a font.
38005 2009-06-05 Michael Scherer <misc@mandriva.org>
38007 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38008 uses case sensitive btree.
38009 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38010 only for case insensitive filesystems.
38012 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38014 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38015 * conf/common.rmk (search_mod_CFLAGS): likewise
38017 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38019 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38020 compensate a compiler bug
38022 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38024 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38027 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38029 Definitions for creating asm symbols with Apple's CC
38031 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38032 [APPLE_CC] (VARIABLE): likewise
38034 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38036 Disable lnxboot.img when compiled
38039 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38040 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38041 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38042 [! APPLE_CC] (CODE_LENG): skip
38043 [! APPLE_CC] (setup_sects): likewise
38044 [! APPLE_CC]: skip filling
38046 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38048 Address in trampolines based on 32-bit registers when compiled
38051 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38053 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38055 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38057 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38059 * kern/misc.c [APPLE_CC] (memcpy): new function
38060 [APPLE_CC] (memmove): likewise
38061 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38062 (memcpy): define alias conditionally on !APPLE_CC
38065 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38066 APPLE_CC are defined
38067 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38068 (grub_assert_fail): make prototype conditional
38070 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38072 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38074 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38076 (CLEANFILES): add grub-macho2img
38077 (grub_macho2img_SOURCES): new variable
38078 * kern/i386/pc/startup.S (bss_start): new variable
38079 (bss_end): likewise
38080 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38081 * util/grub-macho2img.c: new file
38083 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38085 Use objconv when compiling with Apple's CC
38087 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38088 (efiemu64.o): likewise
38089 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38090 when compiling with Apple's CC
38091 (efiemu64_s.o): likewise
38092 * configure.ac: check for objconv when compiling with Apple's CC
38093 * genmk.rb: use objconv for modules when compiled with Apple's CC
38095 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38097 Define segment as well as section when compiling with
38100 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38101 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38102 (efiemu_convert_pointer): likewise
38103 (efiemu_set_virtual_address_map): likewise
38104 (efiemu_convert_pointer): likewise
38105 (efiemu_getcrc32): likewise
38106 (init_crc32_table): likewise
38107 (reflect): likewise
38108 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38109 (GRUB_MOD_DEP): likewise
38111 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38113 Allow a compilation without -mcmodel=large
38115 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38116 when compiled without -mcmodel=large
38117 (filter_memory_map): remove memory post 4 GiB when compiled
38118 without -mcmodel=large
38119 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38120 TARGET_CFLAGS when -mcmodel=large isn't supported
38122 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38124 Remove nested functions in efiemu core
38126 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38128 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38130 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38132 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38134 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38136 (grub_cpu_is_tsc_supported): likewise
38137 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38139 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38141 Absolute addressing through constant with Apple's cc
38143 * kern/i386/pc/startup.S: Define necessary constants
38144 and address through it when using ABS with Apple's CC
38145 * boot/i386/pc/diskboot.S: likewise
38146 * boot/i386/pc/boot.S: likewise
38147 * boot/i386/pc/lnxboot.S: likewise
38148 * boot/i386/pc/cdboot.S: likewise
38149 * mmap/i386/pc/mmap_helper.S: likewise
38150 * commands/i386/pc/drivemap_int13h.S: likewise
38152 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38154 Check if compiler is apple cc
38156 * Makefile.in (ASFLAGS): new variable
38157 (TARGET_ASFLAGS): likewise
38158 (TARGET_MODULE_FORMAT): likewise
38159 (TARGET_APPLE_CC): likewise
38160 (OBJCONV): likewise
38161 (TARGET_IMG_CFLAGS): likewise
38162 (TARGET_CPPFLAGS): add includedir
38163 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38164 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38165 Check for linker script only if compiler isn't Apple's CC
38166 (TARGET_MODULE_FORMAT): set
38167 (TARGET_APPLE_CC): likewise
38168 (TARGET_ASFLAGS): likewise
38169 (ASFLAGS): likewise
38170 Check for objcopy only if compiler isn't Apple's CC
38171 Check for BSS symbol only if compiler isn't Apple's CC
38172 * genmk.rb: adapt nm options if we use Apple's utils
38173 * aclocal.m4 (grub_apple_cc): new test
38174 (grub_apple_target_cc): likewise
38176 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38178 Simplify sed expressions and improve awk
38180 * Makefile.in (install-local): simplify sed expression
38181 * gencmdlist.sh: likewise
38182 * genmoddep.awk: avoid adding module as a dependency of itself
38184 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38186 Add missing start symbols
38188 * boot/i386/pc/boot.S: add start
38189 * boot/i386/pc/pxeboot.S: likewise
38191 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38193 Fix wrong assumptions with grub-mkimage on EFI
38195 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38196 (relocate_addresses): consider both r_addend and value at offset
38197 (make_mods_section): zerofill modinfo and header
38198 (convert_elf): write prefix here
38200 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38202 Use .asciz instead of .string
38204 * i386/pc/diskboot.S: use .asciz instead of .string
38205 * i386/pc/boot.S: likewise
38206 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38207 (GRUB_MOD_NAME): likewise
38209 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38213 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38214 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38215 (grub_video_setup): remove
38216 (grub_video_set_mode): new prototype
38217 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38219 (linux_vesafb_res): compile only on PCBIOS
38220 (grub_linux_boot): support gfxpayload
38221 * loader/i386/pc/xnu.c (video_hook): new function
38222 (grub_xnu_set_video): support gfxpayload
38223 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38224 (DEFAULT_VIDEO_HEIGHT): likewise
38225 (DEFAULT_VIDEO_FLAGS): likewise
38226 (DEFAULT_VIDEO_MODE): new definition
38227 (video_hook): new function
38228 (grub_gfxterm_init): use grub_video_set_mode
38229 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38231 * video/video.c (grub_video_setup): removed
38232 (grub_video_set_mode): new function based on grub_gfxterm_init and
38235 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38237 Avoid calling biosdisk in drivemap
38239 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38240 (revparse_biosdisk): likewise
38241 (list_mappings): derive name from id directly
38242 (grub_cmd_drivemap): use tryparse_diskstring
38244 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38248 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38249 (grub_lexer_param): add tokenonhold
38250 (grub_script_create_cmdline): remove cmdline. All callers updated
38251 (grub_script_function_create): make functionname
38252 grub_script_arg. All callers updated
38253 (grub_script_execute_argument_to_string): new prototype
38254 * kern/parser.c (state_transitions): reorder
38255 (grub_parser_cmdline_state): fix a bug and make more compact
38256 * script/sh/execute.c (grub_script_execute_argument_to_string):
38258 (grub_script_execute_cmdline): use new format
38259 * script/sh/function.c (grub_script_function_create): make functionname
38260 grub_script_arg. All callers updated
38261 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38262 (grub_script_yylex): remove
38263 (grub_script_yylex2): renamed to ...
38264 (grub_script_yylex): ...renamed
38265 parse the expressions like a${b}c
38266 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38267 (GRUB_PARSER_TOKEN_VAR): remove
38268 (GRUB_PARSER_TOKEN_NAME): likewise
38269 ("if"): declare as typeless
38270 ("while"): likewise
38271 ("function"): likewise
38276 (argument): likewise
38277 (script): accept empty scripts and make exit on error
38278 (arguments): use GRUB_PARSER_TOKEN_ARG
38279 (function): likewise
38280 (command): move error handling to script
38281 (menuentry): move grub_script_lexer_ref before
38282 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38283 argument. All callers updated
38285 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38287 Prevent GRUB from probing floppies during boot.
38289 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38290 * commands/search.c (options): Add --no-floppy.
38291 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38292 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38293 --no-floppy when searching for UUIDs.
38295 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38297 Simplify the code duplication in commands/search.c.
38299 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38300 (search_fs): ... this. Update all users.
38302 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38304 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38306 2009-05-28 Pavel Roskin <proski@gnu.org>
38308 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38309 Remove the original symlink explicitly.
38311 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38312 just one slash. That's how grub_fshelp_find_file() does it.
38314 2009-05-26 Pavel Roskin <proski@gnu.org>
38316 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38319 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38322 2009-05-25 Christian Franke <franke@computer.org>
38324 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38326 (grub_atapi_identify): Add wait after drive select.
38327 (grub_ata_identify): Do more strict status register check before
38328 calling grub_atapi_identify (). Suppress error message if status
38329 register is 0x00 after command failure. Add status register
38330 check after PIO read to avoid bogus identify due to stuck DRQ.
38331 Thanks to Pavel Roskin for testing.
38332 (grub_device_initialize): Remove unsafe status register check.
38333 Thanks to 'phcoder' for problem report and patch.
38334 Prevent sign extension in debug message.
38336 2009-05-23 Colin D Bennett <colin@gibibit.com>
38338 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38339 definition file, and functions defined in `normal/menu.c' have had
38340 their prototypes moved to `include/grub/menu.h' for consistency.
38342 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38344 (grub_menu_get_entry): Likewise.
38345 (grub_menu_get_timeout): Likewise.
38346 (grub_menu_set_timeout): Likewise.
38347 (grub_menu_execute_entry): Likewise.
38348 (grub_menu_execute_with_fallback): Likewise.
38349 (grub_menu_entry_run): Likewise.
38351 * include/grub/normal.h: Re-ordered and grouped function
38352 prototypes by file that the function is defined in.
38353 (grub_menu_execute_callback): Removed; moved to menu.h.
38354 (grub_menu_get_entry): Likewise.
38355 (grub_menu_get_timeout): Likewise.
38356 (grub_menu_set_timeout): Likewise.
38357 (grub_menu_execute_entry): Likewise.
38358 (grub_menu_execute_with_fallback): Likewise.
38359 (grub_menu_entry_run): Likewise.
38360 (grub_menu_addentry): Renamed from this ...
38361 (grub_normal_add_menu_entry): ... to this.
38363 * normal/main.c (grub_menu_addentry): Renamed from this ...
38364 (grub_normal_add_menu_entry): ... to this.
38366 * script/sh/execute.c (grub_script_execute_menuentry): Update
38367 reference to renamed grub_menu_addentry function.
38369 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38371 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38373 2009-05-22 Pavel Roskin <proski@gnu.org>
38375 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38376 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38377 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38378 compiling for the i386 targets, but not for the utilities.
38380 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38382 (grub_root_drive): Likewise.
38383 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38385 (grub_root_drive): Change size to byte.
38386 (grub_start_addr): Remove.
38387 (grub_end_addr): Likewise.
38388 (grub_apm_bios_info): Likewise.
38390 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38392 * normal/i386: Remove.
38393 * normal/powerpc: Likewise.
38394 * normal/sparc64: Likewise.
38395 * normal/x86_64: Likewise.
38397 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38399 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38400 * loader/i386/linux_trampoline.S: Fix indentation
38401 * loader/i386/xnu_helper.S: Likewise
38403 2009-05-18 Colin D Bennett <colin@gibibit.com>
38405 Display error messages when parsing a Lua statement fails.
38406 Previously, executing a syntactically invalid statement like
38407 ")foo" or "bar;" would silently fail.
38409 * script/lua/grub_main.c (handle_lua_error): New function.
38410 (grub_lua_parse_line): Improved reporting of Lua parser and
38413 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38415 Remove -Werror which causes build to fail on some systems
38417 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38418 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38419 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38421 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38423 trampoline for linux on 64-bit platform
38425 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38426 loader/i386/efi/linux_trampoline.S
38427 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38429 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38431 * loader/i386/linux_trampoline.S: moved here
38432 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38434 (jumpvector): removed
38435 (grub_linux_trampoline_start): new declaration
38436 (grub_linux_trampoline_end): likewise
38437 (grub_linux_boot): use trampoline when on 64-bit platform
38438 * loader/i386/linux.c: likewise
38440 2009-05-16 Pavel Roskin <proski@gnu.org>
38442 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38443 const to avoid a warning.
38444 (grub_lua_setenv): Likewise.
38445 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38446 lmsg to fix a warning.
38448 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38450 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38451 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38452 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38453 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38454 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38455 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38456 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38457 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38459 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38461 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38463 2009-05-16 Bean <bean123ch@gmail.com>
38465 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38466 (lua_mod_SOURCES): New variable.
38467 (lua_mod_CFLAGS): Likewise.
38468 (lua_mod_LDFLAGS): Likewise.
38470 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38471 (setjmp_mod_SOURCES): New variable.
38472 (setjmp_mod_CFLAGS): Likewise.
38473 (setjmp_LDFLAGS): Likewise.
38475 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38476 (setjmp_mod_SOURCES): New variable.
38477 (setjmp_mod_CFLAGS): Likewise.
38478 (setjmp_LDFLAGS): Likewise.
38480 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38481 (setjmp_mod_SOURCES): New variable.
38482 (setjmp_mod_CFLAGS): Likewise.
38483 (setjmp_LDFLAGS): Likewise.
38485 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38486 (setjmp_mod_SOURCES): New variable.
38487 (setjmp_mod_CFLAGS): Likewise.
38488 (setjmp_LDFLAGS): Likewise.
38490 * normal/i386/setjmp.S: Moved from here ...
38491 * lib/i386/setjmp.S: ... Moved here
38492 * normal/x86_64/setjmp.S: Moved from here ...
38493 * lib/x86_64/setjmp.S: ... Moved here
38494 * normal/powerpc/setjmp.S: Moved from here ...
38495 * lib/powerpc/setjmp.S: ... Moved here
38496 * normal/sparc64/setjmp.S: Moved from here ...
38497 * lib/sparc64/setjmp.S: ... Moved here
38499 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38500 returns_twice in mingw.
38502 * script/lua/grub_lib.c: New file.
38503 * script/lua/grub_lib.h: Likewise.
38504 * script/lua/grub_lua.h: Likewise.
38505 * script/lua/grub_main.c: Likewise.
38506 * script/lua/lapi.c: Likewise.
38507 * script/lua/lapi.h: Likewise.
38508 * script/lua/lauxlib.c: Likewise.
38509 * script/lua/lauxlib.h: Likewise.
38510 * script/lua/lbaselib.c: Likewise.
38511 * script/lua/lcode.c: Likewise.
38512 * script/lua/lcode.h: Likewise.
38513 * script/lua/ldblib.c: Likewise.
38514 * script/lua/ldebug.c: Likewise.
38515 * script/lua/ldebug.h: Likewise.
38516 * script/lua/ldo.c: Likewise.
38517 * script/lua/ldo.h: Likewise.
38518 * script/lua/ldump.c: Likewise.
38519 * script/lua/lfunc.c: Likewise.
38520 * script/lua/lfunc.h: Likewise.
38521 * script/lua/lgc.c: Likewise.
38522 * script/lua/lgc.h: Likewise.
38523 * script/lua/linit.c: Likewise.
38524 * script/lua/liolib.c: Likewise.
38525 * script/lua/llex.c: Likewise.
38526 * script/lua/llex.h: Likewise.
38527 * script/lua/llimits.h: Likewise.
38528 * script/lua/lmathlib.c: Likewise.
38529 * script/lua/lmem.c: Likewise.
38530 * script/lua/lmem.h: Likewise.
38531 * script/lua/loadlib.c: Likewise.
38532 * script/lua/lobject.c: Likewise.
38533 * script/lua/lobject.h: Likewise.
38534 * script/lua/lopcodes.c: Likewise.
38535 * script/lua/lopcodes.h: Likewise.
38536 * script/lua/loslib.c: Likewise.
38537 * script/lua/lparser.c: Likewise.
38538 * script/lua/lparser.h: Likewise.
38539 * script/lua/lstate.c: Likewise.
38540 * script/lua/lstate.h: Likewise.
38541 * script/lua/lstring.c: Likewise.
38542 * script/lua/lstring.h: Likewise.
38543 * script/lua/lstrlib.c: Likewise.
38544 * script/lua/ltable.c: Likewise.
38545 * script/lua/ltable.h: Likewise.
38546 * script/lua/ltablib.c: Likewise.
38547 * script/lua/ltm.c: Likewise.
38548 * script/lua/ltm.h: Likewise.
38549 * script/lua/lua.h: Likewise.
38550 * script/lua/luaconf.h: Likewise.
38551 * script/lua/lualib.h: Likewise.
38552 * script/lua/lundump.c: Likewise.
38553 * script/lua/lundump.h: Likewise.
38554 * script/lua/lvm.c: Likewise.
38555 * script/lua/lvm.h: Likewise.
38556 * script/lua/lzio.c: Likewise.
38557 * script/lua/lzio.h: Likewise.
38559 2009-05-16 Bean <bean123ch@gmail.com>
38561 * include/grub/kernel.h (grub_module_header_types): Add type
38564 * kern/main.c (grub_load_config): New function.
38565 (grub_main): Call grub_load_config to read boot config.
38567 * grub-mkimage (generate_image): New parameter config_path.
38568 (options): New option --config.
38569 (main): Parse --config option, and pass it to generate_image.
38571 2009-05-14 Christian Franke <franke@computer.org>
38573 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38574 This fixes build on Cygwin.
38576 2009-05-14 Pavel Roskin <proski@gnu.org>
38578 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38579 jump. This saves two bytes, so the typical case of 2 swapped
38580 drives would fit 32 bytes.
38582 2009-05-13 Pavel Roskin <proski@gnu.org>
38584 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38585 grub_uint32_t to avoid a warning.
38587 * loader/i386/linux.c (allocate_pages): When assigning
38588 real_mode_mem, cast through grub_size_t to fix a warning. The
38589 code already makes sure that the value would fit a pointer.
38590 (grub_linux_setup_video): Cast render_target->data to
38591 grub_size_t to fix a warning.
38593 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38595 * commands/i386/pc/drivemap.c: New file - implement drivemap
38597 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38598 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38600 2009-05-13 Pavel Roskin <proski@gnu.org>
38602 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38603 embedding_area_exists.
38605 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38607 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38608 it easier to understand / work with.
38609 Improve warning messages for cases where there's no embedding area,
38610 or when it is too small (or core.img too large).
38612 2009-05-13 Pavel Roskin <proski@gnu.org>
38614 * loader/i386/pc/multiboot2.c: Add necessary includes for
38615 grub_multiboot2_real_boot().
38617 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38618 PX record is always little-endian. We only need the lower 2
38621 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38622 facilitate code reuse.
38623 (grub_cpio_mount): Use "struct head", not a char buffer. This
38624 fixes a warning reported by gcc 4.4.
38626 * kernel/disk.c (grub_disk_read): Use void pointer for the
38628 (grub_disk_write): Use const void pointer for the buffer.
38629 Adjust all callers. Remove unnecessary casts.
38631 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38633 * util/i386/pc/grub-install.in: Update copyright year.
38635 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38639 * commands/gptsync.c: new file
38640 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38641 (gptsync_mod_SOURCES): new variable
38642 (gptsync_mod_CFLAGS): likewise
38643 (gptsync_mod_LDFLAGS): likewise
38644 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38646 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38647 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38648 * conf/i386-ieee1275.rmk: likewise
38649 * conf/i386-pc.rmk: likewise
38650 * conf/powerpc-ieee1275.rmk: likewise
38652 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38656 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38657 (grub_dl_ref): likewise
38659 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38661 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38662 split in two functions (one for msdos and one for gpt).
38664 2009-05-08 Pavel Roskin <proski@gnu.org>
38666 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38669 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38670 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38671 Initialize them with -1. Add sanity check for bad1. Eliminate
38674 2009-05-08 David S. Miller <davem@davemloft.net>
38676 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38678 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38680 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38683 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38686 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38688 2009-05-05 David S. Miller <davem@davemloft.net>
38690 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38692 2009-05-05 Pavel Roskin <proski@gnu.org>
38694 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38695 of grub_dl_ref() and grub_dl_unref().
38696 * commands/parttool.c: Remove preprocessor conditionals around
38697 grub_dl_ref() and grub_dl_unref().
38698 * fs/affs.c: Likewise.
38699 * fs/afs.c: Likewise.
38700 * fs/cpio.c: Likewise.
38701 * fs/ext2.c: Likewise.
38702 * fs/fat.c: Likewise.
38703 * fs/hfs.c: Likewise.
38704 * fs/hfsplus.c: Likewise.
38705 * fs/iso9660.c: Likewise.
38706 * fs/jfs.c: Likewise.
38707 * fs/minix.c: Likewise.
38708 * fs/ntfs.c: Likewise.
38709 * fs/reiserfs.c: Likewise.
38710 * fs/sfs.c: Likewise.
38711 * fs/udf.c: Likewise.
38712 * fs/ufs.c: Likewise.
38713 * fs/xfs.c: Likewise.
38714 * include/grub/dl.h: Likewise.
38715 * loader/xnu.c: Likewise.
38717 2009-05-04 Pavel Roskin <proski@gnu.org>
38719 * commands/acpi.c: Remove unused variable my_mod.
38720 * partmap/amiga.c: Likewise.
38721 * partmap/apple.c: Likewise.
38722 * partmap/gpt.c: Likewise.
38723 * partmap/pc.c: Likewise.
38724 * partmap/sun.c: Likewise.
38725 * term/gfxterm.c: Likewise.
38726 * term/i386/pc/vesafb.c: Likewise.
38727 * term/i386/pc/vga.c: Likewise.
38729 2009-05-04 David S. Miller <davem@davemloft.net>
38731 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38732 pointer args to grub_ieee1275_get_property().
38734 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38736 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38737 devices, and do not traverse down under controller nodes.
38739 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38740 (grub_ofdisk_open): Use it to un-escape "," characters.
38741 * kern/disk.c (find_part_sep): New.
38742 (grub_disk_open): Use it to find the first non-escaped ','
38743 character in the disk name.
38744 * util/ieee1275/devicemap.c (escape_of_path): New.
38745 (grub_util_emit_devicemap_entry): Use it.
38746 * util/sparc64/ieee1275/grub-install.in: Update script to
38747 strip partition specifiers properly by not triggering on
38748 '\' escaped ',' characters.
38750 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38752 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38754 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38756 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38757 on documentation from Wikipedia).
38759 2009-05-04 Pavel Roskin <proski@gnu.org>
38761 * disk/ata.c: Spelling fixes.
38762 * disk/raid.c: Likewise.
38763 * disk/usbms.c: Likewise.
38764 * disk/dmraid_nvidia.c: Likewise.
38765 * kern/ieee1275/openfw.c: Likewise.
38766 * kern/ieee1275/init.c: Likewise.
38767 * kern/ieee1275/cmain.c: Likewise.
38768 * boot/i386/pc/cdboot.S: Likewise.
38769 * video/readers/png.c: Likewise.
38770 * video/i386/pc/vbe.c: Likewise.
38771 * fs/udf.c: Likewise.
38772 * fs/hfs.c: Likewise.
38773 * fs/reiserfs.c: Likewise.
38774 * efiemu/runtime/efiemu.c: Likewise.
38775 * efiemu/main.c: Likewise.
38776 * efiemu/mm.c: Likewise.
38777 * include/grub/elf.h: Likewise.
38778 * include/grub/xnu.h: Likewise.
38779 * include/grub/usbdesc.h: Likewise.
38780 * include/grub/usb.h: Likewise.
38781 * include/grub/script_sh.h: Likewise.
38782 * include/grub/lib/LzmaEnc.h: Likewise.
38783 * include/grub/efiemu/efiemu.h: Likewise.
38784 * include/grub/command.h: Likewise.
38785 * normal/menu.c: Likewise.
38786 * normal/main.c: Likewise.
38787 * normal/datetime.c: Likewise.
38788 * bus/usb/uhci.c: Likewise.
38789 * mmap/i386/uppermem.c: Likewise.
38790 * mmap/mmap.c: Likewise.
38791 * commands/acpi.c: Likewise.
38792 * commands/test.c: Likewise.
38793 * partmap/apple.c: Likewise.
38794 * font/font.c: Likewise.
38795 * loader/sparc64/ieee1275/linux.c: Likewise.
38796 * loader/macho.c: Likewise.
38797 * loader/i386/bsd_trampoline.S: Likewise.
38798 * loader/i386/bsd.c: Likewise.
38799 * loader/xnu.c: Likewise.
38800 * term/i386/pc/vesafb.c: Likewise.
38801 * term/usb_keyboard.c: Likewise.
38802 * util/resolve.c: Likewise.
38803 * util/getroot.c: Likewise.
38805 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38807 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38809 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38811 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38814 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38816 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38817 parameter only available on BIOS.
38819 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38821 Removed wrong semicolon in declaration
38823 * grub/misc.h (grub_dprintf): remove semicolon
38825 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38827 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38828 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38829 is done by grub_cmd_linux() now).
38830 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38831 restore video to text mode.
38832 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38833 indicates lack of "vga=" parameter. "vga=0" is mapped to
38834 `GRUB_LINUX_VID_MODE_NORMAL'.
38836 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38838 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38839 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38840 and `normal/script.c'. Add `kern/rescue_reader.c',
38841 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38842 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38843 `grub_script.tab.c'.
38845 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38846 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38848 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38849 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38851 * Makefile.in: Remove duplicated 2008 in Copyright line.
38853 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38855 * util/misc.c (grub_util_warn): New function. Emits a warning
38857 * include/grub/util/misc.h (grub_util_warn): New declaration.
38859 * util/i386/pc/grub-install.in: Understand --force and pass it down
38862 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38864 (setup): Improve error messages and add warnings when requested to
38865 install in odd layouts. Refuse to install using blocklists unless
38868 2009-05-04 martin f. krafft <madduck@madduck.net>
38870 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38872 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38874 Updated copyright year
38876 * fs/hfsplus.c: updated copyright year
38878 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38882 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38883 in the space previously used by unused3
38884 (grub_hfsplus_uuid): new function
38885 (grub_hfsplus_fs): added uuid field
38887 2009-05-03 Pavel Roskin <proski@gnu.org>
38889 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38890 suppress warnings. It's no longer needed.
38891 * disk/host.c: Likewise.
38892 * disk/ata_pthru.c: Likewise.
38893 * disk/loopback.c: Likewise.
38894 * hook/datehook.c: Likewise.
38895 * parttool/pcpart.c: Likewise.
38896 * fs/i386/pc/pxe.c: Likewise.
38897 * fs/ntfscomp.c: Likewise.
38898 * efiemu/main.c: Likewise.
38899 * mmap/mmap.c: Likewise.
38900 * commands/crc.c: Likewise.
38901 * commands/hexdump.c: Likewise.
38902 * commands/hdparm.c: Likewise.
38903 * commands/acpi.c: Likewise.
38904 * commands/echo.c: Likewise.
38905 * commands/minicmd.c: Likewise.
38906 * commands/blocklist.c: Likewise.
38907 * commands/memrw.c: Likewise.
38908 * commands/loadenv.c: Likewise.
38909 * commands/usbtest.c: Likewise.
38910 * commands/lsmmap.c: Likewise.
38911 * commands/boot.c: Likewise.
38912 * commands/parttool.c: Likewise.
38913 * commands/configfile.c: Likewise.
38914 * commands/search.c: Likewise.
38915 * commands/ieee1275/suspend.c: Likewise.
38916 * commands/cat.c: Likewise.
38917 * commands/i386/pc/pxecmd.c: Likewise.
38918 * commands/i386/pc/play.c: Likewise.
38919 * commands/i386/pc/halt.c: Likewise.
38920 * commands/i386/pc/vbeinfo.c: Likewise.
38921 * commands/i386/pc/vbetest.c: Likewise.
38922 * commands/lspci.c: Likewise.
38923 * commands/date.c: Likewise.
38924 * commands/handler.c: Likewise.
38925 * commands/ls.c: Likewise.
38926 * commands/test.c: Likewise.
38927 * commands/cmp.c: Likewise.
38928 * commands/efi/loadbios.c: Likewise.
38929 * commands/efi/fixvideo.c: Likewise.
38930 * commands/halt.c: Likewise.
38931 * commands/help.c: Likewise.
38932 * commands/reboot.c: Likewise.
38933 * hello/hello.c: Likewise.
38934 * script/sh/main.c: Likewise.
38935 * loader/xnu.c: Likewise.
38936 * term/terminfo.c: Likewise.
38937 * term/i386/pc/serial.c: Likewise.
38938 * term/usb_keyboard.c: Likewise.
38940 2009-05-03 David S. Miller <davem@davemloft.net>
38942 * normal/menu.c: Include grub/parser.h
38944 2009-05-03 Pavel Roskin <proski@gnu.org>
38946 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38948 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38949 Suggested by Javier Martín <lordhabbit@gmail.com>
38951 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38952 efiemu??.o doesn't exist.
38953 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38956 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38958 FreeBSD 64-bit support
38960 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38961 and loader/i386/bsd_trampoline.S
38962 (bsd_mod_ASFLAGS): new variable
38963 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38964 (FREEBSD_MODTYPE_KERNEL64): likewise
38965 (grub_bsd64_trampoline_start): likewise
38966 (grub_bsd64_trampoline_end): likewise
38967 (grub_bsd64_trampoline_selfjump): likewise
38968 (grub_bsd64_trampoline_gdt): likewise
38969 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38970 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38971 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38972 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38973 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38975 * loader/i386/bsd_pagetable.c: new file
38976 * loader/i386/bsd_trampoline.S: likewise
38977 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38978 (ALIGN_VAR): likewise
38979 (entry_hi): new variable
38980 (kern_end_mdofs): likewise
38981 (is_64bit): likewise
38982 (grub_freebsd_add_meta): use ALIGN_VAR
38983 (grub_e820_mmap): new declaration
38984 (grub_freebsd_add_mmap): new function
38985 (grub_freebsd_add_meta_module): support 64 bit kernels
38986 (grub_freebsd_list_modules): use ALIGN_VAR
38987 (gdt_descriptor): new declaration
38988 (grub_freebsd_boot): support 64 bit kernels
38989 (grub_bsd_elf64_hook): new function
38990 (grub_bsd_load_elf): support elf64
38992 2009-05-03 Bean <bean123ch@gmail.com>
38994 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38995 after we get the result of if statement.
38997 2009-05-03 Bean <bean123ch@gmail.com>
38999 * Makefile.in (enable_efiemu): New variable.
39001 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39003 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39005 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39006 path, add -mno-red-zone option.
39007 (efiemu64_s.o): Likewise.
39008 (efiemu64.o): Use macro $^ for source file.
39010 * configure.ac (--enable-efiemu): New option.
39012 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39016 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39017 (pkglib_MODULES): add xnu.mod
39018 (xnu_mod_SOURCES): new variable
39019 (xnu_mod_CFLAGS): likewise
39020 (xnu_mod_LDFLAGS): likewise
39021 (xnu_mod_ASFLAGS): likewise
39022 * conf/i386-pc.rmk: likewise
39023 * conf/x86_64-efi.rmk: likewise
39024 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39026 * include/grub/i386/macho.h: new file
39027 * include/grub/i386/xnu.h: likewise
39028 * include/grub/macho.h: likewise
39029 * include/grub/machoload.h: likewise
39030 * include/grub/x86_64/macho.h: likewise
39031 * include/grub/x86_64/xnu.h: likewise
39032 * include/grub/xnu.h: likewise
39033 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39034 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39035 * loader/i386/efi/xnu.c: new file
39036 * loader/i386/pc/xnu.c: likewise
39037 * loader/i386/xnu.c: likewise
39038 * loader/i386/xnu_helper.S: likewise
39039 * loader/macho.c: likewise
39040 * loader/xnu.c: likewise
39041 * loader/xnu_resume.c: likewise
39042 * util/grub-dumpdevtree: likewise
39043 * include/grub/i386/pit.h: include grub/err.h
39044 (grub_pit_wait): export
39045 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39047 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39051 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39052 _linux_efi, linux_efi.
39053 new files in grub-emu
39054 new targets efiemu32.o and efiemu64.o
39055 * loader/linux_normal_efiemu.c: likewise
39056 * loader/i386/efi/linux.c: added preliminary efiemu support
39057 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39059 * include/grub/autoefi.h: new file
39060 * include/grub/i386/efiemu.h: likewise
39061 * include/grub/i386/pc/efiemu.h: likewise
39062 * include/grub/efi/api.h: add LL suffix when necessary
39063 new definitions relating to tables
39064 * include/grub/efiemu/efiemu.h: new file
39065 * include/grub/efiemu/runtime.h: likewise
39066 * efiemu/prepare.c: likewise
39067 * efiemu/loadcore_common.c: likewise
39068 * efiemu/loadcore64.c: likewise
39069 * efiemu/runtime/efiemu.sh: likewise
39070 * efiemu/runtime/efiemu.S: likewise
39071 * efiemu/runtime/efiemu.c: likewise
39072 * efiemu/runtime/config.h: likewise
39073 * efiemu/prepare32.c: likewise
39074 * efiemu/main.c: likewise
39075 * efiemu/modules/pnvram.c: likewise
39076 * efiemu/modules/i386: likewise
39077 * efiemu/modules/i386/pc: likewise
39078 * efiemu/modules/acpi.c: likewise
39079 * efiemu/i386/pc/cfgtables.c: likewise
39080 * efiemu/i386/loadcore64.c: likewise
39081 * efiemu/i386/loadcore32.c: likewise
39082 * efiemu/prepare64.c: likewise
39083 * efiemu/loadcore.c: likewise
39084 * efiemu/symbols.c: likewise
39085 * efiemu/mm.c: likewise
39086 * efiemu/loadcore32.c: likewise
39088 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39092 * commands/acpi.c: new file
39093 * commands/i386/pc/acpi.c: likewise
39094 * commands/efi/acpi.c: likewise
39095 * include/grub/acpi.h: likewise
39096 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39097 (acpi_mod_SOURCES): new variable
39098 (acpi_mod_CFLAGS): likewise
39099 (acpi_mod_LDFLAGS): likewise
39100 * conf/i386-efi.rmk: likewise
39101 * conf/x86_64-efi.rmk: likewise
39103 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39105 Missing part from mmap patch
39107 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39108 (grub_mmap_unregister)
39109 (grub_mmap_free_and_unregister): use grub_mmap_register
39111 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39115 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39116 * loader/i386/linux.c (find_mmap_size): likewise
39117 (allocate_pages): likewise
39118 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39119 (grub_fill_multiboot_mmap): likewise
39120 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39121 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39122 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39123 (OPENBSD_MMAP_RESERVED): likewise
39124 * include/grub/i386/pc/memory.h: include grub/memory.h
39125 (grub_lower_mem): removed
39126 (grub_upper_mem): likewise
39127 (GRUB_MACHINE_MEMORY_ACPI): new definition
39128 (GRUB_MACHINE_MEMORY_NVS): likewise
39129 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39130 (GRUB_MACHINE_MEMORY_HOLE): likewise
39131 (grub_machine_mmap_register): likewise
39132 (grub_machine_mmap_unregister): likewise
39133 (grub_machine_get_upper): likewise
39134 (grub_machine_get_lower): likewise
39135 (grub_machine_get_post64): likewise
39136 * include/grub/i386/efi/memory.h: new file
39137 * include/grub/x86_64/efi/memory.h: likewise
39138 * include/grub/efi/memory.h: likewise
39139 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39140 (mmap_mod_SOURCES): new variable
39141 (mmap_mod_LDFLAGS): likewise
39142 (mmap_mod_ASFLAGS): likewise
39143 * conf/i386-coreboot.rmk: likewise
39144 * conf/i386-ieee1275.rmk: likewise
39145 * conf/i386-efi.rmk: likewise
39146 * conf/x86_64-efi.rmk: likewise
39147 * include/grub/types.h (UINT_TO_PTR): new macro
39148 (PTR_TO_UINT32): likewise
39149 (PTR_TO_UINT64): likewise
39150 * include/grub/memory.h: new file
39151 * mmap/i386/pc/mmap.c: likewise
39152 * mmap/i386/pc/mmap_helper.S: likewise
39153 * mmap/i386/uppermem.c: likewise
39154 * mmap/mmap.c: likewise
39155 * mmap/efi/mmap.c: likewise
39156 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39158 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39159 (grub_upper_mem): likewise
39160 (grub_machine_init): don't use grub_upper_mem,
39161 make grub_lower_mem local
39162 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39163 grub_mmap_iterate and grub_mmap_get_upper
39164 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39166 2009-05-02 Bean <bean123ch@gmail.com>
39168 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39169 script/sh/parser.y.
39170 (pkglib_MODULES): Add normal.mod and sh.mod.
39171 (normal_SOURCES): New variable.
39172 (normal_mod_CFLAGS): Likewise.
39173 (normal_mod_LDFLAGS): Likewise.
39174 (sh_mod_SOURCES): Likewise.
39175 (sh_mod_CFLAGS): Likewise.
39176 (sh_mod_LDFLAGS): Likewise.
39178 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39179 script/sh/lexer.c_DEPENDENCIES.
39180 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39181 kern/rescue_reader.c and kern/rescue_parser.c.
39182 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39183 (grub_emu_SOURCES): Change source files.
39184 (pkglib_MODULES): Remove normal.mod.
39185 (normal_SOURCES): Removed.
39186 (normal_mod_CFLAGS): Likewise.
39187 (normal_mod_LDFLAGS): Likewise.
39188 * conf/i386-coreboot.rmk: Likewise.
39189 * conf/i386-efi.rmk: Likewise.
39190 * conf/i386-ieee1276.rmk: Likewise.
39191 * conf/powerpc-ieee1275.rmk: Likewise.
39192 * conf/sparc64-ieee1275.rmk: Likewise.
39193 * conf/x86_64-efi.rmk: Likewise.
39195 * include/grub/command.h (grub_command_execute): New inline function.
39197 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39199 * include/grub/normal.h: Remove <grub/setjmp.h>.
39200 (grub_fs_module_list): Moved to normal/autofs.c.
39201 (grub_exit_env): Removed.
39202 (grub_command_execute): Likewise.
39203 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39205 (read_command_list): New function declaration.
39206 (read_fs_list): Likewise.
39208 * include/parser.h: Include <grub/reader.h>.
39209 (grub_parser_split_cmdline): Change type of getline parameter.
39210 (grub_parser): New structure.
39211 (grub_parser_class): New variable.
39212 (grub_parser_execute): New function declaration.
39213 (grub_register_rescue_parser): Likewise.
39214 (grub_parser_register): New inline function.
39215 (grub_parser_unregister): Likewise.
39216 (grub_parser_get_current): Likewise.
39217 (grub_parser_set_current): Likewise.
39219 * include/grub/reader.h: New file.
39220 * kern/reader.c: Likewise.
39221 * kern/rescue_parser.c: Likewise.
39222 * kern/rescue_reader.c: Likewise.
39223 * normal/autofs.c: Likewise.
39224 * normal/dyncmd.c: Likewise.
39226 * include/grub/rescue.h: Removed.
39227 * normal/command.h: Likewise.
39229 * include/grub/script.h: Moved to ...
39230 * include/grub/script_sh.h: ... Moved here.
39231 * normal/execute.c: Moved to ...
39232 * script/sh/execute.c: ... Moved here.
39233 * normal/function.c: Moved to ...
39234 * script/sh/function.c: ... Moved here.
39235 * normal/lexer.c: Moved to ...
39236 * script/sh/lexer.c: ... Moved here.
39237 * normal/parser.y: Moved to ...
39238 * script/sh/parser.y: ... Moved here.
39239 * normal/script.c: Moved to ...
39240 * script/sh/script.c: ... Moved here.
39242 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39244 (grub_exit_env): Removed.
39245 (fs_module_list): Moved to normal/autofs.c.
39246 (grub_file_getline): Don't handle comment here.
39247 (free_menu): Skip removed field entry->commands.
39248 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39250 (read_config_file): Removed nested parameter, change getline function.
39251 (grub_enter_normal_mode): Removed.
39252 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39253 (read_command_list): Likewise.
39254 (autoload_fs_module): Moved to normal/autofs.c.
39255 (read_fs_list): Likewise.
39256 (reader_nested): New variable.
39257 (grub_normal_execute): Run parser.sh to switch to sh parser.
39258 (grub_cmd_rescue): Removed.
39259 (cmd_normal): Removed.
39260 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39262 (grub_cmdline_run): New function.
39263 (grub_normal_reader_init): Likewise.
39264 (grub_normal_read_line): Likewise.
39265 (grub_env_write_pager): Likewise.
39266 (cmdline): New variable.
39267 (grub_normal_reader): Likewise.
39268 (GRUB_MOD_INIT): Register normal reader and set as current, register
39269 pager hook, register normal command with grub_register_command_prio,
39270 so that it won't show up in command.lst.
39271 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39272 grub_fs_autoload_hook.
39274 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39275 (grub_menu_execute_entry): Replace grub_script_execute with
39276 grub_parser_execute, change parameter to grub_command_execute.
39278 * normal/menu_text.c: Remove <grub/script.h>.
39280 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39281 and <grub/parser.h>.
39282 (run): Change editor_getline to use new parser interface. Change
39283 parameter to grub_command_execute.
39285 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39286 <grub/reader.h> and <grub/parser.h>.
39287 (grub_load_normal_mode): Execute normal command.
39288 (grub_main): Call grub_register_core_commands,
39289 grub_register_rescue_parser and grub_register_rescue_reader, use
39290 grub_reader_loop to enter input loop.
39292 * kern/parser.c (grub_parser_split_cmdline): Change type of
39294 (grub_parser_class): New variable.
39295 (grub_parser_execute): New function.
39297 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39298 * loader/multiboot2.c: Likewise.
39299 * loader/sparc64/ieee1275/linux.c: Likewise.
39301 * util/grub-emu.c (read_command_list): New dummy function.
39303 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39305 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39306 count to 16 for CCISS and IDA.
39308 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39310 * normal/menu_text.c (grub_wait_after_message): Print a newline
39311 after waiting for user input.
39313 * loader/i386/linux.c: Include `<grub/normal.h>'.
39314 (grub_cmd_linux): Improve the error message about `ask' mode, by
39315 waiting for user input so it's not missed (we can do this, since
39316 user requested interaction).
39318 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39320 Added missing lst to grub-mkrescue
39322 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39323 and ${input_dir}/parttool.lst
39325 2009-04-30 David S. Miller <davem@davemloft.net>
39327 * util/hostdisk.c (device_is_wholedisk): New function.
39328 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39329 zero only if device_is_wholedisk() returns true.
39331 * util/hostdisk.c (convert_system_partition_to_system_disk):
39332 Handle virtual disk devices named /dev/vdiskX as found on sparc
39335 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39336 lettered partition specifier is found, convert to numbered.
39338 2009-04-29 David S. Miller <davem@davemloft.net>
39340 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39341 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39343 * normal/command.c: Add missing newline at end of file.
39345 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39347 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39348 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39349 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39350 ihandles have a 32-bit type but need to be stored in a "void *".
39352 2009-04-28 Pavel Roskin <proski@gnu.org>
39354 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39355 not disk. Adjust all dependencies.
39356 (grub_fs_uuid_close): Use grub_device_close(), not
39359 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39360 parent's partition, don't copy it by reference, as it gets freed
39363 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39365 Preboot hooks support
39367 * commands/boot.c (struct grub_preboot_t): new declaration
39368 (preboots_head): new variable
39369 (preboots_tail): likewise
39370 (grub_loader_register_preboot_hook): new function
39371 (grub_loader_unregister_preboot_hook): likewise
39372 (grub_loader_set): launch preboot hooks
39373 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39374 (grub_loader_register_preboot_hook): new declaration
39375 (grub_loader_unregister_preboot_hook): likewise
39377 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39381 * disk/scsi.c (grub_scsi_open): added missing cast when
39382 calling grub_dprintf
39384 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39386 Bug and warning fixes
39388 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39390 * commands/test.c (test_parse): fixed bug with file tests and corrected
39391 declaration of find_file
39393 2009-04-26 Pavel Roskin <proski@gnu.org>
39395 * Makefile.in: Don't install empty manual pages if help2man is
39396 missing. Use help2man option for output, not shell redirection.
39398 2009-04-26 David S. Miller <davem@davemloft.net>
39400 * util/grub-mkdevicemap.c (make_device_map): Add missing
39401 NESTED_FUNC_ATTR to process_device().
39403 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39407 * commands/test.c: rewritten to use bash-like test
39409 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39411 Parttool autoloading and improvements
39413 * Makefile.in (pkglib_DATA): add parttool.lst
39414 (parttool.lst): new target
39415 * genmk.rb: generate parttool-*
39416 (CLEANFILES): add #{parttool}
39417 (PARTTOOLFILES): new variable
39418 * genparttoollist.sh: new file
39419 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39420 (grub_pcpart_type): likewise
39421 * commands/parttool.c (helpmsg): new variable
39422 (grub_cmd_parttool): output help if not enough arguments are supplied
39424 (GRUB_MOD_INIT(parttool)): use helpmsg
39426 2009-04-24 David S. Miller <davem@davemloft.net>
39428 Avoiding opening same device multiple times in device iterator.
39430 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39431 and use it to build a list of partitions in iterate_disk() and
39432 iterate_partition().
39434 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39437 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39438 grub_devalias_iterate() result instead of unconditional 0.
39439 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39440 Also, capture hook return value, either directly or via
39441 grub_children_iterate(), and propagate to caller.
39442 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39443 grub_children_iterate): Return value is now 'int' instead of
39445 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39446 like a proper iterator, stopping when hooks return non-zero.
39447 (grub_devalias_iterate): Likewise.
39449 2009-04-23 David S. Miller <davem@davemloft.net>
39451 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39453 2009-04-22 David S. Miller <davem@davemloft.net>
39455 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39456 is larger than address_cells, use that value for address_cells too.
39458 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39459 IEEE1275_MAX_PATH_LEN): Define.
39460 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39461 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39462 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39463 'devtype'. Explicitly NULL terminate devalias expansion.
39465 * util/sparc64/ieee1275/misc.c: New file.
39466 * util/sparc64/ieee1275/grub-setup.c: New file.
39467 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39468 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39469 * util/sparc64/ieee1275/grub-install.in: New file.
39470 * util/ieee1275/ofpath.c: New file.
39471 * util/ieee1275/devicemap.c: New file.
39472 * util/devicemap.c: New file.
39473 * util/deviceiter.c: New file.
39474 * kern/sparc64/ieee1275/init.c: New file.
39475 * include/grub/util/ofpath.h: New file.
39476 * include/grub/util/deviceiter.h: New file.
39477 * util/grub-mkdevicemap.c: Include deviceiter.h.
39478 Implement using grub_util_emit_devicemap_entry and
39479 grub_util_iterate_devices.
39480 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39481 util/devicemap.c into grub-mkdevicemap
39482 * conf/i386-efi.rmk: Likewise.
39483 * conf/i386-ieee1275.rmk: Likewise.
39484 * conf/i386-pc.rmk: Likewise.
39485 * conf/powerpc-ieee1275.rmk: Likewise.
39486 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39487 images and installation utilities. Build kernel as image
39488 instead of as elf binary. Use common rules as much as possible.
39490 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39492 Correct GPT definition
39494 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39497 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39499 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39501 2009-04-19 David S. Miller <davem@davemloft.net>
39503 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39504 (grub_rescue_cmd_linux): Rename to...
39505 (grub_cmd_linux): and fix prototype.
39506 (grub_rescue_cmd_initrd): Rename to...
39507 (grub_cmd_initrd): and fix prototype.
39508 (cmd_linux, cmd_initrd): New.
39509 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39510 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39512 2009-04-17 Pavel Roskin <proski@gnu.org>
39514 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39516 (grub_ohci_transfer): Likewise.
39518 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39520 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39521 return without a value. Fix inconsistent indentation.
39523 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39524 match struct grub_fs.
39526 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39527 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39528 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39529 * commands/lspci.c (grub_lspci_iter): Likewise.
39531 2009-04-16 Bean <bean123ch@gmail.com>
39533 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39536 2009-04-15 Pavel Roskin <proski@gnu.org>
39538 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39539 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39540 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39543 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39545 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39546 that no multiple data or metadata areas are supported and `Unknown
39549 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39551 Move loader out of the kernel
39553 * kern/loader.c: moved to ...
39554 * commands/boot.c: ... moved here
39555 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39556 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39557 * include/grub/kernel.h (grub_machine_fini): export
39558 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39559 (grub_loader_set): likewise
39560 (grub_loader_unset): likewise
39561 (grub_loader_boot): likewise
39562 * conf/common.rmk: new module boot.mod
39563 (pkglib_MODULES): add boot.mod
39564 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39565 (grub_emu_SOURCES): likewise
39566 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39567 (grub_emu_SOURCES): likewise
39568 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39569 (grub_emu_SOURCES): likewise
39570 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39571 (grub_emu_SOURCES): likewise
39572 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39573 (grub_emu_SOURCES): likewise
39574 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39575 (grub_emu_SOURCES): likewise
39576 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39577 (grub_emu_SOURCES): likewise
39579 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39581 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39583 * kern/misc.c (grub_itoa): Removed function
39584 (grub_ltoa): likewise
39585 (grub_vsprintf): use grub_lltoa
39587 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39591 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39592 * conf/i386-coreboot.rmk: likewise
39593 * conf/i386-ieee1275.rmk: likewise
39594 * conf/powerpc-ieee1275.rmk: likewise
39596 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39598 * INSTALL: Add that `./autogen.sh' needs to be run before
39601 2009-04-14 Bean <bean123ch@gmail.com>
39603 * Makefile.in (pkglib_DATA): Add handler.lst.
39604 (handler.lst): New rule.
39606 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39607 * conf/i386-coreboot.rmk: Likewise.
39608 * conf/i386-ieee1275.rmk: Likewise.
39609 * conf/i386-efi.rmk: Likewise.
39610 * conf/x86_64-efi.rmk: Likewise.
39611 * conf/powerpc-ieee1275.rmk: Likewise.
39612 * conf/sparc64-ieee1275.rmk: Likewise.
39614 * genhandlerlist.sh: New file.
39616 * genmk.rb: Add rules to generate handler.lst.
39618 * include/grub/normal.h (grub_file_getline): New function definition.
39619 (read_handler_list): Likewise.
39620 (free_handler_list): Likewise.
39622 * include/grub/term.h (grub_term_register_input): Add name parameter
39623 for auto generation of handler.lst.
39624 (grub_term_register_output): Likewise.
39626 * normal/handler.c: New file.
39628 * normal/main.c (get_line): Renamed to grub_file_getline.
39629 (read_config_file): Use the newly renamed grub_file_getline.
39630 (read_command_list): Likewise.
39631 (read_fs_list): Likewise.
39632 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39633 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39635 * term/efi/console.c (grub_console_init): Add name parameter for auto
39636 generation of handler.lst.
39637 * term/gfxterm.c: Likewise.
39638 * term/i386/pc/at_keyboard.c: Likewise.
39639 * term/i386/pc/console.c: Likewise.
39640 * term/i386/pc/serial.c: Likewise.
39641 * term/i386/pc/vesafb.c: Likewise.
39642 * term/i386/pc/vga.c: Likewise.
39643 * term/i386/pc/vga_text.c: Likewise.
39644 * term/ieee1275/ofconsole.c: Likewise.
39645 * term/usb_keyboard.c: Likewise.
39647 2009-04-14 Bean <bean123ch@gmail.com>
39649 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39650 properly with null character.
39652 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39654 * configure: Remove.
39655 * config.h.in: Likewise.
39656 * stamp-h.in: Likewise.
39657 * DISTLIST: Likewise.
39658 * conf/common.mk: Likewise.
39659 * conf/i386-coreboot.mk: Likewise.
39660 * conf/i386-efi.mk: Likewise.
39661 * conf/i386-ieee1275.mk: Likewise.
39662 * conf/i386.mk: Likewise.
39663 * conf/i386-pc.mk: Likewise.
39664 * conf/powerpc-ieee1275.mk: Likewise.
39665 * conf/sparc64-ieee1275.mk: Likewise.
39666 * conf/x86_64-efi.mk: Likewise.
39668 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39671 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39672 David S. Miller <davem@davemloft.net>
39674 * util/hostdisk.c (make_device_name): Fix buffer length
39677 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39679 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39680 <sys/param.h> and <sys/sysctl.h>.
39681 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39682 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39683 opening the device and reset them afterwards.
39685 2009-04-13 Pavel Roskin <proski@gnu.org>
39687 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39688 Reported by John Stanley <jpsinthemix@verizon.net>
39690 2009-04-13 Robert Millan <rmh@aybabtu.com>
39692 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39693 that name for menuentries when appropriate.
39695 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39697 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39699 2009-04-13 Robert Millan <rmh@aybabtu.com>
39701 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39702 to Linux, simply abort telling the user it's no longer supported.
39704 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39706 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39707 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39708 `freebsd_loadenv' only when devices.hints exist.
39710 2009-04-13 Pavel Roskin <proski@gnu.org>
39712 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39714 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39716 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39718 (grub_drive): Likewise.
39720 2009-04-13 David S. Miller <davem@davemloft.net>
39722 * kern/sparc64/ieee1275/ieee1275.c: New file.
39723 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39724 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39725 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39726 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39727 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39728 grub_ieee1275_alloc_physmem): Declare new exported functions.
39730 * include/grub/sparc64/ieee1275/loader.h: New file.
39731 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39732 * include/grub/sparc64/kernel.h: Likewise.
39733 * loader/sparc64/ieee1275/linux.c: Likewise.
39735 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39736 (grub_fstest_SOURCES): Likewise.
39738 * util/hostdisk.c (make_device_name): Do not make any assumptions
39739 about the length of drive names.
39741 * kern/dl.c (grub_dl_load_file): Close file immediately when
39742 we are done using it.
39744 2009-04-12 David S. Miller <davem@davemloft.net>
39746 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39747 values. Noticed by Pavel Roskin.
39749 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39752 * genmk.rb: Add more flexible image type specification, also
39753 pass --strip-unneeded to objcopy.
39754 * conf/i386-pc.rmk: Use *_FORMAT.
39755 * conf/i386-pc.mk: Rebuilt.
39757 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39758 (OFDISK_HASH_SZ): Define.
39759 (ofdisk_hash): New hash table.
39760 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39761 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39762 instead of device phandle which is not unique.
39764 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39765 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39766 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39767 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39768 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39769 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39770 GRUB_KERNEL_MACHINE_DATA_END): Define.
39771 (grub_kernel_image_size, grub_total_module_size): Declare.
39773 2009-04-12 Pavel Roskin <proski@gnu.org>
39775 * configure.ac: Change the logic when we check for target tools.
39776 Do it when the target is specified and it's different from the
39777 specified value of the host.
39779 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39781 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39782 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39783 GNU/kFreeBSD. Check if a device is a character device. Use
39784 DIOCGMEDIASIZE to get the size.
39785 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39786 support for GNU/kFreeBSD.
39787 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39788 is a character device instead of a block device. Add support for
39789 FreeBSD device names.
39791 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39792 is a character device instead of a block device.
39794 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39795 is a character device instead of a block device.
39797 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39799 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39800 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39801 FreeBSD. Check if a device is a character device. Use
39802 DIOCGMEDIASIZE to get the size.
39803 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39804 support for FreeBSD.
39805 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39806 is a character device instead of a block device. Add support for
39807 FreeBSD device names.
39809 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39810 a character device instead of a block device.
39811 (grub_util_check_char_device): New function.
39813 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39814 a character device instead of a block device.
39816 * include/grub/util/getroot.h (grub_util_check_char_device): New
39819 2009-04-11 David S. Miller <davem@davemloft.net>
39821 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39823 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39824 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39825 function, if present.
39826 (__bswapdi2): Likewise.
39828 * include/grub/sparc64/ieee1275/boot.h: New file.
39829 * boot/sparc64/ieee1275/boot.S: Likewise.
39830 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39832 * kern/misc.c (grub_ltoa): New function.
39833 (grub_vsprintf): Use it to format 'long' integers.
39835 2009-04-10 David S. Miller <davem@davemloft.net>
39837 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39838 slots are of type grub_ieee1275_cell_t.
39839 (grub_nand_read): Likewise.
39840 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39841 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39842 macros are used to compare values in arg/ret block of the call.
39843 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39844 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39845 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39846 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39847 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39848 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39849 grub_ieee1275_close, grub_ieee1275_set_property,
39850 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39851 grub_ieee1275_cell_t.
39852 * kern/ieee1275/openfw.c (grub_map): Likewise.
39853 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39854 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39856 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39857 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39858 (grub_devalias_iterate): Likewise.
39860 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39864 * fs/ufs.c (INODE_NBLOCKS): new definition
39865 (struct grub_ufs_dirent): added fields for non-BSD dirents
39866 (grub_ufs_get_file_block): fixed double indirect handling
39867 (grub_ufs_lookup_symlink): use more robust way to determine whether
39869 (grub_ufs_find_file): support for non-BSD dirents
39870 (grub_ufs_dir): support for non-BSD dirents
39872 2009-04-10 Bean <bean123ch@gnail.com>
39874 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39875 attribute, otherwise the size would be wrong for i386 platform.
39877 * include/grub/pci.h (grub_pci_read_word): New inline function.
39878 (grub_pci_read_byte): Likewise.
39879 (grub_pci_write): Likewise.
39880 (grub_pci_write_word): Likewise.
39881 (grub_pci_write_byte): Likewise.
39883 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39885 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39886 (find_framebuf): Scan pci to locate the frame buffer address.
39888 * commands/efi/fixvideo.c: New file.
39890 * commands/efi/loadbios.c: Likewise.
39892 * commands/memrw.c: Likewise.
39894 * util/grub-dumpbios.in: Likewise.
39896 * conf/common.rmk (grub-dumpbios): New utility.
39897 (pkglib_MODULES): New module memrw.mod.
39898 (memrw_mod_SOURCE): New macro.
39899 (memrw_mod_CFLAGS): Likewise.
39900 (memrw_mod_LDFLAGS): Likewise.
39902 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39904 (loadbios_mod_SOURCE): New macro.
39905 (loadbios_mod_CFLAGS): Likewise.
39906 (loadbios_mod_LDFLAGS): Likewise.
39907 (fixvideo_mod_SOURCE): Likewise.
39908 (fixvideo_mod_CFLAGS): Likewise.
39909 (fixvideo_mod_LDFLAGS): Likewise.
39911 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39913 (loadbios_mod_SOURCE): New macro.
39914 (loadbios_mod_CFLAGS): Likewise.
39915 (loadbios_mod_LDFLAGS): Likewise.
39916 (fixvideo_mod_SOURCE): Likewise.
39917 (fixvideo_mod_CFLAGS): Likewise.
39918 (fixvideo_mod_LDFLAGS): Likewise.
39920 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39922 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39924 2009-04-07 David S. Miller <davem@davemloft.net>
39926 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39927 support for R_SPARC_OLO10 relocations. Fix compile warning for
39928 R_SPARC_WDISP30 case.
39929 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39931 2009-04-06 Pavel Roskin <proski@gnu.org>
39933 * include/grub/misc.h (ARRAY_SIZE): New macro.
39934 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39936 * loader/i386/linux.c (allocate_pages): Use free_pages().
39937 (grub_linux_unload): Don't use free_pages().
39938 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39939 wrong index. Treat all other modes as text modes.
39940 (grub_cmd_linux): Initialize vid_mode unconditionally to
39941 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39943 * commands/help.c (print_command_help): Use cmd->prio, not
39944 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39946 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39950 * parttool/pcpart.c: new file
39951 * commands/parttool.c: likewise
39952 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39953 (parttool_mod_SOURCES): new variable
39954 (parttool_mod_CFLAGS): likewise
39955 (parttool_mod_LDFLAGS): likewise
39956 (pcpart_mod_SOURCES): likewise
39957 (pcpart_mod_CFLAGS): likewise
39958 (pcpart_mod_LDFLAGS): likewise
39959 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39960 and parttool/pcpart.c
39961 * conf/i386-efi.rmk: likewise
39962 * conf/i386-ieee1275.rmk: likewise
39963 * conf/i386-pc.rmk: likewise
39964 * conf/powerpc-ieee1275.rmk: likewise
39965 * conf/sparc64-ieee1275.rmk: likewise
39966 * conf/x86_64-ieee1275.rmk: likewise
39968 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39970 Support for mtime and further expandability of dir command
39972 * include/grub/lib/datetime.h: moved to ...
39973 * include/grub/datetime.h: ... moved here and added
39974 declaration of grub_unixtime2datetime. All users updated
39975 * include/grub/fs.h: new syntax for dir and mtime functions in
39977 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39978 and GRUB_FSHELP_FLAGS_MASK
39979 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39980 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39981 (grub_ext2_mtime): new function
39982 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39983 (grub_hfsplus_mtime): new function
39984 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39985 (GRUB_UFS_ATTR_FILE): likewise
39986 (GRUB_UFS_ATTR_LNK): likewise
39987 (struct grub_ufs_sblock): new fields mtime
39988 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39990 (grub_ufs_dir): mtime support
39991 (grub_ufs_mtime): new function
39992 * fs/affs.c (grub_affs_dir): use new dir syntax
39993 * fs/afs.c (grub_afs_dir): likewise
39994 * fs/cpio.c (grub_cpio_dir): likewise
39995 * fs/fat.c (grub_fat_find_dir): likewise
39996 * fs/hfs.c (grub_hfs_dir): likewise
39997 * fs/iso9660.c (grub_iso9660_dir): likewise
39998 * fs/jfs.c (grub_jfs_dir): likewise
39999 * fs/minix.c (grub_minix_dir): likewise
40000 * fs/ntfs.c (grub_ntfs_dir): likewise
40001 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40002 * fs/sfs.c (grub_sfs_dir): likewise
40003 * fs/xfs.c (grub_xfs_dir): likewise
40004 * util/hostfs.c (grub_hostfs_dir): likewise
40005 * lib/datetime.c: moved to ...
40006 * normal/datetime.c: ... moved here
40007 (grub_unixtime2datetime): new function
40008 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40009 * normal/completion.c (iterate_dir): use new dir syntax
40010 * normal/misc.c (grub_normal_print_device_info): tell the
40011 last modification time of a volume
40012 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40013 * conf/common.rmk: added lib/datetime.c to ls.mod
40014 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40015 (normal_mod_SOURCES): likewise
40016 (datetime_mod_SOURCES): Removed lib/datetime.c
40017 * conf/i386-efi.rmk: likewise
40018 * conf/i386-ieee1275.rmk: likewise
40019 * conf/i386-pc.rmk: likewise
40020 * conf/powerpc-ieee1275.rmk: likewise
40021 * conf/sparc64-ieee1275.rmk: likewise
40022 * conf/x86_64-efi.rmk: likewise
40024 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40026 Trim trailing spaces in FAT label and support mtools-like labels
40028 * fs/fat.c (grub_fat_iterate_dir): New function based
40029 on grub_fat_find_dir
40030 (grub_fat_find_dir): use grub_fat_iterate_dir
40031 (grub_fat_label): likewise
40033 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40035 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40037 remove extraneous kernel_elf_HEADERS
40039 2009-04-04 Bean <bean123ch@gnail.com>
40041 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40043 * util/misc.c: Likewise.
40045 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40047 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40048 instead of grub_printf.
40050 2009-04-03 Robert Millan <rmh@aybabtu.com>
40052 * loader/i386/linux.c (grub_linux_setup_video): Fill
40053 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40054 values from `mode info' structure instead of hardcoded
40057 2009-04-01 Pavel Roskin <proski@gnu.org>
40059 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40061 * genmk.rb: Likewise.
40062 * configure.ac: Likewise.
40064 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40066 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40067 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40069 2009-04-01 David S. Miller <davem@davemloft.net>
40071 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40072 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40073 (grub_setjmp): Mark with 'returns_twice' attribute.
40074 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40075 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40076 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40078 2009-04-01 Robert Millan <rmh@aybabtu.com>
40080 Reapply fix from 2008-07-28 which was accidentally reverted; also
40081 perform the same fix to a similar check in same function.
40083 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40084 with the same number are found, just use issue a warning with
40085 grub_dprintf(), as this error has been reported to be non-fatal.
40087 2009-03-31 Pavel Roskin <proski@gnu.org>
40089 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40090 for cross-compilation.
40092 2009-03-30 Robert Millan <rmh@aybabtu.com>
40094 Fix i386-ieee1275 build.
40096 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40097 Remove declaration.
40099 2009-03-30 Pavel Roskin <proski@gnu.org>
40101 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40102 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40103 zero-terminated, rely only on the strlen value. Fix comparison
40104 of strings differing in length.
40106 2009-03-30 Robert Millan <rmh@aybabtu.com>
40108 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40109 checking for abi version. Improve error messages on BIOS to notify
40110 user about `linux16' command.
40112 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40116 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40117 in case of collision
40118 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40120 2009-03-29 Robert Millan <rmh@aybabtu.com>
40122 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40123 set `vid_mode' accordingly.
40124 (grub_linux_boot): Process `vid_mode' and set video mode.
40126 2009-03-29 Robert Millan <rmh@aybabtu.com>
40128 * util/grub.d/10_linux.in (linux_entry): New function.
40129 Factorize generation of Linux boot entries.
40131 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40133 Make the format of Environment Block plain text. The boot loader
40134 part is not tested well yet.
40136 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40138 (envblk): Likewise.
40139 (usage): Remove "info" and "clear". Add "unset". Update the
40140 description of "set", as this does not delete variables any
40142 (create_envblk_file): Complete rewrite.
40143 (open_envblk_file): Likewise.
40144 (cmd_info): Removed.
40145 (cmd_list): Likewise.
40146 (cmd_set): Likewise.
40147 (cmd_clear): Likewise.
40148 (list_variables): New function.
40149 (write_envblk): Likewise.
40150 (set_variables): Likewise.
40151 (unset_variables): Likewise.
40152 (main): Complete rewrite.
40154 * commands/loadenv.c (buffer): Removed.
40155 (envblk): Likewise.
40156 (open_envblk_file): New function.
40157 (read_envblk_file): Complete rewrite.
40158 (grub_cmd_load_env): Likewise.
40159 (grub_cmd_list_env): Likewise.
40160 (struct blocklist): New struct.
40161 (free_blocklists): New function.
40162 (check_blocklists): Likewise.
40163 (write_blocklists): Likewise.
40164 (grub_cmd_save_env): Complete rewrite.
40166 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40167 a plain text signature.
40168 (GRUB_ENVBLK_MAXLEN): Removed.
40169 (struct grub_envblk): Complete rewrite.
40170 (grub_envblk_find): Removed.
40171 (grub_envblk_insert): Likewise.
40172 (grub_envblk_open): New prototype.
40173 (grub_envblk_set): Likewise.
40174 (grub_envblk_delete): Put const to VALUE.
40175 (grub_envblk_iterate): Put const to NAME and VALUE.
40176 (grub_envblk_close): New prototype.
40177 (grub_envblk_buffer): New inline function.
40178 (grub_envblk_size): Likewise.
40180 * lib/envblk.c: Include grub/mm.h.
40181 (grub_env_find): Removed.
40182 (grub_envblk_open): New function.
40183 (grub_envblk_close): Likewise.
40184 (escaped_value_len): Likewise.
40185 (find_next_line): Likewise.
40186 (grub_envblk_insert): Removed.
40187 (grub_envblk_set): New function.
40188 (grub_envblk_delete): Complete rewrite.
40189 (grub_envblk_iterate): Likewise.
40191 2009-03-28 Robert Millan <rmh@aybabtu.com>
40193 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40194 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40195 variables. Use 16-bit loader.
40196 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40198 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40199 (grub_linux16_boot): ... this. Update all users.
40200 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40201 (grub_linux_boot): ... this. Update all users.
40203 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40204 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40205 commands to `linux16' and `initrd16'.
40206 (GRUB_MOD_FINI(linux)): Rename to ...
40207 (GRUB_MOD_FINI(linux16)): ... this.
40209 2009-03-24 Pavel Roskin <proski@gnu.org>
40211 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40212 not just for compilation.
40214 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40216 Move multiboot helper out of kernel
40218 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40219 `loader/i386/multiboot_helper.S'.
40220 * conf/i386-coreboot.rmk: Likewise
40221 * conf/i386-ieee1275.rmk: Likewise
40223 * kern/i386/loader.S: Move multiboot helpers from here...
40224 * loader/i386/multiboot_helper.S: ...moved here
40225 * include/grub/i386/loader.h: Move declarations of multiboot
40226 helpers from here...
40227 * include/grub/i386/multiboot.h: ...moved here
40228 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40230 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40232 * kern/env.c (grub_env_context_open): Added an argument to specify
40233 whether a new context inherits exported variables from current
40234 one. This is useful when making a sandbox to interpret a config
40236 All callers updated.
40238 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40240 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40242 * kern/env.c (grub_env_context_close): Fix memory leaks.
40244 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40246 * normal/main.c (grub_normal_execute): Added an argument
40247 BATCH to specify if an interactive interface should be provided
40248 after reading a config file.
40249 All callers updated.
40250 (read_command_list): Prevent being executed twice.
40251 (read_fs_list): Likewise.
40253 * include/grub/normal.h (grub_normal_execute): Updated the
40256 2009-03-22 Pavel Roskin <proski@gno.org>
40258 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40260 * kern/i386/pc/startup.S: Likewise.
40261 * kern/i386/efi/startup.S: Likewise.
40262 * kern/i386/ieee1275/startup.S: Likewise.
40263 * kern/i386/coreboot/startup.S: Likewise.
40264 * kern/x86_64/efi/startup.S: Likewise.
40266 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40267 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40268 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40270 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40272 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40274 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40276 Use vaddr of correct segment for entry_point.
40278 2009-03-21 Bean <bean123ch@gmail.com>
40280 * commands/blocklist.c: Add include file <grub/command.h>, remove
40281 <grub/normal.h> and <grub/arg.h>.
40282 (grub_cmd_blocklist): Use the new command interface.
40283 (GRUB_MOD_INIT): Likewise.
40284 (GRUB_MOD_FINI): Likewise.
40285 * commands/boot.c: Likewise.
40286 * commands/cat.c: Likewise.
40287 * commands/cmp.c: Likewise.
40288 * commands/configfile.c: Likewise.
40289 * commands/crc.c: Likewise.
40290 * commands/echo.c: Likewise.
40291 * commands/halt.c: Likewise.
40292 * commands/handler.c: Likewise.
40293 * commands/hdparm.c: Likewise.
40294 * commands/help.c: Likewise.
40295 * commands/hexdump.c: Likewise.
40296 * commands/loadenv.c: Likewise.
40297 * commands/ls.c: Likewise.
40298 * commands/lsmmap.c: Likewise.
40299 * commands/lspci.c: Likewise.
40300 * commands/loadenv.c: Likewise.
40301 * commands/read.c: Likewise.
40302 * commands/reboot.c: Likewise.
40303 * commands/search.c: Likewise.
40304 * commands/sleep.c: Likewise.
40305 * commands/test.c: Likewise.
40306 * commands/usbtest.c: Likewise.
40307 * commands/videotest.c: Likewise.
40308 * commands/i386/cpuid.c: Likewise.
40309 * commands/i386/pc/halt.c: Likewise.
40310 * commands/i386/pc/play.c: Likewise.
40311 * commands/i386/pc/pxecmd.c: Likewise.
40312 * commands/i386/pc/vbeinfo.c: Likewise.
40313 * commands/i386/pc/vbetest.c: Likewise.
40314 * commands/ieee1275/suspend.c: Likewise.
40315 * disk/loopback.c: Likewise.
40316 * font/font_cmd.c: Likewise.
40317 * hello/hello.c: Likewise.
40318 * loader/efi/appleloader.c: Likewise.
40319 * loader/efi/chainloader.c: Likewise.
40320 * loader/i386/bsd.c: Likewise.
40321 * loader/i386/efi/linux.c: Likewise.
40322 * loader/i386/ieee1275/linux.c: Likewise.
40323 * loader/i386/linux.c: Likewise.
40324 * loader/i386/pc/chainloader.c: Likewise.
40325 * loader/i386/pc/linux.c: Likewise.
40326 * loader/powerpc/ieee1275/linux.c: Likewise.
40327 * loader/multiboot_loader.c: Likewise.
40328 * term/gfxterm.c: Likewise.
40329 * term/i386/pc/serial.c: Likewise.
40330 * term/terminfo.c: Likewise.
40332 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40333 * term/i386/pc/vga.c: Likewise.
40334 * video/readers/jpeg.c: Likewise.
40335 * video/readers/png.c: Likewise.
40336 * video/readers/tga.c: Likewise.
40338 * util/grub-fstest (cmd_loopback): Removed.
40339 (cmd_blocklist): Likewise.
40340 (cmd_ls): Likewise.
40341 (grub_register_command): Likewise.
40342 (grub_unregister_command): Likewise.
40343 (execute_command): Use grub_command_find to locate command and execute
40346 * include/grub/efi/chainloader.h: Removed.
40347 * loader/efi/chainloader_normal.c: Likewise.
40348 * loader/i386/bsd_normal.c: Likewise.
40349 * loader/i386/pc/chainloader_normal.c: Likewise.
40350 * loader/i386/pc/multiboot_normal.c: Likewise.
40351 * loader/linux_normal.c: Likewise.
40352 * loader/multiboot_loader_normal.c: Likewise.
40353 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40355 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40356 and grub_register_command_p1.
40358 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40359 kern/command.c, lib/arg.c and commands/extcmd.c.
40360 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40361 (minicmd_mod_SOURCES): New variable.
40362 (minicmd_mod_CFLAGS): Likewise.
40363 (minicmd_mod_LDFLAGS): Likewise.
40364 (extcmd_mod_SOURCES): Likewise.
40365 (extcmd_mod_CFLAGS): Likewise.
40366 (extcmd_mod_LDFLAGS): Likewise.
40367 (boot_mod_SOURCES): Removed.
40368 (boot_mod_CFLAGS): Likewise.
40369 (boot_mod_LDFLAGS): Likewise.
40371 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40373 (kernel_img_HEADERS): Add command.h.
40374 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40375 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40377 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40378 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40379 remove the corresponding normal mode command.
40380 (normal_mod_SOURCES): Remove normal/arg.c.
40381 * conf/i386-coreboot.rmk: Likewise.
40382 * conf/i386-efi.rmk: Likewise.
40383 * conf/i386-ieee1275.rmk: Likewise.
40384 * conf/powerpc-ieee1275.rmk: Likewise.
40385 * conf/x86_64-efi.rmk: Likewise.
40387 * include/grub/arg.h: Move from here ...
40388 * include/grub/lib/arg.h: ... to here.
40390 * normal/arg.c: Move from here ...
40391 * lib/arg.c: ... to here.
40393 * commands/extcmd.c: New file.
40394 * commands/minicmd.c: Likewise.
40395 * include/grub/command.h: Likewise.
40396 * include/grub/extcmd.h: Likewise.
40397 * kern/command.c: Likewise.
40398 * kern/corecmd.c: Likewise.
40400 * kern/list.c (grub_list_iterate): Return int instead of void.
40401 (grub_list_insert): New function.
40402 (grub_prio_list_insert): Likewise.
40404 * kern/rescue.c (grub_rescue_command): Removed.
40405 (grub_rescue_command_list): Likewise.
40406 (grub_rescue_register_command): Likewise.
40407 (grub_rescue_unregister_command): Likewise.
40408 (grub_rescue_cmd_boot): Move to minicmd.c
40409 (grub_rescue_cmd_help): Likewise.
40410 (grub_rescue_cmd_info): Likewise.
40411 (grub_rescue_cmd_boot): Likewise.
40412 (grub_rescue_cmd_testload): Likewise.
40413 (grub_rescue_cmd_dump): Likewise.
40414 (grub_rescue_cmd_rmmod): Likewise.
40415 (grub_rescue_cmd_lsmod): Likewise.
40416 (grub_rescue_cmd_exit): Likewise.
40417 (grub_rescue_print_devices): Moved to corecmd.c.
40418 (grub_rescue_print_files): Likewise.
40419 (grub_rescue_cmd_ls): Likewise.
40420 (grub_rescue_cmd_insmod): Likewise.
40421 (grub_rescue_cmd_set): Likewise.
40422 (grub_rescue_cmd_unset): Likewise.
40423 (attempt_normal_mode): Use grub_command_find to get normal module.
40424 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40425 commands, remove grub_rescue_register_command calls.
40427 * normal/command.c (grub_register_command): Removed.
40428 (grub_unregister_command): Likewise.
40429 (grub_command_find): Likewise.
40430 (grub_iterate_commands): Likewise.
40431 (rescue_command): Likewise.
40432 (export_command): Moved to corecmd.c.
40433 (set_command): Removed.
40434 (unset_command): Likewise.
40435 (insmod_command): Likewise.
40436 (rmmod_command): Likewise.
40437 (lsmod_command): Likewise.
40438 (grub_command_init): Likewise.
40440 * normal/completion.c (iterate_command): Use cmd->prio to check for
40442 (complete_arguments): Use grub_extcmd_t structure to find options.
40443 (grub_normal_do_completion): Change function grub_iterate_commands to
40444 grub_command_iterate.
40446 * normal/execute.c (grub_script_execute_cmd): No need to parse
40449 * normal/main.c (grub_dyncmd_dispatcher): New function.
40450 (read_command_list): Register unload commands as dyncmd.
40451 (grub_cmd_normal): Use new command interface, register rescue,
40452 unregister normal at entry, register normal, unregister rescue at exit.
40454 * include/grub/list.h (grub_list_test_t): New type.
40455 (grub_list_iterate): Return int instead of void.
40456 (grub_list_insert): New function.
40457 (GRUB_AS_NAMED_LIST_P): New macro.
40458 (GRUB_AS_PRIO_LIST): Likewise.
40459 (GRUB_AS_PRIO_LIST_P): Likewise.
40460 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40461 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40462 (grub_prio_list): New structure.
40463 (grub_prio_list_insert): New function.
40464 (grub_prio_list_remove): New inline function.
40466 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40467 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40468 (GRUB_COMMAND_FLAG_MENU): Likewise.
40469 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40470 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40471 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40472 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40473 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40474 (grub_command): Likewise.
40475 (grub_register_command): Likewise.
40476 (grub_command_find): Likewise.
40477 (grub_iterate_commands): Likewise.
40478 (grub_command_init): Likewise.
40479 (grub_arg_parse): Likewise.
40480 (grub_arg_show_help): Likewise.
40482 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40483 (grub_rescue_unregister_command): Likewise.
40485 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40486 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40487 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40489 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40490 grub_rescue_cmd_initrd.
40491 * include/grub/i386/loader.h: Likewise.
40492 * include/grub/x86_64/loader.h: Likewise.
40494 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40496 2009-03-21 Bean <bean123ch@gmail.com>
40498 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40499 instead of stat in mingw environment.
40501 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40503 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40505 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40508 2009-03-21 Bean <bean123ch@gmail.com>
40510 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40511 out of range error.
40513 2009-03-18 Michel Dänzer <michel@daenzer.net>
40515 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40516 checking inode flags for EXT4_EXTENTS_FLAG.
40518 2009-03-18 Robert Millan <rmh@aybabtu.com>
40520 * loader/i386/linux.c: Include `<grub/video.h>' and
40521 `<grub/i386/pc/vbe.h>'..
40522 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40523 (grub_linux32_boot): Attempt to configure video settings with
40524 grub_linux_setup_video().
40525 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40526 to avoid grub_console_fini() which would step out of graphical mode
40529 2009-03-14 Robert Millan <rmh@aybabtu.com>
40531 Fix build on powerpc.
40532 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40534 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40536 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40537 background image command.
40539 2009-03-12 Colin D Bennett <colin@gibibit.com>
40541 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40542 (grub_gfxterm_putchar): Extract pairs of identical calls to
40543 draw_cursor out of conditional blocks.
40545 2009-03-11 Pavel Roskin <proski@gnu.org>
40547 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40548 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40550 2009-03-11 Robert Millan <rmh@aybabtu.com>
40552 * loader/i386/multiboot_elfxx.c
40553 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40555 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40557 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40560 2009-03-11 Robert Millan <rmh@aybabtu.com>
40562 * loader/i386/multiboot.c (code_size): New variable.
40563 (grub_multiboot): Define offsets by adding to `code_size' rather
40564 than subtracting from `grub_multiboot_payload_size'. Provide
40565 4-byte alignment to MBI and others by increasing
40566 `boot_loader_name_length' appropriately.
40568 * loader/i386/multiboot_elfxx.c
40569 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40571 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40573 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40576 2009-03-08 Robert Millan <rmh@aybabtu.com>
40578 Make loader/i386/linux.c usable on i386-pc again.
40580 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40582 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40585 2009-03-07 Bean <bean123ch@gmail.com>
40587 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40590 2009-03-06 Robert Millan <rmh@aybabtu.com>
40592 Fix display issue on terminals with screen size other than 80x25
40593 (e.g. gfxterm with resolution higher than 640x480).
40595 * normal/main.c (grub_normal_init_page): Display title text in a
40596 position relative to the center of the terminal instead of relying
40597 on a hardcoded offset.
40599 2009-03-04 Robert Millan <rmh@aybabtu.com>
40601 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40604 * Makefile.in (host_kernel): New variable.
40605 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40606 scripts instead of just the windows one.
40607 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40609 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40611 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40613 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40614 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40615 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40617 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40620 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40622 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40623 or if there's no space for the disk label and print the partition number on a
40626 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40628 * util/misc.c: Include <time.h>.
40629 (grub_millisleep): New function.
40631 2009-03-04 Bean <bean123ch@gmail.com>
40633 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40634 another option -mno-red-zone.
40636 * commands/handler.c: Change module description.
40638 * kern/handler.c: Add missing space at the end of description line.
40640 * kern/list.c: Likewise.
40642 2009-03-03 Robert Millan <rmh@aybabtu.com>
40644 Move more components to the relocation area, and fix mbi pointer
40645 handling to use the destination rather than the origin (thanks to
40646 Vladimir Serbinenko for spotting).
40648 * loader/i386/multiboot.c (mbi_dest): New variable.
40649 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40650 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40653 2009-03-01 Bean <bean123ch@gmail.com>
40655 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40656 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40657 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40658 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40660 * loader/i386/efi/linux.c (acpi_guid): New variable.
40661 (acpi_guid): Likewise.
40662 (EBDA_SEG_ADDR): New constant.
40663 (LOW_MEM_ADDR): Likewise.
40664 (FAKE_EBDA_SEG): Likewise.
40665 (fake_bios_data): New function.
40666 (grub_linux_boot): Call fake_bios_data.
40668 2009-03-01 Bean <bean123ch@gmail.com>
40670 * commands/terminal.c: Removed.
40672 * commands/handler.c: New file.
40674 * include/grub/list.h: Likewise.
40676 * include/grub/handler.h: Likewise.
40678 * kern/list.c: Likewise.
40680 * kern/handler.c: Likewise.
40682 * kern/term.h: Include header file <grub/handler.h>.
40683 (grub_term_input): Move next field to the beginning.
40684 (grub_term_output): Likewise.
40685 (grub_term_input_class): New variable.
40686 (grub_term_output_class): Likewise.
40687 (grub_term_register_input): Changed to inline function.
40688 (grub_term_register_output): Likewise.
40689 (grub_term_unregister_input): Likewise.
40690 (grub_term_unregister_output): Likewise.
40691 (grub_term_set_current_input): Likewise.
40692 (grub_term_set_current_output): Likewise.
40693 (grub_term_get_current_input): Likewise.
40694 (grub_term_get_current_output): Likewise.
40695 (grub_term_iterate_input): Removed.
40696 (grub_term_iterate_output): Likewise.
40698 * kern/term.c (grub_term_list_input): Removed.
40699 (grub_term_list_output): Likewise.
40700 (grub_term_input_class): New variable.
40701 (grub_term_output_class): Likewise.
40702 (grub_cur_term_input): Change variable as macro.
40703 (grub_cur_term_output): Likewise.
40704 (grub_term_register_input): Removed.
40705 (grub_term_register_output): Likewise.
40706 (grub_term_unregister_input): Likewise.
40707 (grub_term_unregister_output): Likewise.
40708 (grub_term_set_current_input): Likewise.
40709 (grub_term_set_current_output): Likewise.
40710 (grub_term_iterate_input): Likewise.
40711 (grub_term_iterate_output): Likewise.
40712 (grub_term_get_current_input): Likewise.
40713 (grub_term_get_current_output): Likewise.
40715 * util/grub-editenv.c: Include header file <grub/handler.h>.
40716 (grub_term_get_current_input): Removed.
40717 (grub_term_get_current_output): Likewise.
40718 (grub_term_input_class): New variable.
40719 (grub_term_output_class): Likewise.
40721 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40722 (grub_term_get_current_output): Likewise.
40723 (grub_term_input_class): New variable.
40724 (grub_term_output_class): Likewise.
40726 * util/grub-probe.c (grub_term_get_current_input): Removed.
40727 (grub_term_get_current_output): Likewise.
40728 (grub_term_input_class): New variable.
40729 (grub_term_output_class): Likewise.
40731 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40732 (grub_term_get_current_output): Likewise.
40733 (grub_term_input_class): New variable.
40734 (grub_term_output_class): Likewise.
40736 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40737 (terminal_mod_SOURCES): Likewise.
40738 (terminal_mod_CFLAGS): Likewise.
40739 (terminal_mod_LDFLAGS): Likewise.
40741 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40743 (kernel_img_SOURCES): Add list.c and handler.c.
40744 (kernel_img_HEADERS): Add list.h and handler.h.
40746 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40748 (kernel_mod_SOURCES): Add list.c and handler.c.
40749 (kernel_mod_HEADERS): Add list.h and handler.h.
40751 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40753 (kernel_elf_SOURCES): Add list.c and handler.c.
40754 (kernel_elf_HEADERS): Add list.h and handler.h.
40756 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40758 (kernel_elf_SOURCES): Add list.c and handler.c.
40759 (kernel_elf_HEADERS): Add list.h and handler.h.
40761 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40763 (kernel_mod_SOURCES): Add list.c and handler.c.
40764 (kernel_mod_HEADERS): Add list.h and handler.h.
40766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40768 (kernel_elf_SOURCES): Add list.c and handler.c.
40769 (kernel_elf_HEADERS): Add list.h and handler.h.
40771 2009-02-27 Robert Millan <rmh@aybabtu.com>
40773 Factorize elf32 / elf64 code in Multiboot loader. This will
40774 prevent it from getting out of sync again.
40776 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40777 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40778 grub_multiboot_load_elf64): Move from here ...
40779 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40780 grub_multiboot_load_elf): ... to here (new file).
40782 2009-02-27 Robert Millan <rmh@aybabtu.com>
40784 * util/grub.d/10_linux.in: Rename "single-user mode" to
40787 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40789 Don't leak in SCSI code.
40790 * disk/scsi.c (grub_scsi_close): free `scsi'.
40792 2009-02-27 Robert Millan <rmh@aybabtu.com>
40794 * loader/i386/pc/multiboot.c: Move from here ...
40795 * loader/i386/multiboot.c: ... to here. Update all users.
40797 2009-02-27 Robert Millan <rmh@aybabtu.com>
40799 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40800 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40802 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40804 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40807 2009-02-27 Robert Millan <rmh@aybabtu.com>
40809 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40810 `0x' qualifier as 0 when base is specified as parameter).
40812 2009-02-24 Bean <bean123ch@gmail.com>
40814 * configure.ac: Check for -mcmodel=large in x86_64 target.
40816 * include/grub/efi/api.h (efi_call_10): New macro.
40817 (efi_wrap_10): New function.
40819 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40820 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40821 (GRUB_PE32_REL_BASED_LOW): Likewise.
40822 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40823 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40824 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40825 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40826 (GRUB_PE32_REL_BASED_REL): Likewise.
40827 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40828 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40829 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40831 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40834 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40835 (efi_wrap_10): New function.
40837 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40839 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40840 MB/MBP model (NV chipset).
40841 (devdata_devs): Add devpath_5 to the list.
40843 * load/i386/efi/linux.c (video_base): Remove variable.
40844 (RGB_MASK): New macro.
40845 (RGB_MAGIC): Likewise.
40846 (LINE_MIN): Likewise.
40847 (LINE_MAX): Likewise.
40848 (FBTEST_STEP): Likewise.
40849 (FBTEST_COUNT): Likewise.
40850 (fb_list): New variable.
40851 (grub_find_video_card): Remove function.
40852 (find_framebuf): New function.
40853 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40856 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40857 problem for x86_64.
40859 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40861 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40863 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40866 2009-02-22 Robert Millan <rmh@aybabtu.com>
40868 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40869 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40870 in our relocation, instead of using it directly from heap. Also
40871 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40873 2009-02-21 Robert Millan <rmh@aybabtu.com>
40875 Implement USB keyboard support (based on patch by Marco Gerards)
40877 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40878 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40879 (usb_keyboard_mod_LDFLAGS): New variables.
40881 * term/usb_keyboard.c: New file.
40883 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40885 Corrected wrong declaration
40887 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40889 2009-02-14 Christian Franke <franke@computer.org>
40891 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40892 (grub_lspci_iter): Print class code and programming interface byte.
40894 2009-02-14 Christian Franke <franke@computer.org>
40896 * gendistlist.sh: Ignore `.svn' directories.
40898 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40900 * fs/fat.c: Add 2009 to Copyright line.
40902 2009-02-14 Christian Franke <franke@computer.org>
40904 * commands/hdparm.c: New file. Provides `hdparm' command
40905 which sends ATA commands via grub_disk_ata_pass_through ().
40907 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40909 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40910 and <grub/cpu/io.h> to include/grub/ata.h.
40911 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40912 (GRUB_CDROM_SECTOR_SIZE): Remove.
40913 (GRUB_ATA_*): Move to include/grub/ata.h.
40914 (GRUB_ATAPI_*): Likewise.
40915 (enum grub_ata_commands): Likewise.
40916 (enum grub_ata_timeout_milliseconds): Likewise.
40917 (struct grub_ata_device): Likewise.
40918 (grub_ata_regset): Likewise.
40919 (grub_ata_regget): Likewise.
40920 (grub_ata_regset2): Likewise.
40921 (grub_ata_regget2): Likewise.
40922 (grub_ata_check_ready): Likewise.
40923 (grub_ata_wait_not_busy): Remove static, exported in
40924 include/grub/ata.h.
40925 (grub_ata_wait_drq): Likewise.
40926 (grub_ata_pio_read): Likewise.
40928 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40929 function for hdparm.mod.
40931 * include/grub/ata.h: New file, contains declarations from
40933 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40935 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40936 (grub_disk_ata_pass_through): New exported variable.
40938 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40940 2009-02-13 Colin D Bennett <colin@gibibit.com>
40942 Support multiple fallback entries, and provide an API to support
40943 executing default+fallback menu entries. Renamed the `terminal' menu
40946 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40947 variable declaration.
40948 (grub_menu_execute_callback): New structure declaration.
40949 (grub_menu_execute_callback_t): New typedef.
40950 (grub_menu_execute_with_fallback): New function declaration.
40951 (grub_menu_get_entry): Likewise.
40952 (grub_menu_get_timeout): Likewise.
40953 (grub_menu_set_timeout): Likewise.
40955 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40957 * normal/menu.c (grub_wait_after_message): Moved to
40958 `normal/menu_text.c'.
40959 (draw_border): Likewise.
40960 (print_message): Likewise.
40961 (print_entry): Likewise.
40962 (print_entries): Likewise.
40963 (grub_menu_init_page): Likewise.
40964 (get_entry_number): Likewise.
40965 (print_timeout): Likewise.
40966 (run_menu): Likewise.
40967 (grub_menu_execute_entry): Likewise.
40968 (show_text_menu): Likewise.
40969 (get_and_remove_first_entry_number): New function.
40970 (grub_menu_execute_with_fallback): Likewise.
40971 (get_entry): Renamed to ...
40972 (grub_menu_get_entry): .. this and made it global.
40973 (get_timeout): Renamed to ...
40974 (grub_menu_get_timeout): ... this and made it global.
40975 (set_timeout): Renamed to ...
40976 (grub_menu_set_timeout): ... this and made it global.
40977 (grub_normal_terminal_menu_viewer): Renamed to ...
40978 (grub_normal_text_menu_viewer): ... this.
40980 * normal/menu_text.c: New file. Extracted text-menu-specific code
40981 from normal/menu.c.
40983 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40984 (normal_mod_SOURCES): Likewise.
40986 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40987 (normal_mod_SOURCES): Likewise.
40989 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40990 (normal_mod_SOURCES): Likewise.
40992 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40993 (normal_mod_SOURCES): Likewise.
40995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40996 (normal_mod_SOURCES): Likewise.
40998 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40999 (normal_mod_SOURCES): Likewise.
41001 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41002 (normal_mod_SOURCES): Likewise.
41004 2009-02-11 Robert Millan <rmh@aybabtu.com>
41006 * util/grub.d/00_header.in: Update old reference to `font' command.
41008 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41010 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41012 Based on patch from Javier Martín.
41014 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41016 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41017 to avoid false positives with FAT.
41018 (grub_fstest_SOURCES): Likewise.
41019 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41020 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41022 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41023 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41024 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41026 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41028 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41029 bpb.version_specific.fat12_or_fat16.fstype and
41030 bpb.version_specific.fat32.fstype.
41032 2009-02-08 Robert Millan <rmh@aybabtu.com>
41034 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41036 2009-02-08 Robert Millan <rmh@aybabtu.com>
41038 * Makefile.in (host_os, host_cpu): New variables.
41039 (target_os): Remove. Update all users.
41041 2009-02-08 Marco Gerards <marco@gnu.org>
41043 * Makefile.in (enable_grub_emu_usb): New variable.
41044 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41045 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41046 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41047 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41048 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41049 `usbtest.mod' and `usbms.mod'.
41050 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41051 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41052 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41053 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41054 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41057 * disk/usbms.c: New file.
41059 * include/grub/usb.h: Likewise.
41061 * include/grub/usbtrans.h: Likewise.
41063 * include/grub/usbdesc.h: Likewise.
41065 * bus/usb/usbtrans.c: Likewise.
41067 * bus/usb/ohci.c: Likewise.
41069 * bus/usb/uhci.c: Likewise.
41071 * bus/usb/usbhub.c: Likewise.
41073 * bus/usb/usb.c: Likewise.
41075 * commands/usbtest.c: Likewise.
41077 * util/usb.c: Likewise.
41079 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41081 * configure.ac: Test for libusb presence.
41083 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41085 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41087 * kern/mm.c: Add more comments.
41089 2009-02-08 Robert Millan <rmh@aybabtu.com>
41091 Patch from Javier Martín.
41092 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41093 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41095 2009-02-08 Robert Millan <rmh@aybabtu.com>
41097 * fs/cpio.c: Split tar functionality to ...
41098 * fs/tar.c: ... here (new file). Update all users.
41100 2009-02-07 Robert Millan <rmh@aybabtu.com>
41102 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41103 backward-incompatible features.
41105 Based on patch from Javier Martín, with some adjustments.
41107 2009-02-07 Michael Scherer <misc@mandriva.org>
41109 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41111 2009-02-07 Robert Millan <rmh@aybabtu.com>
41113 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41114 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41115 after the RAID stuff.
41117 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41119 Fixes problem when running vbetest command as reported by
41120 Vladimir Serbinenko <phcoder@gmail.com>.
41122 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41124 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41126 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41127 /dev/md/NpN style mdraid devices.
41129 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41131 * util/unifont2pff.rb: Remove.
41133 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41135 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41138 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41140 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41141 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41142 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41143 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41145 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41146 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41148 2009-02-02 Christian Franke <franke@computer.org>
41150 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41152 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41154 * INSTALL: Note that we now require at least autoconf 2.59 and
41155 that LZO is optional.
41157 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41159 Base on patch on bug #24154 created by Tomas Tintera
41160 <trosos@seznam.cz>.
41162 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41164 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41166 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41167 <bero@arklinux.org>.
41169 * normal/parser.y (script_init): Add missing semicolon.
41171 2009-01-31 Colin D Bennett <colin@gibibit.com>
41173 * normal/main.c: Add include to grub/menu_viewer.h.
41174 (free_menu_entry_classes): Added.
41175 (grub_normal_menu_addentry): Added class property handling.
41176 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41177 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41179 * normal/menu_viewer.c: New file.
41181 * normal/menu.c (run_menu_entry): Renamed to ...
41182 (grub_menu_execute_entry): ... this and made it as global.
41183 (grub_menu_run): Renamed to ...
41184 (show_text_menu): ... this and made it local.
41185 (show_text_menu): Adapt to new function names.
41186 (grub_normal_terminal_menu_viewer): New global variable.
41188 * include/grub/menu.h: New file.
41190 * include/grub/menu_viewer.h: New file.
41192 * include/grub/normal.h: Added include to grub/menu.h.
41193 (grub_menu_entry): Moved to include/grub/menu.h.
41194 (grub_menu_entry_t): Likewise.
41195 (grub_menu): Likewise.
41196 (grub_menu_t): Likewise.
41197 (grub_normal_terminal_menu_viewer): Added.
41198 (grub_menu_execute_entry): Likewise.
41199 (grub_menu_run): Removed.
41201 * DISTLIST: Added include/grub/menu.h.
41202 Added include/grub/menu_viewer.h.
41203 Added normal/menu_viewer.c.
41205 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41207 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41208 arglist for menutitle arguments.
41210 * normal/main.c (grub_normal_menu_addentry): Likewise.
41212 * normal/parser.y (menuentry): Likewise.
41214 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41216 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41217 (grub_script_create_cmdmenu): Likewise.
41219 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41221 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41224 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41226 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41228 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41230 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41232 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41234 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41236 2009-01-30 Christian Franke <franke@computer.org>
41238 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41239 in option help text.
41241 2009-01-27 Pavel Roskin <proski@gnu.org>
41243 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41245 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41247 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41249 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41251 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41252 unregister function.
41254 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41256 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41258 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41260 * util/grub-mkfont.c (usage): Fix typo.
41262 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41264 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41266 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41268 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41270 * kern/misc.c (grub_strcasecmp): New function.
41271 (grub_strcasecmp): Use grub_size_t instead of int for length.
41273 * include/grub/misc.h: Update function prototypes.
41275 2009-01-26 Robert Millan <rmh@aybabtu.com>
41277 * configure.ac: Fix cross-compilation check.
41279 2009-01-22 Christian Franke <franke@computer.org>
41281 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41282 (precision) digit string. Allow `.format2' without `format1' (width).
41283 Limit input chars for `%s' output to `format2' if specified. This is
41284 compatible with standard printf ().
41286 2009-01-22 Christian Franke <franke@computer.org>
41288 * disk/ata.c (grub_ata_wait_status): Replace by ...
41289 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41290 other status bits may be invalid while BSY is asserted.
41291 (grub_ata_check_ready): New function.
41292 (grub_ata_cmd): Removed.
41293 (grub_ata_wait_drq): New function.
41294 (grub_ata_strncpy): Remove inline.
41295 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41296 and error check now done by grub_ata_wait_drq ().
41297 (grub_ata_pio_write): Likewise.
41298 (grub_atapi_identify): Set DEV before check for !BSY. Use
41299 grub_ata_wait_drq () to wait for data.
41300 (grub_ata_device_initialize): Add status register check to
41301 detect missing SATA slave devices. Add debug messages.
41302 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41303 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41304 transfer loop by grub_ata_pio_write ().
41305 (grub_ata_identify): Set DEV before check for !BSY. Use
41306 grub_ata_wait_drq () to wait for data.
41307 (grub_ata_setaddress): Set DEV before check for !BSY.
41308 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41309 read/write in one loop. Fix invalid command on write. Fix incomplete
41310 command on (size % batch) == 0. Add missing error check after write of
41311 last block. Add debug messages.
41312 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41314 2009-01-19 Christian Franke <franke@computer.org>
41316 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41317 (GRUB_ATAPI_IREASON_*): Likewise.
41318 (grub_ata_pio_write): Fix timeout error return.
41319 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41320 (grub_atapi_wait_drq): New function.
41321 (grub_atapi_packet): New parameter `size'.
41322 Use grub_atapi_wait_drq () and direct write instead of
41323 grub_ata_pio_write ().
41324 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41325 reads the number of bytes requested by the device for each DRQ
41327 (grub_atapi_write): Remove old implementation, return not
41328 implemented instead.
41330 2009-01-19 Christian Franke <franke@computer.org>
41332 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41333 of 512 to calculate data size.
41334 (grub_scsi_read12): Likewise.
41335 (grub_scsi_write10): Likewise.
41336 (grub_scsi_write12): Likewise.
41337 (grub_scsi_read): Adjust size according to blocksize.
41338 Add checks for invalid blocksize and unaligned transfer.
41340 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41342 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41344 * term/gfxterm.c (write_char): Fix background rendering for wide
41347 2009-01-19 Robert Millan <rmh@aybabtu.com>
41349 * config.guess: Update to latest version from config git.
41350 * config.sub: Likewise.
41352 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41354 * Makefile.in: Change font compilation to use new grub-mkfont instead
41357 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41358 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41359 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41360 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41361 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41362 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41363 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41364 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41365 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41367 2009-01-16 Christian Franke <franke@computer.org>
41369 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41370 (enum grub_ata_timeout_milliseconds): New enum.
41371 (grub_ata_wait_status): Add parameter milliseconds.
41372 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41373 recovery from timed-out commands.
41374 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41375 return grub_errno instead of REG_ERROR.
41376 (grub_ata_pio_write): Add parameter milliseconds.
41377 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41378 Pass milliseconds to grub_ata_wait_status () and
41379 grub_ata_pio_read ().
41380 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41381 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41382 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41383 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41384 It is not suitable for device detection, because DEV bit is ignored,
41385 the command may run too long, and not all devices set the signature
41387 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41388 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41389 Fix device selection, DEV bit must be set first to address the registers
41390 of the correct device.
41391 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41392 grub_ata_pio_read/write ().
41393 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41394 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41396 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41398 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41400 2009-01-13 Bean <bean123ch@gmail.com>
41402 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41404 2009-01-13 Bean <bean123ch@gmail.com>
41406 * Makefile.in: (enable_grub_mkfont): New variable.
41407 (freetype_cflags): Likewise.
41408 (freetype_libs): Likewise.
41410 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41411 (grub_mkfont_SOURCES): New variable.
41412 (grub_mkfont_CFLAGS): Likewise.
41413 (grub_mkfont_LDFLAGS): Likewise.
41415 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41416 library if `--enable-grub-mkfont' is requested.
41417 (enable_grub_mkfont): New variable.
41418 (freetype_cflags): Likewise.
41419 (freetype_libs): Likewise.
41421 * util/grub-mkfont.c: New file.
41423 2009-01-12 Christian Franke <franke@computer.org>
41425 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41426 mode check. Fix setting of compat_use[].
41428 2009-01-10 Robert Millan <rmh@aybabtu.com>
41430 Update a few copyright years which we forgot to do in 2008 (only for
41431 files whose changes made in 2008 were copyright-significant)
41433 * Makefile.in: Add 2008 to Copyright line.
41434 * disk/ieee1275/ofdisk.c: Likewise.
41435 * disk/efi/efidisk.c: Likewise.
41436 * kern/dl.c: Likewise.
41437 * kern/sparc64/ieee1275/init.c: Likewise.
41438 * kern/mm.c: Likewise.
41439 * kern/efi/mm.c: Likewise.
41440 * boot/i386/pc/boot.S: Likewise.
41441 * genfslist.sh: Likewise.
41442 * fs/iso9660.c: Likewise.
41443 * fs/hfs.c: Likewise.
41444 * fs/jfs.c: Likewise.
41445 * fs/minix.c: Likewise.
41446 * fs/ufs.c: Likewise.
41447 * gensymlist.sh.in: Likewise.
41448 * genkernsyms.sh.in: Likewise.
41449 * include/grub/misc.h: Likewise.
41450 * include/grub/types.h: Likewise.
41451 * include/grub/symbol.h: Likewise.
41452 * include/grub/elf.h: Likewise.
41453 * include/grub/kernel.h: Likewise.
41454 * include/grub/disk.h: Likewise.
41455 * include/grub/dl.h: Likewise.
41456 * include/grub/i386/linux.h: Likewise.
41457 * include/grub/i386/pc/biosdisk.h: Likewise.
41458 * include/grub/efi/api.h: Likewise.
41459 * include/grub/efi/pe32.h: Likewise.
41460 * include/grub/util/misc.h: Likewise.
41461 * normal/execute.c: Likewise.
41462 * normal/arg.c: Likewise.
41463 * normal/completion.c: Likewise.
41464 * normal/lexer.c: Likewise.
41465 * normal/parser.y: Likewise.
41466 * normal/misc.c: Likewise.
41467 * commands/i386/pc/vbeinfo.c: Likewise.
41468 * commands/hexdump.c: Likewise.
41469 * commands/terminal.c: Likewise.
41470 * commands/ls.c: Likewise.
41471 * commands/help.c: Likewise.
41472 * partmap/pc.c: Likewise.
41473 * loader/efi/chainloader.c: Likewise.
41474 * loader/multiboot_loader.c: Likewise.
41475 * loader/i386/pc/multiboot2.c: Likewise.
41476 * term/efi/console.c: Likewise.
41477 * term/i386/pc/serial.c: Likewise.
41478 * util/lvm.c: Likewise.
41479 * util/console.c: Likewise.
41480 * util/i386/efi/grub-mkimage.c: Likewise.
41481 * util/raid.c: Likewise.
41483 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41485 * commands/videotest.c: Removed include to grub/machine/memory.h.
41487 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41488 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41489 (video_mod_SOURCES): Removed.
41490 (video_mod_CFLAGS): Likewise.
41491 (video_mod_LDFLAGS): Likewise.
41492 (gfxterm_mod_SOURCES): Likewise.
41493 (gfxterm_mod_CFLAGS): Likewise.
41494 (gfxterm_mod_LDFLAGS): Likewise.
41495 (videotest_mod_SOURCES): Likewise.
41496 (videotest_mod_CFLAGS): Likewise.
41497 (videotest_mod_LDFLAGS): Likewise.
41498 (bitmap_mod_SOURCES): Likewise.
41499 (bitmap_mod_CFLAGS): Likewise.
41500 (bitmap_mod_LDFLAGS): Likewise.
41501 (tga_mod_SOURCES): Likewise.
41502 (tga_mod_CFLAGS): Likewise.
41503 (tga_mod_LDFLAGS): Likewise.
41504 (jpeg_mod_SOURCES): Likewise.
41505 (jpeg_mod_CFLAGS): Likewise.
41506 (jpeg_mod_LDFLAGS): Likewise.
41507 (png_mod_SOURCES): Likewise.
41508 (png_mod_CFLAGS): Likewise.
41509 (png_mod_LDFLAGS): Likewise.
41511 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41512 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41513 (video_mod_SOURCES): Added.
41514 (video_mod_CFLAGS): Likewise.
41515 (video_mod_LDFLAGS): Likewise.
41516 (videotest_mod_SOURCES): Likewise.
41517 (videotest_mod_CFLAGS): Likewise.
41518 (videotest_mod_LDFLAGS): Likewise.
41519 (bitmap_mod_SOURCES): Likewise.
41520 (bitmap_mod_CFLAGS): Likewise.
41521 (bitmap_mod_LDFLAGS): Likewise.
41522 (tga_mod_SOURCES): Likewise.
41523 (tga_mod_CFLAGS): Likewise.
41524 (tga_mod_LDFLAGS): Likewise.
41525 (jpeg_mod_SOURCES): Likewise.
41526 (jpeg_mod_CFLAGS): Likewise.
41527 (jpeg_mod_LDFLAGS): Likewise.
41528 (png_mod_SOURCES): Likewise.
41529 (png_mod_CFLAGS): Likewise.
41530 (png_mod_LDFLAGS): Likewise.
41531 (gfxterm_mod_SOURCES): Likewise.
41532 (gfxterm_mod_CFLAGS): Likewise.
41533 (gfxterm_mod_LDFLAGS): Likewise.
41535 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41536 grub/machine/console.h.
41538 2009-01-04 Jerone Young <jerone@gmail.com>
41540 Make on screen instructions clearer
41542 Based on patch created by Jidanni <jidanni@jidanni.org>
41544 * normal/menu.c: print clearer instructions on the screen
41546 2009-01-02 Colin D Bennett <colin@gibibit.com>
41550 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41551 build system and fixed gfxterm.c to work with different sized fonts.
41553 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41555 * configure: Re-generated.
41557 * DISTLIST: Removed font/manager.c.
41559 Added font/font_cmd.c.
41561 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41564 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41566 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41568 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41570 * normal/menu.c: Likewise.
41572 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41573 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41575 * include/grub/font.h: Replaced with new file.
41577 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41578 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41579 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41580 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41581 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41582 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41583 fg_red, fg_green, fg_blue, fg_alpha.
41584 (grub_video_adapter): Removed blit_glyph.
41585 (grub_video_blit_glyph): Removed.
41587 * font/manager.c: Removed file.
41589 * font/font.c: New file.
41591 * font/font_cmd.c: Likewise.
41593 * video/video.c (grub_video_blit_glyph): Removed.
41595 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41596 (grub_video_vbe_map_rgba): Likewise.
41597 (grub_video_vbe_unmap_color_int): Likewise.
41598 (grub_video_vbe_blit_glyph): Removed.
41599 (grub_video_vbe_adapter): Removed blit_glyph.
41601 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41602 (get_pixel): Likewise.
41603 (set_pixel): Likewise.
41605 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41607 * term/gfxterm.c: Adapted to new font engine.
41609 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41611 * term/i386/pc/vga.c: Likewise.
41613 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41615 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41617 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41619 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41621 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41623 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41625 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41627 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41629 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41631 * util/grub.d/00_header.in: Changed to use new loadfont command.
41633 * util/grub-mkconfig_lib.in: Changed font extension.
41635 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41637 * util/getroot.c (grub_util_get_grub_dev): Add support for
41638 /dev/md/dNNpNN style partitionable mdraid devices.
41640 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41642 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41643 at a time limit of the PXE TFTP API correctly.
41644 (grub_pxefs_close): Likewise.
41646 2008-11-29 Robert Millan <rmh@aybabtu.com>
41648 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41649 grub_ata_device_initialize() calls.
41651 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41653 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41655 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41657 2008-11-28 Robert Millan <rmh@aybabtu.com>
41659 Fix build on powerpc-ieee1275. Based on patch created by
41660 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41661 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41662 `kern/ieee1275/mmap.c'.
41663 * include/grub/powerpc/ieee1275/memory.h: New file.
41665 Provide grub-install on coreboot.
41666 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41667 (grub_install_SOURCES): New variable.
41668 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41669 usable on coreboot.
41671 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41673 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41674 to `grub_term_input_t'.
41675 (grub_term_get_current_output): Change return type to
41676 `grub_term_output_t'.
41678 2008-11-22 Robert Millan <rmh@aybabtu.com>
41680 Fix breakage on coreboot due to declaration mismatch.
41681 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41682 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41683 grub_vga_text_cls().
41685 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41686 comments. Avoid copying one more byte than necessary (just in case).
41688 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41689 to 0x200000 (avoids trouble with some OFW implementations, and matches
41690 with the one in Yaboot).
41691 Reported by Manoel Abranches
41693 2008-11-20 Robert Millan <rmh@aybabtu.com>
41695 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41696 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41698 * util/grub-mkconfig_lib.in (grub_warn): New function.
41699 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41700 warnings, to obtain consistent formatting.
41701 * util/grub.d/00_header.in: Likewise.
41702 * util/update-grub_lib.in: Likewise.
41704 * loader/i386/linux.c (allocate_pages): Fix a warning.
41705 Move comment text to `#error' stanza.
41707 Harmonize ieee1275's grub_available_iterate() with the generic
41708 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41709 build problem on i386-ieee1275):
41710 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41711 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41712 parameter `type'. Update all users of this function.
41713 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41714 `kern/ieee1275/mmap.c'.
41715 * kern/ieee1275/init.c
41716 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41718 (grub_machine_mmap_iterate): ... this.
41719 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41720 return type to `grub_err_t'. Update all implementations of this
41721 function prototype.
41722 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41725 Add `lsmmap' command (lists firmware-provided memory map):
41726 * commands/lsmmap.c: New file.
41727 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41728 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41730 * conf/powerpc-ieee1275.rmk: Likewise.
41731 * conf/i386-coreboot.rmk: Likewise.
41732 * conf/i386-ieee1275.rmk: Likewise.
41734 2008-11-19 Robert Millan <rmh@aybabtu.com>
41736 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41737 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41738 constraints to initrd allocation (based on code from
41739 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41740 for Linux to find it.
41742 2008-11-14 Robert Millan <rmh@aybabtu.com>
41744 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41745 order to cope with duplicate slashes.
41747 2008-11-14 Robert Millan <rmh@aybabtu.com>
41749 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41750 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41751 don't want to mess with lower memory, because it is used in the Linux
41754 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41755 an appropriate place in lower memory, between 0x10000 and 0x90000,
41756 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41757 is in our heap (probably as a result of it being corrupted during
41758 decompression). Add #error instance with comment to explain why this
41759 loader isn't currently usable on PC/BIOS.
41761 2008-11-14 Robert Millan <rmh@aybabtu.com>
41763 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41764 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41766 2008-11-12 Robert Millan <rmh@aybabtu.com>
41768 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41770 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41771 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41773 * include/grub/i386/pc/memory.h: ... to here.
41775 2008-11-12 Robert Millan <rmh@aybabtu.com>
41777 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41780 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41781 (grub_console_cur_color, grub_console_real_putchar)
41782 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41783 (grub_console_setcolorstate, grub_console_setcolor)
41784 (grub_console_getcolor): Move from here ...
41785 * include/grub/i386/vga_common.h: ... to here (new file).
41787 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41788 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41789 `<grub/i386/io.h>'.
41790 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41791 `<grub/i386/vga_common.h>'.
41793 2008-11-12 Robert Millan <rmh@aybabtu.com>
41795 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41796 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41797 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41799 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41800 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41802 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41803 grub_console_init() with call to grub_vga_text_init().
41804 (grub_machine_fini): Replace call to
41805 grub_console_fini() with call to grub_vga_text_fini() and
41806 grub_at_keyboard_fini().
41808 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41809 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41810 (grub_console_setcolorstate, grub_console_setcolor)
41811 (grub_console_getcolor): New function prototypes.
41813 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41814 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41815 (grub_vga_text_setcursor): Static-ize.
41816 (grub_vga_text_term): New structure.
41817 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41819 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41820 (grub_console_cur_color, grub_console_standard_color)
41821 (grub_console_normal_color, grub_console_highlight_color)
41822 (map_char, grub_console_putchar, grub_console_getcharwidth)
41823 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41824 (grub_console_getcolor): Move from here ...
41825 * term/i386/vga_common.c: ... to here (same function names).
41827 2008-11-12 Robert Millan <rmh@aybabtu.com>
41829 Use newly-added Multiboot support in coreboot.
41831 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41832 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41834 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41835 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41836 (codestart): Store the MBI in `startup_multiboot_info' when we're
41837 being loaded using Multiboot.
41839 * kern/i386/coreboot/init.c (grub_machine_init): Move
41840 grub_at_keyboard_init() call to beginning of function (useful for
41841 debugging). Call grub_machine_mmap_init() before attempting to use
41842 grub_machine_mmap_iterate().
41843 (grub_lower_mem, grub_upper_mem): Move from here ...
41844 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41847 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41848 function prototype.
41850 2008-11-12 Robert Millan <rmh@aybabtu.com>
41852 Fix a regression introduced by the at_keyboard.mod split. Because
41853 some terminals are default on some platforms and non-default on
41854 others, the first terminal being registered determines which is
41855 going to be default.
41857 * kern/term.c (grub_term_register_input): If this is the first
41858 terminal being registered, set it as the current one.
41859 (grub_term_register_output): Likewise.
41861 * term/efi/console.c (grub_console_init): Do not call
41862 grub_term_set_current_output() or grub_term_set_current_input().
41863 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41864 * term/i386/pc/console.c (grub_console_init): Likewise.
41865 (grub_console_fini): Do not call grub_term_set_current_input()
41866 (but leave grub_term_set_current_output() to restore text mode).
41868 2008-11-10 Robert Millan <rmh@aybabtu.com>
41870 * util/grub.d/00_header.in: Add backward compatibility check for
41871 versions of terminal.mod that don't understand `terminal_input' or
41874 2008-11-09 Robert Millan <rmh@aybabtu.com>
41876 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41877 `terminal_input' / `terminal_output', not `terminal'.
41879 2008-11-08 Robert Millan <rmh@aybabtu.com>
41881 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41882 (DISTCLEANFILES): Add `build_env.mk'.
41884 2008-11-08 Robert Millan <rmh@aybabtu.com>
41886 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41887 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41888 members. Update all users.
41889 * util/console.c (grub_ncurses_term): Split in ...
41890 (grub_ncurses_term_input): ... this, and ...
41891 (grub_ncurses_term_output): ... this. Update all users.
41892 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41894 2008-11-08 Robert Millan <rmh@aybabtu.com>
41896 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41897 (PKGDATA): Add $(pkgdata_SRCDIR).
41898 (pkglib_BUILDDIR): New variable.
41899 (pkgdata_SRCDIR): New variable.
41900 (build_env.mk): New target.
41901 (include_DATA): New variable.
41902 (install-local): Install $(include_DATA) files in $(includedir).
41904 2008-11-07 Pavel Roskin <proski@gnu.org>
41906 * gendistlist.sh: Use C locale for sorting to ensure consistent
41907 output on all systems.
41909 * util/grub.d/00_header.in: Remove incorrect space before
41912 2008-11-07 Robert Millan <rmh@aybabtu.com>
41914 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41916 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41917 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41918 (based on find_multi_boot1_header).
41919 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41920 using find_multi_boot2_header(), and abort if neither Multiboot or
41921 Multiboot headers were found.
41923 2008-11-07 Robert Millan <rmh@aybabtu.com>
41925 Modularize at_keyboard.mod:
41927 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41928 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41929 (at_keyboard_mod_LDFLAGS): New variables.
41931 Actual terminal split:
41933 * include/grub/term.h (struct grub_term): Split in ...
41934 (struct grub_term_input): ... this, and ...
41935 (struct grub_term_output): ... this. Update all users.
41936 (grub_term_set_current): Split in ...
41937 (grub_term_set_current_input): ... this, and ...
41938 (grub_term_set_current_output): ... this.
41939 (grub_term_get_current): Split in ...
41940 (grub_term_get_current_input): ... this, and ...
41941 (grub_term_get_current_output): ... this.
41942 (grub_term_register): Split in ...
41943 (grub_term_register_input): ... this, and ...
41944 (grub_term_register_output): ... this.
41945 (grub_term_unregister): Split in ...
41946 (grub_term_unregister_input): ... this, and ...
41947 (grub_term_unregister_output): ... this.
41948 (grub_term_iterate): Split in ...
41949 (grub_term_iterate_input): ... this, and ...
41950 (grub_term_iterate_output): ... this.
41952 * kern/term.c (grub_term_list): Split in ...
41953 (grub_term_list_input): ... this, and ...
41954 (grub_term_list_output): ... this. Update all users.
41955 (grub_cur_term): Split in ...
41956 (grub_cur_term_input): ... this, and ...
41957 (grub_cur_term_output): ... this. Update all users.
41958 (grub_term_set_current): Split in ...
41959 (grub_term_set_current_input): ... this, and ...
41960 (grub_term_set_current_output): ... this.
41961 (grub_term_get_current): Split in ...
41962 (grub_term_get_current_input): ... this, and ...
41963 (grub_term_get_current_output): ... this.
41964 (grub_term_register): Split in ...
41965 (grub_term_register_input): ... this, and ...
41966 (grub_term_register_output): ... this.
41967 (grub_term_unregister): Split in ...
41968 (grub_term_unregister_input): ... this, and ...
41969 (grub_term_unregister_output): ... this.
41970 (grub_term_iterate): Split in ...
41971 (grub_term_iterate_input): ... this, and ...
41972 (grub_term_iterate_output): ... this.
41974 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41975 a check for input and one for output (and only attempt to get keys
41976 from user when input works).
41978 * util/grub-probe.c (grub_term_get_current): Split in ...
41979 (grub_term_get_current_input): ... this, and ...
41980 (grub_term_get_current_output): ... this.
41981 * util/grub-fstest.c: Likewise.
41982 * util/i386/pc/grub-setup.c: Likewise.
41983 * util/grub-editenv.c: Likewise.
41985 Portability adjustments:
41987 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41988 `term/i386/pc/at_keyboard.c'.
41989 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41990 grub_keyboard_controller_init() (now handled by terminal .init).
41991 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41992 grub_at_keyboard_init().
41993 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41994 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41995 at_keyboard.mod via input terminal interface).
41996 * include/grub/i386/coreboot/console.h: Convert into a stub for
41997 `<grub/i386/pc/console.h>'.
41999 Migrate full terminals to new API:
42001 * term/efi/console.c (grub_console_term): Split into ...
42002 (grub_console_term_input): ... this, and ...
42003 (grub_console_term_output): ... this. Update all users.
42004 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42005 (grub_ofconsole_init): Split into ...
42006 (grub_ofconsole_init_input): ... this, and ...
42007 (grub_ofconsole_init_output): ... this.
42008 (grub_ofconsole_term): Split into ...
42009 (grub_ofconsole_term_input): ... this, and ...
42010 (grub_ofconsole_term_output): ... this. Update all users.
42011 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42012 (grub_serial_term_input): ... this, and ...
42013 (grub_serial_term_output): ... this. Update all users.
42014 * term/i386/pc/console.c (grub_console_term): Split into ...
42015 (grub_console_term_input): ... this, and ...
42016 (grub_console_term_output): ... this. Update all users.
42017 (grub_console_term_input): Only enable it on PC/BIOS platform.
42018 (grub_console_init): Remove grub_keyboard_controller_init() call.
42020 Migrate input terminals to new API:
42022 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42023 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42024 i386-specific anyway).
42025 (grub_console_checkkey): Rename to ...
42026 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42028 (grub_keyboard_controller_orig): New variable.
42029 (grub_console_getkey): Rename to ...
42030 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42032 (grub_keyboard_controller_init): Static-ize. Save original
42033 controller value so that it can be restored ...
42034 (grub_keyboard_controller_fini): ... here (new function).
42035 (grub_at_keyboard_term): New structure.
42036 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42039 Migrate output terminals to new API:
42041 * term/i386/pc/vga.c (grub_vga_term): Change type to
42042 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42043 members. Update all users.
42044 * term/gfxterm.c (grub_video_term): Change type to
42045 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42046 members. Update all users.
42047 * include/grub/i386/pc/console.h (grub_console_checkkey)
42048 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42051 Migrate `terminal' command and userland tools to new API:
42053 * commands/terminal.c (grub_cmd_terminal): Split into ...
42054 (grub_cmd_terminal_input): ... this, and ...
42055 (grub_cmd_terminal_output): ... this.
42056 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42057 `terminal_input' and `terminal_output'.
42058 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42059 `terminal_input' / `terminal_output' API.
42060 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42061 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42062 provided ${GRUB_TERMINAL}, convert it).
42064 2008-11-04 Robert Millan <rmh@aybabtu.com>
42066 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42068 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42070 2008-11-03 Bean <bean123ch@gmail.com>
42072 * kern/elf.c (grub_elf32_load): Revert to previous code.
42073 (grub_elf64_load): Likewise.
42075 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42077 2008-11-01 Robert Millan <rmh@aybabtu.com>
42079 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42080 (TARGET_CPPFLAGS): Likewise.
42081 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42083 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42085 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42087 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42089 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42090 addition of objects until the code is not going to be able to fail.
42092 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42094 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42095 (add a missing NULL check, and correct them by moving the pointer
42096 operations after the actual check).
42098 2008-10-29 Robert Millan <rmh@aybabtu.com>
42100 * util/i386/pc/grub-install.in: Handle empty string as output from
42101 make_system_path_relative_to_its_root().
42103 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42105 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42106 circular metadata worst case scenario. If the metadata is circular
42107 then copy the wrap in place.
42108 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42109 project lib/format_text/layout.h
42110 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42112 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42114 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42116 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42118 * util/update-grub_lib.in: Mention filename in warning message.
42120 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42122 * NEWS: Update for rename of update-grub to grub-mkconfig.
42124 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42126 * util/update-grub_lib.in: Copy to ...
42127 * util/grub-mkconfig_lib.in: ... this. Update all users.
42128 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42129 * util/update-grub.in: Rename to ...
42130 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42131 option. Add `--output' option to allow users to specify the generated
42132 configuration file. Default to stdout.
42133 (update_grub_dir): Rename to ...
42134 (grub_mkconfig_dir): ... this.
42135 (grub_cfg): Default to an empty string.
42136 * conf/common.rmk (update-grub): Rename to ...
42137 (grub-mkconfig): ... this.
42138 (update-grub_lib): Copy to ...
42139 (grub-mkconfig_lib): ... this.
42140 (update-grub_SCRIPTS): Copy to ...
42141 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42142 (update-grub_DATA): Rename to ...
42143 (grub-mkconfig_DATA): ... this.
42145 2008-09-28 Robert Millan <rmh@aybabtu.com>
42147 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42148 to `modified'. Add the real `created' field.
42149 (grub_iso9660_uuid): Use `modified' rather than `created' for
42150 constructing the UUID.
42152 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42154 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42155 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42157 2008-09-28 Bean <bean123ch@gmail.com>
42159 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42160 Thanks to Christian Franke for finding this bug.
42162 2008-09-25 Robert Millan <rmh@aybabtu.com>
42164 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42165 instances of grub_util_get_disk_name() (see previous commit).
42167 2008-09-25 Robert Millan <rmh@aybabtu.com>
42169 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42170 `util/i386/get_disk_name.c'.
42171 * conf/i386-efi.rmk: Likewise.
42172 * conf/x86_64-efi.rmk: Likewise.
42173 * conf/i386-coreboot.rmk: Likewise.
42174 * conf/i386-ieee1275.rmk: Likewise.
42175 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42176 `util/ieee1275/get_disk_name.c'.
42177 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42178 * util/ieee1275/get_disk_name.c: Remove file.
42179 * util/i386/get_disk_name.c: Remove file.
42180 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42181 "hd%d" for device.map entries, rather than using
42182 grub_util_get_disk_name().
42184 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42186 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42188 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42190 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42192 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42194 (GRUB_TERM_PPAGE): Changed to 0x4900.
42196 2008-09-24 Robert Millan <rmh@aybabtu.com>
42198 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42199 macros (they were i386-pc specific).
42200 * include/grub/sparc64/ieee1275/console.h: Likewise.
42201 * include/grub/efi/console.h: Likewise.
42203 2008-09-22 Bean <bean123ch@gmail.com>
42205 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42206 resident and in attribute list.
42208 * include/grub/ntfs.h (BMP_LEN): Removed.
42210 2008-09-22 Bean <bean123ch@gmail.com>
42212 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42213 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42215 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42216 error occurs, as grub_disk_open will call grub_disk_close, which will
42217 call p->close (scsi).
42219 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42221 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42222 (AC_PREREQ): Bumped to 2.59.
42223 (AC_TRY_COMPILE): Replace obsolete macro with ...
42224 (AC_COMPILE_IFELSE): ... this.
42225 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42226 (AC_LINK_IFELSE): ... this.
42228 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42230 * autogen.sh: Add a call to `gendistlist.sh'.
42232 2008-09-19 Christian Franke <franke@computer.org>
42234 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42235 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42236 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42237 Export __enable_execute_stack() to modules.
42238 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42241 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42243 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42246 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42248 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42249 #include <grub/util/hostdisk.h>.
42251 2008-09-08 Robert Millan <rmh@aybabtu.com>
42253 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42254 segments when their filesz is zero (grub_file_read() interprets
42255 zero-size as "read until EOF", which results in memory corruption).
42256 Use `lowest_segment' rather than 0 for calculating the current
42257 segment load address.
42259 2008-09-08 Robert Millan <rmh@aybabtu.com>
42261 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42262 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42263 clobbered useful information.
42265 2008-09-08 Robert Millan <rmh@aybabtu.com>
42267 * include/grub/util/biosdisk.h: Move to ...
42268 * include/grub/util/hostdisk.h: ... here. Update all users.
42269 * util/biosdisk.c: Move to ...
42270 * util/hostdisk.c: ... here. Update all users.
42272 2008-09-07 Robert Millan <rmh@aybabtu.com>
42274 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42276 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42277 and length can be stored directly in the `mbi->mmap_addr' and
42278 `mbi->mmap_length' struct fields.
42280 2008-09-07 Robert Millan <rmh@aybabtu.com>
42282 * conf/i386.rmk: New file. Provides declaration for building
42284 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42285 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42287 Include `conf/i386.mk'.
42288 * conf/i386-efi.rmk: Likewise.
42289 * conf/x86_64-efi.rmk: Likewise.
42290 * conf/i386-coreboot.rmk: Likewise.
42291 * conf/i386-ieee1275.rmk: Likewise.
42293 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42295 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42296 Adds optimization support for BGR based modes.
42298 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42299 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42300 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42301 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42302 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42303 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42304 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42305 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42306 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42307 (grub_video_i386_vbeblit_index_index): Likewise.
42308 (grub_video_i386_vbeblit_replace_directN): Added.
42309 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42310 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42311 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42312 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42313 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42314 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42315 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42316 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42317 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42318 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42319 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42320 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42321 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42323 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42324 (grub_video_i386_vbefill_R8G8B8): Likewise.
42325 (grub_video_i386_vbefill_index): Likewise.
42326 (grub_video_i386_vbefill_direct32): Added.
42327 (grub_video_i386_vbefill_direct24): Likewise.
42328 (grub_video_i386_vbefill_direct16): Likewise.
42329 (grub_video_i386_vbefill_direct8): Likewise.
42331 * include/grub/video.h (grub_video_blit_format): Removed
42332 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42333 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42334 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42335 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42336 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42338 * video/video.c (grub_video_get_blit_format): Updated to use new
42339 blit formats. Added handling for 16 bit color modes.
42341 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42343 (common_blitter): Updated to use new blitters.
42345 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42347 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42348 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42349 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42350 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42351 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42352 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42353 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42354 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42355 (grub_video_i386_vbeblit_index_index): Likewise.
42356 (grub_video_i386_vbeblit_replace_directN): Added.
42357 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42358 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42359 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42360 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42361 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42362 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42363 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42364 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42365 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42366 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42367 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42368 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42369 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42371 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42372 (grub_video_i386_vbefill_R8G8B8): Likewise.
42373 (grub_video_i386_vbefill_index): Likewise.
42374 (grub_video_i386_vbefill_direct32): Added.
42375 (grub_video_i386_vbefill_direct24): Likewise.
42376 (grub_video_i386_vbefill_direct16): Likewise.
42377 (grub_video_i386_vbefill_direct8): Likewise.
42379 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42382 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42385 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42388 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42391 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42393 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42396 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42398 * fs/iso9660.c (grub_iso9660_date): New structure.
42399 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42400 (grub_iso9660_uuid): New function.
42402 2008-09-05 Bean <bean123ch@gmail.com>
42404 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42406 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42407 insensitive bit for names in Win32 and Win32 & DOS namespace.
42409 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42411 * include/grub/types.h (LONG_MAX): Likewise.
42413 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42415 * util/getroot.c: Include <config.h>.
42416 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42417 add support for /dev/md/N devices and handle LVM double dash escaping.
42419 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42421 * config.guess: Update to latest version from config git.
42422 * config.sub: Likewise.
42424 2008-09-03 Robert Millan <rmh@aybabtu.com>
42426 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42427 `disk->total_sectors'.
42429 2008-09-01 Colin D Bennett <colin@gibibit.com>
42431 * include/grub/normal.h: Fixed incorrect comment for
42432 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42434 2008-09-01 Colin D Bennett <colin@gibibit.com>
42436 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42437 values with defines.
42439 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42440 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42441 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42442 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42443 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42444 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42445 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42446 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42447 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42448 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42449 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42450 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42451 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42452 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42453 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42454 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42455 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42456 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42457 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42459 2008-08-31 Robert Millan <rmh@aybabtu.com>
42461 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42463 (grub_multiboot): Fix a few warnings.
42465 2008-08-31 Robert Millan <rmh@aybabtu.com>
42467 * loader/i386/pc/multiboot.c: Update comment not to say that
42468 boot_device support is unimplemented.
42470 2008-08-31 Robert Millan <rmh@aybabtu.com>
42472 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42473 or memory map support are unimplemented.
42475 2008-08-31 Colin D Bennett <colin@gibibit.com>
42477 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42479 2008-08-31 Colin D Bennett <colin@gibibit.com>
42481 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42482 total video memory in 'vbeinfo' output; show color format details for
42485 2008-08-30 Pavel Roskin <proski@gnu.org>
42487 * util/genmoddep.c: Remove for real this time.
42488 * DISTLIST: Remove util/genmoddep.c.
42490 2008-08-30 Robert Millan <rmh@aybabtu.com>
42492 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42493 as required by Multiboot spec (it was already 4-byte aligned, but
42496 2008-08-29 Pavel Roskin <proski@gnu.org>
42498 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42499 * kern/powerpc/ieee1275/startup.S: ... this.
42500 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42501 * DISTLIST: Likewise.
42503 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42504 grub/cpu/kernel.h. Add start label for consistency with other
42505 platforms. Add grub_prefix immediately after start. Add jump
42506 to the code after grub_prefix.
42507 * include/grub/powerpc/kernel.h: Provide valid values for
42508 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42510 2008-08-29 Bean <bean123ch@gmail.com>
42512 * configure.ac: Change host_os to cygwin for mingw.
42513 (asprintf): New check for function.
42515 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42516 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42518 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42519 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42520 sync, sleep and grub_util_get_disk_size for mingw.
42522 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42523 to get size in mingw.
42524 (open_device): Use flag O_BINARY if it's defined.
42525 (find_root_device): Add dummy code for mingw.
42527 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42528 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42529 (get_scsi_disk_name): Return 0 for mingw.
42531 * util/hostfs.c: #include <grub/util/misc.h>.
42532 (grub_hostfs_open): Use "rb" flag to open file, use
42533 grub_util_get_disk_size to get disk size for mingw.
42535 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42536 (asprintf): New function if HAVE_ASPRINTF is not set.
42537 (sync): New function for mingw.
42539 (grub_util_get_disk_size): Likewise.
42541 2008-08-28 Pavel Roskin <proski@gnu.org>
42543 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42546 2008-08-28 Robert Millan <rmh@aybabtu.com>
42548 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42550 2008-08-28 Robert Millan <rmh@aybabtu.com>
42552 Change find_grub_drive() syntax so it doesn't prevent it from
42553 detecting NULL names as errors.
42555 * util/biosdisk.c (find_grub_drive): Move free slot search code
42557 (find_free_slot): ... to here.
42558 (read_device_map): Use find_free_slot() to search for free slots.
42560 2008-08-27 Marco Gerards <marco@gnu.org>
42562 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42563 (scsi_mod_SOURCES): New variable.
42564 (scsi_mod_CFLAGS): Likewise
42565 (scsi_mod_LDFLAGS): Likewise.
42567 * disk/scsi.c: New file.
42569 * include/grub/scsi.h: Likewise.
42571 * include/grub/scsicmd.h: Likewise.
42573 * disk/ata.c: Include <grub/scsi.h>.
42574 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42576 (grub_ata_iterate): Skip ATAPI devices.
42577 (grub_ata_open): Only handle ATAPI devices.
42578 (struct grub_atapi_read): Removed.
42579 (grub_atapi_readsector): Likewise.
42580 (grub_ata_read): No longer handle ATAPI devices.
42581 (grub_ata_write): Likewise.
42582 (grub_atapi_iterate): New function.
42583 (grub_atapi_read): Likewise.
42584 (grub_atapi_write): Likewise.
42585 (grub_atapi_open): Likewise.
42586 (grub_atapi_close): Likewise.
42587 (grub_atapi_dev): New variable.
42588 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42589 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42591 * include/grub/disk.h (enum grub_disk_dev_id): Add
42592 `GRUB_DISK_DEVICE_SCSI_ID'.
42594 2008-08-26 Robert Millan <rmh@aybabtu.com>
42596 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42597 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42600 2008-08-23 Bean <bean123ch@gmail.com>
42602 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42603 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42604 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42605 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42607 (raid5rec_mod_SOURCES): New macro.
42608 (raid5rec_mod_CFLAGS): Likewise.
42609 (raid5rec_mod_LDFLAGS): Likewise.
42610 (raid6rec_mod_SOURCES): Likewise.
42611 (raid6rec_mod_CFLAGS): Likewise.
42612 (raid6rec_mod_LDFLAGS): Likewise.
42613 (mdraid_mod_SOURCES): Likewise.
42614 (mdraid_mod_CFLAGS): Likewise.
42615 (mdraid_mod_LDFLAGS): Likewise.
42616 (dm_nv_mod_SOURCES): Likewise.
42617 (dm_nv_mod_CFLAGS): Likewise.
42618 (dm_nv_mod_LDFLAGS): Likewise.
42620 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42621 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42622 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42624 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42625 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42627 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42629 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42631 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42635 * disk/raid5_recover.c: New file.
42637 * disk/raid6_recover.c: Likewise.
42639 * disk/mdraid_linux.c: Likewise.
42641 * disk/dmraid_nvidia.c: Likewise.
42643 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42646 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42647 calculate the size of raid device.
42648 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42649 different layout of raid5.
42650 (grub_raid_scan_device): Remove code specific to mdraid.
42651 (grub_raid_list): New variable.
42652 (free_array): New function.
42653 (grub_raid_register): Likewise.
42654 (grub_raid_unregister): Likewise.
42655 (grub_raid_rescan): Likewise.
42656 (GRUB_MOD_INIT): Don't iterate device here.
42657 (GRUB_MOD_FINI): Use free_array to release resource.
42659 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42660 (grub_raid5_recover_func_t): New function variable type.
42661 (grub_raid6_recover_func_t): Likewise.
42662 (grub_raid5_recover_func): New variable.
42663 (grub_raid6_recover_func): Likewise.
42664 (grub_raid_register): New function.
42665 (grub_raid_unregister): Likewise.
42666 (grub_raid_rescan): Likewise.
42667 (grub_raid_block_xor): Likewise.
42669 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42670 (CMD_CRC): New macro.
42672 (read_file): Handle device as well as file.
42673 (cmd_crc): New function.
42674 (fstest): Handle multiple disks.
42675 (options): Remove part, raw and long, add root and diskcount.
42676 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42677 (main): Find the first non option entry and ignore subsequent options,
42678 add handling for the new options, support multiple disks.
42680 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42682 2008-08-23 Bean <bean123ch@gmail.com>
42684 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42686 * genfslist.sh: Ignore kernel.mod.
42688 * genpartmaplist.sh: Likewise.
42690 2008-08-23 Robert Millan <rmh@aybabtu.com>
42692 * util/getroot.c (find_root_device): Skip anything that starts with
42693 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42695 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42697 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42698 * util/grub.d/00_header.in: Allow the administrator to change default
42699 gfxmode via ${GRUB_GFXMODE}.
42701 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42703 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42705 2008-08-21 Robert Millan <rmh@aybabtu.com>
42707 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42709 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42710 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42712 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42714 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42715 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42717 2008-08-19 Robert Millan <rmh@aybabtu.com>
42719 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42720 (struct grub_virtual_screen): Remove `cursor_color'.
42721 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42723 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42725 2008-08-18 Robert Millan <rmh@aybabtu.com>
42727 Unify (identical) linux_normal.c files.
42728 * loader/i386/efi/linux_normal.c: Move from here ...
42729 * loader/linux_normal.c: ... to here. Update all users.
42730 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42731 * loader/i386/ieee1275/linux_normal.c: Likewise.
42733 2008-08-18 Robert Millan <rmh@aybabtu.com>
42735 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42736 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42737 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42738 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42739 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42741 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42742 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42743 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42744 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42745 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42746 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42747 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42748 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42749 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42750 portably using grub_getxy().
42751 Replace `-EFI' with `-bzImage' in boot message.
42753 2008-08-17 Robert Millan <rmh@aybabtu.com>
42755 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42757 2008-08-17 Robert Millan <rmh@aybabtu.com>
42759 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42761 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42762 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42763 (grub_machine_mmap_iterate): New function declaration.
42764 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42766 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42769 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42770 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42771 Move e820 parsing from here ...
42772 * kern/i386/pc/mmap.c: New file.
42773 (grub_machine_mmap_iterate): ... to here.
42775 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42776 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42777 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42778 (grub_available_iterate): Redeclare to return `void', and redeclare
42779 its hook to use grub_uint64_t as addr and size parameters, and rename
42781 (grub_machine_mmap_iterate): ... this. Update all users.
42783 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42784 to make it more readable. Rename to ...
42785 (grub_machine_mmap_iterate): ... this.
42787 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42788 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42789 (grub_multiboot): Allocate an extra region after the payload, and fill
42790 it with a Multiboot memory map. Adjust a.out loader to calculate size
42791 with the extra space.
42792 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42793 with the extra space.
42795 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42797 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42799 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42801 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42802 mdate-sh to the list `find' searches for.
42803 * DISTLIST: Regenerated.
42805 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42807 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42808 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42809 genmoddep.awk, gensymlist.sh.in.
42810 (DISTDIRS): Add bus, docs, hook, lib.
42811 * DISTLIST: Regenerated.
42812 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42814 2008-08-16 Robert Millan <rmh@aybabtu.com>
42816 * disk/raid.c (grub_raid_init): Handle/report errors set by
42817 grub_device_iterate().
42818 * disk/lvm.c (grub_lvm_init): Likewise.
42820 2008-08-15 Bean <bean123ch@gmail.com>
42822 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42824 (datetime_mod_SOURCES): New macro.
42825 (datetime_mod_CFLAGS): Likewise.
42826 (datetime_mod_LDFLAGS): Likewise.
42827 (date_mod_SOURCES): Likewise.
42828 (date_mod_CFLAGS): Likewise.
42829 (date_mod_LDFLAGS): Likewise.
42830 (datehook_mod_SOURCES): Likewise.
42831 (datehook_mod_CFLAGS): Likewise.
42832 (datehook_mod_LDFLAGS): Likewise.
42834 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42836 (datetime_mod_SOURCES): New macro.
42837 (datetime_mod_CFLAGS): Likewise.
42838 (datetime_mod_LDFLAGS): Likewise.
42839 (date_mod_SOURCES): Likewise.
42840 (date_mod_CFLAGS): Likewise.
42841 (date_mod_LDFLAGS): Likewise.
42842 (datehook_mod_SOURCES): Likewise.
42843 (datehook_mod_CFLAGS): Likewise.
42844 (datehook_mod_LDFLAGS): Likewise.
42846 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42848 (datetime_mod_SOURCES): New macro.
42849 (datetime_mod_CFLAGS): Likewise.
42850 (datetime_mod_LDFLAGS): Likewise.
42851 (date_mod_SOURCES): Likewise.
42852 (date_mod_CFLAGS): Likewise.
42853 (date_mod_LDFLAGS): Likewise.
42854 (datehook_mod_SOURCES): Likewise.
42855 (datehook_mod_CFLAGS): Likewise.
42856 (datehook_mod_LDFLAGS): Likewise.
42858 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42860 (datetime_mod_SOURCES): New macro.
42861 (datetime_mod_CFLAGS): Likewise.
42862 (datetime_mod_LDFLAGS): Likewise.
42863 (date_mod_SOURCES): Likewise.
42864 (date_mod_CFLAGS): Likewise.
42865 (date_mod_LDFLAGS): Likewise.
42866 (datehook_mod_SOURCES): Likewise.
42867 (datehook_mod_CFLAGS): Likewise.
42868 (datehook_mod_LDFLAGS): Likewise.
42870 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42872 (datetime_mod_SOURCES): New macro.
42873 (datetime_mod_CFLAGS): Likewise.
42874 (datetime_mod_LDFLAGS): Likewise.
42875 (date_mod_SOURCES): Likewise.
42876 (date_mod_CFLAGS): Likewise.
42877 (date_mod_LDFLAGS): Likewise.
42878 (datehook_mod_SOURCES): Likewise.
42879 (datehook_mod_CFLAGS): Likewise.
42880 (datehook_mod_LDFLAGS): Likewise.
42882 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42884 * commands/date.c: New file.
42886 * hook/datehook.c: Likewise.
42888 * include/grub/lib/datetime.h: Likewise.
42890 * include/grub/i386/cmos.h: Likewise.
42892 * lib/datetime.c: Likewise.
42894 * lib/i386/datetime.c: Likewise.
42896 * lib/efi/datetime.c: Likewise.
42898 2008-08-14 Robert Millan <rmh@aybabtu.com>
42900 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42901 (grub_mkelfimage_SOURCES): New variable.
42902 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42904 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42905 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42906 * conf/powerpc-ieee1275.rmk: Likewise.
42907 * conf/i386-ieee1275.rmk: Likewise.
42909 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42910 * kern/i386/coreboot/init.c: Likewise.
42912 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42913 with `<grub/cpu/kernel.h>'.
42914 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42916 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42917 * kern/i386/coreboot/startup.S: Likewise.
42919 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42920 (GRUB_MOD_GAP): Remove.
42921 * include/grub/powerpc/kernel.h: New file.
42922 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42923 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42924 * include/grub/i386/kernel.h: New file.
42925 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42926 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42927 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42929 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42931 Use --directory when invoking grub_mkimage.
42933 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42934 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42935 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42936 and GRUB_KERNEL_CPU_PREFIX.
42938 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42940 * include/grub/err.h (grub_err_printf): New function prototype.
42941 * util/misc.c (grub_err_printf): New function.
42942 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42944 * kern/err.c (grub_print_error): Use grub_err_printf.
42946 2008-08-13 Robert Millan <rmh@aybabtu.com>
42948 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42950 2008-08-13 Robert Millan <rmh@aybabtu.com>
42952 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42955 2008-08-12 Robert Millan <rmh@aybabtu.com>
42957 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42958 of the relocation code from here ...
42959 (grub_multiboot): ... to here.
42960 (forward_relocator, backward_relocator): Move from here ...
42961 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42962 (grub_multiboot_backward_relocator): ... to here.
42963 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42964 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42965 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42966 (grub_multiboot_forward_relocator_end)
42967 (grub_multiboot_backward_relocator)
42968 (grub_multiboot_backward_relocator_end): New variables.
42970 2008-08-12 Bean <bean123ch@gmail.com>
42972 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42974 2008-08-11 Robert Millan <rmh@aybabtu.com>
42976 * kern/i386/linuxbios/startup.S: Move from here ...
42977 * kern/i386/coreboot/startup.S: ... to here.
42979 * kern/i386/linuxbios/init.c: Move from here ...
42980 * kern/i386/coreboot/init.c: ... to here.
42982 * kern/i386/linuxbios/table.c: Move from here ...
42983 * kern/i386/coreboot/mmap.c: ... to here.
42985 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42987 2008-08-11 Robert Millan <rmh@aybabtu.com>
42989 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42990 errors. Leave it to the upper layer to handle them.
42992 2008-08-09 Christian Franke <franke@computer.org>
42994 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42995 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42996 Install `grub.d/10_windows' only on Cygwin.
42997 * configure.ac: Add subst of `target_os'.
42998 Check `target_os' also before setting TARGET_OBJ2ELF.
42999 Add `--enable-grub-pe2elf'.
43001 2008-08-08 Robert Millan <rmh@aybabtu.com>
43003 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43004 (grub_last_time): Change type to grub_uint64_t.
43005 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43006 (grub_disk_close): Likewise.
43008 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43009 (run_menu): Migrate code from to using grub_get_time_ms().
43011 * util/misc.c (grub_get_time_ms): New function.
43013 2008-08-08 Marco Gerards <marco@gnu.org>
43015 * disk/ata.c (grub_ata_regget): Change return type to
43017 (grub_ata_regget2): Likewise.
43018 (grub_ata_wait_status): New function.
43019 (grub_ata_wait_busy): Removed function, updated all users to use
43020 `grub_ata_wait_status'.
43021 (grub_ata_wait_drq): Likewise.
43022 (grub_ata_cmd): New function.
43023 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43025 (grub_ata_pio_write): Add error handling.
43026 (grub_atapi_identify): Likewise.
43027 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43029 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43030 handling. Actually use the detected registers. Reorder the
43031 detection logic such that it is easier to read.
43032 (grub_ata_pciinit): Do not assign the same ID to each controller.
43033 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43035 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43037 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43039 2008-08-08 Marco Gerards <marco@gnu.org>
43043 2008-08-07 Bean <bean123ch@gmail.com>
43045 * include/grub/x86_64/pci.h: New file.
43047 2008-08-07 Christian Franke <franke@computer.org>
43049 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43050 (TIMER2_GATE): Likewise.
43051 (grub_pit_wait): Add enable/disable of the timer2 gate
43052 bit of port 0x61. This fixes a possible infinite loop.
43054 2008-08-07 Bean <bean123ch@gmail.com>
43056 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43057 kern/i386/tsc.c and kern/i386/pit.c.
43059 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43062 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43065 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43067 2008-08-07 Bean <bean123ch@gmail.com>
43069 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43071 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43073 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43074 multiple inclusion. Add #include <grub/types.h>.
43076 2008-08-06 Christian Franke <franke@computer.org>
43078 * conf/common.rmk: Build and install `10_windows'.
43079 * util/grub.d/10_windows.in: New script.
43081 2008-08-06 Pavel Roskin <proski@gnu.org>
43083 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43085 2008-08-06 Robert Millan <rmh@aybabtu.com>
43087 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43088 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43090 2008-08-06 Bean <bean123ch@gmail.com>
43092 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43093 (grub_pxefs_fs_int): Remove dummy definition.
43094 (grub_pxefs_open): Use data->block_size to store the current block
43096 (grub_pxefs_read): Use block size stored in data->block_size. As the
43097 value of grub_pxe_blksize can be changed after the file is opened.
43099 2008-08-06 Bean <bean123ch@gmail.com>
43101 * fs/i386/pc/pxe.c (curr_file): new variable.
43102 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43103 require the dummy internal file system anymore.
43104 (grub_pxefs_read): Removed.
43105 (grub_pxefs_close): Likewise.
43106 (grub_pxefs_fs_int): Likewise.
43107 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43108 connection when we switch file.
43109 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43111 2008-08-06 Robert Millan <rmh@aybabtu.com>
43113 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43115 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43116 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43118 * kern/i386/halt.c: New file.
43119 * kern/i386/reboot.c: Likewise.
43120 * include/grub/i386/reboot.h: Likewise.
43121 * include/grub/i386/halt.h: Likewise.
43123 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43124 Include `<grub/cpu/halt.h>'.
43125 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43126 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43128 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43129 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43130 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43131 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43132 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43133 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43135 * include/grub/i386/at_keyboard.h: ... to here.
43137 2008-08-05 Robert Millan <rmh@aybabtu.com>
43139 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43140 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43141 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43142 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43143 `kern/generic/millisleep.c'.
43145 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43146 instead of grub_get_rtc().
43147 (grub_tsc_init): Initialize `tsc_boot_time'.
43149 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43150 (grub_machine_init): Use grub_tsc_init() rather than
43151 installing an RTC-based handler via grub_install_get_time_ms().
43153 * kern/i386/pit.c: New file.
43154 * include/grub/i386/pit.h: Likewise.
43156 2008-08-05 Bean <bean123ch@gmail.com>
43158 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43160 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43161 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43162 (pxe_mod_SOURCES): New macro.
43163 (pxe_mod_CFLAGS): Likewise.
43164 (pxe_mod_LDFLAGS): Likewise.
43165 (pxecmd_mod_SOURCES): Likewise.
43166 (pxecmd_mod_CFLAGS): Likewise.
43167 (pxecmd_mod_LDFLAGS): Likewise.
43169 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43170 (grub_pxe_call): Likewise.
43172 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43174 * commands/i386/pc/pxecmd.c: New file.
43176 * fs/i386/pc/pxe.c: Likewise.
43178 * include/grub/i386/pc/pxe.h: Likewise.
43180 2008-08-05 Bean <bean123ch@gmail.com>
43182 * util/console.c (grub_console_cur_color): New variable.
43183 (grub_console_standard_color): Likewise.
43184 (grub_console_normal_color): Likewise.
43185 (grub_console_highlight_color): Likewise.
43186 (color_map): Likewise.
43187 (use_color): Likewise.
43188 (NUM_COLORS): New macro.
43189 (grub_ncurses_setcolorstate): Handle color properly.
43190 (grub_ncurses_setcolor): Don't change color here, just remember the
43191 settings, color will be set in grub_ncurses_setcolorstate.
43192 (grub_ncurses_getcolor): New function.
43193 (grub_ncurses_init): Initialize color pairs.
43194 (grub_ncurses_term): New member grub_ncurses_getcolor.
43196 2008-08-05 Colin D Bennett <colin@gibibit.com>
43198 High resolution timer support. Implemented for x86 CPUs using TSC.
43199 Extracted generic grub_millisleep() so it's linked in only as needed.
43200 This requires a Pentium compatible CPU; if the RDTSC instruction is
43201 not supported, then it falls back on the generic grub_get_time_ms()
43202 implementation that uses the machine's RTC.
43204 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43205 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43206 `kern/generic/millisleep.c'.
43208 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43209 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43211 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43212 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43214 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43216 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43217 `kern/generic/millisleep.c'.
43219 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43221 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43223 * kern/generic/rtc_get_time_ms.c: New file.
43225 * kern/generic/millisleep.c: New file.
43227 * kern/misc.c: Don't include
43228 <kern/time.h> anymore.
43229 (grub_millisleep_generic): Removed.
43231 * commands/sleep.c (grub_interruptible_millisleep): Uses
43232 grub_get_time_ms() instead of grub_get_rtc().
43234 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43236 (grub_cpu_is_cpuid_supported): New inline function.
43237 (grub_cpu_is_tsc_supported): New inline function.
43238 (grub_tsc_init): New function prototype.
43239 (grub_tsc_get_time_ms): New function prototype.
43241 * kern/i386/tsc.c (grub_get_time_ms): New file.
43243 * include/grub/time.h: Include <grub/types.h.
43244 (grub_millisleep_generic): Removed.
43245 (grub_get_time_ms): New prototype.
43246 (grub_install_get_time_ms): New prototype.
43247 (grub_rtc_get_time_ms): New prototype.
43249 * kern/time.c (grub_get_time_ms): New function.
43250 (grub_install_get_time_ms): New function.
43252 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43253 <grub/time.h> anymore.
43254 (grub_millisleep): Removed.
43255 (grub_machine_init): Call grub_tsc_init.
43257 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43258 get_time_ms() implementation.
43260 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43261 (ieee1275_get_time_ms): New function.
43262 (grub_machine_init): Install get_time_ms() implementation.
43264 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43265 (grub_machine_init): Call grub_tsc_init().
43266 (grub_millisleep): Removed.
43268 * kern/ieee1275/init.c (grub_millisleep): Removed.
43269 (grub_machine_init): Install ieee1275_get_time_ms()
43271 (ieee1275_get_time_ms): New function.
43272 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43275 2008-08-05 Marco Gerards <marco@gnu.org>
43277 * disk/ata.c: Include <grub/pci.h>.
43278 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43279 (grub_ata_initialize): Rewritten.
43280 (grub_ata_device_initialize): New function.
43282 2008-08-04 Pavel Roskin <proski@gnu.org>
43284 * kern/main.c: Include grub/mm.h.
43286 2008-08-04 Robert Millan <rmh@aybabtu.com>
43288 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43289 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43290 corruption problem).
43292 2008-08-04 Robert Millan <rmh@aybabtu.com>
43294 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43295 warnings introduced in my last commit.
43297 2008-08-03 Robert Millan <rmh@aybabtu.com>
43299 Make PCI available on all i386 architectures.
43301 * include/grub/i386/pc/pci.h: Move from here ...
43302 * include/grub/i386/pci.h: ... to here.
43304 * include/grub/i386/pc/pci.h: Remove.
43305 * include/grub/i386/efi/pci.h: Remove.
43306 * include/grub/x86_64/efi/pci.h: Remove.
43308 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43309 `<grub/cpu/pci.h>'.
43311 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43312 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43313 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43315 * conf/i386-ieee1275.rmk: Likewise.
43317 2008-08-03 Robert Millan <rmh@aybabtu.com>
43319 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43320 (grub_console_setcursor): Make it possible to set cursor off.
43322 2008-08-03 Robert Millan <rmh@aybabtu.com>
43324 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43325 of modules instead of assuming which platform provides what.
43326 * util/update-grub.in: Likewise.
43328 2008-08-03 Robert Millan <rmh@aybabtu.com>
43330 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43331 instead of `grub_install_dos_part' to determine whether a drive needs
43332 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43333 because it can be overridden when loading GRUB via Multiboot).
43335 2008-08-02 Robert Millan <rmh@aybabtu.com>
43337 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43339 2008-08-02 Robert Millan <rmh@aybabtu.com>
43341 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43342 of informational grub_dprintf() calls.
43344 2008-08-02 Robert Millan <rmh@aybabtu.com>
43346 * disk/memdisk.c (memdisk_size): Don't initialize.
43347 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43349 * include/grub/i386/pc/kernel.h
43350 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43351 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43352 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43353 (grub_arch_memdisk_size): Remove.
43355 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43356 field (was only used to transfer a constant). Add `type' field to
43357 support multiple module types.
43358 (grub_module_iterate): New function.
43360 * kern/device.c (grub_device_open): Do not hide error messages
43361 when grub_disk_open() fails. Use grub_print_error() instead.
43363 * kern/i386/pc/init.c (grub_arch_modules_addr)
43364 (grub_arch_memdisk_size): Remove functions.
43365 (grub_arch_modules_addr): Return the module address in high memory
43366 (now that it isn't copied anymore).
43368 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43369 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43370 decompression routine (grub_total_module_size already includes that
43371 now). Don't copy modules back to low memory.
43373 * kern/main.c: Include `<grub/mm.h>'.
43374 (grub_load_modules): Split out (and use) ...
43375 (grub_module_iterate): ... this function, which iterates through
43376 module objects and runs a hook.
43377 Comment out grub_mm_init_region() call, as it would cause non-ELF
43378 modules to be overwritten.
43380 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43381 the memdisk image in its own region, make it part of the module list.
43382 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43383 (main): Parse --memdisk|-m option, and pass user-provided path as
43384 parameter to generate_image().
43385 (add_segments): Pass `memdisk_path' down to load_modules().
43386 (load_modules): Embed memdisk image in module section when requested.
43387 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43388 `header.type' instead of `header.offset'.
43390 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43391 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43392 (memdisk_mod_LDFLAGS): New variables.
43393 * conf/i386-coreboot.rmk: Likewise.
43394 * conf/i386-ieee1275.rmk: Likewise.
43396 2008-08-02 Robert Millan <rmh@aybabtu.com>
43398 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43399 (backward_relocator): New variables. Used to allocate and relocate
43400 the payload, respectively.
43401 (grub_multiboot_load_elf32): Load into heap instead of requested
43402 address, install the appropriate relocator code in each bound of
43403 the payload, and set the entry point such that
43404 grub_multiboot_real_boot() will jump to one of them.
43406 * kern/i386/loader.S (grub_multiboot_payload_size)
43407 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43408 (grub_multiboot_payload_entry_offset): New variables.
43409 (grub_multiboot_real_boot): Set cpu context to what the relocator
43410 expects, and jump to the relocator instead of the payload.
43412 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43413 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43414 (grub_multiboot_payload_entry_offset): Export.
43416 2008-08-01 Bean <bean123ch@gmail.com>
43418 * normal/menu_entry.c (editor_getline): Don't return the original
43419 string as result, as it will be released by lexer once it has done
43422 2008-08-01 Robert Millan <rmh@aybabtu.com>
43424 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43425 within menuentries, not before them.
43426 util/grub.d/10_hurd.in: Likewise.
43428 2008-08-01 Bean <bean123ch@gmail.com>
43430 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43431 (bufio_mod_SOURCES): New macro.
43432 (bufio_mod_CFLAGS): Likewise.
43433 (bufio_mod_LDFLAGS): Likewise.
43435 * include/grub/bufio.h: New file.
43437 * io/bufio.c: Likewise.
43439 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43440 (grub_video_reader_png): Use grub_buffile_open to open file.
43442 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43443 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43445 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43446 (grub_video_reader_tga): Use grub_buffile_open to open file.
43448 * font/manager.c: Include <grub/bufio.h>.
43449 (add_font): Use grub_buffile_open to open file.
43451 2008-07-31 Robert Millan <rmh@aybabtu.com>
43453 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43454 ELF segments, use a macro for arbitrarily accessing any of them instead
43455 of preparing a pointer that allows access to one at a time.
43456 (grub_multiboot_load_elf64): Likewise.
43458 2008-07-31 Bean <bean123ch@gmail.com>
43460 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43461 GRUB_KERNEL_MACHINE_DATA_END.
43463 2008-07-30 Robert Millan <rmh@aybabtu.com>
43465 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43466 Increase from 0x50 to 0x60.
43467 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43468 use UUIDs to identify the root drive for them. If that's not
43470 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43471 check, for cross-disk installs.
43473 2008-07-30 Robert Millan <rmh@aybabtu.com>
43475 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43476 is non-empty, use it to set the `prefix' environment variable instead
43477 of the usual approach.
43478 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43479 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43480 environment variable instead of dummy make_install_device().
43482 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43483 (start): Insert a data section, with `grub_prefix' variable.
43484 * kern/i386/linuxbios/startup.S: Likewise.
43486 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43487 New variable reference.
43488 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43489 New macro. Defines offset of `grub_prefix' within startup.S (relative
43491 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43492 section within startup.S (relative to `start').
43493 * include/grub/i386/coreboot/kernel.h: Likewise.
43495 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43496 Overwrite grub_prefix with its contents, at the beginning of the
43498 (main): Understand -p|--prefix.
43500 2008-07-30 Robert Millan <rmh@aybabtu.com>
43502 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43504 2008-07-30 Robert Millan <rmh@aybabtu.com>
43506 * term/i386/pc/vga_text.c (grub_console_cls): Use
43507 grub_console_gotoxy() to go back to beginning of the screen.
43508 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43510 2008-07-29 Christian Franke <franke@computer.org>
43512 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43513 Add conversion of emulated mount points on Cygwin.
43515 2008-07-29 Christian Franke <franke@computer.org>
43517 * util/update-grub.in: Add a check for admin
43519 Remove old `grub.cfg.new' before creation.
43520 Add `-f' to `mv' to handle the different filesystem
43521 semantics of Windows.
43523 2008-07-29 Bean <bean123ch@gmail.com>
43525 * normal/main.c (get_line): Fix buffer overflow bug.
43527 2008-07-28 Robert Millan <rmh@aybabtu.com>
43529 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43530 (struct grub_apple_header): New struct. Describes the layout of
43531 the partmap header.
43532 (apple_partition_map_iterate): Check the header magic as well as the
43533 partition magic (which was already being checked).
43535 2008-07-28 Pavel Roskin <proski@gnu.org>
43537 * genmk.rb: Add a warning to the beginning of the output that
43538 it's a generated file and should not be edited.
43540 2008-07-28 Robert Millan <rmh@aybabtu.com>
43542 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43543 with the same number are found, just use issue a warning with
43544 grub_dprintf(), as this error has been reported to be non-fatal.
43546 2008-07-27 Robert Millan <rmh@aybabtu.com>
43548 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43551 2008-07-27 Bean <bean123ch@gmail.com>
43553 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43554 (grub_fat_find_dir): Ignore case when comparing filename.
43556 2008-07-27 Bean <bean123ch@gmail.com>
43558 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43559 smallino, as it's more descriptive, and i8count can be confused with
43560 the other field count.
43561 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43564 2008-07-27 Bean <bean123ch@gmail.com>
43566 * commands/crc.c: New file.
43568 * lib/crc.c: Likewise.
43570 * include/grub/lib/crc.h: Likewise.
43572 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43574 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43575 (hexdump): Move this function to ...
43577 * lib/hexdump.c: ... here.
43579 * include/grub/hexdump.h: Renamed to ...
43581 * include/grub/lib/hexdump.h: ... this.
43583 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43585 * util/grub-editenv.c: Likewise.
43587 * include/envblk.h: Renamed to ...
43589 * include/lib/envblk.h: ... this.
43591 * util/envblk.c: Renamed to ...
43593 * lib/envblk.c: ... this.
43595 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43597 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43598 (pkglib_MODULES): Add crc.mod.
43599 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43600 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43601 (crc_mod_SOURCES): New macro.
43602 (crc_mod_CFLAGS): Likewise.
43603 (crc_mod_LDFLAGS): Likewise.
43605 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43607 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43609 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43613 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43615 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43617 * commands/help.c: Include <grub/term.h>.
43618 (TERM_WIDTH): Removed. Updated all users.
43620 2008-07-27 Pavel Roskin <proski@gnu.org>
43622 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43623 spurious warnings about a comment within a comment.
43625 2008-07-25 Robert Millan <rmh@aybabtu.com>
43627 * util/getroot.c (find_root_device): Skip devices that match
43628 /dev/dm-[0-9]. This lets the real device be found for any type of
43629 abstraction (LVM, EVMS, RAID..).
43630 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43631 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43632 device is found first, find_root_device() will now skip it.
43634 2008-07-24 Pavel Roskin <proski@gnu.org>
43636 * include/grub/types.h: Use __builtin_bswap32() and
43637 __builtin_bswap64() with gcc 4.3 and newer.
43639 2008-07-24 Christian Franke <franke@computer.org>
43641 * util/i386/pc/grub-install.in: If `--debug' is specified,
43642 pass `--verbose' to grub-setup.
43643 Abort script if make_system_path_relative_to_its_root() fails.
43645 2008-07-24 Bean <bean123ch@gmail.com>
43647 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43648 variable `target_platform' should be `platform'.
43650 2008-07-24 Bean <bean123ch@gmail.com>
43652 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43653 (grub_png_init_fixed_block): New function.
43654 (grub_png_decode_image_data): Handle fixed huffman code compression.
43656 2008-07-24 Bean <bean123ch@gmail.com>
43658 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43659 (grub_pe2elf_SOURCES): New macro.
43660 (CLEANFILES): Add grub-pe2elf.
43662 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43663 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43664 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43665 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43666 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43667 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43668 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43669 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43670 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43671 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43672 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43673 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43674 (GRUB_PE32_DT_FUNCTION): Likewise.
43675 (GRUB_PE32_REL_I386_DIR32): Likewise.
43676 (GRUB_PE32_REL_I386_REL32): Likewise.
43677 (grub_pe32_symbol): New structure.
43678 (grub_pe32_reloc): Likewise.
43680 * util/grub-pe2elf.c: New file.
43682 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43683 start symbol in non pc platform.
43685 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43687 The following patches are from Christian Franke.
43689 * include/grub/dl.h: Remove .previous, gas supports this only
43692 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43693 Remove .type, gas supports this only for ELF format.
43695 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43696 nullbytes in symbol table. This fixes an infinite loop if table is
43699 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43700 TARGET_IMG_LDFLAGS and EXEEXT.
43702 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43703 TARGET_IMG_LDFLAGS_AC.
43704 (grub_CHECK_STACK_ARG_PROBE): New function.
43706 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43708 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43710 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43711 to set TARGET_IMG_LD* accordingly.
43712 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43713 Add call to grub_CHECK_STACK_ARG_PROBE.
43714 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43716 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43718 * genmk.rb: Add EXEEXT to CLEANFILES.
43720 2008-07-23 Robert Millan <rmh@aybabtu.com>
43722 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43723 define the codes for arrows and lines used for the menu).
43724 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43727 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43728 fonts, because the latter are too slow.
43730 2008-07-21 Bean <bean123ch@gmail.com>
43732 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43733 a20. Run keyboard test last, as it will cause macbook to halt.
43735 2008-07-18 Pavel Roskin <proski@gnu.org>
43737 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43738 load foreign architecture modules correctly anyway. Keep
43739 support for loading host architecture modules, whether we
43740 compile them or not.
43742 2008-07-17 Pavel Roskin <proski@gnu.org>
43744 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43745 change target_cpu. The compiler default can mismatch target_cpu
43748 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43749 * kern/efi/efi.c: Likewise.
43751 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43752 target compiler is functional.
43753 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43756 * configure.ac: Default to efi platform for x86_64-apple. Allow
43757 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43758 adjustments from the rest, only do them if target is not
43759 explicitly given. Merge other adjustments with the final sanity
43760 check. Remove an extraneous check for supported CPU. Be
43761 specific which CPU and which platform is not supported.
43763 * configure.ac: Default to pc platform for x86_64.
43765 2008-07-17 Robert Millan <rmh@aybabtu.com>
43767 Partial LinuxBIOS -> Coreboot rename.
43769 * conf/i386-linuxbios.rmk: Renamed to ...
43770 * conf/i386-coreboot.rmk: ... this.
43771 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43772 * configure.ac: Accept "coreboot" as input platform (but maintain
43773 compatibility with "linuxbios").
43774 * include/grub/i386/linuxbios: Renamed to ...
43775 * include/grub/i386/coreboot: ... this.
43777 2008-07-17 Bean <bean123ch@gmail.com>
43779 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43780 (appleldr_mod_SOURCE): New variable.
43781 (appleldr_mod_CFLAGS): Likewise.
43782 (appleldr_mod_LDFLAGS): Likewise.
43783 (pci_mod_SOURCES): Likewise.
43784 (pci_mod_CFLAGS): Likewise.
43785 (pci_mod_LDFLAGS): Likewise.
43786 (lspci_mod_SOURCES): Likewise.
43787 (lspci_mod_CFLAGS): Likewise.
43788 (lspci_mod_LDFLAGS): Likewise.
43790 * conf/x86_64-efi.rmk: New file.
43792 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43794 (grub_efidisk_write): Likewise.
43796 * include/efi/api.h (efi_call_0): New macro.
43797 (efi_call_1): Likewise.
43798 (efi_call_2): Likewise.
43799 (efi_call_3): Likewise.
43800 (efi_call_4): Likewise.
43801 (efi_call_5): Likewise.
43802 (efi_call_6): Likewise.
43804 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43805 grub_rescue_cmd_chainloader.
43807 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43808 (grub_pe32_optional_header): Change some fields based on i386 or
43810 (GRUB_PE32_PE32_MAGIC): Likewise.
43812 * include/grub/efi/uga_draw.h: New file.
43814 * include/grub/elf.h (STN_ABS): New constant.
43815 (R_X86_64_NONE): Relocation constant for x86_64.
43816 (R_X86_64_64): Likewise.
43817 (R_X86_64_PC32): Likewise.
43818 (R_X86_64_GOT32): Likewise.
43819 (R_X86_64_PLT32): Likewise.
43820 (R_X86_64_COPY): Likewise.
43821 (R_X86_64_GLOB_DAT): Likewise.
43822 (R_X86_64_JUMP_SLOT): Likewise.
43823 (R_X86_64_RELATIVE): Likewise.
43824 (R_X86_64_GOTPCREL): Likewise.
43825 (R_X86_64_32): Likewise.
43826 (R_X86_64_32S): Likewise.
43827 (R_X86_64_16): Likewise.
43828 (R_X86_64_PC16): Likewise.
43829 (R_X86_64_8): Likewise.
43830 (R_X86_64_PC8): Likewise.
43832 * include/grub/i386/efi/pci.h: New file.
43834 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43835 Change it value based on platform.
43836 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43837 (GRUB_E820_RAM): Likewise.
43838 (GRUB_E820_RESERVED): Likewise.
43839 (GRUB_E820_ACPI): Likewise.
43840 (GRUB_E820_NVS): Likewise.
43841 (GRUB_E820_EXEC_CODE): Likewise.
43842 (GRUB_E820_MAX_ENTRY): Likewise.
43843 (grub_e820_mmap): New structure.
43844 (linux_kernel_header): Change the efi field according to different
43845 kernel version, also field from linux_kernel_header.
43847 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43849 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43850 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43851 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43852 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43853 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43854 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43855 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43856 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43857 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43858 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43860 * include/grub/x86_64/efi/kernel.h: New file.
43862 * include/grub/x86_64/efi/loader.h: Likewise.
43864 * include/grub/x86_64/efi/machine.h: Likewise.
43866 * include/grub/x86_64/efi/pci.h: Likewise.
43868 * include/grub/x86_64/efi/time.h: Likewise.
43870 * include/grub/x86_64/linux.h: Likewise.
43872 * include/grub/x86_64/setjmp.h: Likewise.
43874 * include/grub/x86_64/time.h: Likewise.
43876 * include/grub/x86_64/types.h: Likewise.
43878 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43879 GRUB_TARGET_SIZEOF_VOID_P.
43881 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43882 (grub_efi_locate_handle): Likewise.
43883 (grub_efi_open_protocol): Likewise.
43884 (grub_efi_set_text_mode): Likewise.
43885 (grub_efi_stall): Likewise.
43886 (grub_exit): Likewise.
43887 (grub_reboot): Likewise.
43888 (grub_halt): Likewise.
43889 (grub_efi_exit_boot_services): Likewise.
43890 (grub_get_rtc): Likewise.
43892 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43893 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43894 (grub_efi_allocate_pages): Wrap efi calls.
43895 (grub_efi_free_pages): Wrap efi calls.
43896 (grub_efi_get_memory_map): Wrap efi calls.
43898 * kern/x86_64/dl.c: New file.
43900 * kern/x86_64/efi/callwrap.S: Likewise.
43902 * kern/x86_64/efi/startup.S: Likewise.
43904 * loader/efi/appleloader.c: Likewise.
43906 * loader/efi/chainloader.c (cmdline): New variable.
43907 (grub_chainloader_unload): Wrap efi calls.
43908 (grub_chainloader_boot): Likewise.
43909 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43912 * loader/efi/chainloader_normal.c (chainloader_command):
43913 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43916 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43918 (grub_e820_add_region): New function.
43919 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43921 (grub_find_video_card): New function.
43922 (grub_linux_setup_video): New function.
43923 (grub_rescue_cmd_linux): Probe for video information.
43925 * normal/x86_64/setjmp.S: New file.
43927 * term/efi/console.c (map_char): New function.
43928 (grub_console_putchar): Map unicode char.
43929 (grub_console_checkkey): Wrap efi calls.
43930 (grub_console_getkey): Likewise.
43931 (grub_console_getwh): Likewise.
43932 (grub_console_gotoxy): Likewise.
43933 (grub_console_cls): Likewise.
43934 (grub_console_setcolorstate): Likewise.
43935 (grub_console_setcursor): Likewise.
43937 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43939 2008-07-16 Pavel Roskin <proski@gnu.org>
43941 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43944 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43945 pointer, not an integer. This fixes a warning and prevents
43946 precision loss on 64-bit systems.
43947 (relocate_addresses): Remove unneeded cast.
43949 2008-07-15 Pavel Roskin <proski@gnu.org>
43951 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43953 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43955 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43956 Fix comparison between signed and unsigned.
43958 * include/grub/i386/ieee1275/console.h: Declare
43959 grub_console_init() and grub_console_fini().
43961 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43962 It's empty and unused.
43964 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43965 beginning to avoid warnings with some compilers.
43967 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43968 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43970 2008-07-14 Pavel Roskin <proski@gnu.org>
43972 * kern/env.c (grub_register_variable_hook): Don't copy empty
43973 string, it leaks memory. Pass "" to grub_env_set(), it should
43974 handle constant strings.
43976 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43977 * commands/cmp.c (grub_cmd_cmp): Likewise.
43978 * kern/dl.c (grub_dl_flush_cache): Likewise.
43979 (grub_dl_load_core): Likewise.
43980 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43981 (grub_elf64_load_phdrs): Likewise.
43983 2008-07-13 Pavel Roskin <proski@gnu.org>
43985 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43986 between signed and unsigned.
43987 (LzmaEnc_Finish): Fix warning about an unused parameter.
43989 2008-07-13 Bean <bean123ch@gmail.com>
43991 * Makefile.in (enable_lzo): New rule.
43993 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43995 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43997 * boot/i386/pc/lnxboot.S: #include <config.h>.
43999 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44000 its value according to the compression algorithm used, lzo or lzma.
44002 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44003 compression algorithm according to configure macro.
44005 * kern/i386/pc/startup.S (codestart): Likewise.
44007 * kern/i386/pc/lzma_decode.S: New file.
44009 * include/grub/lib/LzFind.h: Likewise.
44011 * include/grub/lib/LzHash.h: Likewise.
44013 * include/grub/lib/LzmaDec.h: Likewise.
44015 * include/grub/lib/LzmaEnc.h: Likewise.
44017 * include/grub/lib/LzmaTypes.h: Likewise.
44019 * lib/LzFind.c: Likewise.
44021 * lib/LzmaDec.c: Likewise.
44023 * lib/LzmaEnc.c: Likewise.
44025 2008-07-13 Bean <bean123ch@gmail.com>
44027 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44028 (grub_ext4_extent_header): New structure.
44029 (grub_ext4_extent): Likewise.
44030 (grub_ext4_extent_idx): Likewise.
44031 (grub_ext4_find_leaf): New function.
44032 (grub_ext2_read_block): Handle extents.
44034 2008-07-12 Robert Millan <rmh@aybabtu.com>
44036 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44038 2008-07-11 Robert Millan <rmh@aybabtu.com>
44040 * util/grub.d/40_custom.in: New file. Example on how to add custom
44041 entries to /etc/grub.d.
44042 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44043 40_custom (implicitly, by merging all the grub.d rules).
44045 2008-07-11 Pavel Roskin <proski@gnu.org>
44047 * commands/read.c (grub_getline): Fix invalid memory access.
44048 Don't add newline to the variable value.
44050 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44051 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44052 (serial_hw_get_port): Check validity of the port number.
44053 (grub_cmd_serial): Check return value of serial_hw_get_port().
44055 2008-07-07 Pavel Roskin <proski@gnu.org>
44057 * boot/i386/pc/diskboot.S (notification_string): Replace
44058 "Loading kernel" with just "loading". This is shorter, less
44059 confusing and saves a few bytes for possible future changes.
44061 2008-07-05 Pavel Roskin <proski@gnu.org>
44063 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44064 size for ATAPI devices, they are undefined. Output sector
44065 number in decimal form.
44067 * disk/ata.c: Use named constants for status bits.
44069 2008-07-04 Pavel Roskin <proski@gnu.org>
44071 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44072 grub_addr_t before casting it to the void pointer to fix a
44073 warning. Non-addressable regions are discarded earlier.
44074 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44075 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44076 (check_signature): Don't shadow table_header.
44077 (grub_linuxbios_table_iterate): Cast numeric constants to
44078 grub_linuxbios_table_header_t.
44079 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44082 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44085 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44086 pointer, which can cause warnings. Support 64-bit addresses.
44088 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44089 of sizeof(long). This fixes PowerPC image generation on x86_64.
44091 2008-07-04 Robert Millan <rmh@aybabtu.com>
44093 This fixes a performance issue when pc & gpt partmap iterators
44094 didn't abort iteration even after our hook found what it was
44095 looking for (often causing expensive probes of non-existent drives).
44097 Some callers relied on previous buggy behaviour, since they would
44098 raise an error when their own hooks caused early abortion of its
44101 * kern/device.c (grub_device_open): Improve error message.
44102 * disk/lvm.c (grub_lvm_open): Likewise.
44103 * disk/raid.c (grub_raid_open): Likewise.
44105 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44106 when hook requests it, independently of grub_errno.
44107 (pc_partition_map_probe): Do not fail when find_func() caused
44108 early abortion of pc_partition_map_iterate().
44110 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44111 when hook requests it, independently of grub_errno.
44112 (gpt_partition_map_probe): Do not fail when find_func() caused
44113 early abortion of gpt_partition_map_iterate().
44115 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44116 when hook requests it, independently of grub_errno. Do not fail when
44117 part_map_iterate_hook() caused early abortion of p->iterate().
44119 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44120 when grub_partition_iterate() returned with non-zero.
44122 2008-07-03 Pavel Roskin <proski@gnu.org>
44124 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44125 like we do in grub_ata_pio_read().
44126 (grub_ata_readwrite): Always write individual sectors. Fix the
44127 sector count for the remainder.
44128 (grub_ata_write): Enable writing to ATA devices. Correctly
44129 report error for ATAPI devices.
44131 2008-07-02 Pavel Roskin <proski@gnu.org>
44133 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44136 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44137 for every read sector, we already increment it for the whole
44138 batch. This fixes reading more than 256 sectors at once.
44140 * util/grub-editenv.c (cmd_info): Cast argument to long
44141 explicitly. ptrdiff_t reduces to int on i386.
44143 * util/grub-editenv.c (main): Be specific which parameter is
44146 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44147 (memdisk): Make memdisk_orig_addr a pointer.
44149 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44150 for file offsets, use grub_off_t instead. Fix printf format
44153 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44154 there. Real unexpected warnings should not drown in the noise
44155 about known problems.
44157 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44158 grub_disk_addr_t for memory addresses.
44160 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44161 explicitly to fix a warning.
44163 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44165 * Makefile.in (MODULE_LDFLAGS): New variable.
44166 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44167 the linker accepts --build-id=none.
44168 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44170 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44172 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44173 those in Linux XFS code. Provide a way to access 64-bit parent
44175 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44176 the end of struct grub_xfs_dir_header.
44178 2008-07-02 Bean <bean123ch@gmail.com>
44180 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44181 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44182 and GRUB_IEEE1275_FLAG_NO_ANSI.
44184 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44185 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44186 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44188 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44189 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44191 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44192 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44194 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44195 esc sequence on non ANSI terminal.
44196 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44198 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44201 2008-07-02 Bean <bean123ch@gmail.com>
44203 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44204 (grub_editenv_SOURCES): New variable.
44205 (pkglib_MODULES): Add loadenv.mod.
44206 (loadenv_mod_SOURCES): New variable.
44207 (loadenv_mod_CFLAGS): Likewise.
44208 (loadenv_mod_LDFLAGS): Likewise.
44210 * include/grub/envblk.h: New file.
44212 * util/envblk.c: New file.
44214 * util/grub-editenv.c: New file.
44216 * commands/loadenv.c: New file.
44218 2008-07-01 Pavel Roskin <proski@gnu.org>
44220 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44221 not unsigned char. This fixes warnings and is consistent with
44224 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44226 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44228 * term/tparm.c (analyze): Always set *popcount.
44230 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44231 cast to fix a warning.
44233 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44234 cast to suppress a warning.
44236 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44237 grub_fshelp_read_file() expects.
44239 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44240 write uuid as a 32-bit value in CPU byte order, so declare and
44243 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44244 long if the format specifier expects it.
44245 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44246 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44247 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44248 long to fix a warning.
44249 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44250 grub_dprintf() arguments to fix warnings.
44252 2008-06-30 Pavel Roskin <proski@gnu.org>
44254 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44255 install_bsd_part immediately before core.img is embedded or
44256 modified on disk. This fixes core.img verification if core.img
44257 cannot be embedded.
44259 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44260 core_path to calculate the blocklist.
44261 Patch from Javier Martín <lordhabbit@gmail.com>
44263 2008-06-29 Robert Millan <rmh@aybabtu.com>
44265 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44266 block to disk block.
44267 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44268 Patch from Niels Böhm <bitbucket@arcor.de>
44270 2008-06-29 Robert Millan <rmh@aybabtu.com>
44272 * util/update-grub_lib.in (font_path): Search for fonts in
44273 /boot/grub first, which is more likely to be readable (we aren't
44274 deciding where fonts live, just looking for them).
44276 2008-06-26 Pavel Roskin <proski@gnu.org>
44278 * util/biosdisk.c (read_device_map): Don't leave dead map
44279 entries for devices failing stat() check.
44281 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44282 core_path_dev for the core.img path on the target device.
44284 2008-06-26 Robert Millan <rmh@aybabtu.com>
44286 * disk/fs_uuid.c: New file.
44287 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44288 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44289 (fs_uuid_mod_LDFLAGS): New variables.
44290 * include/grub/disk.h (grub_disk_dev_id): Add
44291 `GRUB_DISK_DEVICE_UUID_ID'.
44292 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44293 implement iterate().
44295 2008-06-26 Robert Millan <rmh@aybabtu.com>
44297 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44298 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44299 Linux image includes no initrd.
44301 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44303 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44304 call to resolve the core image location that effectively appended the
44307 2008-06-21 Robert Millan <rmh@aybabtu.com>
44309 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44312 * util/grub.d/10_hurd.in: ... to here ...
44313 * util/grub.d/10_linux.in: ... and here.
44315 2008-06-19 Robert Millan <rmh@aybabtu.com>
44317 * kern/main.c (grub_main): Export `prefix' variable immediately
44318 after it has been set by grub_machine_set_prefix().
44320 2008-06-19 Robert Millan <rmh@aybabtu.com>
44322 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44323 search result when not saving to variable, not the other way around.
44324 When saving to variable, abort iteration as soon as a match is found.
44326 2008-06-19 Robert Millan <rmh@aybabtu.com>
44328 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44329 check for partition that provides /boot/grub. Its logic is flawed,
44330 as it prevents prepare_grub_to_access_device() from being called
44333 2008-06-19 Robert Millan <rmh@aybabtu.com>
44335 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44336 "insmod" command directly when abstraction modules are needed,
44337 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44338 since it had already been processed).
44340 2008-06-19 Pavel Roskin <proski@gnu.org>
44342 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44343 changed. This is needed in case GRUB_LIBDIR changes.
44344 * conf/i386-ieee1275.rmk: Likewise.
44345 * conf/i386-linuxbios.rmk: Likewise.
44346 * conf/i386-pc.rmk: Likewise.
44347 * conf/powerpc-ieee1275.rmk: Likewise.
44349 2008-06-18 Pavel Roskin <proski@gnu.org>
44351 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44352 kernel_elf_symlist.c to symlist.c for consistency with other
44353 architectures. Update all users.
44354 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44356 2008-06-18 Robert Millan <rmh@aybabtu.com>
44358 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44361 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44362 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44363 a RAID device, run setup() for all members independently on whether
44364 LVM abstraction is being used.
44365 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44366 If grub-mkimage has set `*install_dos_part == -2', don't override this
44368 Perform *install_dos_part adjustments independently on whether
44369 we're embedding or not.
44370 Clarify error message when image is too big for embedding.
44371 Remove duplicate *install_dos_part stanza.
44373 2008-06-17 Robert Millan <rmh@aybabtu.com>
44375 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44376 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44378 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44379 values in grub_ofconsole_normal_color and
44380 grub_ofconsole_highlight_color (they're not directly related to
44381 background and foreground).
44382 (grub_ofconsole_setcolorstate): Extract background and foreground
44383 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44385 2008-06-17 Robert Millan <rmh@aybabtu.com>
44387 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44388 /boot/grub for the check in last commit, not /boot (they could be
44389 different partitions).
44391 2008-06-16 Robert Millan <rmh@aybabtu.com>
44393 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44394 asked to setup access for the same partition that provides /boot,
44395 don't bother using UUIDs since our root already has the value we
44398 2008-06-16 Robert Millan <rmh@aybabtu.com>
44400 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44402 Patch from Sven Mueller <sven@debian.org>.
44404 2008-06-16 Robert Millan <rmh@aybabtu.com>
44406 * util/update-grub.in: Check for $EUID instead of $UID.
44407 Reported by Vincent Zweije.
44409 2008-06-16 Bean <bean123ch@gmail.com>
44411 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44412 (grub_ext2_read_block): Likewise.
44413 (grub_ext2_read_inode): Likewise.
44414 (grub_ext2_mount): Likewise.
44415 (grub_ext2_close): Likewise.
44416 (grub_ext3_get_journal): Removed.
44418 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44419 (grub_reiserfs_read_symlink): Likewise.
44420 (grub_reiserfs_mount): Likewise.
44421 (grub_reiserfs_open): Likewise.
44422 (grub_reiserfs_read): Likewise.
44423 (grub_reiserfs_close): Likewise.
44424 (grub_reiserfs_get_journal): Removed.
44426 * fs/fshelp.c (grub_fshelp_read): Removed.
44427 (grub_fshelp_map_block): Likewise.
44429 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44430 (grub_fshelp_journal): Likewise.
44431 (grub_fshelp_read): Likewise.
44432 (grub_fshelp_map_block): Likewise.
44434 2008-06-16 Pavel Roskin <proski@gnu.org>
44436 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44437 floating point anymore.
44438 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44440 2008-06-15 Pavel Roskin <proski@gnu.org>
44442 * commands/ls.c (grub_ls_list_files): Use integer calculations
44443 for human readable format, avoid floating point use.
44444 * kern/misc.c (grub_ftoa): Remove.
44445 (grub_vsprintf): Remove floating point support.
44447 2008-06-15 Robert Millan <rmh@aybabtu.com>
44449 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44451 Reported by Max Vozeler.
44453 2008-06-15 Robert Millan <rmh@aybabtu.com>
44455 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44456 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44458 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44459 the beginning of the prefix.
44461 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44462 It is assumed that if we have a memdisk, grub-mkimage has set
44463 grub_prefix to include the "(memdisk)" drive in it.
44465 2008-06-15 Robert Millan <rmh@aybabtu.com>
44467 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44468 Initialize keyboard controller after registering the terminal, so that
44469 grub_printf() can be called from grub_keyboard_controller_init().
44471 2008-06-15 Robert Millan <rmh@aybabtu.com>
44473 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44474 extent-btree which is written as big endian on disk.
44475 Reported by Alain Greppin <al@chilibi.org>.
44477 2008-06-14 Robert Millan <rmh@aybabtu.com>
44479 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44480 * util/i386/pc/grub-install.in (modules): Likewise.
44482 2008-06-13 Pavel Roskin <proski@gnu.org>
44484 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44486 2008-06-13 Bean <bean123ch@gmail.com>
44488 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44490 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44492 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44493 to indicate sparse block.
44495 2008-06-12 Pavel Roskin <proski@gnu.org>
44497 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44498 number, grub_fshelp_read() does it for us.
44500 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44501 linear disk read with journal translation.
44502 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44503 * include/grub/fshelp.h: Declare grub_fshelp_read().
44505 2008-06-09 Pavel Roskin <proski@gnu.org>
44507 * fs/minix.c (grub_minix_mount): Handle error reading
44510 2008-06-08 Robert Millan <rmh@aybabtu.com>
44512 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44513 don't append the RAID prefix afterwards.
44514 Reported by Clint Adams.
44516 2008-06-08 Robert Millan <rmh@aybabtu.com>
44518 Based on description from Pavel:
44519 * kern/disk.c (grub_disk_check_range): Rename to ...
44520 (grub_disk_adjust_range): ... this. Add a comment explaining the
44521 tasks performed by this function.
44523 2008-06-08 Robert Millan <rmh@aybabtu.com>
44525 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44526 `num_serial' (for consistency with other variables).
44527 (struct grub_ntfs_data): Add `uuid' member.
44528 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44529 (grub_ntfs_uuid): New function.
44530 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44532 2008-06-07 Pavel Roskin <proski@gnu.org>
44534 * util/biosdisk.c (open_device): Revert last change to the
44535 function, it broke installation. The sector needs to be
44536 different dependent on which device is opened.
44538 2008-06-06 Robert Millan <rmh@aybabtu.com>
44540 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44541 rest of GRUB, and breakage doesn't happen if its value were modified.
44543 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44544 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44545 a constant (same value).
44546 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44547 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44549 2008-06-06 Robert Millan <rmh@aybabtu.com>
44551 * util/biosdisk.c (open_device): Do not modify sector offset when
44552 accessing a partition. kern/disk.c already handles this for us.
44554 2008-06-06 Robert Millan <rmh@aybabtu.com>
44556 * util/grub-emu.c (grub_machine_init): Move code in this function from
44558 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44559 segfault in case grub_printf() is called).
44561 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44562 grub_probe. Update all users not to explicitly add it again.
44563 (grub_device): New variable; contains corresponding device for grubdir.
44564 (fs_module, partmap_module, devabstraction_module): Pass
44565 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44568 2008-06-05 Robert Millan <rmh@aybabtu.com>
44570 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44571 is found, print it (same layout as with labels).
44573 2008-06-04 Robert Millan <rmh@aybabtu.com>
44575 * util/biosdisk.c (get_drive): Rename to ...
44576 (find_grub_drive): ... this. Update all users.
44578 (get_os_disk): Rename to ...
44579 (convert_system_partition_to_system_disk): ... this. Update all users.
44581 (find_drive): Rename to ...
44582 (find_system_device): ... this. Update all users.
44584 2008-06-04 Robert Millan <rmh@aybabtu.com>
44586 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44587 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44588 (make_device_map): Likewise.
44590 2008-06-01 Robert Millan <rmh@aybabtu.com>
44592 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44593 before dereferencing it.
44595 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44596 union with fat12/fat16-specific ones. Add some new fields, including
44597 `num_serial' for both versions.
44598 (struct grub_fat_data): Add `uuid' member.
44599 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44600 names. Initialize `data->uuid' using `num_serial'.
44601 (grub_fat_uuid): New function.
44602 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44604 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44605 (grub_reiserfs_uuid): New function.
44606 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44609 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44610 (grub_xfs_uuid): New function.
44611 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44613 2008-06-01 Robert Millan <rmh@aybabtu.com>
44615 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44616 code that is backward compatible with pre-uuid search command.
44618 2008-05-31 Robert Millan <rmh@aybabtu.com>
44620 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44621 floppies after everything else, to ensure floppy drive isn't accessed
44622 unnecessarily (patch from Bean).
44624 2008-05-31 Robert Millan <rmh@aybabtu.com>
44626 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44627 not print device names when we were asked to set a variable.
44629 2008-05-31 Robert Millan <rmh@aybabtu.com>
44631 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44632 using "cursor-on" and "cursor-off" commands (understood at least by
44633 the Open Firmware flavour on OLPC).
44635 2008-05-31 Michael Gorven <michael@gorven.za.net>
44637 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44638 on and off sequences.
44640 2008-05-31 Robert Millan <rmh@aybabtu.com>
44642 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44643 * util/update-grub.in: Likewise.
44645 2008-05-30 Pavel Roskin <proski@gnu.org>
44647 * util/biosdisk.c (linux_find_partition): Simplify logic and
44648 make the code more universal. Keep special processing for
44649 devfs, but use a simple rule for all other devices. If the
44650 device ends with a number, append 'p' and the partition number.
44651 Otherwise, append only the partition number.
44653 2008-05-30 Robert Millan <rmh@aybabtu.com>
44655 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44656 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44657 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44658 the `root' parameter to Linux.
44660 2008-05-30 Robert Millan <rmh@aybabtu.com>
44662 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44663 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44664 --fs_uuid with --fs-uuid.
44665 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44666 all filesystems support them).
44668 2008-05-30 Robert Millan <rmh@aybabtu.com>
44670 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44671 grub_printf() flags, since we're printing in units of 2 bytes.
44673 2008-05-30 Robert Millan <rmh@aybabtu.com>
44675 * util/grub.d/00_header.in: Remove obsolete comment referencing
44676 convert_system_path_to_grub_path().
44677 * util/update-grub.in: Likewise.
44678 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44679 (convert_system_path_to_grub_path): Add a warning message explaining
44680 that this function is deprecated. Rely on is_path_readable_by_grub()
44681 for the readability checks.
44682 (font_path): Use is_path_readable_by_grub() for the readability
44683 check rather than convert_system_path_to_grub_path().
44685 2008-05-30 Robert Millan <rmh@aybabtu.com>
44687 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44688 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44689 converting it first.
44690 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44691 grub.cfg for access to font file, and afterwards call it again to set
44694 2008-05-30 Robert Millan <rmh@aybabtu.com>
44696 * commands/search.c (options): Add --fs_uuid option.
44697 (search_fs_uuid): New function.
44698 (grub_cmd_search): Fix --set argument passing.
44699 Use search_fs_uuid() when requested via --fs_uuid.
44700 (grub_search_init): Update help message.
44701 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44702 and redeclare it as an array of 16-bit words.
44703 (grub_ext2_uuid): New function.
44704 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44705 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44706 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44707 (GRUB_DEVICE_BOOT_UUID): New variables.
44708 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44709 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44711 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44712 just assume `root' variable has the right value.
44713 * util/grub.d/10_linux.in: Likewise.
44714 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44716 (main): Recognise `-t fs_uuid' argument.
44718 2008-05-30 Robert Millan <rmh@aybabtu.com>
44720 * util/biosdisk.c (map): Redefine structure to hold information
44721 about GRUB drive name.
44722 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44724 (call_hook): Remove.
44725 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44726 member. Assume drive has partitions.
44727 (grub_util_biosdisk_open): Access device names via `.device' struct
44729 (open_device): Likewise.
44730 (find_drive): Likewise.
44731 (read_device_map): Adjust map[] usage to match the new struct
44732 definition. Don't check for duplicates (still possible, but not cheap
44734 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44735 (make_device_name): Remove assumption of BIOS-like drive names.
44737 2008-05-30 Pavel Roskin <proski@gnu.org>
44739 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44740 compiling execute.c doesn't need grub_script.tab.h anymore.
44741 (normal/command.c_DEPENDENCIES): Likewise.
44742 (normal/function.c_DEPENDENCIES): Likewise.
44743 * conf/i386-ieee1275.rmk: Likewise.
44744 * conf/i386-linuxbios.rmk: Likewise.
44745 * conf/i386-pc.rmk: Likewise.
44746 * conf/powerpc-ieee1275.rmk: Likewise.
44747 * conf/sparc64-ieee1275.rmk: Likewise.
44749 2008-05-29 Pavel Roskin <proski@gnu.org>
44751 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44752 when scanning metadata for volume group name.
44754 * include/grub/script.h: Don't include grub_script.tab.h. It's
44755 a generated file, which may only be included from the files with
44756 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44757 use union YYSTYPE, as the later allows forward declaration.
44758 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44760 2008-05-29 Robert Millan <rmh@aybabtu.com>
44762 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44763 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44764 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44765 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44768 2008-05-29 Robert Millan <rmh@aybabtu.com>
44770 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44771 control key combinations.
44773 2008-05-29 Robert Millan <rmh@aybabtu.com>
44775 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44776 * util/ieee1275/grub-install.in: ... to here.
44777 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44778 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44779 (grub_install_SOURCES): Likewise.
44781 2008-05-29 Robert Millan <rmh@aybabtu.com>
44783 * fs/affs.c: Update copyright year.
44784 * fs/ext2.c: Likewise.
44785 * fs/fshelp.c: Likewise.
44786 * fs/hfsplus.c: Likewise.
44787 * fs/ntfs.c: Likewise.
44788 * fs/xfs.c: Likewise.
44789 * include/grub/fshelp.h: Likewise.
44790 * util/grub-mkdevicemap.c: Likewise.
44792 2008-05-28 Robert Millan <rmh@aybabtu.com>
44794 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44795 might need to be fatfs to support some firmware implementations
44798 2008-05-28 Robert Millan <rmh@aybabtu.com>
44800 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44802 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44803 (make_device_map): Likewise.
44805 2008-05-20 Bean <bean123ch@gmail.com>
44807 * fs/fshelp.c (grub_fshelp_map_block): New function.
44808 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44809 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44811 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44812 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44813 (grub_fshelp_journal): New structure.
44814 (grub_fshelp_map_block): New function prototype.
44815 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44816 (grub_fshelp_map_block): Likewise.
44818 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44819 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44820 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44821 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44822 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44823 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44824 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44825 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44826 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44827 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44828 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44829 (grub_ext2_sblock): New members for journal support.
44830 (grub_ext3_journal_header): New structure.
44831 (grub_ext3_journal_revoke_header): Likewise.
44832 (grub_ext3_journal_block_tag): Likewise.
44833 (grub_ext3_journal_sblock): Likewise.
44834 (grub_fshelp_node): New members logfile and journal.
44835 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44836 grub_fshelp_map_block to get real block number.
44837 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44839 (grub_ext2_read_inode): Likewise.
44840 (grub_ext3_get_journal): New function.
44841 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44842 (grub_ext2_close): Release memory used by journal.
44844 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44845 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44846 (grub_reiserfs_transaction_header): Renamed to
44847 grub_reiserfs_description_block, replace field data with real_blocks.
44848 (grub_reiserfs_commit_block): New structure.
44849 (grub_reiserfs_data): New member journal.
44850 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44852 (grub_reiserfs_read_symlink): Likewise.
44853 (grub_reiserfs_iterate_dir): Likewise.
44854 (grub_reiserfs_open): Likewise.
44855 (grub_reiserfs_read): Likewise.
44856 (grub_reiserfs_get_journal): New function.
44857 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44858 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44859 using grub_reiserfs_get_journal.
44860 (grub_reiserfs_close): Release memory used by journal.
44862 * fs/affs.c (grub_affs_read_block): Change block type to
44863 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44865 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44867 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44869 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44871 * fs/udf.c (grub_udf_read_block): Change block type to
44872 grub_disk_addr_t. Use type cast to avoid warning.
44874 * fs/xfs.c (grub_xfs_read_block): Likewise.
44876 2008-05-16 Christian Franke <franke@computer.org>
44878 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44879 to ensure that break with ESC will always work.
44880 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44881 Remove ESC from keyboard queue.
44883 2008-05-16 Christian Franke <franke@computer.org>
44885 * util/biosdisk.c: [__CYGWIN__] Add includes.
44886 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44887 (get_os_disk): Move variable declarations to OS specific
44888 parts to avoid warning.
44889 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44890 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44891 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44893 * util/getroot.c: [__CYGWIN__] Add includes.
44894 (strip_extra_slashes): Fix "/" case.
44895 [__CYGWIN__] (get_win32_path): New function.
44896 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44897 [__CYGWIN__] (find_root_device): Disable.
44898 [__CYGWIN__] (get_bootsec_serial): New function.
44899 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44900 [__linux__] (grub_guess_root_device): Add early returns to simplify
44902 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44903 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44904 check for Linux only.
44906 2008-05-15 Bean <bean123ch@gmail.com>
44908 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44909 keyboard hang problem in apple's intel mac.
44911 2008-05-09 Robert Millan <rmh@aybabtu.com>
44913 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44915 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44916 (make_device_map): Likewise.
44917 Reported by Aurelien Jarno <aurel32@debian.org>
44919 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44921 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44922 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44923 (make_device_map): Output entries for xvd type disks.
44925 2008-05-07 Robert Millan <rmh@aybabtu.com>
44927 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44929 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44930 (make_device_map): Likewise.
44931 Reported by Roland Dreier <rdreier@cisco.com>
44933 2008-05-07 Robert Millan <rmh@aybabtu.com>
44935 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44936 grub_strstr() call. Correct a few mistakes in failure path handling.
44938 2008-05-06 Robert Millan <rmh@aybabtu.com>
44940 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44941 Do not print a trailing slash (therefore, the root directory is an
44943 (convert_system_path_to_grub_path): Do not remove trailing slash
44944 from make_system_path_relative_to_its_root() output.
44946 * util/i386/pc/grub-install.in: Add trailing slash to output from
44947 make_system_path_relative_to_its_root().
44949 2008-05-06 Robert Millan <rmh@aybabtu.com>
44951 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44952 ensures that output lines aren't intermangled with those sent to
44953 stderr (via grub_util_info()).
44954 * util/grub-probe.c (grub_refresh): Likewise.
44955 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44957 2008-05-05 Christian Franke <franke@computer.org>
44959 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44960 Add Cygwin device names.
44961 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44962 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44963 (check_device): Return error instead of success on empty name.
44964 (make_device_map): Move label inside linux specific code to
44965 prevent compiler warning.
44967 2008-04-30 Robert Millan <rmh@aybabtu.com>
44969 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44970 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44972 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44974 2008-04-29 Robert Millan <rmh@aybabtu.com>
44976 * docs/grub.cfg: New file (example GRUB configuration).
44978 2008-04-26 Robert Millan <rmh@aybabtu.com>
44980 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44981 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44982 and `disk/ieee1275/nand.c'.
44984 2008-04-25 Bean <bean123ch@gmail.com>
44986 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44989 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44990 change the buffer size to 4096 for cdrom device.
44992 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44994 (_linux_mod_SOURCES): New variable.
44995 (_linux_mod_CFLAGS): Likewise.
44996 (_linux_mod_LDFLAGS): Likewise.
44997 (linux_mod_SOURCES): Likewise.
44998 (linux_mod_CFLAGS): Likewise.
44999 (linux_mod_LDFLAGS): Likewise.
45000 (nand_mod_SOURCES): Likewise.
45001 (nand_mod_CFLAGS): Likewise.
45002 (nand_mod_LDFLAGS): Likewise.
45004 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45005 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45006 type property. (nand device in olpc don't have this property)
45008 * include/grub/disk.h (grub_disk_dev_id): New macro
45009 GRUB_DISK_DEVICE_NAND_ID.
45011 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45012 function prototype.
45013 (grub_rescue_cmd_initrd): Likewise.
45015 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45016 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45017 ofw_cif_handler and ofw_idt, adjust padding number.
45019 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45020 GRUB_MACHINE_IEEE1275 is defined.
45022 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45023 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45025 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45026 on nested function heap_init.
45027 (grub_upper_mem): New variable for i386-ieee1275.
45028 (grub_get_extended_memory): New function for i386-ieee1275.
45029 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45031 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45032 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45035 * loader/i386/ieee1275/linux.c: New file.
45037 * loader/i386/ieee1275/linux_normal.c: New file.
45039 * disk/ieee1275/nand.c: New file.
45041 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45043 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45045 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45047 2008-04-18 Robert Millan <rmh@aybabtu.com>
45049 Restructures early code path on ieee1275 to unify grub_main() as
45050 the first C function that is executed in every platform.
45052 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45053 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45055 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45056 * kern/ieee1275/cmain.c (cmain): Rename to ...
45057 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45058 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45061 2008-04-18 Robert Millan <rmh@aybabtu.com>
45063 * util/update-grub.in: Fix syntax error when setting
45064 `GRUB_PRELOAD_MODULES'.
45065 Reported by Stephane Chazelas <stephane@artesyncp.com>
45067 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45069 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45070 section into account, newer toolchains generate unique build ids
45071 * configure.ac: remove the test for --build-id=none acceptance,
45072 we want build ids to be preserved
45073 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45074 far from other sections don't cause the raw binary images grow
45077 2008-04-15 Robert Millan <rmh@aybabtu.com>
45079 * disk/lvm.c: Update copyright year.
45080 * kern/misc.c: Likewise.
45082 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45084 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45085 there is no memory left for physical volume name.
45087 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45089 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45090 volume name mapping to support bigger than 9 character names properly.
45092 2008-04-13 Robert Millan <rmh@aybabtu.com>
45094 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45095 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45097 2008-04-13 Christian Franke <franke@computer.org>
45099 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45100 to create a floppy emulation boot CD when non emulation mode
45102 Enable Joliet CD filesystem extension.
45104 2008-04-13 Robert Millan <rmh@aybabtu.com>
45106 * kern/misc.c (grub_strncat): Fix off-by-one error.
45107 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45109 * kern/env.c (grub_env_context_close): Clear current context, not
45111 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45113 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45115 2008-04-13 Robert Millan <rmh@aybabtu.com>
45117 Improve robustness when handling LVM.
45119 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45120 (and leave `*p' unmodified).
45121 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45123 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45124 iterating through it.
45125 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45127 (grub_lvm_scan_device): Check the return value (and fail gracefully
45128 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45129 Don't assume `vg->pvs != NULL' when iterating through it.
45131 2008-04-13 Robert Millan <rmh@aybabtu.com>
45133 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45134 * genmk.rb (partmap): New variable.
45135 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45136 (#{partmap}): New target rule.
45137 * genpartmaplist.sh: New file.
45138 * Makefile.in (pkglib_DATA): Add partmap.lst.
45139 (partmap.lst): New target rule.
45140 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45141 modules (including all partition maps), instead of preloading them.
45143 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45145 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45146 `linux-boot-prober' (if installed) to detect other operating
45147 systems which are installed on the computer and add them to
45149 * conf/common.rmk: Build and install 30_os-prober.
45151 2008-04-12 Robert Millan <rmh@aybabtu.com>
45153 * kern/powerpc/ieee1275/init.c: Move from here ...
45154 * kern/ieee1275/init.c: ... to here. Update all users.
45156 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45157 * kern/ieee1275/cmain.c: ... to here. Update all users.
45159 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45160 * kern/ieee1275/openfw.c: ... to here. Update all users.
45162 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45163 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45165 2008-04-10 Pavel Roskin <proski@gnu.org>
45167 * configure.ac: Always use "_cv_" in cache variables for
45168 compatibility with Autoconf 2.62.
45170 2008-04-07 Robert Millan <rmh@aybabtu.com>
45172 Revert grub/machine/init.h addition by Pavel (since it breaks on
45173 i386-ieee1275 and others):
45174 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45175 * util/powerpc/ieee1275/misc.c: Likewise.
45177 2008-04-07 Robert Millan <rmh@aybabtu.com>
45179 * util/grub-probe.c (probe): Improve error message.
45181 2008-04-07 Robert Millan <rmh@aybabtu.com>
45183 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45184 (this prevents the presence of a bogus entry from ruining the whole
45187 2008-04-06 Pavel Roskin <proski@gnu.org>
45189 * util/biosdisk.c: Include grub/util/biosdisk.h.
45190 * util/grub-fstest.c (execute_command): Make static.
45191 * util/grub-mkdevicemap.c (check_device): Likewise.
45192 * util/i386/pc/misc.c: Include grub/machine/init.h.
45193 * util/powerpc/ieee1275/misc.c: Likewise.
45194 * util/lvm.c: Include grub/util/lvm.h.
45195 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45197 * util/raid.c: Include grub/util/raid.h.
45198 (grub_util_getdiskname): Make static.
45200 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45201 grub_hostfs_fini(), as they are called from grub_init_all() and
45202 grub_fini_all() respectively. This fixes an infinite loop in
45203 grub-fstest due to double registration of hostfs.
45204 Reported by Christian Franke <Christian.Franke@t-online.de>
45206 2008-04-05 Pavel Roskin <proski@gnu.org>
45208 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45209 all 8 functions. Otherwise, probe function 0 only.
45211 2008-04-04 Pavel Roskin <proski@gnu.org>
45213 * commands/lspci.c (grub_lspci_iter): Print the bus number
45216 * commands/lspci.c (grub_pci_classes): Fix typos.
45217 (grub_lspci_iter): Don't print func twice. Print vendor ID
45218 before device ID, as it's normally done.
45220 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45221 Fix signedness warnings.
45222 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45224 * util/ieee1275/get_disk_name.c: Include config.h so that
45225 _GNU_SOURCE is defined and getline() is declared. Mark an
45226 unused argument as such. Fix a signedness warning.
45228 2008-04-02 Pavel Roskin <proski@gnu.org>
45230 * genkernsyms.sh.in: Use more robust assignments for CC and
45231 srcdir. Quote srcdir.
45232 * gensymlist.sh.in: Likewise. Assert at the compile time that
45233 the symbol table is not empty.
45235 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45236 * fs/cpio.c (grub_cpio_read): Likewise.
45238 2008-04-01 Pavel Roskin <proski@gnu.org>
45240 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45241 * disk/host.c (grub_host_open): Likewise.
45242 * disk/loopback.c (grub_loopback_open): Likewise.
45243 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45244 disk->id as in disk/host.c, not a multi-character constant.
45246 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45247 later is obsolete, potentially dangerous and sets a bad example.
45248 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45249 * util/misc.c (grub_util_get_image_size): Likewise.
45251 * disk/loopback.c (options): Improve help for "--partitions".
45253 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45254 options to align them with the short options, e.g. "echo -e".
45256 2008-03-31 Bean <bean123ch@gmail.com>
45258 * video/reader/png.c (grub_png_data): New member is_16bit and
45260 (grub_png_decode_image_header): Detect 16 bit png image.
45261 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45262 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45263 (grub_video_reader_png): Release memory occupied by image_data.
45265 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45267 (grub_nfs_mount): Skip the test for sector per cluster.
45269 * include/grub/ntfs.h (MAX_SPC): Removed.
45271 2008-03-31 Bean <bean123ch@gmail.com>
45273 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45274 (grub_probe_SOURCES): Add fs/afs.c.
45275 (grub_fstest_SOURCES): Likewise.
45276 (afs_mod_SOURCES): New variable.
45277 (afs_mod_CFLAGS): Likewise.
45278 (afs_mod_LDFLAGS): Likewise.
45280 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45281 (grub_emu_SOURCES): Likewise.
45283 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45285 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45287 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45291 * fs/afs.c: New file.
45293 2008-03-30 Pavel Roskin <proski@gnu.org>
45295 * disk/host.c: Include grub/misc.h to fix a warning.
45296 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45297 warnings about implicit declarations.
45299 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45301 * include/grub/i386/loader.h: Change declaration of
45302 grub_linux_boot() to match what grub_loader_set() expects.
45303 * util/getroot.c (grub_guess_root_device): Return const char* to
45305 * util/grub-probe.c (probe): Fix a warning about uninitialized
45306 abstraction_name variable.
45307 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45308 second argument as unused to fix a warning.
45310 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45311 missing grub_error() call.
45313 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45314 2.60 and newer uses it to define datadir.
45316 * commands/sleep.c: Fix warning about implicit declaration.
45317 * disk/memdisk.c: Likewise.
45318 * loader/aout.c: Likewise.
45319 * loader/i386/bsd_normal.c: Likewise.
45320 * util/grub-probe.c: Likewise.
45322 * commands/i386/cpuid.c (has_longmode): Make static.
45323 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45324 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45326 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45327 GDT. This is more robust, as %ds can change.
45328 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45329 calling real_to_prot().
45330 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45332 2008-03-28 Pavel Roskin <proski@gnu.org>
45334 * kern/i386/pc/startup.S: Assert that uncompressed functions
45335 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45336 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45337 code, as they push parts of the code (error handlers) beyond
45338 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45339 code as correctness and size.
45341 2008-03-28 Pavel Roskin <proski@gnu.org>
45343 * kern/i386/pc/startup.S
45344 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45345 data block address to the real mode, keep offset minimal. This
45346 works around a bug in AWARD BIOS on old Athlon systems, which
45347 makes CD detection hang.
45349 2008-03-26 Pavel Roskin <proski@gnu.org>
45351 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45353 * include/grub/normal.h: Add grub_parse_color_name_pair()
45356 2008-03-24 Bean <bean123ch@gmail.com>
45358 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45359 (cd_count): Removed.
45360 (cd_drive): New variable.
45361 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45362 (grub_biosdisk_call_hook): Likewise.
45363 (grub_biosdisk_iterate): Change cdrom detection method.
45364 (grub_biosdisk_open): Replace cd_start with cd_drive.
45365 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45366 detect cdrom device.
45368 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45370 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45371 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45372 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45373 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45374 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45375 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45376 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45377 (grub_biosdisk_cdrp): New structure.
45378 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45380 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45382 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45385 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45388 2008-03-20 Robert Millan <rmh@aybabtu.com>
45390 Remove 2 TiB limit in ata.mod.
45391 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45392 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45393 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45394 grub_uint64_t instead of grub_uint32_t.
45396 2008-03-05 Bean <bean123ch@gmail.com>
45398 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45399 (grub_multiboot): Set boot device.
45401 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45403 2008-03-02 Bean <bean123ch@gmail.com>
45405 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45408 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45410 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45413 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45416 * docs/fdl.texi: New file.
45418 * docs/mdate-sh: New file. Copied from gnulib.
45419 * docs/texinfo.tex: Likewise.
45421 * config.guess: Updated from gnulib.
45422 * install-sh: Likewise.
45424 2008-02-28 Robert Millan <rmh@aybabtu.com>
45426 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45427 (aout_mod_SOURCES): New variable.
45428 (aout_mod_CFLAGS): Likewise.
45429 (aout_mod_LDFLAGS): Likewise.
45431 * conf/i386-ieee1275.rmk: Likewise.
45433 2008-02-28 Robert Millan <rmh@aybabtu.com>
45435 * util/update-grub.in: Reorganise terminal validity check. Accept
45436 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45437 Based on suggestion by Franklin PIAT.
45439 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45441 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45443 * util/getroot.c (grub_util_check_block_device): New function that
45444 returns the given argument if it is a block device and returns NULL else.
45445 * util/grub-probe.c (argument_is_device): New variable.
45446 (probe): Promote device_name from a variable to an argument. Receive
45447 device_name from grub_util_check_block_device() if path is NULL and from
45448 grub_guess_root_device() else. Do not free() device_name anymore.
45449 (options): Introduce new parameter '-d, --device'.
45450 (main): Add description of the new parameter to the help screen.
45451 Rename path variable to argument. Set argument_is_device if the '-d'
45452 option is given. Pass argument to probe() depending on
45453 argument_is_device.
45455 2008-02-24 Bean <bean123ch@gmail.com>
45457 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45458 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45459 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45460 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45461 (GRUB_ISO9660_VOLDESC_END): Likewise.
45462 (grub_iso9660_primary_voldesc): New member escape.
45463 (grub_iso9660_data): New member joliet.
45464 (grub_iso9660_convert_string): New function.
45465 (grub_iso9660_mount): Detect joliet extension.
45466 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45467 (grub_iso9660_iso9660_label): Likewise.
45469 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45470 (grub_setup_SOURCES): Add fs/udf.c.
45471 (grub_fstest_SOURCES): Likewise.
45472 (udf_mod_SOURCES): New variable.
45473 (udf_mod_CFLAGS): Likewise.
45474 (udf_mod_LDFLAGS): Likewise.
45476 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45477 (grub_emu_SOURCES): Likewise.
45479 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45481 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45483 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45487 * fs/udf.c: New file.
45489 2008-02-24 Robert Millan <rmh@aybabtu.com>
45491 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45492 (normal/lexer.c_DEPENDENCIES): New variables.
45493 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45494 (normal/lexer.c_DEPENDENCIES): Likewise.
45495 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45496 (normal/lexer.c_DEPENDENCIES): Likewise.
45497 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45498 (normal/lexer.c_DEPENDENCIES): Likewise.
45499 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45500 (normal/lexer.c_DEPENDENCIES): Likewise.
45501 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45502 (normal/lexer.c_DEPENDENCIES): Likewise.
45504 2008-02-23 Robert Millan <rmh@aybabtu.com>
45506 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45507 since they were intended to be in hex. This didn't break previously
45508 because of a bug in gpt_partition_map_iterate() (see below).
45510 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45511 when checking the validity of GPT header.
45512 Remove `partno', since it always provides the same information as `i'.
45514 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45516 * include/grub/efi/time.h: Fix a wrong comment.
45518 2008-02-19 Pavel Roskin <proski@gnu.org>
45520 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45523 2008-02-19 Bean <bean123ch@gmail.com>
45525 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45526 (aout_mod_SOURCES): New variable.
45527 (aout_mod_CFLAGS): Likewise.
45528 (aout_mod_LDFLAGS): Likewise.
45529 (_bsd_mod_SOURCES): New variable.
45530 (_bsd_mod_CFLAGS): Likewise.
45531 (_bsd_mod_LDFLAGS): Likewise.
45532 (bsd_mod_SOURCES): New variable.
45533 (bsd_mod_CFLAGS): Likewise.
45534 (bsd_mod_LDFLAGS): Likewise.
45536 * include/grub/aout.h: New file.
45538 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45540 * include/grub/i386/bsd.h: New file.
45542 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45545 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45546 function is called, so that it's possible to change it inside the hook.
45547 (grub_elf64_load): Likewise.
45548 (grub_elf_file): Don't close the file if elf header is not found.
45549 (grub_elf_close): Close the file if grub_elf_file fails (The new
45550 grub_elf_file won't close it).
45551 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45552 (grub_elf64_size): Likewise.
45554 * kern/i386/loader.S (grub_unix_real_boot): New function.
45556 * loader/aout.c: New file.
45558 * loader/i386/bsd.c: New file.
45560 * loader/i386/bsd_normal.c: New file.
45562 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45564 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45565 can test other formats.
45567 2008-02-19 Robert Millan <rmh@aybabtu.com>
45569 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45570 (grub_gpt_partition_type_empty): Redefine with macro from
45571 `<grub/gpt_partition.h>'.
45572 (gpt_partition_map_iterate): Adjust partition type comparison.
45574 Export `entry' as partmap-specific `part.data' struct.
45575 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45577 * include/grub/gpt_partition.h (grub_gpt_header)
45578 (grub_gpt_partentry): ... to here (new file).
45580 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45582 (grub_gpt_partition_type_bios_boot): New const variable, defined
45583 with macro from `<grub/gpt_partition.h>'.
45585 (setup): Replace `first_start' with `embed_region', which keeps
45586 track of the embed region (and is partmap-agnostic).
45588 Replace find_first_partition_start() with find_usable_region(),
45589 which finds a usable region for embedding using partmap-specific
45590 knowledge (supports PC/MSDOS and GPT).
45592 Fix all assumptions that the embed region start at sector 1, using
45593 `embed_region.start' from now on. Similarly, use `embed_region.end'
45594 rather than `first_start' to calculate available size.
45596 In grub_util_info() message, replace "into after the MBR" with an
45597 indication of the specific sector our embed region starts at.
45599 2008-02-19 Robert Millan <rmh@aybabtu.com>
45601 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45602 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45603 `commands/reboot.c'.
45604 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45605 (halt_mod_SOURCES): Likewise.
45606 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45607 (halt_mod_SOURCES): Likewise.
45609 2008-02-17 Christian Franke <franke@computer.org>
45611 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45613 2008-02-17 Robert Millan <rmh@aybabtu.com>
45615 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45616 set `first_start' to 0 for non-PC/MSDOS partition maps.
45618 2008-02-16 Robert Millan <rmh@aybabtu.com>
45620 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45621 do not assume partition map is PC/MSDOS before performing checks that
45622 are specific to that layout.
45624 2008-02-13 Robert Millan <rmh@aybabtu.com>
45626 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45627 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45628 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45630 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45632 * configure.ac: Only a cosmetic change on the handling of
45633 -fno-stack-protector.
45635 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45637 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45638 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45640 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45641 (halt_mod_SOURCES): New variable.
45642 (halt_mod_CFLAGS): Likewise.
45643 (halt_mod_LDFLAGS): Likewise.
45644 (reboot_mod_SOURCES): Likewise.
45645 (reboot_mod_CFLAGS): Likewise.
45646 (reboot_mod_LDFLAGS): Likewise.
45648 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45649 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45651 (halt_mod_SOURCES): Likewise.
45652 (reboot_mod_SOURCES): Likewise.
45654 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45655 commands/i386/pc/reboot.c by commands/reboot.c.
45656 (reboot_mod_SOURCES): Likewise.
45658 * commands/i386/pc/reboot.c: merge this file ...
45660 * commands/ieee1275/reboot.c: ... and this file ...
45662 * commands/reboot.c: ... to this file.
45663 Add some precompiler directive to include the correct header for
45666 * commands/ieee1275/halt.c: move this file ...
45668 * commands/halt.c: ... to here.
45669 Add some precompiler directive to include the correct header for
45672 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45673 (grub_halt): Likewise.
45675 * kern/efi/efi.c (grub_reboot): New function.
45676 (grub_halt): Likewise.
45678 2008-02-12 Robert Millan <rmh@aybabtu.com>
45680 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45681 /dev (like it is done for /dev/mapper). This doesn't provide support
45682 for EVMS, but at least it is now easy to identify the problem when it
45685 2008-02-11 Robert Millan <rmh@aybabtu.com>
45687 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45688 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45689 comparing it with -1, not 0.
45691 2008-02-10 Robert Millan <rmh@aybabtu.com>
45693 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45696 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45698 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45699 `disk/lvm.c' to the end of the list.
45700 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45701 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45703 2008-02-10 Robert Millan <rmh@aybabtu.com>
45705 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45706 grub_print_error() instead. This will let user know why we're entering
45708 Based on suggestions from Sam Morris.
45710 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45712 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45713 on remaining N args, instead of "--" arg N times.
45715 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45717 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45718 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45719 pattern for unknown glyphs.
45721 2008-02-09 Robert Millan <rmh@aybabtu.com>
45723 * configure.ac: Probe for `help2man'.
45724 * Makefile.in (builddir): New variable.
45725 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45726 or otherwise add a few flags/options to it.
45727 (install-local): For every executable utility or script that is
45728 installed, invoke $(HELP2MAN) to install a manpage based on --help
45731 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45732 that it doesn't prevent --help from working in build tree.
45734 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45735 with `bug-grub@gnu.org'.
45736 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45737 * util/update-grub.in (usage): New function.
45738 Implement proper argument check, with support for --help and --version
45739 (as well as existing -y).
45741 2008-02-09 Christian Franke <franke@computer.org>
45743 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45744 avoid overwriting previous output.
45745 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45747 2008-02-09 Robert Millan <rmh@aybabtu.com>
45749 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45752 2008-02-09 Robert Millan <rmh@aybabtu.com>
45754 * commands/sleep.c: New file.
45755 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45756 (sleep_mod_SOURCES): New variable.
45757 (sleep_mod_CFLAGS): Likewise.
45758 (sleep_mod_LDFLAGS): Likewise.
45760 2008-02-09 Robert Millan <rmh@aybabtu.com>
45762 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45763 situations in which we can deduce the RAID size and the superblock
45766 2008-02-09 Robert Millan <rmh@aybabtu.com>
45768 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45769 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45770 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45772 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45773 and return a grub_diskmemberlist_t composed of physical array members.
45774 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45776 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45778 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45779 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45780 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45782 * util/grub-probe.c (probe): Move partmap probing code from here ...
45783 (probe_partmap): ... to here.
45784 (probe): Use probe_partmap() once for the disk we're probing, and
45785 additionally, when such disk contains a memberlist() struct member,
45786 once for each disk that is contained in the structure returned by
45789 2008-02-09 Robert Millan <rmh@aybabtu.com>
45791 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45792 environment variable to 'all' in order to obtain debug output from
45794 * util/i386/pc/grub-setup.c (main): Likewise.
45796 2008-02-08 Robert Millan <rmh@aybabtu.com>
45798 * disk/raid.c (grub_raid_scan_device): Check for
45799 `array->device[sb.this_disk.number]' rather than for
45800 `array->device[sb.this_disk.number]->name', since the latter is not
45801 guaranteed to be accessible.
45803 2008-02-08 Robert Millan <rmh@aybabtu.com>
45805 * disk/raid.c: Update copyright.
45806 * fs/cpio.c: Likewise.
45807 * include/grub/raid.h: Likewise.
45808 * loader/i386/pc/multiboot.c: Likewise.
45809 * util/hostfs.c: Likewise.
45811 2008-02-08 Robert Millan <rmh@aybabtu.com>
45813 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45814 to a grub_disk_t array.
45815 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45817 (grub_raid_scan_device): Replace `device[x].name' accesses with
45818 `device[x]->name'. Simplify initialization of `array->device[x]'.
45820 2008-02-08 Robert Millan <rmh@aybabtu.com>
45822 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45823 grub_dprintf() calls.
45824 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45827 2008-02-07 Christian Franke <franke@computer.org>
45829 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45830 instead of fseek and ftell to support large files.
45831 (grub_hostfs_read): Likewise.
45833 2008-02-07 Robert Millan <rmh@aybabtu.com>
45835 Patch from Jeroen Dekkers.
45836 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45837 failure, since successfully reading all array members might not be
45840 2008-02-06 Robert Millan <rmh@aybabtu.com>
45842 * util/grub-probe.c (probe): Simplify partmap probing (with the
45843 assumption that the first word up to the underscore equals to
45846 2008-02-06 Christian Franke <franke@computer.org>
45848 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45849 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45850 last block of a cpio or tar stream.
45851 Check for "TRAILER!!!" instead of any empty data
45852 block to detect last block of a cpio stream.
45853 (grub_cpio_dir): Fix constness of variable np.
45854 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45855 cpio or tar trailer is detected. This fixes a crash
45856 on open of a non existing file.
45858 2008-02-05 Bean <bean123ch@gmail.com>
45860 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45862 (grub_multiboot_load_elf64): Likewise.
45863 (grub_multiboot): Initialize mbi structure.
45865 * util/grub-fstest.c: Don't include unused header file script.h.
45867 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45869 (grub_fstest_SOURCES): Likewise.
45871 2008-02-05 Robert Millan <rmh@aybabtu.com>
45873 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45874 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45875 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45876 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45878 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45879 (translation_table): Replace hardcoded values with macros
45880 provided by `<grub/term.h>'.
45882 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45883 (keyboard_map): Correct/add a few values, with macros provided
45884 by `<grub/term.h>'.
45885 (keyboard_map_shift): Zero values that don't differ from their
45886 `keyboard_map' equivalents.
45887 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45888 Discard the second scan code that is always sent by Caps lock.
45889 Only use `keyboard_map_shift' when it provides a non-zero value,
45890 otherwise fallback to `keyboard_map'.
45892 2008-02-04 Bean <bean123ch@gmail.com>
45894 * Makefile.in (enable_grub_fstest): New variable.
45896 * conf/common.rmk (grub_fstest_init.lst): New rule.
45897 (grub_fstest_init.h): Likewise.
45898 (grub_fstest_init.c): Likewise.
45899 (util/grub-fstest.c_DEPENDENCIES): New variable.
45900 (grub_fstest_SOURCES): Likewise.
45902 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45904 * util/grub-fstest.c: New file.
45906 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45908 Make grub-setup handle a separate root device.
45910 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45911 so that the root device can be compared with the destination
45913 When embedding the core image, if the root and destination devices
45914 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45916 When not embedding, set ROOT_DRIVE to 0xFF.
45918 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45920 Add support for having a grub directory in a different drive. This
45921 is still only the data handling part.
45923 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45924 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45925 (grub_root_drive): New variable.
45927 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45928 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45929 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45932 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45934 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45936 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45938 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45939 is bogus, because PXE booting does not specify any drive
45942 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45943 am not sure if this is really correct.
45945 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45946 is always identical to the boot drive when booting from a CD.
45948 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45950 (root_drive): New variable.
45951 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45952 (setup_sectors): Push %dx right after popping it, because %dh will
45954 (copy_buffer): Restore %dx.
45956 2008-02-03 Robert Millan <rmh@aybabtu.com>
45958 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45959 use `cdboot.img' for cdrom images.
45961 2008-02-03 Robert Millan <rmh@aybabtu.com>
45963 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45964 only setup gfxterm when `font' command has succeeded.
45966 2008-02-03 Robert Millan <rmh@aybabtu.com>
45968 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45969 (grub_rescue_cmd_multiboot_loader)
45970 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45972 2008-02-03 Pavel Roskin <proski@gnu.org>
45974 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45975 %edx and %esi from stack only after grub_gate_a20() is called.
45976 grub_gate_a20() clobbers %edx.
45978 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45980 * configure.ac (AC_INIT): Bumped to 1.96.
45982 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45983 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45984 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45985 video/readers/png.c.
45987 2008-02-03 Bean <bean123ch@gmail.com>
45989 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45990 (cdboot_img_SOURCES): New variable.
45991 (cdboot_img_ASFLAGS): New variable.
45992 (cdboot_img_LDFLAGS): New variable.
45994 * boot/i386/pc/cdboot.S: New file.
45996 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45997 (cd_count): Likewise.
45998 (grub_biosdisk_get_drive): Add support for cd device.
45999 (grub_biosdisk_call_hook): Likewise.
46000 (grub_biosdisk_iterate): Likewise.
46001 (grub_biosdisk_open): Likewise.
46002 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46003 (grub_biosdisk_rw): Support reading from cd device.
46004 (GRUB_MOD_INIT): Iterate cd devices.
46006 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46007 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46008 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46010 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46012 2008-02-02 Robert Millan <rmh@aybabtu.com>
46014 * commands/read.c: New file.
46015 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46016 (read_mod_SOURCES): New variable.
46017 (read_mod_CFLAGS): Likewise.
46018 (read_mod_LDFLAGS): Likewise.
46020 2008-02-02 Robert Millan <rmh@aybabtu.com>
46022 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46023 determining whether menu has to be displayed.
46025 2008-02-02 Marco Gerards <marco@gnu.org>
46027 * bus/pci.c: New file.
46029 * include/grub/pci.h: Likewise.
46031 * include/grub/i386/pc/pci.h: Likewise.
46033 * commands/lspci.c: Likewise.
46035 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46037 (pci_mod_SOURCES): New variable.
46038 (pci_mod_CFLAGS): Likewise.
46039 (pci_mod_LDFLAGS): Likewise.
46040 (lspci_mod_SOURCES): Likewise.
46041 (lspci_mod_CFLAGS): Likewise.
46042 (lspci_mod_LDFLAGS): Likewise.
46044 2008-02-02 Bean <bean123ch@gmail.com>
46046 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46047 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46049 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46050 (grub_xfs_btree_node): New structure.
46051 (grub_xfs_btree_root): New structure.
46052 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46053 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46054 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46055 (GRUB_XFS_EXTENT_SIZE): Likewise.
46056 (grub_xfs_read_block): Support btree format type.
46057 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46058 Use directory block as basic unit.
46060 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46062 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46063 __attribute__ ((__regparm__ (1))).
46065 2008-02-01 Robert Millan <rmh@aybabtu.com>
46067 Correct a mistake in previous commit.
46069 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46071 (normal/command.c_DEPENDENCIES): New variable.
46073 2008-02-01 Robert Millan <rmh@aybabtu.com>
46075 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46077 (normal/command.c_DEPENDENCIES): New variable.
46078 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46079 * conf/i386-ieee1275.rmk: Likewise.
46080 * conf/i386-linuxbios.rmk: Likewise.
46081 * conf/i386-pc.rmk: Likewise.
46082 * conf/sparc64-ieee1275.rmk: Likewise.
46083 * conf/powerpc-ieee1275.rmk: Likewise.
46084 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46086 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46088 2008-02-01 Robert Millan <rmh@aybabtu.com>
46090 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46091 call at beginning of function.
46093 2008-01-31 Pavel Roskin <proski@gnu.org>
46095 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46096 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46097 (grub_mkrescue_SOURCES): Likewise.
46098 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46100 2008-01-30 Robert Millan <rmh@aybabtu.com>
46102 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46103 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46104 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46105 (grub_probe_SOURCES): ... to here.
46107 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46108 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46109 * conf/i386-ieee1275.rmk: Likewise.
46110 * conf/i386-linuxbios.rmk: Likewise.
46111 * conf/powerpc-ieee1275.rmk: Likewise.
46113 2008-01-30 Tristan Gingold <gingold@free.fr>
46115 * kern/rescue.c: Silently accept empty lines.
46117 2008-01-29 Bean <bean123ch@gmail.com>
46119 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46120 (real_code_2): Code cleanup and change comment style.
46121 (move_memory): Avoid using 32-bit address mode.
46123 2008-01-29 Bean <bean123ch@gmail.com>
46125 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46126 (png_mod_SOURCES): New variable.
46127 (png_mod_CFLAGS): Likewise.
46128 (png_mod_LDFLAGS): Likewise.
46130 * video/readers/png.c: New file.
46132 2008-01-28 Robert Millan <rmh@aybabtu.com>
46134 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46135 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46136 `ifndef GRUB_MOD_GAP' hack.
46137 * util/elf/grub-mkimage.c (add_segments): Likewise.
46139 2008-01-27 Robert Millan <rmh@aybabtu.com>
46141 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46142 `GRUB_MOD_GAP' for platforms in which it's not defined.
46143 * util/elf/grub-mkimage.c (add_segments): Likewise.
46145 2008-01-27 Robert Millan <rmh@aybabtu.com>
46147 Get grub-emu to build again (including parallel builds).
46149 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46151 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46152 (normal/execute.c_DEPENDENCIES): ... this, ...
46153 (grub-emu_DEPENDENCIES): ... and this.
46155 * conf/i386-efi.rmk: Likewise.
46156 * conf/i386-linuxbios.rmk: Likewise.
46157 * conf/i386-ieee1275.rmk: Likewise.
46158 * conf/powerpc-ieee1275.rmk: Likewise.
46159 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46161 2008-01-27 Robert Millan <rmh@aybabtu.com>
46163 * NEWS: Add a few items.
46165 2008-01-27 Robert Millan <rmh@aybabtu.com>
46167 Fix parallel builds with grub-emu. Based on earlier commit for
46168 grub-probe and grub-setup.
46170 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46171 (util/grub-emu.c_DEPENDENCIES): ... this.
46172 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46173 (util/grub-emu.c_DEPENDENCIES): ... this.
46174 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46175 (util/grub-emu.c_DEPENDENCIES): ... this.
46176 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46177 (util/grub-emu.c_DEPENDENCIES): ... this.
46178 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46179 (util/grub-emu.c_DEPENDENCIES): ... this.
46181 2008-01-27 Pavel Roskin <proski@gnu.org>
46183 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46184 to create a gap between _end and the modules added to the image
46185 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46186 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46187 * util/elf/grub-mkimage.c (add_segments): Likewise.
46189 2008-01-26 Pavel Roskin <proski@gnu.org>
46191 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46192 just return an error.
46194 2008-01-26 Bean <bean123ch@gmail.com>
46196 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46197 (grub_reiserfs_get_item): Save offset of the next item.
46198 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46200 2008-01-25 Robert Millan <rmh@aybabtu.com>
46202 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46203 make all filesystem sources appear together (possibly fixing omissions
46205 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46206 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46207 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46208 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46210 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46212 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46213 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46214 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46215 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46217 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46218 (probe): Add a sanity check to make sure of our ability to read
46219 requested files when probing for filesystem type.
46221 * genmk.rb: Update copyright year (2007).
46223 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46224 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46225 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46226 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46227 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46228 : Remove function prototypes.
46230 2008-01-25 Robert Millan <rmh@aybabtu.com>
46232 Revert my previous commits (based on wrong assumption of how grub_errno
46235 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46236 * kern/file.c (grub_file_open): Likewise.
46238 2008-01-24 Pavel Roskin <proski@gnu.org>
46240 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46241 that hang if GRUB tries to setup colors.
46242 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46243 colors for firmwares that don't support it.
46244 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46245 Recognize Open Hack'Ware, set flags to work around its
46248 2008-01-24 Robert Millan <rmh@aybabtu.com>
46250 * kern/file.c (grub_file_open): Do not account previous failures of
46251 unrelated functions when grub_errno is checked for.
46252 Reported by Oleg Strikov.
46254 2008-01-24 Bean <bean123ch@gmail.com>
46256 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46257 (grub_ufs_sblock): New member volume name.
46258 (grub_ufs_find_file): Fix string copy bug.
46259 (grub_ufs_label): Implement this function properly.
46261 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46262 (grub_hfs_iterate_records): Use the correct file number for extents
46263 and catalog file. Fix problem in next index calculation.
46264 (grub_hfs_find_node): Replace recursive function call with loop.
46265 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46267 2008-01-23 Robert Millan <rmh@aybabtu.com>
46269 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46270 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46271 (grub_multiboot2_real_boot): New function prototype.
46273 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46274 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46276 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46277 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46279 2008-01-23 Robert Millan <rmh@aybabtu.com>
46281 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46282 #ifdef'ed out grub_printf().
46284 2008-01-23 Robert Millan <rmh@aybabtu.com>
46286 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46287 grub_dprintf calls, since they make "debug=all" mode unusable.
46288 (grub_console_checkkey): Likewise.
46290 2008-01-23 Robert Millan <rmh@aybabtu.com>
46292 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46293 `term/i386/pc/at_keyboard.c'.
46294 (pkglib_MODULES): Add `serial.mod'.
46295 (serial_mod_SOURCES): New variable.
46296 (serial_mod_CFLAGS): Likewise.
46297 (serial_mod_LDFLAGS): Likewise.
46299 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46300 `<grub/powerpc/ieee1275/console.h>'.
46301 (grub_keyboard_controller_init): New function prototype.
46302 (grub_console_checkkey): Likewise.
46303 (grub_console_getkey): Likewise.
46305 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46308 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46309 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46311 2008-01-23 Robert Millan <rmh@aybabtu.com>
46313 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46314 present, "(memdisk)/boot/grub" becomes the default prefix.
46316 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46317 a memdisk tarball with all the modules. Add --overlay=DIR option that
46318 allows users to overlay additional files into the image.
46320 2008-01-23 Robert Millan <rmh@aybabtu.com>
46322 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46323 and `machine/memory.h'.
46324 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46325 (_multiboot_mod_SOURCES): New variable.
46326 (_multiboot_mod_CFLAGS): Likewise.
46327 (_multiboot_mod_LDFLAGS): Likewise.
46328 (multiboot_mod_SOURCES): Likewise.
46329 (multiboot_mod_CFLAGS): Likewise.
46330 (multiboot_mod_LDFLAGS): Likewise.
46332 * include/grub/i386/ieee1275/loader.h: New file.
46334 * include/grub/i386/ieee1275/machine.h: Likewise.
46336 * include/grub/i386/ieee1275/memory.h: Likewise.
46338 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46339 variable declaration.
46340 (grub_os_area_size): Likewise.
46342 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46343 (grub_lower_mem, grub_upper_mem): New variables.
46344 (grub_stop_floppy): New function (just to make
46345 grub_multiboot2_real_boot() happy).
46347 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46348 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46349 (grub_stop): New function.
46350 Include `"../realmode.S"' and `"../loader.S"'.
46352 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46353 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46355 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46356 rely on grub_multiboot2_real_boot() for final boot.
46358 2008-01-22 Robert Millan <rmh@aybabtu.com>
46360 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46361 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46362 device that doesn't look like an SD card.
46363 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46364 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46365 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46366 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46369 2008-01-22 Robert Millan <rmh@aybabtu.com>
46371 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46372 avoid claiming over our own code.
46374 2008-01-22 Bean <bean123ch@gmail.com>
46376 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46377 (jpeg_mod_SOURCES): New variable.
46378 (jpeg_mod_CFLAGS): Likewise.
46379 (jpeg_mod_LDFLAGS): Likewise.
46381 * video/readers/jpeg.c : New file.
46383 2008-01-22 Bean <bean123ch@gmail.com>
46385 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46386 there are no more items.
46388 2008-01-21 Robert Millan <rmh@aybabtu.com>
46390 * kern/mm.c (grub_mm_init_region): Improve debug message.
46392 2008-01-21 Robert Millan <rmh@aybabtu.com>
46394 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46395 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46397 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46399 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46400 Indicates start of upper memory.
46401 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46402 (generate_image): Abort when image size is big enough to corrupt
46405 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46406 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46407 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46408 instead of hardcoding 0xA0000.
46409 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46410 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46411 instead of hardcoding 0xA0000.
46413 2008-01-21 Robert Millan <rmh@aybabtu.com>
46415 * disk/memdisk.c (memdisk_size): New variable.
46416 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46418 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46419 image to dynamic memory.
46420 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46421 `memdisk_size'. Free memdisk block.
46423 2008-01-21 Robert Millan <rmh@aybabtu.com>
46425 Fix detection of very small filesystems (like tar).
46427 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46428 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46429 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46430 a problem with this disk).
46432 2008-01-21 Robert Millan <rmh@aybabtu.com>
46434 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46435 on grub_biosdisk_rw_standard() error.
46437 2008-01-21 Robert Millan <rmh@aybabtu.com>
46439 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46441 * kern/elf.c: Likewise.
46442 * kern/ieee1275/ieee1275.c: Likewise.
46443 * kern/powerpc/ieee1275/openfw.c: Likewise.
46444 * term/ieee1275/ofconsole.c: Likewise.
46446 2008-01-21 Robert Millan <rmh@aybabtu.com>
46448 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46450 * include/grub/kernel.h (grub_arch_memdisk_addr)
46451 (grub_arch_memdisk_size): Moved from here ...
46453 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46454 (grub_arch_memdisk_size): ... to here.
46456 2008-01-21 Robert Millan <rmh@aybabtu.com>
46458 Mostly based on bugfix from Bean.
46460 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46461 attribute with hook() parameter.
46462 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46464 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46465 attribute with hook() parameter.
46466 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46469 2008-01-21 Robert Millan <rmh@aybabtu.com>
46471 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46472 (pkglib_MODULES): Add `memdisk.mod'.
46473 (memdisk_mod_SOURCES): New variable.
46474 (memdisk_mod_CFLAGS): Likewise.
46475 (memdisk_mod_LDFLAGS): Likewise.
46477 * disk/memdisk.c: New file.
46479 * include/grub/disk.h (grub_disk_dev_id): Add
46480 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46482 * include/grub/i386/pc/kernel.h
46483 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46484 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46485 (grub_kernel_image_size): New variable declaration.
46486 (grub_total_module_size): Likewise.
46487 (grub_memdisk_image_size): Likewise.
46489 * include/grub/i386/pc/memory.h
46490 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46492 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46493 (grub_arch_memdisk_addr): New variable declaration.
46494 (grub_arch_memdisk_size): Likewise.
46496 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46497 (grub_arch_memdisk_size): Likewise.
46499 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46500 (codestart): Replace hardcoded `0x100000' with
46501 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46503 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46504 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46505 not NULL, append the contents of the file it refers to, at the end of
46506 the compressed kernel image. Initialize `grub_memdisk_image_size'
46507 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46508 (options): Add "memdisk"|'m' option.
46509 (main): Parse --memdisk|-m option, and pass user-provided path as
46510 parameter to generate_image().
46512 2008-01-20 Robert Millan <rmh@aybabtu.com>
46514 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46515 grub_dprintf() calls from here ...
46516 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46518 2008-01-20 Robert Millan <rmh@aybabtu.com>
46520 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46522 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46524 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46525 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46526 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46527 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46529 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46530 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46532 2008-01-19 Robert Millan <rmh@aybabtu.com>
46534 Get rid of confusing function (superseded by
46535 `grub_ieee1275_get_integer_property')
46536 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46538 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46540 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46541 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46542 in native endianness from grub_ieee1275_get_integer_property().
46544 2008-01-19 Robert Millan <rmh@aybabtu.com>
46546 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46547 command after "shut-down", since implementations differ on which
46548 the command for halt is.
46550 2008-01-19 Robert Millan <rmh@aybabtu.com>
46552 * include/grub/i386/linuxbios/console.h: Add header protection.
46553 (grub_keyboard_controller_init): New function prototype.
46554 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46555 (KEYBOARD_COMMAND_READ): Likewise.
46556 (KEYBOARD_COMMAND_WRITE): Likewise.
46557 (KEYBOARD_SCANCODE_SET1): Likewise.
46558 (grub_keyboard_controller_write): New function.
46559 (grub_keyboard_controller_read): Likewise.
46560 (grub_keyboard_controller_init): Likewise.
46562 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46563 (grub_console_init): On coreboot/LinuxBIOS, call
46564 grub_keyboard_controller_init().
46566 2008-01-19 Robert Millan <rmh@aybabtu.com>
46568 PowerPC changes provided by Pavel Roskin.
46570 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46571 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46572 don't rely on cmain() doing it.
46573 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46574 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46576 2008-01-16 Robert Millan <rmh@aybabtu.com>
46578 * include/grub/i386/linuxbios/memory.h
46579 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46580 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46581 receive `table_header' as argument. Instead, probe for it in the
46582 known memory ranges where it can be present.
46583 (grub_available_iterate): Do not pass a fixed `table_header' address
46584 to grub_linuxbios_table_iterate().
46586 2008-01-15 Robert Millan <rmh@aybabtu.com>
46588 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46589 * conf/i386-ieee1275.rmk: New file.
46590 * include/grub/i386/ieee1275/console.h: Likewise.
46591 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46592 * include/grub/i386/ieee1275/kernel.h: Likewise.
46593 * include/grub/i386/ieee1275/time.h: Likewise.
46594 * kern/i386/ieee1275/init.c: Likewise.
46595 * kern/i386/ieee1275/startup.S: Likewise.
46597 2008-01-15 Robert Millan <rmh@aybabtu.com>
46599 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46600 when pointers are 32-bit (but still do set it to one when they are
46603 2008-01-15 Robert Millan <rmh@aybabtu.com>
46605 * include/grub/ieee1275/ieee1275.h
46606 (grub_ieee1275_get_integer_property): New function prototype.
46608 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46609 (grub_ieee1275_get_integer_property): New function. Wraps around
46610 grub_ieee1275_get_property() to handle endianness.
46612 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46613 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46615 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46616 (grub_map): Likewise.
46617 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46619 2008-01-15 Bean <bean123ch@gmail.com>
46621 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46622 (grub_script_execute_cmdline): Reset grub_errno.
46624 * normal/main.c (read_config_file): Reset grub_errno.
46626 * normal/parse.y (script_init): New.
46627 (script): Move function and menuentry here.
46629 (command): Add delimiter at the end of command.
46630 (commands): Adjust to match the new command.
46631 (commandblock): Remove grub_script_lexer_record_start.
46632 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46633 (if): Use the new commands.
46635 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46637 2008-01-15 Robert Millan <rmh@aybabtu.com>
46639 * normal/menu.c (run_menu): Move timeout message from here ...
46640 (print_timeout): ... to here.
46641 (run_menu): Use print_timeout() once during initial draw to print
46642 the whole message, and again in every clock tick to update only
46643 the number of seconds.
46645 2008-01-15 Robert Millan <rmh@aybabtu.com>
46647 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46648 actual size of `available' from grub_ieee1275_get_property(), and
46649 restrict parsing to that bound.
46651 2008-01-15 Christian Franke <franke@computer.org>
46653 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46654 (argp_program_version): Remove variable.
46655 (argp_program_bug_address): Likewise.
46656 (options): Convert from struct argp_option to struct option.
46657 (struct arguments): Remove.
46658 (parse_opt): Remove.
46659 (usage): New function.
46660 (main): Replace struct args members by simple variables.
46661 Replace argp_parse() by getopt_long().
46662 Add switch to evaluate options.
46663 Add missing "(...)" around root_dev in prefix string.
46665 2008-01-14 Robert Millan <rmh@aybabtu.com>
46667 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46668 for grub_ieee1275_exit(), in order to improve portability.
46670 2008-01-14 Robert Millan <rmh@aybabtu.com>
46672 * util/grub.d/10_linux.in (prefix): Define.
46673 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46675 2008-01-13 Pavel Roskin <proski@gnu.org>
46677 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46678 grub_errno if no errors have been detected.
46680 2008-01-12 Robert Millan <rmh@aybabtu.com>
46682 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46683 (grub_util_get_dev_abstraction): New function prototype.
46685 * util/getroot.c: Include `<grub/util/getroot.h>'
46686 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46687 (grub_util_get_dev_abstraction): ... here (new function).
46689 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46690 `PRINT_ABSTRACTION'.
46691 (probe): Probe for abstraction type when requested.
46692 (main): Understand `--target=abstraction'.
46694 * util/i386/efi/grub-install.in: Add abstraction module to core
46695 image when it is found to be necessary.
46696 * util/i386/pc/grub-install.in: Likewise.
46697 * util/powerpc/ieee1275/grub-install.in: Likewise.
46699 * util/update-grub_lib.in (font_path): Return system path without
46700 converting to GRUB path.
46701 * util/update-grub.in: Convert system path returned by font_path()
46702 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46703 abstraction module is needed for loading fonts (if any). Export
46704 that as `GRUB_PRELOAD_MODULES'.
46705 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46708 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46710 Remove some unused code from reiserfs.
46712 * fs/reiserfs.c (struct grub_reiserfs_key)
46713 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46714 (struct grub_reiserfs_node_body): Removed.
46715 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46717 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46719 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46721 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46723 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46725 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46727 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46728 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46729 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46731 2008-01-10 Robert Millan <rmh@aybabtu.com>
46733 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46734 Determines if a file is garbage left by packaging systems, etc.
46735 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46736 for processing /etc/grub.d scripts.
46737 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46738 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46739 as a condition for processing Linux images.
46741 2008-01-10 Pavel Roskin <proski@gnu.org>
46743 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46744 to compile reiserfs.c on PowerPC.
46746 2008-01-10 Robert Millan <rmh@aybabtu.com>
46748 * kern/device.c (grub_device_iterate): Do not abort device iteration
46749 when one of the devices cannot be opened.
46750 * kern/disk.c (grub_disk_open): Do not account previous failures of
46751 unrelated functions when grub_errno is checked for.
46753 2008-01-08 Robert Millan <rmh@aybabtu.com>
46755 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46756 `! grub_linux_is_bzimage', change order of address comparison to make
46757 it more intuitive, and improve "too big zImage" error message.
46759 2008-01-08 Robert Millan <rmh@aybabtu.com>
46761 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46762 `$(update-grub_DATA)'.
46763 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46766 2008-01-07 Robert Millan <rmh@aybabtu.com>
46768 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46769 which instruction is modified by grub-setup during installation
46770 (since it wasn't obvious by only looking at this file).
46772 2008-01-07 Robert Millan <rmh@aybabtu.com>
46774 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46775 listing actual TODO items.
46777 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46779 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46781 (grub_reiserfs_get_key_offset): Likewise.
46782 (grub_reiserfs_set_key_offset): Likewise.
46783 (grub_reiserfs_set_key_type): Likewise.
46784 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46786 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46787 better to remove the bitfield version completely.
46789 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46791 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46792 allocated from the heap, due to the fshelp implementation.
46793 (grub_reiserfs_dir): Free NODE, due to the same reason.
46795 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46797 Mostly from Vincent Pelletier:
46799 * fs/reiserfs.c: New file.
46801 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46802 (reiserfs_mod_SOURCES): New variable.
46803 (reiserfs_mod_CFLAGS): Likewise.
46804 (reiserfs_mod_LDFLAGS): Likewise.
46806 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46807 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46808 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46811 2008-01-06 Robert Millan <rmh@aybabtu.com>
46813 * normal/color.c: Remove `<grub/env.h>'.
46815 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46817 * include/grub/normal.h: Include <grub/env.h>.
46819 2008-01-05 Robert Millan <rmh@aybabtu.com>
46821 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46822 usage example with `(hd0,1)'.
46823 Reported by Samuel Thibault.
46825 2008-01-05 Robert Millan <rmh@aybabtu.com>
46827 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46828 (grub_linux_boot_zimage): Rename to ...
46829 (grub_linux_boot): ... this.
46830 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46831 (grub_linux_boot_zimage): Conditionalize zImage copy.
46833 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46834 (grub_linux_boot_bzimage): Remove prototype.
46835 (grub_linux_boot_zimage): Rename to ...
46836 (grub_linux_boot): ... this.
46838 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46839 (grub_linux_boot): Remove function.
46841 2008-01-05 Robert Millan <rmh@aybabtu.com>
46843 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46844 (grub_env_write_color_highlight): Likewise.
46845 (grub_wait_after_message): Likewise.
46847 * normal/color.c: New file.
46849 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46850 (normal_mod_DEPENDENCIES): Likewise.
46852 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46853 (normal_mod_DEPENDENCIES): Likewise.
46855 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46856 (normal_mod_DEPENDENCIES): Likewise.
46858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46859 (normal_mod_DEPENDENCIES): Likewise.
46861 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46862 for waiting after a message is printed.
46863 * normal/main.c (read_config_file): Likewise.
46864 (grub_normal_init): Register grub_env_write_color_normal() and
46865 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46866 `color_highlight' variables as global.
46868 * normal/menu.c (grub_wait_after_message): New function.
46869 (grub_color_menu_normal): New variable. Replaces ...
46870 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46871 (grub_color_menu_highlight): New variable. Replaces ...
46872 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46873 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46874 `GRUB_TERM_COLOR_STANDARD'.
46875 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46876 `normal_code' and `highlight_code' to `old_color_normal' and
46877 `old_color_highlight', respectively.
46878 (grub_menu_init_page): Update colors when drawing the menu, based on
46879 `menu_color_normal' and `menu_color_highlight' variables.
46880 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46881 a message is printed.
46883 2008-01-05 Robert Millan <rmh@aybabtu.com>
46885 * kern/env.c (grub_env_context_open): Propagate hooks for global
46886 variables to new context.
46888 * kern/main.c (grub_set_root_dev): Export `root' variable.
46890 2008-01-05 Robert Millan <rmh@aybabtu.com>
46892 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46893 discs unconditionally, since udev and others have options to provide
46896 2008-01-05 Robert Millan <rmh@aybabtu.com>
46898 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46900 2008-01-04 Christian Franke <franke@computer.org>
46902 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46905 2008-01-03 Pavel Roskin <proski@gnu.org>
46907 * kern/i386/linuxbios/init.c: Put "void" to all function
46908 declarations with no arguments.
46909 * kern/powerpc/ieee1275/init.c: Likewise.
46910 * term/i386/pc/at_keyboard.c: Likewise.
46911 * term/i386/pc/vga_text.c: Likewise.
46912 * util/grub-mkdevicemap.c: Likewise.
46914 2008-01-02 Robert Millan <rmh@aybabtu.com>
46916 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46917 message when loaded image is out of bounds.
46918 (grub_multiboot_load_elf64): Likewise.
46920 2008-01-02 Pavel Roskin <proski@gnu.org>
46922 * util/grub.d/10_linux.in: Try version without ".old" when
46923 looking for initrd. It's better to use initrd from the newer
46924 kernel of the same version than no initrd at all.
46926 2008-01-01 Robert Millan <rmh@aybabtu.com>
46928 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46930 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46932 * include/grub/video.h: Added grub_video_unmap_color and
46933 grub_video_get_active_render_target.
46934 (grub_video_adapter): Added unmap_color and get_active_render_target.
46936 * video/video.c: Added grub_video_unmap_color and
46937 grub_video_get_active_render_target.
46938 (grub_video_get_info): Changed method to accept NULL pointer as an
46939 argument to allow detection of active video adapter.
46941 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46942 grub_video_vbe_unmap_color_int.
46943 Added grub_video_vbe_unmap_color and
46944 grub_video_vbe_get_active_render_target.
46945 (grub_video_vbe_adapter): Added unmap_color and
46946 get_active_render_target.
46948 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46949 with grub_video_vbe_unmap_color_int.
46951 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46952 (DEFAULT_NORMAL_COLOR): Likewise.
46953 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46954 (DEFAULT_FG_COLOR): Removed.
46955 (DEFAULT_BG_COLOR): Likewise.
46956 (DEFAULT_CURSOR_COLOR): Changed value.
46957 (grub_virtual_screen): Added standard_color_setting,
46958 normal_color_setting, highlight_color_setting and term_color.
46959 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46960 (bitmap_width): Added.
46961 (bitmap_height): Likewise.
46962 (bitmap): Likewise.
46963 (set_term_color): Likewise.
46964 (grub_virtual_screen_setup): Changed to use new terminal coloring
46966 (grub_gfxterm_init): Added init for bitmap.
46967 (grub_gfxterm_fini): Added destroy for bitmap.
46968 (redraw_screen_rect): Updated to use background bitmap and new
46970 (scroll_up): Added optimization for case when there is no bitmap.
46971 (grub_gfxterm_cls): Fixed to use correct background color.
46972 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46974 (grub_virtual_screen_setcolor): Likewise.
46975 (grub_virtual_screen_getcolor): Added.
46976 (grub_gfxterm_background_image_cmd): Likewise.
46977 (grub_video_term): Added setcolor and getcolor.
46978 (MOD_INIT): Added registration of background_image command.
46979 (MOD_TERM): Added unregistration for background_image command.
46981 2007-12-30 Pavel Roskin <proski@gnu.org>
46983 * loader/multiboot_loader.c: Fix multiboot command
46984 unregistration. Fix all typos in the word "multiboot".
46986 2007-12-29 Pavel Roskin <proski@gnu.org>
46988 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46989 support for initrd names used in Fedora.
46991 2007-12-26 Bean <bean123ch@gmail.com>
46993 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46994 (cpio_mod_SOURCES): New variable.
46995 (cpio_mod_CFLAGS): Likewise.
46996 (cpio_mod_LDFLAGS): Likewise.
46998 * fs/cpio.c: New file.
47000 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47002 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47004 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47008 2007-12-25 Robert Millan <rmh@aybabtu.com>
47010 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47011 (grub_getcolor): New function.
47013 * kern/term.c (grub_getcolor): New function.
47014 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47015 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47016 (print_entry): Set normal and highlight colors to
47017 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47018 respectively, before printing and restore them to old
47020 (grub_menu_init_page): Likewise. Fill an additional colored space
47021 that would otherwise be left blank.
47023 * term/efi/console.c (grub_console_getcolor): New function.
47024 (struct grub_console_term.getcolor): New variable.
47025 * term/i386/pc/console.c (grub_console_getcolor): New function.
47026 (struct grub_console_term.getcolor): New variable.
47027 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47028 (struct grub_console_term.getcolor): New variable.
47030 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47031 (struct grub_console_term.setcolor): Remove variable.
47032 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47033 (struct grub_console_term.setcolor): Remove variable.
47034 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47035 (struct grub_console_term.setcolor): Remove variable.
47036 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47037 (struct grub_console_term.setcolor): Remove variable.
47039 2007-12-25 Robert Millan <rmh@aybabtu.com>
47041 * configure.ac: Search for possible unifont.hex locations, and
47042 define UNIFONT_HEX if found.
47044 * Makefile.in (UNIFONT_HEX): Define variable.
47045 (DATA): Rename to ...
47046 (PKGLIB): ... this. Update all users.
47047 (PKGDATA): New variable.
47048 (pkgdata_IMAGES): Rename to ...
47049 (pkglib_IMAGES): ... this. Update all users.
47050 (pkgdata_MODULES): Rename to ...
47051 (pkglib_MODULES): ... this. Update all users.
47052 (pkgdata_PROGRAMS): Rename to ...
47053 (pkglib_PROGRAMS): ... this. Update all users.
47054 (pkgdata_DATA): Rename to ...
47055 (pkglib_DATA): ... this. Update all users.
47056 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47057 (unicode.pff, ascii.pff): New rules.
47058 (all-local): Add `$(PKGDATA)' dependency.
47059 (install-local): Process `$(PKGDATA)'.
47061 * util/update-grub_lib.in (font_path): Search for *.pff files in
47062 a few more locations, including `${pkgdata}'.
47064 2007-12-23 Robert Millan <rmh@aybabtu.com>
47066 Patch from Bean <bean123ch@gmail.com>:
47067 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47070 2007-12-21 Bean <bean123ch@gmail.com>
47072 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47073 (ntfscomp_mod_SOURCES): New variable.
47074 (ntfscomp_mod_CFLAGS): Likewise.
47075 (ntfscomp_mod_LDFLAGS): Likewise.
47077 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47078 (grub_probe_SOURCES): Likewise.
47079 (grub_emu_SOURCES): Likewise.
47081 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47082 (grub_emu_SOURCES): Likewise.
47084 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47085 (grub_emu_SOURCES): Likewise.
47087 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47088 (grub_emu_SOURCES): Likewise.
47090 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47091 (read_run_list): Renamed to grub_ntfs_read_run_list.
47092 (decomp_nextvcn): Moved to ntfscomp.c.
47093 (decomp_getch): Likewise.
47094 (decomp_get16): Likewise.
47095 (decomp_block): Likewise.
47096 (read_block): Likewise.
47097 (read_data): Partially moved to ntfscomp.c.
47098 (fixup): Change unsigned to grub_uint16_t.
47099 (read_mft): Change unsigned long to grub_uint32_t.
47100 (read_attr): Likewise.
47101 (read_data): Likewise.
47102 (read_run_data): Likewise.
47103 (read_run_list): Likewise.
47104 (read_mft): Likewise.
47106 * fs/ntfscomp.c: New file.
47108 * include/grub/ntfs.h: New file.
47110 2007-12-16 Robert Millan <rmh@aybabtu.com>
47112 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47113 IDE disk check, since Linux is known to support 20 IDE disks.
47114 Reported by Colin Watson.
47116 2007-12-15 Bean <bean123ch@gmail.com>
47118 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47119 (lnxboot_img_SOURCES): New variable.
47120 (lnxboot_img_ASFLAGS): Likewise.
47121 (lnxboot_img_LDFLAGS): Likewise.
47123 * boot/i386/pc/lnxboot.S: New file.
47125 2007-11-24 Pavel Roskin <proski@gnu.org>
47127 * configure.ac: Test if '--build-id=none' is supported by the
47128 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47129 objcopy to generate incorrect binary files (binutils
47130 2.17.50.0.18-1 as shipped by Fedora 8).
47131 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47132 linking, so that build ID doesn't break the test.
47134 2007-11-24 Pavel Roskin <proski@gnu.org>
47136 * include/grub/i386/time.h: use "void" in the argument list
47137 of grub_cpu_idle().
47138 * include/grub/powerpc/time.h: Likewise.
47139 * include/grub/sparc64/time.h: Likewise.
47141 2007-11-18 Christian Franke <franke@computer.org>
47143 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47144 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47145 This fixes the problem that function keys did not work in grub-emu.
47147 2007-11-18 Christian Franke <franke@computer.org>
47149 * disk/host.c (grub_host_open): Remove attribute unused from
47150 name parameter. Add check for "host". This fixes the problem
47151 that grub-emu does not find partitions.
47153 2007-11-18 Christian Franke <franke@computer.org>
47155 * util/hostfs.c (is_dir): New function.
47156 (grub_hostfs_dir): Handle missing dirent.d_type case.
47157 (grub_hostfs_read): Add missing fseek().
47158 (grub_hostfs_label): Clear label pointer. This fixes a crash
47159 of grub-emu on "ls (host)".
47161 2007-11-18 Christian Franke <franke@computer.org>
47163 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47164 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47165 to 64 bit boundary by default.
47167 2007-11-18 Bean <bean123ch@gmail.com>
47169 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47170 (hexdump_mod_SOURCES): New variable.
47171 (hexdump_mod_CFLAGS): Likewise.
47172 (hexdump_mod_LDFLAGS): Likewise.
47174 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47176 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47178 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47182 * include/grub/hexdump.h: New file.
47184 * commands/hexdump.c: New file.
47186 2007-11-10 Robert Millan <rmh@aybabtu.com>
47188 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47189 in grub_outb() calls.
47190 (beep_on): Likewise.
47192 2007-11-10 Christian Franke <franke@computer.org>
47194 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47195 (grub_menu_run): Likewise.
47197 2007-11-10 Robert Millan <rmh@aybabtu.com>
47199 * include/grub/i386/efi/machine.h: New file.
47200 * include/grub/i386/linuxbios/machine.h: Likewise.
47201 * include/grub/i386/pc/machine.h: Likewise.
47202 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47203 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47205 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47206 (serial_hw_io_addr): New variable.
47207 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47208 instead of `(unsigned short *) 0x400'.
47210 2007-11-10 Bean <bean123ch@gmail.com>
47212 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47214 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47216 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47217 (vga_mod_SOURCES): Added.
47218 (vga_mod_CFLAGS): Likewise.
47219 (vga_mod_LDFLAGS): Likewise.
47221 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47223 (set_map_mask): Likewise.
47224 (set_read_map): Likewise.
47225 (set_read_address): Likewise.
47226 (vga_font): Removed variable.
47227 (get_vga_glyph): Removed function.
47228 (invalidate_char): Likewise.
47229 (write_char): Changed to use grub_font_get_glyph() for font
47231 (grub_vga_putchar): Likewise.
47232 (grub_vga_getcharwidth): Likewise.
47234 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47236 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47238 (pxeboot_img_LDFLAGS): Likewise.
47239 (diskboot_img_LDFLAGS): Likewise.
47240 (kernel_img_LDFLAGS): Likewise.
47242 2007-11-06 Robert Millan <rmh@aybabtu.com>
47244 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47245 in grub_outb() calls.
47246 (serial_hw_init): Likewise.
47248 2007-11-05 Robert Millan <rmh@aybabtu.com>
47250 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47251 spaces. Skip non-regular files.
47253 2007-11-05 Robert Millan <rmh@aybabtu.com>
47255 * kern/disk.c (grub_disk_firmware_fini)
47256 (grub_disk_firmware_is_tainted): New variables.
47258 * include/grub/disk.h (grub_disk_firmware_fini)
47259 (grub_disk_firmware_is_tainted): Likewise.
47261 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47262 (grub_disk_biosdisk_fini): ... to here.
47263 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47264 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47265 is set. Register grub_disk_biosdisk_fini() in
47266 `grub_disk_firmware_fini'.
47268 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47269 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47270 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47271 to finish existing firmware disk interface.
47273 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47274 (ata_mod_SOURCES): New variable.
47275 (ata_mod_CFLAGS): Likewise.
47276 (ata_mod_LDFLAGS): Likewise.
47278 2007-11-05 Robert Millan <rmh@aybabtu.com>
47280 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47281 (grub_ata_wait): Reimplement using grub_millisleep().
47283 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47284 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47286 2007-11-03 Marco Gerards <marco@gnu.org>
47288 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47289 (CRTC_ADDR_PORT): New macro.
47290 (CRTC_DATA_PORT): Likewise.
47291 (CRTC_CURSOR): Likewise.
47292 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47293 (CRTC_CURSOR_ADDR_LOW): Likewise.
47294 (update_cursor): New function.
47295 (grub_console_real_putchar): Call `update_cursor'.
47296 (grub_console_gotoxy): Likewise.
47297 (grub_console_cls): Set the default color when clearing the
47299 (grub_console_setcursor): Implemented.
47301 2007-11-03 Marco Gerards <marco@gnu.org>
47303 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47305 (grub_ata_pio_write): Likewise.
47307 (grub_atapi_identify): Wait after issuing an ATA command.
47308 (grub_atapi_packet): Likewise.
47309 (grub_ata_identify): Likewise.
47310 (grub_ata_readwrite): Likewise.
47312 2007-11-03 Marco Gerards <marco@gnu.org>
47314 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47315 (grub_ata_pio_write): Likewise.
47316 (grub_ata_readwrite): Use `grub_error', instead of
47317 returning `grub_errno'.
47319 2007-11-03 Marco Gerards <marco@gnu.org>
47321 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47322 grub_ata_pio_write once for every single sector, instead of for
47325 2007-10-31 Robert Millan <rmh@aybabtu.com>
47327 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47329 * conf/i386-linuxbios.rmk: New file.
47331 * kern/i386/pc/hardware.c: Likewise.
47332 * term/i386/pc/at_keyboard.c: Likewise.
47333 * term/i386/pc/vga_text.c: Likewise.
47335 * include/grub/i386/linuxbios/boot.h: Likewise.
47336 * include/grub/i386/linuxbios/console.h: Likewise.
47337 * include/grub/i386/linuxbios/init.h: Likewise.
47338 * include/grub/i386/linuxbios/kernel.h: Likewise.
47339 * include/grub/i386/linuxbios/loader.h: Likewise.
47340 * include/grub/i386/linuxbios/memory.h: Likewise.
47341 * include/grub/i386/linuxbios/serial.h: Likewise.
47342 * include/grub/i386/linuxbios/time.h: Likewise.
47344 * kern/i386/linuxbios/init.c: Likewise.
47345 * kern/i386/linuxbios/startup.S: Likewise.
47346 * kern/i386/linuxbios/table.c: Likewise.
47348 2007-10-31 Marco Gerards <marco@gnu.org>
47350 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47351 (ata_mod_SOURCES): New variable.
47352 (ata_mod_CFLAGS): Likewise.
47353 (ata_mod_LDFLAGS): Likewise.
47355 * disk/ata.c: New file.
47357 * include/grub/disk.h (grub_disk_dev_id): Add
47358 `GRUB_DISK_DEV_ATA_ID'.
47360 2007-10-31 Robert Millan <rmh@aybabtu.com>
47362 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47363 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47365 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47366 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47368 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47371 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47373 2007-10-27 Robert Millan <rmh@aybabtu.com>
47375 * include/grub/types.h (ULONG_MAX): Define macro.
47377 2007-10-22 Robert Millan <rmh@aybabtu.com>
47379 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47381 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47383 2007-10-22 Robert Millan <rmh@aybabtu.com>
47385 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47386 (pkgdata_MODULES): Add `biosdisk.mod'.
47387 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47390 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47391 (grub_biosdisk_init): Replace with ...
47392 (GRUB_MOD_INIT(biosdisk)): ... this.
47393 (grub_biosdisk_fini): Replace with ...
47394 (GRUB_MOD_FINI(biosdisk)): ... this.
47396 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47397 (grub_machine_init): Remove call to grub_biosdisk_init().
47398 (grub_machine_fini): Remove call to grub_machine_fini().
47400 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47402 2007-10-22 Robert Millan <rmh@aybabtu.com>
47404 * include/grub/time.h: New file.
47405 * include/grub/i386/time.h: Likewise.
47406 * include/grub/powerpc/time.h: Likewise.
47407 * include/grub/sparc64/time.h: Likewise.
47409 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47411 (KERNEL_MACHINE_TIME_HEADER): ... this.
47412 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47414 (KERNEL_MACHINE_TIME_HEADER): ... this.
47415 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47417 (KERNEL_MACHINE_TIME_HEADER): ... this.
47419 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47420 (grub_millisleep): New function.
47421 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47422 (grub_millisleep): New function.
47423 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47424 Remove `grub/machine/time.h' include.
47425 (grub_millisleep): New function.
47426 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47427 Remove `grub/machine/time.h' include.
47428 (grub_millisleep): New function.
47430 * include/grub/misc.h (grub_div_roundup): New function.
47432 * kern/misc.c: Include `<grub/time.h>'.
47433 (grub_millisleep_generic): New function.
47435 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47437 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47439 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47440 `machine/time.h'. Add `time.h'.
47441 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47443 2007-10-21 Robert Millan <rmh@aybabtu.com>
47445 * include/grub/misc.h (grub_max): New function.
47447 2007-10-21 Robert Millan <rmh@aybabtu.com>
47449 * util/misc.c (grub_util_info): Call fflush() before returning.
47451 2007-10-20 Robert Millan <rmh@aybabtu.com>
47453 * genmk.rb (Image): Copy `extra_flags' from here ...
47454 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47456 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47457 to `argc' and `args' arguments.
47459 2007-10-17 Robert Millan <rmh@aybabtu.com>
47461 * kern/i386/loader.S: New file.
47463 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47464 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47465 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47466 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47467 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47468 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47469 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47470 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47471 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47472 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47473 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47474 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47475 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47476 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47478 * kern/i386/realmode.S: New file.
47480 * kern/i386/pc/startup.S (protstack): Moved from here ...
47481 * kern/i386/realmode.S (protstack)... to here.
47482 * kern/i386/pc/startup.S (gdt): Moved from here ...
47483 * kern/i386/realmode.S (gdt)... to here.
47484 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47485 * kern/i386/realmode.S (prot_to_real)... to here.
47487 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47488 `kern/i386/realmode.S'.
47490 2007-10-17 Robert Millan <rmh@aybabtu.com>
47492 * include/grub/i386/loader.h: New file.
47494 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47495 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47496 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47497 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47498 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47499 * include/grub/i386/loader.h (grub_linux_prot_size)
47500 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47501 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47502 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47503 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47505 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47507 2007-10-15 Robert Millan <rmh@aybabtu.com>
47509 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47510 filesystem when dev->disk is unset.
47511 Do probe for filesystem even when dev->disk->has_partitions is set.
47512 In case a filesystem is found, always report it.
47513 In case it isn't, if dev->disk->has_partitions is set, report that
47514 a partition table was found instead of reporting that no filesystem
47515 could be identified.
47517 2007-10-12 Robert Millan <rmh@aybabtu.com>
47519 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47520 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47522 * include/grub/types.h (grub_host_to_target16): New macro.
47523 (grub_host_to_target32): Likewise.
47524 (grub_host_to_target64): Likewise.
47525 (grub_target_to_host16): Likewise.
47526 (grub_target_to_host32): Likewise.
47527 (grub_target_to_host64): Likewise.
47529 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47530 Renamed from to ...
47531 (GRUB_MOD_ALIGN): ...this. Update all users.
47533 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47534 grub_host_to_target32.
47535 Replace grub_be_to_cpu32 with grub_target_to_host32.
47536 (load_modules): Likewise.
47537 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47538 Replace grub_be_to_cpu32 with grub_target_to_host32.
47539 Replace grub_cpu_to_be16 with grub_host_to_target16.
47540 Replace grub_cpu_to_be32 grub_host_to_target32.
47542 2007-10-12 Robert Millan <rmh@aybabtu.com>
47544 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47545 * util/elf/grub-mkimage.c: ... here.
47547 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47548 `util/powerpc/ieee1275/grub-mkimage.c'.
47550 2007-10-07 Robert Millan <rmh@aybabtu.com>
47552 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47553 and make it easier to figure out.
47554 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47555 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47556 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47557 leave us with less than HEAP_MIN_SIZE total heap.
47558 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47560 2007-10-03 Robert Millan <rmh@aybabtu.com>
47562 * include/grub/i386/io.h: New file.
47563 * commands/i386/pc/play.c (inb): Removed.
47565 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47567 * term/i386/pc/serial.c (inb): Removed.
47569 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47571 * term/i386/pc/vga.c (inb): Removed.
47573 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47576 2007-10-02 Robert Millan <rmh@aybabtu.com>
47578 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47580 Reported by Marcin Kurek.
47582 2007-09-07 Robert Millan <rmh@aybabtu.com>
47584 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47585 SmartFirmware version updates (as released by Sven Luther), and avoid
47586 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47587 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47590 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47592 From Hitoshi Ozeki:
47593 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47594 when merging two regions.
47596 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47598 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47599 * normal/completion.c (grub_normal_do_completion): Likewise.
47600 Reported by Hitoshi Ozeki.
47602 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47604 Do not use devices at boot in chainloading.
47606 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47607 (boot_part_addr): Likewise.
47608 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47609 with BOOT_DRIVE and BOOT_PART_ADDR.
47610 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47611 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47613 2007-08-29 Robert Millan <rmh@aybabtu.com>
47615 Patch from Simon Peter <dn.tlp@gmx.net>:
47616 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47617 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47618 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47619 util/i386/pc/grub-setup.c_DEPENDENCIES.
47620 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47621 util/grub-probe.c_DEPENDENCIES.
47622 * conf/powerpc-ieee1275.rmk: Likewise.
47624 2007-08-28 Robert Millan <rmh@aybabtu.com>
47626 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47627 to tell grub-mkdevicemap how to name devices.
47628 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47631 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47632 util/i386/get_disk_name.c.
47633 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47634 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47635 util/ieee1275/get_disk_name.c.
47637 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47639 * DISTLIST: Add util/i386/get_disk_name.c and
47640 util/ieee1275/get_disk_name.c.
47642 * util/grub-mkdevicemap.c: Replace device naming logic with
47643 grub_util_get_disk_name() calls.
47645 2007-08-20 Robert Millan <rmh@aybabtu.com>
47647 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47648 (so that it works for both plural and singular quantities).
47650 2007-08-05 Robert Millan <rmh@aybabtu.com>
47652 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47653 so that [xz] isn't taken into account when determining order.
47655 2007-08-02 Marco Gerards <marco@gnu.org>
47657 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47658 `include/multiboot2.h', `include/grub/elfload.h',
47659 `include/multiboot.h', `include/grub/multiboot.h',
47660 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47661 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47662 `kern/elf.c', `loader/multiboot_loader.c',
47663 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47664 `loader/i386/pc/multiboot2.c',
47665 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47666 `util/i386/pc/grub-mkrescue.in'. Remove
47667 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47668 `include/grub/i386/pc/util/biosdisk.h' and
47669 `include/grub/powerpc/ieee1275/multiboot.h'.
47671 2007-08-02 Bean <bean123ch@gmail.com>
47673 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47674 (ntfs_mod_SOURCES): New variable.
47675 (ntfs_mod_CFLAGS): Likewise.
47676 (ntfs_mod_LDFLAGS): Likewise.
47678 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47679 (grub_probe_SOURCES): Likewise.
47680 (grub_emu_SOURCES): Likewise.
47682 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47683 (grub_emu_SOURCES): Likewise.
47685 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47686 (grub_emu_SOURCES): Likewise.
47688 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47690 * fs/ntfs.c: New file.
47692 2007-08-02 Bean <bean123ch@gmail.com>
47694 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47696 * file.h (grub_file): Likewise.
47698 * fshelp.h (grub_fshelp_read_file): Likewise.
47700 * util/i386/pc/grub-setup.c (setup): Likewise.
47701 (save_first_sector): Likewise.
47702 (save_blocklists): Likewise.
47704 * fs/affs.c (grub_affs_read_file): Likewise.
47706 * fs/ext2.c (grub_ext2_read_file): Likewise.
47708 * fs/fat.c (grub_fat_read_data): Likewise.
47710 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47712 * fs/hfs.c (grub_hfs_read_file): Likewise.
47714 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47716 * fs/jfs.c (grub_jfs_read_file): Likewise.
47718 * fs/minix.c (grub_minix_read_file): Likewise.
47720 * fs/sfs.c (grub_sfs_read_file): Likewise.
47722 * fs/ufs.c (grub_ufs_read_file): Likewise.
47724 * fs/xfs.c (grub_xfs_read_file): Likewise.
47726 * command/blocklist.c (read_blocklist): Likewise.
47727 (print_blocklist): Likewise.
47729 2007-08-02 Marco Gerards <marco@gnu.org>
47731 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47734 * disk/host.c: New file.
47736 * util/hostfs.c: Likewise.
47738 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47739 return `GRUB_ERR_BAD_FS'.
47740 * fs/sfs.c (grub_sfs_mount): Likewise.
47741 * fs/xfs.c (grub_xfs_mount): Likewise.
47743 * include/grub/disk.h (enum grub_disk_dev_id): Add
47744 `GRUB_DISK_DEVICE_HOST_ID'.
47746 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47748 2007-07-24 Jerone Young <jerone@gmail.com>
47750 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47751 modules for compilation.
47752 * conf/powerpc-ieee1275.rmk: Likewise.
47754 * include/multiboot.h: Move multiboot definitions to one file. Rename
47755 many definitions to not get grub specific.
47756 * include/multiboot2.h: Create header with multiboot 2 definitions.
47757 * include/grub/multiboot.h: Header for grub specific function
47758 prototypes and definitions.
47759 * include/grub/multiboot2.h: Likewise.
47760 * include/grub/multiboot_loader.h: Likewise.
47761 * include/grub/i386/pc/multiboot.h: Removed.
47762 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47764 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47765 and 2 to allow for one multiboot and module commands.
47766 * loader/multiboot2.c: Add multiboot2 functionality.
47767 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47768 and definition names.
47769 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47771 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47772 ieee1275 specific multiboot2 code.
47774 * kern/i386/pc/startup.S: Change headers and definition names for
47775 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47777 2007-07-22 Robert Millan <rmh@aybabtu.com>
47779 * geninitheader.sh: Process file specified in first parameter rather
47780 than hardcoding grub_modules_init.lst.
47781 * geninit.sh: Likewise. Also, construct header name dynamically rather
47782 than hardcoding grub_modules_init.h.
47784 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47785 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47786 grub_probe_init.[ch] and grub_setup_init.[ch].
47788 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47789 grub_modules_init.h with grub_emu_init.h.
47790 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47791 grub_probe_init.[ch] files.
47792 * conf/i386-efi.rmk: Likewise.
47793 * conf/i386-pc.rmk: Likewise.
47794 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47795 grub_setup_init.[ch] files.
47797 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47798 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47799 to initialize modules rather than a list of hardcoded functions.
47800 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47801 grub_init_all() to initialize modules rather than a list of hardcoded
47804 2007-07-22 Robert Millan <rmh@aybabtu.com>
47806 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47807 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47809 2007-07-22 Robert Millan <rmh@aybabtu.com>
47811 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47812 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47813 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47814 flag when running on SmartFirmware.
47815 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47816 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47819 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47820 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47821 rather than decreasing it.
47823 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47824 there's not enough space to do it, fail in the same way as when it
47825 can't be done because there are no partitions.
47827 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47828 when nvsetenv failed.
47830 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47832 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47833 because this rule is automatically generated.
47834 (grub-mkrescue): Removed for the same reason as above.
47836 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47838 Migrate to GNU General Public License Version 3.
47840 * COPYING: Replaced with the plain text version of GPLv3.
47842 * config.guess: Updated from gnulib.
47843 * config.sub: Likewise.
47845 * geninit.sh: Output a GPLv3 copyright notice.
47846 * geninitheader.sh: Likewise.
47847 * genmodsrc.sh: Likewise.
47848 * gensymlist.sh.in: Likewise.
47850 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47851 * boot/i386/pc/diskboot.S: Likewise.
47852 * boot/i386/pc/pxeboot.S: Likewise.
47853 * commands/blocklist.c: Likewise.
47854 * commands/boot.c: Likewise.
47855 * commands/cat.c: Likewise.
47856 * commands/cmp.c: Likewise.
47857 * commands/configfile.c: Likewise.
47858 * commands/echo.c: Likewise.
47859 * commands/help.c: Likewise.
47860 * commands/ls.c: Likewise.
47861 * commands/search.c: Likewise.
47862 * commands/terminal.c: Likewise.
47863 * commands/test.c: Likewise.
47864 * commands/videotest.c: Likewise.
47865 * commands/i386/cpuid.c: Likewise.
47866 * commands/i386/pc/halt.c: Likewise.
47867 * commands/i386/pc/play.c: Likewise.
47868 * commands/i386/pc/reboot.c: Likewise.
47869 * commands/i386/pc/vbeinfo.c: Likewise.
47870 * commands/i386/pc/vbetest.c: Likewise.
47871 * commands/ieee1275/halt.c: Likewise.
47872 * commands/ieee1275/reboot.c: Likewise.
47873 * commands/ieee1275/suspend.c: Likewise.
47874 * disk/loopback.c: Likewise.
47875 * disk/lvm.c: Likewise.
47876 * disk/raid.c: Likewise.
47877 * disk/efi/efidisk.c: Likewise.
47878 * disk/i386/pc/biosdisk.c: Likewise.
47879 * disk/ieee1275/ofdisk.c: Likewise.
47880 * font/manager.c: Likewise.
47881 * fs/affs.c: Likewise.
47882 * fs/ext2.c: Likewise.
47883 * fs/fat.c: Likewise.
47884 * fs/fshelp.c: Likewise.
47885 * fs/hfs.c: Likewise.
47886 * fs/hfsplus.c: Likewise.
47887 * fs/iso9660.c: Likewise.
47888 * fs/jfs.c: Likewise.
47889 * fs/minix.c: Likewise.
47890 * fs/sfs.c: Likewise.
47891 * fs/ufs.c: Likewise.
47892 * fs/xfs.c: Likewise.
47893 * hello/hello.c: Likewise.
47894 * include/grub/acorn_filecore.h: Likewise.
47895 * include/grub/arg.h: Likewise.
47896 * include/grub/bitmap.h: Likewise.
47897 * include/grub/boot.h: Likewise.
47898 * include/grub/cache.h: Likewise.
47899 * include/grub/device.h: Likewise.
47900 * include/grub/disk.h: Likewise.
47901 * include/grub/dl.h: Likewise.
47902 * include/grub/elfload.h: Likewise.
47903 * include/grub/env.h: Likewise.
47904 * include/grub/err.h: Likewise.
47905 * include/grub/file.h: Likewise.
47906 * include/grub/font.h: Likewise.
47907 * include/grub/fs.h: Likewise.
47908 * include/grub/fshelp.h: Likewise.
47909 * include/grub/gzio.h: Likewise.
47910 * include/grub/hfs.h: Likewise.
47911 * include/grub/kernel.h: Likewise.
47912 * include/grub/loader.h: Likewise.
47913 * include/grub/lvm.h: Likewise.
47914 * include/grub/misc.h: Likewise.
47915 * include/grub/mm.h: Likewise.
47916 * include/grub/net.h: Likewise.
47917 * include/grub/normal.h: Likewise.
47918 * include/grub/parser.h: Likewise.
47919 * include/grub/partition.h: Likewise.
47920 * include/grub/pc_partition.h: Likewise.
47921 * include/grub/raid.h: Likewise.
47922 * include/grub/rescue.h: Likewise.
47923 * include/grub/script.h: Likewise.
47924 * include/grub/setjmp.h: Likewise.
47925 * include/grub/symbol.h: Likewise.
47926 * include/grub/term.h: Likewise.
47927 * include/grub/terminfo.h: Likewise.
47928 * include/grub/tparm.h: Likewise.
47929 * include/grub/types.h: Likewise.
47930 * include/grub/video.h: Likewise.
47931 * include/grub/efi/api.h: Likewise.
47932 * include/grub/efi/chainloader.h: Likewise.
47933 * include/grub/efi/console.h: Likewise.
47934 * include/grub/efi/console_control.h: Likewise.
47935 * include/grub/efi/disk.h: Likewise.
47936 * include/grub/efi/efi.h: Likewise.
47937 * include/grub/efi/pe32.h: Likewise.
47938 * include/grub/efi/time.h: Likewise.
47939 * include/grub/i386/linux.h: Likewise.
47940 * include/grub/i386/setjmp.h: Likewise.
47941 * include/grub/i386/types.h: Likewise.
47942 * include/grub/i386/efi/kernel.h: Likewise.
47943 * include/grub/i386/efi/loader.h: Likewise.
47944 * include/grub/i386/efi/time.h: Likewise.
47945 * include/grub/i386/pc/biosdisk.h: Likewise.
47946 * include/grub/i386/pc/boot.h: Likewise.
47947 * include/grub/i386/pc/chainloader.h: Likewise.
47948 * include/grub/i386/pc/console.h: Likewise.
47949 * include/grub/i386/pc/init.h: Likewise.
47950 * include/grub/i386/pc/kernel.h: Likewise.
47951 * include/grub/i386/pc/loader.h: Likewise.
47952 * include/grub/i386/pc/memory.h: Likewise.
47953 * include/grub/i386/pc/multiboot.h: Likewise.
47954 * include/grub/i386/pc/serial.h: Likewise.
47955 * include/grub/i386/pc/time.h: Likewise.
47956 * include/grub/i386/pc/vbe.h: Likewise.
47957 * include/grub/i386/pc/vbeblit.h: Likewise.
47958 * include/grub/i386/pc/vbefill.h: Likewise.
47959 * include/grub/i386/pc/vbeutil.h: Likewise.
47960 * include/grub/i386/pc/vga.h: Likewise.
47961 * include/grub/ieee1275/ieee1275.h: Likewise.
47962 * include/grub/ieee1275/ofdisk.h: Likewise.
47963 * include/grub/powerpc/libgcc.h: Likewise.
47964 * include/grub/powerpc/setjmp.h: Likewise.
47965 * include/grub/powerpc/types.h: Likewise.
47966 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47967 * include/grub/powerpc/ieee1275/console.h: Likewise.
47968 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47969 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47970 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47971 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47972 * include/grub/powerpc/ieee1275/time.h: Likewise.
47973 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47974 * include/grub/sparc64/libgcc.h: Likewise.
47975 * include/grub/sparc64/setjmp.h: Likewise.
47976 * include/grub/sparc64/types.h: Likewise.
47977 * include/grub/sparc64/ieee1275/console.h: Likewise.
47978 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47979 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47980 * include/grub/sparc64/ieee1275/time.h: Likewise.
47981 * include/grub/util/biosdisk.h: Likewise.
47982 * include/grub/util/getroot.h: Likewise.
47983 * include/grub/util/lvm.h: Likewise.
47984 * include/grub/util/misc.h: Likewise.
47985 * include/grub/util/raid.h: Likewise.
47986 * include/grub/util/resolve.h: Likewise.
47987 * io/gzio.c: Likewise.
47988 * kern/device.c: Likewise.
47989 * kern/disk.c: Likewise.
47990 * kern/dl.c: Likewise.
47991 * kern/elf.c: Likewise.
47992 * kern/env.c: Likewise.
47993 * kern/err.c: Likewise.
47994 * kern/file.c: Likewise.
47995 * kern/fs.c: Likewise.
47996 * kern/loader.c: Likewise.
47997 * kern/main.c: Likewise.
47998 * kern/misc.c: Likewise.
47999 * kern/mm.c: Likewise.
48000 * kern/parser.c: Likewise.
48001 * kern/partition.c: Likewise.
48002 * kern/rescue.c: Likewise.
48003 * kern/term.c: Likewise.
48004 * kern/efi/efi.c: Likewise.
48005 * kern/efi/init.c: Likewise.
48006 * kern/efi/mm.c: Likewise.
48007 * kern/i386/dl.c: Likewise.
48008 * kern/i386/efi/init.c: Likewise.
48009 * kern/i386/efi/startup.S: Likewise.
48010 * kern/i386/pc/init.c: Likewise.
48011 * kern/i386/pc/lzo1x.S: Likewise.
48012 * kern/i386/pc/startup.S: Likewise.
48013 * kern/ieee1275/ieee1275.c: Likewise.
48014 * kern/powerpc/cache.S: Likewise.
48015 * kern/powerpc/dl.c: Likewise.
48016 * kern/powerpc/ieee1275/cmain.c: Likewise.
48017 * kern/powerpc/ieee1275/crt0.S: Likewise.
48018 * kern/powerpc/ieee1275/init.c: Likewise.
48019 * kern/powerpc/ieee1275/openfw.c: Likewise.
48020 * kern/sparc64/cache.S: Likewise.
48021 * kern/sparc64/dl.c: Likewise.
48022 * kern/sparc64/ieee1275/init.c: Likewise.
48023 * kern/sparc64/ieee1275/openfw.c: Likewise.
48024 * loader/efi/chainloader.c: Likewise.
48025 * loader/efi/chainloader_normal.c: Likewise.
48026 * loader/i386/efi/linux.c: Likewise.
48027 * loader/i386/efi/linux_normal.c: Likewise.
48028 * loader/i386/pc/chainloader.c: Likewise.
48029 * loader/i386/pc/chainloader_normal.c: Likewise.
48030 * loader/i386/pc/linux.c: Likewise.
48031 * loader/i386/pc/linux_normal.c: Likewise.
48032 * loader/i386/pc/multiboot.c: Likewise.
48033 * loader/i386/pc/multiboot_normal.c: Likewise.
48034 * loader/powerpc/ieee1275/linux.c: Likewise.
48035 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48036 * normal/arg.c: Likewise.
48037 * normal/cmdline.c: Likewise.
48038 * normal/command.c: Likewise.
48039 * normal/completion.c: Likewise.
48040 * normal/execute.c: Likewise.
48041 * normal/function.c: Likewise.
48042 * normal/lexer.c: Likewise.
48043 * normal/main.c: Likewise.
48044 * normal/menu.c: Likewise.
48045 * normal/menu_entry.c: Likewise.
48046 * normal/misc.c: Likewise.
48047 * normal/parser.y: Likewise.
48048 * normal/script.c: Likewise.
48049 * normal/i386/setjmp.S: Likewise.
48050 * normal/powerpc/setjmp.S: Likewise.
48051 * normal/sparc64/setjmp.S: Likewise.
48052 * partmap/acorn.c: Likewise.
48053 * partmap/amiga.c: Likewise.
48054 * partmap/apple.c: Likewise.
48055 * partmap/gpt.c: Likewise.
48056 * partmap/pc.c: Likewise.
48057 * partmap/sun.c: Likewise.
48058 * term/gfxterm.c: Likewise.
48059 * term/terminfo.c: Likewise.
48060 * term/efi/console.c: Likewise.
48061 * term/i386/pc/console.c: Likewise.
48062 * term/i386/pc/serial.c: Likewise.
48063 * term/i386/pc/vesafb.c: Likewise.
48064 * term/i386/pc/vga.c: Likewise.
48065 * term/ieee1275/ofconsole.c: Likewise.
48066 * util/biosdisk.c: Likewise.
48067 * util/console.c: Likewise.
48068 * util/genmoddep.c: Likewise.
48069 * util/getroot.c: Likewise.
48070 * util/grub-emu.c: Likewise.
48071 * util/grub-mkdevicemap.c: Likewise.
48072 * util/grub-probe.c: Likewise.
48073 * util/lvm.c: Likewise.
48074 * util/misc.c: Likewise.
48075 * util/raid.c: Likewise.
48076 * util/resolve.c: Likewise.
48077 * util/update-grub.in: Likewise.
48078 * util/update-grub_lib.in: Likewise.
48079 * util/grub.d/00_header.in: Likewise.
48080 * util/grub.d/10_hurd.in: Likewise.
48081 * util/grub.d/10_linux.in: Likewise.
48082 * util/i386/efi/grub-install.in: Likewise.
48083 * util/i386/efi/grub-mkimage.c: Likewise.
48084 * util/i386/pc/grub-install.in: Likewise.
48085 * util/i386/pc/grub-mkimage.c: Likewise.
48086 * util/i386/pc/grub-mkrescue.in: Likewise.
48087 * util/i386/pc/grub-setup.c: Likewise.
48088 * util/i386/pc/misc.c: Likewise.
48089 * util/powerpc/ieee1275/grub-install.in: Likewise.
48090 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48091 * util/powerpc/ieee1275/misc.c: Likewise.
48092 * video/bitmap.c: Likewise.
48093 * video/video.c: Likewise.
48094 * video/i386/pc/vbe.c: Likewise.
48095 * video/i386/pc/vbeblit.c: Likewise.
48096 * video/i386/pc/vbefill.c: Likewise.
48097 * video/i386/pc/vbeutil.c: Likewise.
48098 * video/readers/tga.c: Likewise.
48100 2007-07-02 Robert Millan <rmh@aybabtu.com>
48102 * conf/i386-efi.rmk: Replace obsolete reference to
48103 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48104 with util/getroot.c.
48105 * conf/powerpc-ieee1275.rmk: Likewise.
48106 * conf/sparc64-ieee1275.rmk: Likewise.
48108 * util/grub-emu.c (main): Fix unchecked pointer handling.
48110 2007-07-02 Robert Millan <rmh@aybabtu.com>
48112 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48113 invocation to fail, in order to support partition-less media.
48115 * util/i386/pc/grub-install.in: Likewise.
48117 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48118 which fs or partmap modules are needed (akin to its sister scripts).
48120 Also use grub-probe to get rid of unportable /proc/mounts check.
48122 Print the same informational message that the other scripts do, before
48125 2007-06-23 Robert Millan <rmh@aybabtu.com>
48127 * util/update-grub_lib.in (font_path): New function. Determine whether
48128 a font file can be found and, if so, echo the GRUB path to it.
48130 * util/update-grub.in: Handle multiple terminals depending on user
48131 input, platform availability and font file presence. Propagate
48132 variables of our findings to /etc/grub.d/ children.
48134 * util/grub.d/00_header.in: Handle multiple terminals, based on
48135 environment setup by update-grub.
48137 2007-06-23 Robert Millan <rmh@aybabtu.com>
48139 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48141 2007-06-21 Robert Millan <rmh@aybabtu.com>
48143 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48144 indicate end of data section in kernel image.
48145 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48146 GRUB_KERNEL_MACHINE_DATA_END.
48148 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48150 * kern/i386/efi/startup.S: Likewise.
48152 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48153 during image generation. Implement --prefix option to override this
48155 * util/i386/efi/grub-mkimage.c: Likewise.
48157 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48158 code to make path relative to its root into a separate function.
48160 * util/i386/pc/grub-install.in: Use newly provided
48161 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48162 pass the result to grub-install --prefix.
48164 2007-06-13 Robert Millan <rmh@aybabtu.com>
48166 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48167 DEFAULT_DEVICE_MAP.
48168 * util/grub-emu.c: Use above definitions from misc.h instead of
48170 * util/grub-mkdevicemap.c: Likewise.
48171 * util/i386/pc/grub-setup.c: Likewise.
48172 * util/grub-probe.c: Likewise.
48173 (probe): Abort with grub_util_error() when either
48174 grub_guess_root_device or grub_util_get_grub_dev fails.
48176 2007-06-12 Robert Millan <rmh@aybabtu.com>
48178 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48179 "pager" assignment.
48180 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48182 * util/grub-probe.c (probe): Likewise for "drive_name".
48184 2007-06-11 Robert Millan <rmh@aybabtu.com>
48186 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48187 not just the cdrom one.
48189 2007-06-11 Robert Millan <rmh@aybabtu.com>
48191 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48192 Add --pkglibdir=DIR option to override pkglibdir.
48193 Mention --image-type=TYPE in help output.
48194 Fix --grub-mkimage (it was a no-op).
48195 Abort gracefully when no parameter is given.
48197 2007-06-11 Robert Millan <rmh@aybabtu.com>
48199 * util/i386/pc/grub-mkrescue.in: New file.
48200 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48201 * Makefile.in: Handle bin_SCRIPTS.
48203 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48205 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48206 list of video modes.
48208 2007-06-06 Robert Millan <rmh@aybabtu.com>
48210 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48211 file doesn't exist, or if it is in a filesystem grub can't read.
48213 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48214 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48215 header comment to fit in 80 columns when the variables are resolved.
48217 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48218 could be identified by update-grub. Remove redundant check for
48219 unifont.pff existence (since convert_system_path_to_grub_path now
48222 2007-06-04 Robert Millan <rmh@aybabtu.com>
48224 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48226 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48228 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48230 2007-06-04 Robert Millan <rmh@aybabtu.com>
48232 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48234 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48235 grub_apple_partition_map_fini.
48238 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48239 to access >2 TiB disks).
48241 Print disk->total_sectors with %llu instead of %lu, since this
48242 variable is always 64-bit (prevents wrong disk size from being displayed
48243 on either >2 TiB disk or big-endian CPU).
48245 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48246 into a generic case that supports all (sane) partition maps.
48248 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48251 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48252 and grub_apple_partition_map_fini() after that.
48254 2007-06-01 Robert Millan <rmh@aybabtu.com>
48256 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48258 * util/grub.d/00_header.in: Only enable gfxterm when
48259 convert_system_path_to_grub_path() succeeds.
48261 2007-05-20 Robert Millan <rmh@aybabtu.com>
48263 * util/update-grub_lib.in: New file.
48264 * DISTLIST: Add update-grub_lib.in.
48265 * conf/common.rmk: Generate update-grub_lib and install it in
48267 * Makefile.in: Add install routine for $(lib_DATA).
48269 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48270 function provided by update-grub_lib to support arbitrary paths of
48272 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48273 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48275 2007-05-19 Robert Millan <rmh@aybabtu.com>
48277 * commands/i386/cpuid.c: New module.
48278 * DISTLIST: Add it.
48279 * conf/i386-efi.rmk: Enable cpuid.mod.
48280 * conf/i386-pc.rmk: Likewise.
48282 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48284 * kern/disk.c (grub_disk_read): Check return value of
48287 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48289 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48291 * disk/raid.c (grub_raid_open): Likewise.
48293 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48295 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48296 stack instead of on the heap.
48298 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48299 before doing a read on it.
48301 * configure.ac: Only use -fno-stack-protector for the target
48304 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48306 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48307 __attribute_ ((unused)) to mode_type argument.
48309 * util/getroot.c (grub_guess_root_device): Fix #endif.
48311 * kern/misc.c (memcmp): Fix prototype.
48313 * include/grub/partition.h [GRUB_UTIL]
48314 (grub_gpt_partition_map_init): Add prototype.
48315 (grub_gpt_partition_map_fini): Likewise.
48317 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48318 at the right place.
48320 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48321 (grub_fat_read_data): Likewise.
48322 (grub_fat_find_dir): Likewise.
48324 * font/manager.c (find_glyph): Make table a const.
48325 (grub_font_get_glyph): Remove bitmap from if statement.
48327 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48329 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48330 code, first search for device in /dev/mapper, then in /dev.
48331 (grub_util_get_grub_dev): New function.
48332 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48334 * util/grub-probe.c (probe): Remove check for RAID, call
48335 grub_util_get_grub_dev() instead of
48336 grub_util_biosdisk_get_grub_dev().
48337 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48338 grub_util_biosdisk_get_grub_dev().
48339 * util/i386/pc/grub-setup.c (main): Likewise.
48341 2007-05-16 Robert Millan <rmh@aybabtu.com>
48343 * DISTLIST: Update for the latest changes.
48344 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48345 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48346 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48347 grub/util/biosdisk.h.
48348 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48349 grub/util/biosdisk.h.
48351 2007-05-16 Robert Millan <rmh@aybabtu.com>
48353 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48355 2007-05-16 Robert Millan <rmh@aybabtu.com>
48357 * util/i386/efi/grub-install.in: New.
48358 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48359 newly added grub-install.
48360 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48362 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48363 grub/util/biosdisk.h.
48364 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48365 grub/util/biosdisk.h.
48367 2007-05-16 Robert Millan <rmh@aybabtu.com>
48369 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48370 * include/grub/util/biosdisk.h: ... here.
48371 * util/i386/pc/biosdisk.c: Moved to ...
48372 * util/biosdisk.c: ... here.
48373 * util/i386/pc/getroot.c: Moved to ...
48374 * util/getroot.c: ... here.
48375 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48376 * util/grub-mkdevicemap.c: ... here.
48377 * util/i386/pc/grub-probe.c: Moved to ...
48378 * util/grub-probe.c: ... here.
48380 2007-05-15 Robert Millan <rmh@aybabtu.com>
48382 * util/update-grub.in: Remove duplicated line in grub.cfg header
48385 2007-05-13 Robert Millan <rmh@aybabtu.com>
48387 * util/update-grub.in: Fix a few assumptions about the devices holding
48388 /, /boot and /boot/grub being the same.
48389 * util/grub.d/00_header.in: Likewise.
48390 * util/grub.d/10_hurd.in: Likewise.
48391 * util/grub.d/10_linux.in: Likewise.
48393 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48394 patterns. Use that to define the `.old' suffix as older than `'.
48396 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48398 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48399 the grub.cfg header message.
48401 2007-05-11 Robert Millan <rmh@aybabtu.com>
48403 * util/update-grub.in: Create device.map if it doesn't already exist,
48404 before attempting to run grub-probe.
48405 Check for grub-probe and grub-mkdevicemap with the same code
48406 grub-install is using.
48409 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48411 * Makefile.in: Add the datarootdir autoconf variable.
48413 2007-05-09 Robert Millan <rmh@aybabtu.com>
48415 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48416 fail gracefully if dev->disk->partition == NULL.
48418 2007-05-07 Robert Millan <rmh@aybabtu.com>
48420 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48421 determine partition map module.
48422 * util/i386/pc/grub-install.in: Use this feature to decide which
48423 partition module to load, instead of hardcoding pc and gpt.
48425 2007-05-07 Robert Millan <rmh@aybabtu.com>
48427 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48428 source directory differs from build directory.
48430 2007-05-05 Robert Millan <rmh@aybabtu.com>
48432 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48435 2007-05-05 Robert Millan <rmh@aybabtu.com>
48437 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48439 2007-05-05 Robert Millan <rmh@aybabtu.com>
48441 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48442 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48444 2007-05-05 Robert Millan <rmh@aybabtu.com>
48446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48447 (grub_probe_SOURCES): Likewise.
48448 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48449 GPT and initialize dos_part and bsd_part accordingly.
48450 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48452 (main): Activate gpt module for use during partition identification,
48453 and deactivate it afterwards.
48454 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48455 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48456 partition identification, and deactivate it afterwards.
48458 2007-05-05 Robert Millan <rmh@aybabtu.com>
48460 * term/i386/pc/console.c (grub_console_fini): Call
48461 grub_term_set_current() before grub_term_unregister().
48463 2007-05-04 Robert Millan <rmh@aybabtu.com>
48465 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48466 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48467 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48468 and update-grub_DATA.
48469 * conf/common.rmk: Build and install update-grub components.
48470 * conf/common.mk: Regenerate.
48471 * util/update-grub.in: New. Core of update-grub.
48472 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48473 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48474 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48475 * util/grub.d/README: New. Document grub.d directory layout.
48477 2007-05-01 Robert Millan <rmh@aybabtu.com>
48479 * util/grub-emu.c: Move initialization functions
48480 grub_util_biosdisk_init() and grub_init_all() before
48481 grub_util_biosdisk_get_grub_dev(), which relies on them.
48483 2007-04-19 Robert Millan <rmh@aybabtu.com>
48485 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48488 2007-04-18 Jerone Young <jerone@gmail.com>
48490 * kernel/elf.c: Add missing parenthesis for conditional statement
48493 2007-04-10 Jerone Young <jerone@gmail.com>
48495 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48496 continue on and look for device node with real device name.
48498 2007-04-10 Jerone Young <jerone@gmail.com>
48500 * configure.ac: Add argument for autoconf to use transformation
48502 * Makefile.in: Add autoconf package transformation code.
48503 * util/i386/pc/grub-install.in: Likewise.
48504 * util/powerpc/ieee1275/grub-install.in: Likewise.
48506 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48508 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48509 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48510 (EXT2_REVISION): Likewise.
48511 (EXT2_INODE_SIZE): Likewise.
48512 (struct grub_ext2_block_group): Added a missing member
48514 (grub_ext2_read_inode): Divide by the inode size in a superblock
48515 instead of 128 to obtain INODES_PER_BLOCK.
48516 Use the macro EXT2_INODE_SIZE instead of directly using
48517 SBLOCK->INODE_SIZE.
48519 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48521 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48522 superblock instead of the structure size to compute an
48523 offset. This fixes the problem that GRUB could not read a
48524 filesystem when inode size is different from 128-byte.
48526 2007-03-05 Marco Gerards <marco@gnu.org>
48528 * normal/main.c (read_config_file): When "menu" is not set, create
48529 an initial context.
48531 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48533 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48534 (HEAP_LIMIT): New macro.
48535 (grub_claim_heap): Claim memory up to `heaplimit'.
48537 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48539 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48540 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48541 (_start): Likewise.
48542 (grub_arch_modules_addr): Return address after `_end'.
48543 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48544 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48545 (add_segments): Calculate `_end' from phdr size and location.
48546 (ALIGN_UP): Moved to ...
48547 * include/grub/misc.h: here.
48548 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48550 (GRUB_IEEE1275_MODULE_BASE): Removed.
48552 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48554 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48557 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48559 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48561 (grub_elf64_load_hook_t): Likewise.
48562 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48565 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48567 * kern/mm.c: Update copyright.
48568 (grub_mm_debug): Correct syntax error.
48569 (grub_mm_dump_free): New function.
48570 (grub_debug_free): Call `grub_free'.
48571 * include/grub/mm.h: Update copyright.
48572 (grub_mm_dump_free): Add declaration.
48574 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48576 * include/grub/ieee1275/ieee1275.h: Update copyright.
48577 * kern/powerpc/ieee1275/init.c: Likewise.
48578 * kern/powerpc/ieee1275/openfw.c: Likewise.
48580 * loader/powerpc/ieee1275/linux.c: Likewise.
48581 * include/grub/elfload.h: Likewise.
48582 * kern/elf.c: Likewise.
48583 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48585 (grub_elf64_load): Likewise.
48586 (grub_elf32_load_segment): Move to a nested function.
48587 (grub_elf64_load_segment): Likewise.
48589 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48591 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48593 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48594 (grub_heap_len): Likewise.
48595 (HEAP_SIZE): New macro.
48596 (grub_claim_heap): New function.
48597 (grub_machine_init): Don't claim heap directly. Call
48599 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48600 (grub_available_iterate): New function.
48602 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48604 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48605 * configure.ac: Use it for testing the HOST and TARGET compilers.
48607 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48609 * Makefile.in (enable_grub_emu): New variable.
48610 * configure.ac (--enable-grub-emu): New option.
48611 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48612 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48613 * conf/i386-pc.rmk: Likewise.
48614 * conf/powerpc-ieee1275.rmk: Likewise.
48615 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48617 2006-12-12 Marco Gerards <marco@gnu.org>
48619 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48621 * kern/env.c (grub_env_unset): Don't free the member `value' when
48622 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48625 * normal/main.c (current_menu): Removed.
48626 (free_menu): Unset the `menu' environment variable.
48627 (grub_normal_menu_addentry): Make use of the environment variable
48628 `menu', instead of using the global `current_menu'. Allocate
48629 memory for the sourcecode of this entry.
48630 (read_config_file): New argument `nested', changed all callers.
48631 Only in the case of a new context, initialize a new menu. Set the
48632 `menu' environment variable.
48633 (grub_normal_execute): Don't set and unset the environment
48634 variable `menu' here anymore. Only free the menu when leaving the
48637 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48640 2006-12-11 Marco Gerards <marco@gnu.org>
48642 * normal/menu_entry.c (run): Fix off by one bug so the last line
48643 is executed. Move the loader check to outside the loop.
48645 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48647 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48649 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48651 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48652 the number of sectors. Reported by Andrey Shuvikov
48653 <mr_hyro@yahoo.com>.
48655 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48657 * kern/disk.c (grub_disk_read): When there is a read error, always
48658 try to read only the necessary data.
48660 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48662 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48664 [GRUB_UTIL] (grub_raid_fini): Likewise.
48665 [GRUB_UTIL] (grub_lvm_init): Likewise.
48666 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48667 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48668 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48669 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48670 and grub_raid_fini().
48672 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48674 * include/grub/types.h (__unused): Rename to UNUSED.
48675 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48676 (grub_elf64_size): Likewise.
48678 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48680 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48681 grub_error_push and grub_error_pop in the error-handling path.
48682 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48685 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48687 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48688 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48689 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48690 (kernel_elf_SOURCES): Likewise.
48691 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48692 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48693 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48694 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48695 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48696 (elf_mod_SOURCES): New variable.
48697 (elf_mod_CFLAGS): Likewise.
48698 (elf_mod_LDFLAGS): Likewise.
48699 * include/grub/types.h (__unused): New macro.
48700 * include/grub/elfload.h: New file.
48701 * kern/elf.c: Likewise.
48702 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48703 (ELF32_LOADMASK): New macro.
48704 (ELF64_LOADMASK): Likewise.
48705 (vmlinux): Removed.
48706 (grub_linux_load32): New function.
48707 (grub_linux_load64): Likewise.
48708 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48709 Use grub_elf_t instead of grub_file_t.
48711 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48713 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48714 `catch_result' to struct set_color_args.
48716 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48718 * normal/menu.c: Include grub/script.h.
48719 * normal/menu_entry.c: Likewise.
48720 * include/grub/normal.h: Do not include grub/script.h.
48722 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48724 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48726 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48728 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48730 (grub_disk_close): Print debug messages when closing a disk.
48731 (grub_disk_read): Print debug messages when disk read fails.
48732 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48734 * kern/partition.c: Include misc.h.
48735 (grub_partition_iterate): Print debug messages when detecting
48738 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48740 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48742 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48744 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48746 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48747 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48749 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48751 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48752 instead of sizeof(lv). Patch by Michael Guntsche.
48754 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48756 * disk/lvm.c: Rename VGS to VG_LIST.
48757 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48758 (grub_lvm_open): Likewise.
48759 Thanks to Michael Guntsche for finding this bug.
48761 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48763 * configure.ac (AC_INIT): Bumped to 1.95.
48765 2006-10-14 Robert Millan <rmh@aybabtu.com>
48767 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48768 with "/dev/.static/dev/md".
48770 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48772 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48773 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48774 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48775 DRIVE_NAME are always freed.
48777 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48778 DOS_PART, as a DOS partition is counted from one instead of zero
48779 now. Reported by Robert Millan.
48781 2006-10-14 Robert Millan <rmh@aybabtu.com>
48783 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48784 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48785 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48786 string returned by grub_guess_root_device.
48787 * util/i386/pc/grub-setup.c: Likewise.
48788 * util/i386/pc/grub-probefs.c: Likewise.
48790 * util/i386/pc/grub-probefs.c: Rename to ...
48791 * util/i386/pc/grub-probe.c: ... this.
48792 * DISTLIST: Remove grub-probefs, add grub-probe.
48793 * conf/i386-efi.rmk: Likewise.
48794 * conf/i386-pc.rmk: Likewise.
48795 * util/i386/pc/grub-install.in: Likewise.
48797 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48798 choose which information we want to print.
48800 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48802 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48803 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48804 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48805 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48806 video/readers/tga.c and video/i386/pc/vbeutil.c.
48808 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48810 Added support for RAID and LVM.
48812 * disk/lvm.c: New file.
48813 * disk/raid.c: Likewise.
48814 * include/grub/lvm.h: Likewise.
48815 * include/grub/raid.h: Likewise.
48816 * include/grub/util/lvm.h: Likewise.
48817 * include/grub/util/raid.h: Likewise.
48818 * util/lvm.c: Likewise.
48819 * util/raid.c: Likewise.
48821 * include/grub/disk.h (grub_disk_dev_id): Add
48822 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48823 (grub_disk_get_size): New prototype.
48824 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48825 returns a partition.
48826 (grub_disk_get_size): New function.
48828 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48829 verbatim if grub_install_dos_part is -2.
48831 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48834 * util/i386/pc/grub-setup.c (setup): New argument
48835 MUST_EMBED. Force embedding of GRUB when the argument is
48836 true. Close FILE before returning.
48837 (main): Add support for RAID and LVM.
48839 * conf/common.rmk: Add RAID and LVM modules.
48840 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48842 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48844 * kern/misc.c (grub_strstr): New function.
48845 * include/grub/misc.h (grub_strstr): New prototype.
48847 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48849 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48851 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48853 * kern/misc.c (grub_strtoull): Guess the base only if not
48856 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48858 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48861 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48863 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48865 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48866 Remove `flags' argument. All callers changed.
48867 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48868 (IEEE1275_IHANDLE_INVALID): New variable.
48869 (IEEE1275_CELL_INVALID): New variable.
48870 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48871 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48872 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48873 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48874 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48875 codes from Open Firmware. All callers updated.
48876 (grub_ieee1275_next_property): Directly return Open Firmware return
48878 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48879 Standardize error checking from `grub_ieee1275_get_property'.
48880 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48881 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48883 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48885 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48886 `instance_to_package_args' to `instance_to_path_args'.
48888 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48889 `grub_ieee1275_chosen'.
48891 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48892 `grub_ieee1275_interpret'.
48894 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48896 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48898 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48900 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48901 (__cmpdi): Likewise.
48903 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48904 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48907 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48909 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48910 to type `grub_ssize_t'.
48911 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48913 2006-09-22 Marco Gerards <marco@gnu.org>
48915 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48918 2006-09-22 Marco Gerards <marco@gnu.org>
48920 * commands/echo.c: New file.
48922 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48924 * conf/common.rmk (echo_mod_SOURCES): New variable.
48925 (echo_mod_CFLAGS): Likewise.
48926 (echo_mod_LDFLAGS): Likewise.
48928 2006-09-22 Marco Gerards <marco@gnu.org>
48930 * normal/main.c (get_line): Malloc memory instead of using
48931 preallocated memory. Removed the arguments `cmdline' and
48932 `max_len'. Updated all callers.
48934 2006-09-22 Marco Gerards <marco@gnu.org>
48936 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48937 (normal_mod_DEPENDENCIES): Likewise.
48939 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48940 (normal_mod_DEPENDENCIES): Likewise.
48942 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48944 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48946 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48948 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48949 (normal_mod_DEPENDENCIES): Likewise.
48950 * conf/i386-pc.mk: Regenerate.
48951 * conf/i386-efi.mk: Likewise
48952 * conf/common.mk: Likewise.
48953 * conf/powerpc-ieee1275.mk: Likewise.
48954 * conf/sparc64-ieee1275.mk: Likewise.
48956 2006-09-22 Robert Millan <rmh@aybabtu.com>
48958 Sync with i386 version.
48959 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48960 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48962 2006-09-21 Robert Millan <rmh@aybabtu.com>
48964 Import from GRUB Legacy (lib/device.c):
48965 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48966 (init_device_map) [__linux__]: Add support for I2O devices.
48968 2006-09-14 Marco Gerards <marco@gnu.org>
48970 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48973 2006-09-14 Robert Millan <rmh@aybabtu.com>
48975 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48978 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48980 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48981 before adding it to device.map.
48983 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48985 * genmk.rb: Let GCC generate dependencies the first time it
48986 compiles a file; using the -MD option.
48987 * conf/common.mk: Regenerate.
48988 * conf/i386-pc.mk: Likewise.
48989 * conf/i386-efi.mk: Likewise.
48990 * conf/powerpc-ieee1275.mk: Likewise.
48991 * conf/sparc64-ieee1275.mk: Likewise.
48993 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48995 Move the prototypes of grub_setjmp and grub_longjmp to
48996 cpu/setjmp.h, so that each architecture may specify different
48999 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49000 (grub_longjmp): Likewise.
49001 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49002 (grub_longjmp): Likewise.
49003 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49004 (grub_longjmp): Likewise.
49006 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49007 [!GRUB_UTIL] (grub_longjmp): Removed.
49009 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49011 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49012 "color!" method does not return any value.
49014 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49016 * include/grub/bitmap.h: New file.
49018 * include/grub/i386/pc/vbeutil.h: Likewise.
49020 * video/bitmap.c: Likewise.
49022 * video/readers/tga.c: Likewise.
49024 * video/i386/pc/vbeutil.c: Likewise.
49026 * commands/videotest.c: Code cleanup and updated to reflect to new
49029 * term/gfxterm.c: Likewise.
49031 * video/video.c: Likewise.
49033 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49034 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49035 (bitmap_mod_SOURCES): New entry.
49036 (bitmap_mod_CFLAGS): Likewise.
49037 (bitmap_mod_LDFLAGS): Likewise.
49038 (tga_mod_SOURCES): Likewise.
49039 (tga_mod_CFLAGS): Likewise.
49040 (tga_mod_LDFLAGS): Likewise.
49042 * include/grub/video.h (grub_video_blit_operators): New enum type.
49043 (grub_video_render_target): Changed as forward declaration and moved
49044 actual definition to be video driver specific.
49045 (grub_video_adapter.blit_bitmap): Added blitting operator.
49046 (grub_video_adapter.blit_render_target): Likewise.
49047 (grub_video_blit_bitmap): Likewise.
49048 (grub_video_blit_render_target): Likewise.
49050 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49051 driver specific render target definition.
49052 (grub_video_vbe_map_rgba): Added driver internal helper.
49053 (grub_video_vbe_unmap_color): Updated to use
49054 grub_video_i386_vbeblit_info.
49055 (grub_video_vbe_get_video_ptr): Likewise.
49057 * include/grub/i386/pc/vbeblit.h
49058 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49059 grub_video_i386_vbeblit_info.
49060 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49061 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49062 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49063 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49064 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49065 (grub_video_i386_vbeblit_index_index): Likewise.
49066 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49067 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49068 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49069 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49071 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49074 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49075 include/grub/i386/pc/vbeblit.h.
49077 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49078 Updated to use grub_video_i386_vbeblit_info.
49079 (grub_video_i386_vbefill_R8G8B8): Likewise.
49080 (grub_video_i386_vbefill_index): Likewise.
49081 (grub_video_i386_vbefill): Added generic filler.
49083 * video/i386/pc/vbefill.c: Updated to reflect changes on
49084 include/grub/i386/pc/vbefill.h.
49086 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49087 grub_video_i386_vbeblit_info.
49088 (grub_video_vbe_unmap_color): Likewise.
49089 (grub_video_vbe_blit_glyph): Likewise.
49090 (grub_video_vbe_scroll): Likewise.
49091 (grub_video_vbe_draw_pixel): Removed function.
49092 (grub_video_vbe_get_pixel): Likewise.
49093 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49094 updated code to use it.
49095 (common_blitter): Added common blitter for render target and bitmap.
49096 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49097 (grub_video_vbe_blit_render_target): Likewise.
49099 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49101 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49102 is in text mode if there is no console control protocol instance
49105 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49107 * include/grub/video.h: Code cleanup.
49109 * include/grub/i386/pc/vbe.h: Likewise.
49111 * video/i386/pc/vbe.c: Likewise.
49113 * video/i386/pc/vbeblit.c: Likewise.
49115 * video/i386/pc/vbefill.c: Likewise.
49117 * video/video.c: Likewise. Also added more comments.
49119 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49121 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49122 (struct grub_biosdisk_dap): Likewise.
49124 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49125 linkage settings for all functions.
49127 2006-07-12 Marco Gerards <marco@gnu.org>
49129 * configure.ac (--enable-mm-debug): Fix typo.
49131 * genkernsyms.sh.in: Use proper quoting for `CC'.
49133 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49135 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49136 (normal_mod_ASFLAGS): Remove "-m32".
49138 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49140 * util/misc.c: Include config.h.
49141 [!HAVE_MEMALIGN]: Do not include malloc.h.
49142 (grub_memalign): Use posix_memalign, if present. Then, use
49143 memalign, if present. Otherwise, emit an error.
49145 * util/grub-emu.c: Do not include malloc.h.
49147 * include/grub/util/misc.h: Include unistd.h. This is required for
49148 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49149 D. Eades III <hde@foobar-qux.org>.
49151 * configure.ac (AC_GNU_SOURCE): Added.
49152 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49155 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49157 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49158 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49160 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49162 * include/grub/types.h (grub_host_addr_t): Rename to
49163 grub_target_addr_t.
49164 (grub_host_off_t): Rename to grub_target_off_t.
49165 (grub_host_size_t): Rename to grub_target_size_t.
49166 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49167 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49169 * include/grub/kernel.h (struct grub_module_header): Change type
49170 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49171 (grub_module_info): Likewise.
49173 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49175 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49176 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49177 Velazquez <jesus.velazquez@gmail.com>.
49179 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49181 Count partitions from 1 instead of 0 in the string representation
49182 of partitions. Still use 0-based internally.
49184 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49185 (sun_partition_map_iterate): Use grub_partition_t instead of
49186 struct grub_partition *. Cast DESC->START_CYLINDER to
49187 grub_uint64_t after converting the endian.
49188 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49189 (sun_partition_map_get_name): Add 1 to P->INDEX.
49191 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49193 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49195 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49196 zero instead of one.
49197 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49198 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49200 * partmap/apple.c (apple_partition_map_iterate): Change the type
49201 of POS to unsigned.
49202 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49203 (apple_partition_map_get_name): Add 1 into P->INDEX.
49205 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49206 of POS to unsigned.
49207 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49208 calculate the offset of a partition.
49209 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49210 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49212 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49213 SECTOR to grub_disk_addr_t.
49214 (acorn_partition_map_iterate): Likewise.
49215 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49216 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49218 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49220 * kern/i386/pc/init.c (make_install_device): Add 1 into
49221 GRUB_INSTALL_DOS_PART.
49223 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49226 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49228 Clean up the code to support 64-bit addressing in disks and
49229 files. This change is not enough for filesystems yet.
49231 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49232 type of "start" to grub_uint64_t.
49233 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49234 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49235 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49238 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49239 to grub_disk_addr_t.
49241 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49244 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49246 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49249 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49251 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49253 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49255 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49256 to grub_off_t, to detect an error from grub_file_seek.
49257 (grub_multiboot_load_elf32): Likewise.
49259 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49260 maximum unsigned long value when an overflow is detected.
49261 (grub_strtoull): New function.
49262 (grub_divmod64): Likewise.
49263 (grub_lltoa): use grub_divmod64.
49265 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49267 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49268 the pointer to next character. Use grub_strtoull instead of
49270 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49271 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49274 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49275 return value is signed.
49276 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49277 test if OFFSET is less than zero, as OFFSET is unsigned now.
49279 * kern/disk.c (struct grub_disk_cache): Change the type of
49280 "sector" to grub_disk_addr_t.
49281 (grub_disk_cache_get_index): Change the type of SECTOR to
49282 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49283 unsigned after shifting.
49284 (grub_disk_cache_invalidate): Change the type of SECTOR to
49286 (grub_disk_cache_unlock): Likewise.
49287 (grub_disk_cache_store): Likewise.
49288 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49289 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49290 grub_disk_addr_t and grub_uint64_t, respectively.
49291 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49292 body, as the value of OFFSET is tweaked by
49293 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49294 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49296 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49297 body, as the value of OFFSET is tweaked by
49298 grub_disk_check_range. Change the types of LEN and N to
49301 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49302 and "saved_offset" to grub_off_t.
49303 (test_header): Cast BUF to char *.
49304 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49306 (grub_gzio_read): Change the types of OFFSET and SIZE to
49307 grub_off_t and grub_size_t, respectively.
49309 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49311 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49312 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49313 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49314 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49315 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49317 * include/grub/types.h (grub_off_t): Unconditionally set to
49319 (grub_disk_addr_t): Changed to grub_uint64_t.
49321 * include/grub/partition.h (struct grub_partition): Change the
49322 types of "start", "len" and "offset" to grub_disk_addr_t,
49323 grub_uint64_t and grub_disk_addr_t, respectively.
49324 (grub_partition_get_start): Return grub_disk_addr_t.
49325 (grub_partition_get_len): Return grub_uint64_t.
49327 * include/grub/misc.h (grub_strtoull): New prototype.
49328 (grub_divmod64): Likewise.
49330 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49331 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49332 grub_off_t, respectively.
49333 All callers and references changed.
49335 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49336 grub_size_t in "read".
49337 All callers and references changed.
49339 * include/grub/file.h (struct grub_file): Change the types of
49340 "offset" and "size" to grub_off_t and grub_off_t,
49341 respectively. Change the type of SECTOR to grub_disk_addr_t in
49343 (grub_file_read): Change the type of LEN to grub_size_t.
49344 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49346 (grub_file_size): Return grub_off_t.
49347 (grub_file_tell): Likewise.
49348 All callers and references changed.
49350 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49351 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49353 (struct grub_disk): Change the type of "total_sectors" to
49354 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49356 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49357 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49358 (grub_disk_write): Likewise.
49359 All callers and references changed.
49361 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49362 char * for grub_strncmp to silence gcc.
49363 (grub_iso9660_mount): Likewise.
49364 (grub_iso9660_mount): Likewise.
49365 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49367 (grub_iso9660_iterate_dir): Likewise.
49368 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49370 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49371 LEN to grub_disk_addr_t and grub_size_t, respectively.
49373 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49375 * fs/jfs.c (grub_jfs_read_file): Likewise.
49377 * fs/minix.c (grub_jfs_read_file): Likewise.
49379 * fs/sfs.c (grub_jfs_read_file): Likewise.
49381 * fs/ufs.c (grub_jfs_read_file): Likewise.
49383 * fs/xfs.c (grub_jfs_read_file): Likewise.
49385 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49386 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49389 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49390 BLKNR to -1 instead of returning GRUB_ERRNO.
49391 (grub_ext2_read_file): Change the types of SECTOR and
49392 LEN to grub_disk_addr_t and grub_size_t, respectively.
49394 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49395 LEN to grub_disk_addr_t and grub_size_t, respectively.
49397 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49400 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49401 string. Do not cast SECTOR explicitly.
49403 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49404 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49405 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49406 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49407 over 2TB and LBA mode is not supported, raise an error.
49408 (get_safe_sectors): New function.
49409 (grub_biosdisk_read): Use get_safe_sectors.
49410 (grub_biosdisk_write): Likewise.
49412 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49413 (grub_efidisk_write): Likewise.
49415 * disk/loopback.c (delete_loopback): Cosmetic changes.
49416 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49418 (grub_loopback_open): Likewise.
49419 (grub_loopback_read): Likewise. Also, change the type of POS to
49420 grub_off_t, and fix the usage of grub_memset.
49422 * commands/i386/pc/play.c: Include grub/machine/time.h.
49424 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49427 * commands/configfile.c: Include grub/env.h.
49429 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49430 GRUB_ERRNO directly instead. Change the type of POS to
49431 grub_off_t. Follow the coding standard.
49433 * commands/blocklist.c: Include grub/partition.h.
49434 (grub_cmd_blocklist): Return an error if the underlying device is
49435 not a disk. Take the starting sector of a partition into account,
49436 if a partition is used.
49438 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49440 (lba_mode): Support 64-bit addresses.
49441 (chs_mode): Likewise.
49442 (copy_buffer): Adapted to the new offsets of a length field and a
49444 (blocklist_default_start): Allocate 64-bit space.
49446 * boot/i386/pc/boot.S (force_lba): Removed.
49447 (boot_drive): Moved to under KERNEL_SECTOR.
49448 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49450 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49452 (lba_mode): Refactored to support a 64-bit address. More size
49454 (setup_sectors): Likewise.
49456 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49458 * DISTLIST: Added include/grub/i386/linux.h. Removed
49459 include/grub/i386/pc/linux.h
49461 * configure.ac (AC_INIT): Bumped to 1.94.
49463 * config.guess: Updated from gnulib.
49464 * config.sub: Likewise.
49465 * install-sh: Likewise.
49466 * mkinstalldirs: Likewise.
49468 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49470 * conf/common.rmk (grub_modules_init.lst): Depended on
49471 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49474 * genmk.rb (PModule::rule): Reverted the previous change.
49476 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49478 * conf/common.rmk (grub_modules_init.lst): Depends on
49479 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49480 that the target does not exist before producing.
49481 (grub_modules_init.h): Remove the target before generating.
49482 (grub_emu_init.c): Likewise.
49484 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49486 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49488 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49489 for the target-specific tests. Make sure that we also have the
49490 up-to-date target variables for those tests.
49492 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49494 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49495 (PModule::rule): Likewise.
49497 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49499 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49500 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49501 target-specific flags should be prefixed.
49502 (PModule::rule): Likewise.
49504 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49506 * configure.ac (CMP): Check if cmp is available explicitly.
49508 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49510 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49511 (target_cpu): New variable.
49512 (pkglibdir): Use target_cpu instead of host_cpu.
49514 * util/i386/pc/grub-install.in (host_cpu): Removed.
49515 (target_cpu): New variable.
49516 (pkglibdir): Use target_cpu instead of host_cpu.
49518 * util/genmoddep.c: Removed.
49520 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49521 instead of GRUB_HOST_SIZEOF_VOID_P.
49522 * kern/dl.c: Likewise.
49524 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49526 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49527 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49528 (GRUB_TARGET_SIZEOF_LONG): ... this.
49529 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49530 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49531 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49533 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49534 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49535 (GRUB_TARGET_SIZEOF_LONG): ... this.
49536 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49537 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49538 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49540 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49541 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49542 (GRUB_TARGET_SIZEOF_LONG): ... this.
49543 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49544 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49546 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49547 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49548 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49549 instead of GRUB_HOST_SIZEOF_LONG.
49550 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49551 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49552 GRUB_CPU_WORDS_BIGENDIAN.
49553 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49554 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49557 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49558 (genmoddep_SOURCES): Likewise.
49559 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49560 (genmoddep_SOURCES): Likewise.
49561 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49562 (genmoddep_SOURCES): Likewise.
49563 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49565 (genmoddep_SOURCES): Likewise.
49567 * genmoddep.awk: New file.
49569 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49570 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49571 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49572 (PModule::rule): Likewise.
49573 (Program::rule): Likewise.
49574 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49575 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49578 * configure.ac: Rewritten intensively to use host and target
49579 instead of build and host, respectively.
49581 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49582 (host_cpu): Removed.
49583 (target_cpu): New variable.
49584 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49585 (BUILD_CC): Removed.
49586 (BUILD_CFLAGS): Likewise.
49587 (BUILD_CPPFLAGS): Likewise.
49588 (TARGET_CC): New variable.
49589 (TARGET_CFLAGS): Likewise.
49590 (TARGET_CPPFLAGS): Likewise.
49591 (TARGET_LDFLAGS): Likewise.
49593 (include): Use target_cpu instead of host_cpu.
49594 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49596 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49598 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49600 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49601 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49602 field 'false' to 'exec_on_false'.
49603 (grub_script_create_cmdif): Renamed argument names to reflect above
49606 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49608 * normal/script.c (grub_script_create_cmdif): Likewise.
49610 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49612 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49614 (grub_hfsplus_btree_recptr): Likewise.
49615 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49616 FILEBLOCK both to pass a block number and store next block
49618 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49619 overflow file correctly. Specify errors appropriately, because
49620 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49621 grub_hfsplus_btree_recptr to get the pointer to a found key.
49622 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49625 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49627 (_linux_mod_SOURCES): New variable.
49628 (_linux_mod_CFLAGS): Likewise.
49629 (_linux_mod_LDFLAGS): Likewise.
49630 (linux_mod_SOURCES): Likewise.
49631 (linux_mod_CFLAGS): Likewise.
49632 (linux_mod_LDFLAGS): Likewise.
49634 * DISTLIST: Added loader/i386/efi/linux.c,
49635 loader/i386/efi/linux_normal.c and
49636 include/grub/i386/efi/loader.h.
49638 * loader/i386/efi/linux.c: New file.
49639 * loader/i386/efi/linux_normal.c: Likewise.
49640 * include/grub/i386/efi/loader.h: Likewise.
49642 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49644 * commands/blocklist.c: New file.
49646 * DISTLIST: Added commands/blocklist.c.
49648 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49649 color for the background, and a darker color for the foreground.
49650 (grub_console_checkkey): Return READ_KEY.
49651 (grub_console_cls): Set the background to
49652 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49654 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49656 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49657 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49659 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49662 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49663 BG. The spec is wrong again.
49665 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49667 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49669 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49670 commands/blocklist.c.
49671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49673 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49674 (blocklist_mod_SOURCES): New variable.
49675 (blocklist_mod_CFLAGS): Likewise.
49676 (blocklist_mod_LDFLAGS): Likewise.
49678 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49680 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49682 (lba_mode): Use %eax more intensively to reduce the code size.
49684 2006-05-20 Marco Gerards <marco@gnu.org>
49686 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49688 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49690 (script): Accept leading newlines.
49691 (newlines): New rule to describe 0 or more newlines.
49692 (commands): Accept `command' with trailing newline. Fixed the
49693 order in which arguments were passed to `grub_script_add_cmd'.
49694 Accept commands separated by newlines.
49695 (function): Changed to accept newlines.
49696 (menuentry) Rewritten.
49698 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49699 front of the list, instead of to the end.
49701 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49703 * util/i386/pc/grub-install.in (bindir): New variable.
49704 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49705 Shaver <lbgwjl@gmail.com>.
49707 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49709 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49710 grub/machine/linux.h
49711 * loader/i386/pc/linux.c: Likewise.
49713 * include/grub/i386/pc/linux.h: Moved to ...
49714 * include/grub/i386/linux.h: ... here.
49716 * include/grub/i386/linux.h (struct linux_kernel_params): New
49719 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49721 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49723 (grub_video_vbe_blit_glyph): Likewise.
49724 (grub_video_vbe_blit_bitmap): Likewise.
49725 (grub_video_vbe_blit_render_target): Likewise.
49727 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49729 * configure.ac (--with-platform): Properly quote the square
49732 2006-05-08 Marco Gerards <marco@gnu.org>
49734 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49736 (kernel_elf_HEADERS): ...to this. Updated all users.
49737 (grubof_symlist.c): Renamed from this...
49738 (kernel_elf_symlist.c): ...to this. Updated all users.
49739 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49740 (grubof_SOURCES): Renamed from this...
49741 (kernel_elf_SOURCES): ...to this.
49742 (grubof_HEADERS): Renamed from this...
49743 (kernel_elf_HEADERS): ...to this.
49744 (grubof_CFLAGS): Renamed from this...
49745 (kernel_elf_CFLAGS): ...to this.
49746 (grubof_ASFLAGS): Renamed from this...
49747 (kernel_elf_ASFLAGS): ...to this.
49748 (grubof_LDFLAGS): Renamed from this...
49749 (kernel_elf_LDFLAGS): ...to this.
49751 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49753 (kernel_elf_HEADERS): ...to this. Updated all users.
49754 (grubof_symlist.c): Renamed from this...
49755 (kernel_elf_symlist.c): ...to this. Updated all users.
49756 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49757 (grubof_SOURCES): Renamed from this...
49758 (kernel_elf_SOURCES): ...to this.
49759 (grubof_HEADERS): Renamed from this...
49760 (kernel_elf_HEADERS): ...to this.
49761 (grubof_CFLAGS): Renamed from this...
49762 (kernel_elf_CFLAGS): ...to this.
49763 (grubof_ASFLAGS): Renamed from this...
49764 (kernel_elf_ASFLAGS): ...to this.
49765 (grubof_LDFLAGS): Renamed from this...
49766 (kernel_elf_LDFLAGS): ...to this.
49768 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49769 `kernel.elf' instead of `grubof'.
49771 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49773 Add --with-platform to configure. Use pkglibdir instead of
49774 pkgdatadir. This is reported by Roger Leigh.
49776 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49777 (host_vendor): Likewise.
49778 (host_os): Likewise.
49779 (pkgdatadir): Likewise.
49780 (platform): New variable.
49781 (pkglibdir): Likewise.
49782 Use PKGLIBDIR instead of PKGDATADIR.
49784 * util/i386/pc/grub-install.in (datadir): Removed.
49785 (host_vendor): Likewise.
49786 (host_os): Likewise.
49787 (pkgdatadir): Likewise.
49788 (platform): New variable.
49789 (pkglibdir): Likewise.
49790 Use PKGLIBDIR instead of PKGDATADIR.
49792 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49793 instead of GRUB_DATADIR.
49795 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49797 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49800 * configure.ac (--with-platform): New option.
49801 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49803 * Makefile.in: Include a makefile based on PLATFORM instead of
49805 (pkgdatadir): Not appended by the machine type.
49806 (pkglibdir): Appended by the machine type.
49807 (host_vendor): Removed.
49808 (platform): New variable.
49809 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49810 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49811 (uninstall): Likewise.
49813 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49815 Use the environment context in the menu. Remove the commands
49816 "default" and "timeout", and use variables instead.
49818 * normal/menu.c: Include grub/env.h.
49819 (print_entry): Cast TITLE to silence gcc.
49820 (get_timeout): New function.
49821 (set_timeout): Likewise.
49822 (get_entry_number): Likewise.
49823 (run_menu): Use a default entry, a fallback entry and a timeout
49824 in the environment variables "default", "fallback" and
49825 "timeout". Also, tweak the default entry if it is not within the
49826 current menu entries.
49827 (grub_menu_run): Use a fallback entry in the environment variable
49830 * normal/main.c (read_config_file): Do not initialize
49831 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49833 (grub_normal_execute): Use a data slot to store the menu.
49835 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49836 fallback_entry and timeout.
49837 (struct grub_menu_list): Removed.
49838 (grub_menu_list_t): Likewise.
49839 (struct grub_context): Likewise.
49840 (grub_context_t): Likewise.
49841 (grub_context_get): Likewise.
49842 (grub_context_get_current_menu): Likewise.
49843 (grub_context_push_menu): Likewise.
49844 (grub_context_pop_menu): Likewise.
49845 (grub_default_init): Likewise.
49846 (grub_default_fini): Likewise.
49847 (grub_timeout_init): Likewise.
49848 (grub_timeout_fini): Likewise.
49850 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49852 (normal_mod_SOURCES): Removed normal/context.c.
49854 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49855 commands/default.c, commands/timeout.c and normal/context.c.
49856 (normal_mod_SOURCES): Removed normal/context.c.
49858 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49859 commands/timeout.c and normal/context.c.
49860 (normal_mod_SOURCES): Removed normal/context.c.
49862 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49863 commands/default.c, commands/timeout.c and normal/context.c.
49864 (normal_mod_SOURCES): Removed normal/context.c.
49866 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49868 (default_mod_SOURCES): Removed.
49869 (default_mod_CFLAGS): Likewise.
49870 (default_mod_LDFLAGS): Likewise.
49871 (timeout_mod_SOURCES): Removed.
49872 (timeout_mod_CFLAGS): Likewise.
49873 (timeout_mod_LDFLAGS): Likewise.
49875 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49878 * commands/default.c: Removed.
49879 * commands/timeout.c: Likewise.
49880 * normal/context.c: Likewise.
49882 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49884 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49886 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49888 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49889 "next" to "prev" for readability.
49890 (struct grub_env_sorted_var): New struct.
49891 (grub_env_context): Renamed to ...
49892 (initial_context): ... this.
49893 (grub_env_var_context): Renamed to ...
49894 (current_context): ... this.
49895 (grub_env_find): Look only at CURRENT_CONTEXT.
49896 (grub_env_context_open): Rewritten to copy exported variables from
49898 (grub_env_context_close): Rewritten according to the new
49899 scheme. Also, add an assertion to prevent the initial context from
49901 (grub_env_insert): Removed the code for the sorted list.
49902 (grub_env_remove): Likewise.
49903 (grub_env_export): Simply mark the variable with
49904 GRUB_ENV_VAR_GLOBAL.
49905 (grub_env_set): A cosmetic change for naming consistency.
49906 (grub_env_get): Likewise.
49907 (grub_env_unset): Likewise.
49908 (grub_env_iterate): Rewritten to sort variables within this
49910 (grub_register_variable_hook): Fixed for naming consistency. Call
49911 grub_env_find again, only if NAME is not found at the first time.
49912 (mangle_data_slot_name): New function.
49913 (grub_env_set_data_slot): Likewise.
49914 (grub_env_get_data_slot): Likewise.
49915 (grub_env_unset_data_slot): Likewise.
49917 * include/grub/env.h (grub_env_var_type): New enum.
49918 (GRUB_ENV_VAR_LOCAL): New constant.
49919 (GRUB_ENV_VAR_GLOBAL): Likewise.
49920 (GRUB_ENV_VAR_DATA): Likewise.
49921 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49923 (grub_env_set): Replace VAR with NAME for consistency.
49924 (grub_register_variable_hook): Likewise.
49925 (grub_env_export): Specify the name of the argument.
49926 (grub_env_set_data_slot): New prototype.
49927 (grub_env_get_data_slot): Likewise.
49928 (grub_env_unset_data_slot): Likewise.
49930 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49932 Extend the loader so that GRUB can accept a loader which comes
49933 back to GRUB when a loaded image exits. Also, this change adds
49934 support for a chainloader on EFI.
49936 * term/efi/console.c: Include grub/misc.h.
49937 (grub_console_checkkey): Display a scan code on the top for
49938 debugging. This will be removed once the EFI port gets stable.
49939 Correct the scan code mapping.
49941 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49942 allocate memory from larger regions, in order to reduce the number
49943 of allocated regions. Otherwise, the MacOSX loader panics.
49944 (filter_memory_map): Avoid less than 1MB for compatibility with
49946 (add_memory_regions): Allocate from the tail of a region, if
49947 possible, to avoid allocating a region near to 1MB, for the MacOSX
49950 * kern/efi/init.c (grub_efi_set_prefix): Specify
49951 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49953 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49954 argument IMAGE_HANDLE and specify it to get a loaded image.
49955 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49956 grub_efi_get_loaded_image.
49957 (grub_efi_get_filename): Divide the length by the size of
49959 (grub_efi_get_device_path): New function.
49960 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49961 the length by the size of grub_efi_char16_t for a file path device
49964 * kern/loader.c (grub_loader_noreturn): New variable.
49965 (grub_loader_set): Accept a new argument NORETURN. Set
49966 GRUB_LOADER_NORETURN to NORETURN.
49967 All callers changed.
49968 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49971 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49973 (grub_efi_get_loaded_image): Take an argument to specify an image
49976 * include/grub/loader.h (grub_loader_set): Added one more argument
49979 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49980 instead of grub_efi_open_protocol.
49981 (grub_efidisk_get_device_name): Likewise.
49982 (grub_efidisk_close): Print a newline.
49983 (grub_efidisk_get_device_handle): Fixed to use
49984 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49985 GRUB_EFI_DEVICE_PATH_TYPE.
49987 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49988 * kern/efi/efi.c (device_path_guid): ... here.
49990 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49992 (kernel_mod_HEADERS): Added efi/disk.h.
49993 (_chain_mod_SOURCES): New variable.
49994 (_chain_mod_CFLAGS): Likewise.
49995 (_chain_mod_LDFLAGS): Likewise.
49996 (chain_mod_SOURCES): Likewise.
49997 (chain_mod_CFLAGS): Likewise.
49998 (chain_mod_LDFLAGS): Likewise.
50000 * DISTLIST: Added include/grub/efi/chainloader.h,
50001 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50003 * include/grub/efi/chainloader.h: New file.
50004 * loader/efi/chainloader.c: Likewise.
50005 * loader/efi/chainloader_normal.c: Likewise.
50007 2006-04-30 Marco Gerards <marco@gnu.org>
50009 * commands/configfile.c (grub_cmd_source): New function.
50010 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50011 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50013 2006-04-30 Marco Gerards <marco@gnu.org>
50015 * normal/execute.c (grub_script_execute_cmd): Change the return
50016 type to `grub_err_t'. Correctly return the error.
50017 (grub_script_execute_cmdline): In case a command line is not a
50018 command or a function, try to interpret it as an assignment.
50020 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50022 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50023 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50024 skip a node whose name is obviously invalid as UTF-16,
50025 i.e. contains a NUL character. Stop the iteration when the last
50026 directory entry is found. Instead of using the return value of
50027 grub_hfsplus_btree_iterate_node, store the value in RET and use
50028 it, because the iterator can be stopped by the last directory
50031 2006-04-30 Marco Gerards <marco@gnu.org>
50033 * include/grub/env.h (grub_env_export): New prototype. Reported
50034 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50036 2006-04-30 Marco Gerards <marco@gnu.org>
50038 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50039 size of the extents in a catalog file record.
50041 2006-04-29 Marco Gerards <marco@gnu.org>
50043 * commands/configfile.c (grub_cmd_configfile): Execute the
50044 configfile within its own context.
50046 * include/grub/env.h (grub_env_context_open): New prototype.
50047 (grub_env_context_close): Likewise.
50049 * kern/env.c (grub_env): Removed.
50050 (grub_env_sorted): Likewise.
50051 (grub_env_context): New variable.
50052 (grub_env_var_context): Likewise.
50053 (grub_env_find): Search both the active context and the global
50055 (grub_env_context_open): New function.
50056 (grub_env_context_close): Likewise.
50057 (grub_env_insert): Likewise.
50058 (grub_env_remove): Likewise.
50059 (grub_env_export): Likewise.
50060 (grub_env_set): Changed to use helper functions to avoid code
50062 (grub_env_iterate): Rewritten so both the current context and the
50063 global context are being used.
50065 * normal/command.c (export_command): New function.
50066 (grub_command_init): Register the `export' function.
50068 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50070 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50071 explicitly to suppress gcc's warnings.
50072 * fs/fat.c (grub_fat_find_dir): Likewise.
50073 (grub_fat_label): Likewise.
50074 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50075 (grub_xfs_mount): Likewise.
50076 (grub_xfs_label): Likewise.
50077 * fs/affs.c (grub_affs_mount): Likewise.
50078 (grub_affs_label): Likewise.
50079 (grub_affs_iterate_dir): Likewise.
50080 * fs/sfs.c (grub_sfs_mount): Likewise.
50081 (grub_sfs_iterate_dir): Likewise.
50082 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50083 * fs/hfs.c (grub_hfs_mount): Likewise.
50084 (grub_hfs_cmp_catkeys): Likewise.
50085 (grub_hfs_find_dir): Likewise.
50086 (grub_hfs_dir): Likewise.
50087 (grub_hfs_label): Likewise.
50088 * fs/jfs.c (grub_jfs_mount): Likewise.
50089 (grub_jfs_opendir): Likewise.
50090 (grub_jfs_getent): Likewise.
50091 (grub_jfs_lookup_symlink): Likewise.
50092 (grub_jfs_label): Likewise.
50093 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50094 (grub_hfsplus_iterate_dir): Likewise.
50095 (grub_hfsplus_btree_iterate_node): Made static.
50097 * util/grub-emu.c (prefix): New variable.
50098 (grub_machine_set_prefix): New function.
50099 (main): Do not set the environment variable "prefix" here. Only
50100 set PREFIX, which is used later by grub_machine_set_prefix.
50102 * include/grub/video.h: Do not include grub/symbol.h.
50103 (grub_video_register): Not exported. This symbol is not defined in
50105 (grub_video_unregister): Likewise.
50106 (grub_video_iterate): Likewise.
50107 (grub_video_setup): Likewise.
50108 (grub_video_restore): Likewise.
50109 (grub_video_get_info): Likewise.
50110 (grub_video_get_blit_format): Likewise.
50111 (grub_video_set_palette): Likewise.
50112 (grub_video_get_palette): Likewise.
50113 (grub_video_set_viewport): Likewise.
50114 (grub_video_get_viewport): Likewise.
50115 (grub_video_map_color): Likewise.
50116 (grub_video_map_rgb): Likewise.
50117 (grub_video_map_rgba): Likewise.
50118 (grub_video_fill_rect): Likewise.
50119 (grub_video_blit_glyph): Likewise.
50120 (grub_video_blit_bitmap): Likewise.
50121 (grub_video_blit_render_target): Likewise.
50122 (grub_video_scroll): Likewise.
50123 (grub_video_swap_buffers): Likewise.
50124 (grub_video_create_render_target): Likewise.
50125 (grub_video_delete_render_target): Likewise.
50126 (grub_video_set_active_render_target): Likewise.
50128 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50130 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50132 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50133 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50134 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50135 instead of $(srcdir)/genkernsyms.sh.
50137 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50138 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50139 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50140 instead of $(srcdir)/genkernsyms.sh.
50142 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50143 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50144 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50145 instead of $(srcdir)/genkernsyms.sh.
50147 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50148 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50149 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50150 instead of $(srcdir)/genkernsyms.sh.
50152 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50155 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50157 (gensymlist.sh): New target.
50158 (genkernsyms.sh): Likewise.
50160 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50161 genkernsyms.sh.in and gensymlist.sh.in.
50163 * genkernsyms.sh: Removed.
50164 * gensymlist.sh: Likewise.
50166 * genkernsyms.sh.in: New file.
50167 * gensymlist.sh.in: Likewise.
50169 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50171 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50172 clobber "prefix", since we may have already set it manually.
50174 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50176 * kern/misc.c (abort): New alias for grub_abort.
50178 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50180 A new machine-specific function "grub_machine_set_prefix" is
50181 defined. This is called after loading modules, so that a prefix
50182 initialization can use modules. Also, this change adds an
50183 intensive debugging feature for the memory manager via the
50184 configure option "--enable-mm-debug".
50186 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50189 * kern/sparc64/ieee1275/init.c (abort): Removed.
50190 (grub_stop): Likewise.
50191 (grub_exit): New function.
50192 (grub_set_prefix): Renamed to ...
50193 (grub_machine_set_prefix): ... this.
50194 (grub_machine_init): Do not call grub_set_prefix.
50196 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50197 (grub_machine_set_prefix): ... this.
50198 (grub_machine_init): Do not call grub_set_prefix.
50200 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50201 (grub_machine_init): Do not set the prefix here.
50203 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50205 * kern/efi/init.c: Include grub/mm.h.
50206 (grub_efi_set_prefix): New function.
50208 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50209 (grub_efi_get_filename): New function.
50210 (grub_print_device_path): Renamed to ...
50211 (grub_efi_print_device_path): ... this.
50213 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50214 [MM_DEBUG] (grub_realloc): Likewise.
50215 [MM_DEBUG] (grub_free): Likewise.
50216 [MM_DEBUG] (grub_memalign): Likewise.
50217 [MM_DEBUG] (grub_mm_debug): New variable.
50218 [MM_DEBUG] (grub_debug_malloc): New function.
50219 [MM_DEBUG] (grub_debug_free): New function.
50220 [MM_DEBUG] (grub_debug_realloc): New function.
50221 [MM_DEBUG] (grub_debug_memalign): New function.
50223 * kern/misc.c (grub_abort): Print a newline to distinguish
50226 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50227 grub_set_root_dev after loading modules. This is necessary when
50228 setting a prefix depends on modules.
50230 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50231 (grub_efi_print_device_path): ... this.
50232 (grub_efi_get_filename): New prototype.
50233 (grub_efi_set_prefix): Likewise.
50235 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50237 (grub_efidisk_get_device_handle): New prototype.
50238 (grub_efidisk_get_device_name): Likewise.
50240 * include/grub/mm.h: Include config.h.
50241 (MM_DEBUG): Removed.
50242 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50243 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50244 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50245 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50246 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50247 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50248 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50249 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50250 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50252 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50254 * disk/efi/efidisk.c: Include grub/partition.h.
50255 (iterate_child_devices): New function.
50256 (add_device): First, compare only last device path nodes, so that
50257 devices are sorted by the types.
50258 (grub_efidisk_get_device_handle): New function.
50259 (grub_efidisk_get_device_name): Likewise.
50261 * configure.ac (--enable-mm-debug): New option to enable the
50262 memory manager debugging feature. This makes the binary much
50263 bigger, so is disabled by default.
50265 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50267 Use grub_abort instead of grub_stop, and grub_exit must be
50268 define in each architecture now. Also, this change adds support
50271 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50272 (grub_getkey): New function.
50273 (grub_term_get_current): Likewise.
50275 * util/i386/pc/grub-setup.c: Include grub/term.h.
50276 (grub_getkey): New function.
50277 (grub_term_get_current): Likewise.
50279 * util/misc.c (grub_stop): Renamed to ...
50280 (grub_exit): ... this.
50282 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50283 (grub_exit): ... this.
50284 (grub_machine_init): Use grub_abort instead of abort.
50285 (grub_stop): Removed.
50287 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50290 * kern/i386/pc/startup.S (grub_exit): New function.
50291 (cold_reboot): New label.
50293 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50294 (grub_efi_init): Call grub_efidisk_init.
50295 (grub_efi_fini): Call grub_efidisk_fini.
50297 * kern/efi/efi.c: Include grub/mm.h.
50298 (grub_efi_console_control_guid): Renamed to ...
50299 (console_control_guid): ... this.
50300 (grub_efi_loaded_image_guid): Renamed to ...
50301 (loaded_image_guid): ... this.
50302 (grub_efi_locate_handle): New function.
50303 (grub_efi_open_protocol): Likewise.
50304 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50305 GRUB_EFI_CONSOLE_CONTROL_GUID.
50306 (grub_efi_exit): Removed.
50307 (grub_stop): Likewise.
50308 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50309 (grub_exit): New function.
50310 (grub_print_device_path): Likewise.
50312 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50313 (grub_enter_rescue_mode): Register "exit".
50315 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50316 (grub_abort): New function.
50318 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50320 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50322 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50324 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50325 (grub_print_device_path): New prototype.
50326 (grub_efi_locate_handle): Likewise.
50327 (grub_efi_open_protocol): Likewise.
50329 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50330 * disk/efi/efidisk.c: Likewise.
50332 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50334 * include/grub/efi/console_control.h
50335 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50337 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50338 last 8 bytes as an array.
50339 (GRUB_EFI_DISK_IO_GUID): New macro.
50340 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50341 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50342 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50344 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50345 (struct grub_efi_device_path): Rename the member "sub_type" to
50347 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50348 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50349 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50350 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50351 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50352 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50353 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50354 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50355 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50356 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50357 (struct grub_efi_pci_device_path): New structure.
50358 (grub_efi_pci_device_path_t): New type.
50359 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50360 (struct grub_efi_pccard_device_path): New structure.
50361 (grub_efi_pccard_device_path_t): New type.
50362 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50363 (struct grub_efi_memory_mapped_device_path): New structure.
50364 (grub_efi_memory_mapped_device_path_t): New type.
50365 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50366 (struct grub_efi_vendor_device_path): New structure.
50367 (grub_efi_vendor_device_path_t): New type.
50368 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50369 (struct grub_efi_controller_device_path): New structure.
50370 (grub_efi_controller_device_path_t): New type.
50371 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50372 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50373 (struct grub_efi_acpi_device_path): New structure.
50374 (grub_efi_acpi_device_path_t): New type.
50375 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50376 (struct grub_efi_expanded_acpi_device_path): New structure.
50377 (grub_efi_expanded_acpi_device_path_t): New type.
50378 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50379 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50380 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50381 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50382 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50383 (struct grub_efi_atapi_device_path): New structure.
50384 (grub_efi_atapi_device_path_t): New type.
50385 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50386 (struct grub_efi_fibre_channel_device_path): New structure.
50387 (grub_efi_fibre_channel_device_path_t): New type.
50388 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50389 (struct grub_efi_1394_device_path): New structure.
50390 (grub_efi_1394_device_path_t): New type.
50391 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50392 (struct grub_efi_usb_device_path): New structure.
50393 (grub_efi_usb_device_path_t): New type.
50394 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50395 (struct grub_efi_usb_class_device_path): New structure.
50396 (grub_efi_usb_class_device_path_t): New type.
50397 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50398 (struct grub_efi_i2o_device_path): New structure.
50399 (grub_efi_i2o_device_path_t): New type.
50400 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50401 (struct grub_efi_mac_address_device_path): New structure.
50402 (grub_efi_mac_address_device_path_t): New type.
50403 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50404 (struct grub_efi_ipv4_device_path): New structure.
50405 (grub_efi_ipv4_device_path_t): New type.
50406 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50407 (struct grub_efi_ipv6_device_path): New structure.
50408 (grub_efi_ipv6_device_path_t): New type.
50409 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50410 (struct grub_efi_infiniband_device_path): New structure.
50411 (grub_efi_infiniband_device_path_t): New type.
50412 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50413 (struct grub_efi_uart_device_path): New structure.
50414 (grub_efi_uart_device_path_t): New type.
50415 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50416 (struct grub_efi_vendor_messaging_device_path): New structure.
50417 (grub_efi_vendor_messaging_device_path_t): New type.
50418 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50419 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50420 (struct grub_efi_hard_drive_device_path): New structure.
50421 (grub_efi_hard_drive_device_path_t): New type.
50422 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50423 (struct grub_efi_cdrom_device_path): New structure.
50424 (grub_efi_cdrom_device_path_t): New type.
50425 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50426 (struct grub_efi_vendor_media_device_path): New structure.
50427 (grub_efi_vendor_media_device_path_t): New type.
50428 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50429 (struct grub_efi_file_path_device_path): New structure.
50430 (grub_efi_file_path_device_path_t): New type.
50431 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50432 (struct grub_efi_protocol_device_path): New structure.
50433 (grub_efi_protocol_device_path_t): New type.
50434 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50435 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50436 (struct grub_efi_bios_device_path): New structure.
50437 (grub_efi_bios_device_path_t): New type.
50438 (struct grub_efi_disk_io): New structure.
50439 (grub_efi_disk_io_t): New type.
50440 (struct grub_efi_block_io_media): New structure.
50441 (grub_efi_block_io_media_t): New type.
50442 (struct grub_efi_block_io): New structure.
50443 (grub_efi_block_io_t): New type.
50445 * include/grub/misc.h (grub_stop): Removed.
50446 (grub_exit): New prototype.
50447 (grub_abort): Likewise.
50449 * include/grub/disk.h (enum grub_disk_dev_id): Added
50450 GRUB_DISK_DEVICE_EFIDISK_ID.
50452 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50453 disk/efi/efidisk.c.
50454 (kernel_syms.lst): Remove the target if an error occurs.
50456 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50458 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50459 as it was simply too buggy.
50461 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50463 * kern/misc.c (grub_lltoa): New function.
50464 (grub_vsprintf): Added support for the long long suffix,
50467 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50469 * Makefile.in (LDFLAGS): Add variable.
50470 (LD): Remove variable.
50471 * configure.ac: Add -m32 to LDFLAGS.
50472 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50473 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50474 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50475 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50476 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50478 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50479 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50480 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50482 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50484 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50485 length for unknown glyph.
50487 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50489 Add support for pre-loaded modules into the EFI port.
50491 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50492 completely. Accept one more argument DIR. The caller has changed.
50494 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50496 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50497 (grub_efi_loaded_image_guid): New variable.
50498 (grub_efi_get_loaded_image): New function.
50499 (grub_arch_modules_addr): Likewise.
50501 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50504 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50505 (struct grub_efi_loaded_image): New structure.
50506 (grub_efi_loaded_image_t): New type.
50508 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50510 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50511 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50512 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50514 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50516 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50518 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50520 * DISTLIST: Added include/grub/efi/console.h,
50521 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50522 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50524 * include/grub/efi/console.h: New file.
50525 * include/grub/efi/time.h: Likewise.
50526 * include/grub/i386/efi/kernel.h: Likewise.
50527 * kern/efi/init.c: Likewise.
50528 * kern/efi/mm.c: Likewise.
50529 * term/efi/console.c: Likewise.
50531 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50532 (grub_stop): Removed.
50533 (grub_get_rtc): Likewise.
50534 (grub_machine_init): Simply call grub_efi_init.
50535 (grub_machine_fini): Call grub_efi_fini.
50537 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50538 (grub_efi_output_string): Removed.
50539 (grub_efi_stall): New function.
50540 (grub_stop): Likewise.
50541 (grub_get_rtc): Likewise.
50543 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50544 (grub_efi_stall): New prototype.
50545 (grub_efi_allocate_pages): Likewise.
50546 (grub_efi_free_pages): Likewise.
50547 (grub_efi_get_memory_map): Likewise.
50548 (grub_efi_mm_init): Likewise.
50549 (grub_efi_mm_fini): Likewise.
50550 (grub_efi_init): Likewise.
50551 (grub_efi_fini): Likewise.
50553 * include/grub/i386/efi/time.h: Do not include
50554 grub/symbol.h. Include grub/efi/time.h.
50555 (GRUB_TICKS_PER_SECOND): Removed.
50556 (grub_get_rtc): Likewise.
50558 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50559 Added padding. The EFI spec is buggy.
50560 (GRUB_EFI_BLACK): New macro.
50561 (GRUB_EFI_BLUE): Likewise.
50562 (GRUB_EFI_GREEN): Likewise.
50563 (GRUB_EFI_CYAN): Likewise.
50564 (GRUB_EFI_RED): Likewise.
50565 (GRUB_EFI_MAGENTA): Likewise.
50566 (GRUB_EFI_BROWN): Likewise.
50567 (GRUB_EFI_LIGHTGRAY): Likewise.
50568 (GRUB_EFI_BRIGHT): Likewise.
50569 (GRUB_EFI_DARKGRAY): Likewise.
50570 (GRUB_EFI_LIGHTBLUE): Likewise.
50571 (GRUB_EFI_LIGHTGREEN): Likewise.
50572 (GRUB_EFI_LIGHTCYAN): Likewise.
50573 (GRUB_EFI_LIGHTRED): Likewise.
50574 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50575 (GRUB_EFI_YELLOW): Likewise.
50576 (GRUB_EFI_WHITE): Likewise.
50577 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50578 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50579 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50580 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50581 (GRUB_EFI_BACKGROUND_RED): Likewise.
50582 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50583 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50584 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50585 (GRUB_EFI_TEXT_ATTR): Likewise.
50587 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50588 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50589 (kernel_mod_HEADERS): Added efi/time.h.
50591 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50593 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50594 include/grub/efi/api.h, include/grub/efi/console_control.h,
50595 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50596 include/grub/i386/efi/time.h, kern/efi/efi.c,
50597 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50598 and util/i386/efi/grub-mkimage.c.
50600 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50602 * genmk.rb (PModule#rule): Do not export symbols if
50603 #{prefix}_EXPORTS is set to "no".
50605 * conf/i386-efi.mk: New file.
50606 * conf/i386-efi.rmk: Likewise.
50607 * include/grub/efi/api.h: Likewise.
50608 * include/grub/efi/console_control.h: Likewise.
50609 * include/grub/efi/efi.h: Likewise.
50610 * include/grub/efi/pe32.h: Likewise.
50611 * include/grub/i386/efi/time.h: Likewise.
50612 * kern/efi/efi.c: Likewise.
50613 * kern/i386/efi/init.c: Likewise.
50614 * kern/i386/efi/startup.S: Likewise.
50615 * util/i386/efi/grub-mkimage.c: Likewise.
50617 2006-04-17 Marco Gerards <marco@gnu.org>
50619 * include/grub/script.h: Include <grub/parser.h> and
50620 "grub_script.tab.h".
50621 (struct grub_lexer_param): New struct.
50622 (struct grub_parser_param): Likewise.
50623 (grub_script_create_arglist): Pass the state in an argument.
50624 (grub_script_add_arglist): Likewise.
50625 (grub_script_create_cmdline): Likewise.
50626 (grub_script_create_cmdblock): Likewise.
50627 (grub_script_create_cmdif): Likewise.
50628 (grub_script_create_cmdmenu): Likewise.
50629 (grub_script_add_cmd): Likewise.
50630 (grub_script_arg_add): Likewise.
50631 (grub_script_lexer_ref): Likewise.
50632 (grub_script_lexer_deref): Likewise.
50633 (grub_script_lexer_record_start): Likewise.
50634 (grub_script_lexer_record_stop): Likewise.
50635 (grub_script_mem_record): Likewise.
50636 (grub_script_mem_record_stop): Likewise.
50637 (grub_script_malloc): Likewise.
50638 (grub_script_yylex): Likewise.
50639 (grub_script_yyparse): Likewise.
50640 (grub_script_yyerror): Likewise.
50641 (grub_script_yylex): Likewise.
50642 (grub_script_lexer_init): Return the state.
50644 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50645 (grub_script_lexer_done): Likewise.
50646 (grub_script_lexer_getline): Likewise.
50647 (grub_script_lexer_refs): Likewise.
50648 (script): Likewise.
50649 (newscript): Likewise.
50650 (record): Likewise.
50651 (recording): Likewise.
50652 (recordpos): Likewise.
50653 (recordlen): Likewise.
50654 (grub_script_lexer_init): Return the state instead of setting
50656 (grub_script_lexer_ref): Use the newly added argument for state
50657 instead of globals.
50658 (grub_script_lexer_deref): Likewise.
50659 (grub_script_lexer_record_start): Likewise.
50660 (grub_script_lexer_record_stop): Likewise.
50661 (recordchar): Likewise.
50662 (nextchar): Likewise.
50663 (grub_script_yylex2): Likewise.
50664 (grub_script_yylex): Likewise.
50665 (grub_script_yyerror): Likewise.
50667 * normal/parser.y (func_mem): Removed variable.
50668 (menu_entry): Likewise.
50670 (%lex-param): New parser option.
50671 (%parse-param): Likewise.
50672 (script): Always return the AST.
50673 (argument): Pass the state around.
50674 (arguments): Likewise.
50675 (grubcmd): Likewise.
50676 (commands): Likewise.
50677 (function): Likewise.
50678 (menuentry): Likewise.
50679 (if_statement): Likewise.
50682 * normal/script.c (grub_script_memused): Removed variable.
50683 (grub_script_parsed): Likewise.
50684 (grub_script_malloc): Added a state argument. Use that instead of
50686 (grub_script_mem_record): Likewise.
50687 (grub_script_mem_record_stop): Likewise.
50688 (grub_script_arg_add): Likewise.
50689 (grub_script_add_arglist): Likewise.
50690 (grub_script_create_cmdline): Likewise.
50691 (grub_script_create_cmdif): Likewise.
50692 (grub_script_create_cmdmenu): Likewise.
50693 (grub_script_add_cmd): Likewise.
50694 (grub_script_parse): Setup the state before calling the parser.
50696 2006-04-16 Marco Gerards <marco@gnu.org>
50698 * normal/command.c (grub_command_init): Remove the title command.
50700 * normal/lexer.c (grub_script_yylex): Renamed from this...
50701 (grub_script_yylex2): ... to this.
50702 (grub_script_yylex): New function. Temporary
50703 introduced to filter some tokens.
50704 (grub_script_yyerror): Print a newline.
50706 * normal/main.c (read_config_file): Output information about the
50707 lines that contain errors. Wait for a key after all lines have
50708 been processed. Don't return an empty menu.
50710 * normal/parser.y (func_mem): Don't initialize.
50711 (menu_entry): Likewise.
50712 (err): New variable.
50713 (script): Don't return anything when an error was encountered.
50714 (ws, returns): Removed rules.
50715 (argument): Disabled concatenated variable support.
50716 (arguments): Remove explicit separators.
50717 (grubcmd): Likewise.
50718 (function): Likewise.
50719 (menuentry): Likewise.
50721 (commands): Likewise. Add error handling.
50723 * normal/script.c (grub_script_create_cmdline): If
50724 `grub_script_parsed' is 0, assume the parser encountered an error.
50726 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50728 * configure.ac: Add support for EFI. Fix the typo
50729 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50731 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50733 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50734 foreign multibyte characters should be shown correctly.
50736 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50738 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50740 (read_config_file): Made it to close file before returning.
50742 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50744 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50745 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50746 video/i386/pc/vbefill.c.
50748 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50749 video/i386/pc/vbefill.c.
50751 * include/grub/video.h (grub_video_blit_format): New enum.
50752 (grub_video_mode_info): Added new member blit_format.
50753 (grub_video_get_blit_format): New function prototype.
50755 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50756 function prototype.
50757 (grub_video_vbe_map_rgb): Likewise.
50758 (grub_video_vbe_unmap_color): Likewise.
50760 * include/grub/i386/pc/vbeblit.h: New file.
50762 * include/grub/i386/pc/vbefill.h: New file.
50764 * video/video.c (grub_video_get_blit_format): New function.
50765 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50766 (grub_video_vbe_map_rgb): Likewise.
50767 (grub_video_vbe_unmap_color): Likewise.
50769 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50771 (grub_video_vbe_blit_render_target): Changed to use more optimized
50773 (grub_video_vbe_setup): Added detection for optimized settings.
50774 (grub_video_vbe_create_render_target): Likewise.
50776 * video/i386/pc/vbeblit.c: New file.
50778 * video/i386/pc/vbefill.c: New file.
50780 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50782 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50785 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50786 parsing to support both hex and dec ranges. If filename was missing
50787 show usage information.
50789 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50791 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50792 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50794 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50795 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50796 (video_mod_SOURCES): Added.
50797 (video_mod_CFLAGS): Likewise.
50798 (video_mod_LDFLAGS): Likewise.
50799 (gfxterm_mod_SOURCES): Likewise.
50800 (gfxterm_mod_CFLAGS): Likewise.
50801 (gfxterm_mod_LDFLAGS): Likewise.
50802 (videotest_mod_SOURCES): Likewise.
50803 (videotest_mod_CFLAGS): Likewise.
50804 (videotest_mod_LDFLAGS): Likewise.
50805 (vesafb_mod_SOURCES): Removed.
50806 (vesafb_mod_CFLAGS): Likewise.
50807 (vesafb_mod_LDFLAGS): Likewise.
50808 (vga_mod_SOURCES): Likewise.
50809 (vga_mod_CFLAGS): Likewise.
50810 (vga_mod_LDFLAGS): Likewise.
50812 * commands/videotest.c: New file.
50814 * font/manager.c (fill_with_default_glyph): Modified to use
50816 (grub_font_get_glyph): Likewise.
50817 (fontmanager): Renamed from this...
50818 (font_manager): ... to this.
50820 * include/grub/font.h (grub_font_glyph): Added new structure.
50821 (grub_font_get_glyph): Modified to use grub_font_glyph.
50823 * include/grub/misc.h (grub_abs): Added as inline function.
50825 * include/grub/video.h: New file.
50827 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50828 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50829 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50830 (grub_vbe_get_controller_info): Renamed from this...
50831 (grub_vbe_bios_get_controller_info): ... to this.
50832 (grub_vbe_get_mode_info): Renamed from this...
50833 (grub_vbe_bios_get_mode_info): ... to this.
50834 (grub_vbe_set_mode): Renamed from this...
50835 (grub_vbe_bios_set_mode): ... to this.
50836 (grub_vbe_get_mode): Renamed from this...
50837 (grub_vbe_bios_get_mode): ... to this.
50838 (grub_vbe_set_memory_window): Renamed from this...
50839 (grub_vbe_bios_set_memory_window): ... to this.
50840 (grub_vbe_get_memory_window): Renamed from this...
50841 (grub_vbe_bios_get_memory_window): ... to this.
50842 (grub_vbe_set_scanline_length): Renamed from this...
50843 (grub_vbe_set_scanline_length): ... to this.
50844 (grub_vbe_get_scanline_length): Renamed from this...
50845 (grub_vbe_bios_get_scanline_length): ... to this.
50846 (grub_vbe_set_display_start): Renamed from this...
50847 (grub_vbe_bios_set_display_start): ... to this.
50848 (grub_vbe_get_display_start): Renamed from this...
50849 (grub_vbe_bios_get_display_start): ... to this.
50850 (grub_vbe_set_palette_data): Renamed from this...
50851 (grub_vbe_bios_set_palette_data): ... to this.
50852 (grub_vbe_set_pixel_rgb): Removed.
50853 (grub_vbe_set_pixel_index): Likewise.
50855 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50857 (grub_vbe_bios_get_controller_info): ... to this.
50858 (grub_vbe_get_mode_info): Renamed from this...
50859 (grub_vbe_bios_get_mode_info): ... to this.
50860 (grub_vbe_set_mode): Renamed from this...
50861 (grub_vbe_bios_set_mode): ... to this.
50862 (grub_vbe_get_mode): Renamed from this...
50863 (grub_vbe_bios_get_mode): ... to this.
50864 (grub_vbe_set_memory_window): Renamed from this...
50865 (grub_vbe_bios_set_memory_window): ... to this.
50866 (grub_vbe_get_memory_window): Renamed from this...
50867 (grub_vbe_bios_get_memory_window): ... to this.
50868 (grub_vbe_set_scanline_length): Renamed from this...
50869 (grub_vbe_set_scanline_length): ... to this.
50870 (grub_vbe_get_scanline_length): Renamed from this...
50871 (grub_vbe_bios_get_scanline_length): ... to this.
50872 (grub_vbe_set_display_start): Renamed from this...
50873 (grub_vbe_bios_set_display_start): ... to this.
50874 (grub_vbe_get_display_start): Renamed from this...
50875 (grub_vbe_bios_get_display_start): ... to this.
50876 (grub_vbe_set_palette_data): Renamed from this...
50877 (grub_vbe_bios_set_palette_data): ... to this.
50878 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50879 getting corrupted after calling it. Added more pushes and pops.
50880 (grub_vbe_bios_set_mode): Likewise.
50881 (grub_vbe_bios_get_mode): Likewise.
50882 (grub_vbe_bios_get_memory_window): Likewise.
50883 (grub_vbe_bios_set_scanline_length): Likewise.
50884 (grub_vbe_bios_get_scanline_length): Likewise.
50885 (grub_vbe_bios_get_display_start): Likewise.
50886 (grub_vbe_bios_set_palette_data): Likewise.
50888 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50889 (cl_insert): Likewise.
50890 (cl_delete): Likewise.
50892 * term/gfxterm.c: New file.
50894 * term/i386/pc/vesafb.c: Removed file.
50896 * video/video.c: New file.
50898 * video/i386/pc/vbe.c (real2pm): Added new function.
50899 (grub_video_vbe_draw_pixel): Likewise.
50900 (grub_video_vbe_get_video_ptr): Likewise.
50901 (grub_video_vbe_get_pixel): Likewise
50902 (grub_video_vbe_init): Likewise.
50903 (grub_video_vbe_fini): Likewise.
50904 (grub_video_vbe_setup): Likewise.
50905 (grub_video_vbe_get_info): Likewise.
50906 (grub_video_vbe_set_palette): Likewise.
50907 (grub_video_vbe_get_palette): Likewise.
50908 (grub_video_vbe_set_viewport): Likewise.
50909 (grub_video_vbe_get_viewport): Likewise.
50910 (grub_video_vbe_map_color): Likewise.
50911 (grub_video_vbe_map_rgb): Likewise.
50912 (grub_video_vbe_map_rgba): Likewise.
50913 (grub_video_vbe_unmap_color): Likewise.
50914 (grub_video_vbe_fill_rect): Likewise.
50915 (grub_video_vbe_blit_glyph): Likewise.
50916 (grub_video_vbe_blit_bitmap): Likewise.
50917 (grub_video_vbe_blit_render_target): Likewise.
50918 (grub_video_vbe_scroll): Likewise.
50919 (grub_video_vbe_swap_buffers): Likewise.
50920 (grub_video_vbe_create_render_target): Likewise.
50921 (grub_video_vbe_delete_render_target): Likewise.
50922 (grub_video_vbe_set_active_render_target): Likewise.
50923 (grub_vbe_set_pixel_rgb): Remove function.
50924 (grub_vbe_set_pixel_index): Likewise.
50925 (index_color_mode): Remove static variable.
50926 (active_mode): Likewise.
50927 (framebuffer): Likewise.
50928 (bytes_per_scan_line): Likewise.
50929 (grub_video_vbe_adapter): Added new static variable.
50930 (framebuffer): Likewise.
50931 (render_target): Likewise.
50932 (initial_mode): Likewise.
50933 (mode_in_use): Likewise.
50934 (mode_list): Likewise.
50936 2006-03-10 Marco Gerards <marco@gnu.org>
50938 * configure.ac (AC_INIT): Bumped to 1.93.
50940 * DISTLIST: Added `include/grub/hfs.h'.
50942 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50944 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50945 18H, which might help the BIOS falling back to next boot media.
50947 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50949 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50950 Poe Chen <poe.poechen@gmail.com>.
50952 2006-01-17 Marco Gerards <marco@gnu.org>
50954 * include/grub/normal.h: Include <grub/script.h>.
50955 (grub_command_list): Removed struct.
50956 (grub_command_list_t): Removed type.
50957 (grub_menu_entry): Remove members `num' and `command_list'. Add
50958 members `commands' and `sourcecode'.
50959 * include/grub/script.h: Add inclusion guards.
50960 (grub_script_cmd_menuentry): New struct.
50961 (grub_script_execute_menuentry): New prototype.
50962 (grub_script_lexer_record_start): Likewise.
50963 (grub_script_lexer_record_stop): Likewise.
50964 * normal/execute.c (grub_script_execute_menuentry): New function.
50965 * normal/lexer.c (record, recording, recordpos, recordlen): New
50967 (grub_script_lexer_record_start): New function.
50968 (grub_script_lexer_record_stop): Likewise.
50969 (recordchar): Likewise.
50970 (nextchar): Likewise.
50971 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50972 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50973 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50974 (current_menu): New variable.
50975 (free_menu): Mainly rewritten.
50976 (grub_normal_menu_addentry): New function.
50977 (read_config_file): Rewritten.
50978 * normal/menu.c (run_menu_entry): Mainly rewritten.
50979 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50981 (run): Mainly rewritten.
50982 * normal/parser.y (menu_entry): New variable.
50983 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50984 (menuentry): New rule.
50985 (command): Add `menuentry'.
50986 (if_statement): Allow additional returns before `fi'.
50987 * normal/script.c (grub_script_create_cmdmenu): New function.
50989 2006-01-03 Marco Gerards <marco@gnu.org>
50991 * INSTALL: GNU Bison is required.
50992 * configure.ac: Rewritten the test to detect Bison.
50993 * Makefile.in (YACC): New variable. Reported by Xun Sun
50994 <xun.sun.cn@gmail.com>.
50996 2006-01-03 Marco Gerards <marco@gnu.org>
50998 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50999 the HFS+ filesystem to filesystem blocks.
51000 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51001 GCC warning is silenced.
51003 2006-01-03 Marco Gerards <marco@gnu.org>
51005 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51006 read from disk from big endian to host byte order.
51008 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51010 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51012 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51013 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51014 embedded HFS+ filesystem.
51015 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51016 (grub_hfs_sblock): Move from here...
51017 * include/grub/hfs.h: To here... New file.
51018 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51020 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51022 (grub_hfsplus_volheader): Change type of member `magic' to
51024 (grub_hfsplus_data): Add new member `embedded_offset'.
51025 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51027 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51028 Calculate the offset.
51030 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51032 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51034 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51036 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51038 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51039 ENV->NAME is NULL after allocating ENV->VALUE.
51041 2005-12-25 Marco Gerards <marco@gnu.org>
51043 * kern/env.c (grub_env_set): Rewritten the error handling code.
51045 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51047 * geninit.sh: Made more robust, and more portable.
51049 2005-12-25 Marco Gerards <marco@gnu.org>
51051 Add support for Apple HFS+ filesystems.
51053 * fs/hfsplus.c: New file.
51055 * DISTLIST: Added `fs/hfsplus.c'.
51057 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51058 (hfsplus_mod_SOURCES): New variable.
51059 (hfsplus_mod_CFLAGS): Likewise.
51060 (hfsplus_mod_LDFLAGS): Likewise.
51061 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51062 (grub_setup_SOURCES): Likewise.
51063 (grub_mkdevicemap_SOURCES): Likewise.
51064 (grub_emu_SOURCES): Likewise.
51065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51067 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51069 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51071 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51073 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51074 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51075 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51076 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51077 normal/lexer.c, normal/parser.y, normal/script.c, and
51079 Removed kern/sparc64/cache.c.
51081 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51082 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51085 * configure.ac (AC_INIT): Bumped to 1.92.
51087 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51089 * kern/err.c (grub_error_push): Added new function to support error
51091 (grub_error_pop): Likewise.
51092 (grub_error_stack_items): New local variable to support error stacks.
51093 (grub_error_stack_pos): Likewise.
51094 (grub_error_stack_assert): Likewise.
51095 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51097 (grub_print_error): Added support to print errors from error stack.
51099 * include/grub/err.h (grub_error_push): Added function prototype.
51100 (grub_error_pop): Likewise.
51102 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51104 * configure.ac: Accept `powerpc64' as host_cpu.
51105 (amd64): Rename to `biarch32'.
51107 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51108 non-cacheline-aligned addresses.
51110 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51111 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51112 if `size' is non-zero.
51114 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51116 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51117 and `cd' to make sure the filename is not prefixed with a
51119 (pkgdata_MODULES): Add `gpt.mod'.
51120 (gpt_mod_SOURCES): New variable.
51121 (gpt_mod_CFLAGS): Likewise.
51122 (gpt_mod_LDFLAGS): Likewise.
51124 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51126 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51129 * partmap/gpt.c: New file.
51131 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51132 GPT partition map is detected.
51134 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51136 * commands/i386/pc/play.c: New file.
51137 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51138 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51141 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51143 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51144 ((unused))' to silence gcc warning.
51146 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51148 * configure.ac: Correct `AC_PROG_YACC' test.
51150 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51152 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51153 check before installing files.
51155 2005-11-22 Mike Small <smallm@panix.com>
51157 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51158 number regex so multidigit numbers are recognized correctly.
51160 2005-11-22 Mike Small <smallm@panix.com>
51162 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51163 debugging message before attempting to claim memory.
51164 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51165 multiple addresses in case of failure.
51167 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51169 * term/tparm.c (get_space): Remove empty `if' statement.
51171 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51173 * kern/parser.c (check_varstate): Rename `state' to 's'.
51175 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51177 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51178 variable definitions to the beginning of each function. Sort stack
51180 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51181 `buf' argument to `char *'.
51183 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51185 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51186 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51187 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51188 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51189 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51190 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51191 configfile.mod, search.mod, gzio.mod and test.mod.
51192 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51193 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51194 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51195 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51196 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51197 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51198 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51199 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51200 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51201 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51202 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51203 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51204 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51205 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51206 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51207 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51208 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51209 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51210 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51211 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51212 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51213 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51214 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51216 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51218 (pkgdata_MODULES): Add test.mod.
51220 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51222 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51223 appending to variables with "+=".
51224 (PModule): Use full pathname to generate *.lst filenames.
51226 * Makefile.in: Fixed list rules moved from genmk.rb.
51227 (.DELETE_ON_ERROR): New special target.
51228 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51230 * conf/i386-pc.rmk: Include conf/common.mk.
51231 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51232 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51233 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51234 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51235 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51236 configfile.mod, search.mod, gzio.mod and test.mod.
51237 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51238 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51239 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51240 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51241 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51242 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51243 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51244 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51245 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51246 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51247 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51248 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51249 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51250 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51251 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51252 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51253 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51254 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51255 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51256 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51257 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51258 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51259 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51261 * conf/common.rmk: ... to here. New file.
51263 * conf/common.mk: New file.
51265 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51267 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51268 (grub_script.tab.c): ... here.
51270 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51271 (grub_script.tab.c): ... here.
51273 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51274 (grub_script.tab.c): ... here.
51276 * normal/command.c (grub_command_find): Fixed a memory leak of
51277 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51279 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51281 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51282 "@" which marks the start of a comment on ARM.
51283 (VARIABLE): Likewise.
51285 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51287 Add support for Linux/ADFS partition tables.
51289 * partmap/acorn.c: New file.
51291 * include/grub/acorn_filecore.h: Likewise.
51293 * DISTLIST: Added `partmap/acorn.c' and
51294 `include/grub/acorn_filecore.h'.
51296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51298 (pkgdata_MODULES): Add `acorn.mod'.
51299 (acorn_mod_SOURCES): New variable.
51300 (acorn_mod_CFLAGS): Likewise.
51302 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51304 (pkgdata_MODULES): Add `acorn.mod'.
51305 (acorn_mod_SOURCES): New variable.
51306 (acorn_mod_CFLAGS): Likewise.
51308 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51309 (pkgdata_MODULES): Add `acorn.mod'.
51310 (acorn_mod_SOURCES): New variable.
51311 (acorn_mod_CFLAGS): Likewise.
51312 (acorn_mod_LDFLAGS): Likewise.
51314 * include/types.h (grub_disk_addr_t): New typedef.
51316 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51318 * geninit.sh: New file.
51320 * geninitheader.sh: Likewise.
51322 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51323 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51324 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51325 * commands/configfile.c (grub_configfile_init)
51326 (grub_configfile_fini): Likewise.
51327 * commands/default.c (grub_default_init, grub_default_fini):
51329 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51330 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51331 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51332 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51334 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51335 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51337 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51338 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51340 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51342 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51344 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51345 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51346 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51347 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51348 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51349 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51350 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51351 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51352 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51353 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51354 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51355 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51356 * partmap/amiga.c (grub_amiga_partition_map_init)
51357 (grub_amiga_partition_map_fini): Likewise.
51358 * partmap/apple.c (grub_apple_partition_map_init)
51359 (grub_apple_partition_map_fini): Likewise.
51360 * partmap/pc.c (grub_pc_partition_map_init)
51361 (grub_pc_partition_map_fini): Likewise.
51362 * partmap/sun.c (grub_sun_partition_map_init,
51363 grub_sun_partition_map_fini): Likewise.
51364 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51367 * util/grub-emu.c: Include <grub_modules_init.h>.
51368 (main): Don't initialize and de-initialize any modules directly,
51369 use `grub_init_all' and `grub_fini_all' instead.
51371 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51372 `grub_vesafb_mod_init'.
51373 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51375 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51376 `grub_vga_mod_init'. Updated all users.
51377 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51379 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51380 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51383 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51384 Generate a function to initialize the module in utilities.
51385 Updated all callers.
51386 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51387 initialize the module in utilities. Updated all callers.
51389 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51391 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51392 escape sequence and a literal ^L to clear the screen.
51394 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51395 when returning from Open Firmware.
51397 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51399 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51400 (grub_ofconsole_height): Likewise.
51401 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51402 manually insert a '\n'.
51403 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51404 `grub_ofconsole_height'. Return early if these are already set.
51406 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51408 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51409 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51410 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51411 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51412 and `normal/script.c'.
51413 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51414 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51415 (test_mod_SOURCES): New variable.
51416 (test_mod_CFLAGS): Likewise.
51417 (test_mod_LDFLAGS): Likewise.
51418 (pkgdata_MODULES): Add `test.mod'.
51419 (grub_script.tab.c): New rule.
51420 (grub_script.tab.h): Likewise.
51422 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51424 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51425 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51426 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51427 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51428 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51429 (test_mod_SOURCES): New variable.
51430 (test_mod_CFLAGS): Likewise.
51431 (pkgdata_MODULES): Add `test.mod'.
51432 (grub_script.tab.c): New rule.
51433 (grub_script.tab.h): Likewise.
51435 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51437 Add initial scripting support.
51439 * commands/test.c: New file.
51440 * include/grub/script.h: Likewise.
51441 * normal/execute.c: Likewise.
51442 * normal/function.c: Likewise.
51443 * normal/lexer.c: Likewise.
51444 * normal/parser.y: Likewise.
51445 * normal/script.c: Likewise.
51447 * configure.ac: Add `AC_PROG_YACC' test.
51449 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51450 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51451 `normal/function.c' and `normal/script.c'.
51452 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51453 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51454 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51456 (pkgdata_MODULES): Add `test.mod'.
51457 (grub_script.tab.c): New rule.
51458 (grub_script.tab.h): Likewise.
51460 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51462 * include/grub/normal.h (grub_test_init): New prototype.
51463 (grub_test_fini): Likewise.
51465 * normal/command.c: Include <grub/script.h>.
51466 (grub_command_execute): Rewritten.
51468 * util/grub-emu.c (main): Call `grub_test_init' and
51471 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51473 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51475 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51476 there are no pending characters.
51478 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51480 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51481 `grub_strndup' to drop device arguments. Replace unnecessary
51482 `grub_strndup' with `grub_strdup'.
51484 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51486 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51487 `debug' environment variable has been set.
51489 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51491 * Makefile.in (install-local): Use $(DATA).
51492 (uninstall): Likewise.
51493 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51494 (sbin_UTILITIES): ... to here.
51495 (sbin_SCRIPTS): New variable.
51496 (grub_install_SOURCES): New variable.
51497 * util/powerpc/ieee1275/grub-install.in: New file.
51498 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51500 (add_segments): Call `grub_util_get_path'.
51502 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51504 From Timothy Baldwin:
51505 * commands/ls.c (grub_ls_list_files): Close FILE with
51507 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51509 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51511 * include/grub/parser.h: New file.
51513 * kern/parser.c: Likewise.
51515 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51516 (grub_setup_SOURCES): Likewise.
51517 (grub_probefs_SOURCES): Likewise.
51518 (grub_emu_SOURCES): Likewise.
51519 (kernel_img_HEADERS): Add `parser.h'.
51521 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51522 (grub_emu_SOURCES): Add `kern/parser.c'.
51523 (grubof_SOURCES): Likewise.
51525 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51526 (grubof_SOURCES): Add `kern/parser.c'.
51528 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51530 * kern/misc.c (grub_split_cmdline): Removed function.
51532 * kern/rescue.c: Include <grub/parser.h>.
51533 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51534 of `grub_split_cmdline'.
51536 * normal/command.c: Include <grub/parser.h>.
51537 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51538 of `grub_split_cmdline'.
51540 * normal/completion.c: Include <grub/parser.h>.
51541 (cmdline_state): New variable.
51542 (iterate_dir): End the filename with a quote depending on the
51543 command line state.
51544 (get_state): new function.
51545 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51546 split the arguments and determine the current argument. When the
51547 argument string is not quoted, escape all spaces.
51549 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51551 * normal/sparc64/setjmp.S: New file.
51553 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51555 * include/grub/sparc64/libgcc.h: New file.
51556 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51557 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51558 normal/sparc64/setjmp.c.
51560 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51562 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51563 * kern/sparc64/cache.S: New file.
51564 * kern/sparc64/cache.c: Removed.
51565 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51566 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51568 (COMMON_LDFLAGS): Add -melf64_sparc.
51569 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51570 (grubof_SOURCES): Use cache.S instead of cache.c.
51571 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51572 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51573 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51575 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51576 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51577 (linux_mod_CFLAGS): Commented out.
51578 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51579 out because module isn't built.
51580 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51581 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51582 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51583 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51584 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51585 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51586 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51587 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51588 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51589 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51590 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51591 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51592 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51593 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51595 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51597 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51598 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51599 longer, because HFS should not be used on PC.
51601 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51603 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51604 consistently within the loop.
51606 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51608 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51609 directory can not be read.
51611 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51613 * configure.ac (AC_INIT): Increase the version number to 1.91.
51615 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51616 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51617 term/i386/pc/serial.c.
51619 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51621 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51622 file size must be permitted.
51624 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51625 between %ah and %al.
51627 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51629 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51631 Call the hook with a NUL-terminated filename.
51632 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51635 * kern/term.c (cursor_state): New variable.
51636 (grub_term_set_current): Reset the cursor state on a new
51638 (grub_setcursor): Rewritten to use CURSOR_STATE.
51639 (grub_getcursor): New function.
51641 * include/grub/term.h (grub_getcursor): New prototype.
51643 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51644 integers on ARM. Reported by Timothy Baldwin
51645 <T.E.Baldwin99@members.leeds.ac.uk>.
51647 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51649 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51651 (grub_sfs_dir): Likewise.
51653 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51655 Add support for the SFS filesystem.
51657 * fs/sfs.c: New file.
51659 * DISTLIST: Added `fs/sfs.c'.
51661 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51662 (grub_probefs_SOURCES): Likewise.
51663 (grub_emu_SOURCES): Likewise.
51664 (pkgdata_MODULES): Add `sfs.mod'.
51665 (sfs_mod_SOURCES): New variable.
51666 (sfs_mod_CFLAGS): Likewise.
51667 (sfs_mod_LDFLAGS): Likewise.
51669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51670 (pkgdata_MODULES): Add `sfs.mod'.
51671 (sfs_mod_SOURCES): New variable.
51672 (sfs_mod_CFLAGS): Likewise.
51674 * util/grub-emu.c (main): Call `grub_sfs_init' and
51677 * include/grub/fs.h (grub_sfs_init): New prototype.
51678 (grub_sfs_fini): Likewise.
51680 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51682 Add support for the AFFS filesystem.
51684 * fs/affs.c: New file.
51686 * DISTLIST: Added `fs/affs.c'.
51688 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51689 (grub_probefs_SOURCES): Likewise.
51690 (grub_emu_SOURCES): Likewise.
51691 (pkgdata_MODULES): Add `affs.mod'.
51692 (affs_mod_SOURCES): New variable.
51693 (affs_mod_CFLAGS): Likewise.
51694 (affs_mod_LDFLAGS): Likewise.
51696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51697 (pkgdata_MODULES): Add `affs.mod'.
51698 (affs_mod_SOURCES): New variable.
51699 (affs_mod_CFLAGS): Likewise.
51701 * util/grub-emu.c (main): Call `grub_affs_init' and
51704 * include/grub/fs.h (grub_affs_init): New prototype.
51705 (grub_affs_fini): Likewise.
51707 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51709 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51711 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51713 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51716 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51719 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51720 (COMMON_LDFLAGS): New variable.
51721 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51722 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51723 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51724 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51725 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51726 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51727 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51728 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51729 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51730 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51731 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51732 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51733 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51734 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51735 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51737 (normal_mod_ASFLAGS): Add `-m32'.
51739 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51740 (grub_host_size_t, grub_host_ssize_t): New types.
51741 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51742 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51743 `GRUB_HOST_SIZEOF_VOID_P'.
51745 * include/grub/kernel.h (struct grub_module_header): Type of
51746 member offset changed to `grub_host_off_t'. Type of member size
51747 changed to `grub_host_size_t'.
51748 (struct grub_module_info): Type of member offset changed to
51749 `grub_host_off_t'. Type of member size changed to
51750 `grub_host_size_t'.
51752 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51754 Make GRUB's kernel compliant to Multiboot Specification.
51756 * kern/i386/pc/startup.S (multiboot_header): New label.
51757 (multiboot_entry): Likewise.
51758 (multiboot_trampoline): Likewise.
51760 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51761 Increased to 0x4A0.
51763 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51764 put parentheses after a question mark.
51765 [!GRUB_UTIL] (my_mod): New variable.
51767 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51769 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51771 Adds support for the XFS filesystem. Btrees are not supported
51774 * fs/xfs.c: New file.
51776 * DISTLIST: Added `fs/xfs.c'.
51778 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51779 (grub_probefs_SOURCES): Likewise.
51780 (grub_emu_SOURCES): Likewise.
51781 (pkgdata_MODULES): Add `xfs.mod'.
51782 (xfs_mod_SOURCES): New variable.
51783 (xfs_mod_CFLAGS): Likewise.
51785 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51786 (pkgdata_MODULES): Add `xfs.mod'.
51787 (xfs_mod_SOURCES): New variable.
51788 (xfs_mod_CFLAGS): Likewise.
51790 * util/grub-emu.c (main): Call `grub_xfs_init' and
51793 * include/grub/fs.h (grub_xfs_init): New prototype.
51794 (grub_xfs_fini): Likewise.
51797 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51799 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51800 color modes, allow greater than 16 colors to be configured as
51803 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51805 * normal/completion.c (complete_arguments): Add the qualifier
51806 const into OPTIONS.
51808 From Omniflux <omniflux+lists@omniflux.com>:
51809 * include/grub/terminfo.h: New file.
51810 * include/grub/tparm.h: Likewise.
51811 * include/grub/i386/pc/serial.h: Likewise.
51812 * term/terminfo.c: Likewise.
51813 * term/tparm.c: Likewise.
51814 * term/i386/pc/serial.c: Likewise.
51815 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51817 (terminfo_mod_SOURCES): New variable.
51818 (terminfo_mod_CFLAGS): Likewise.
51819 (serial_mod_SOURCES): Likewise.
51820 (serial_mod_CFLAGS): Likewise.
51822 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51824 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51825 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51826 and kern/powerpc/ieee1275/cmain.c, respectively.
51828 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51829 * kern/powerpc/ieee1275/crt0.S: ... here.
51831 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51832 * kern/powerpc/ieee1275/cmain.c: ... here.
51834 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51835 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51836 instead of boot/powerpc/ieee1275/crt0.S and
51837 boot/powerpc/ieee1275/cmain.c, respectively.
51839 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51840 sectors. It was not used anyway.
51842 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51844 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51845 `unused parameter' warning.
51847 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51849 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51851 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51854 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51856 * include/grub/normal.h (enum grub_completion_type): Added
51857 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51859 * normal/cmdline.c (print_completion): Handle
51860 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51861 * normal/menu_entry.c (store_completion): Likewise.
51863 * normal/completion.c (complete_arguments): New function.
51864 (grub_normal_do_completion): Call `complete_arguments' when the
51865 current words start with a dash.
51867 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51869 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51870 `gzio.mod' instead of `io.mod').
51872 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51874 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51875 (DISTDIRS): Added io and video.
51876 Rewrite the search routine to make an output consistently.
51878 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51879 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51880 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51881 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51882 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51883 util/powerpc/ieee1275/misc.c.
51885 * include/grub/gzio.h: New file.
51886 * io/gzio.c: Likewise.
51888 * kern/file.c (grub_file_close): Call grub_device_close only if
51889 FILE->DEVICE is not NULL.
51891 * include/grub/mm.h [!NULL] (NULL): New macro.
51893 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51895 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51896 (pkgdata_MODULES): Added gzio.mod.
51897 (gzio_mod_SOURCES): New variable.
51898 (gzio_mod_CFLAGS): Likewise.
51900 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51901 (pkgdata_MODULES): Added gzio.mod.
51902 (gzio_mod_SOURCES): New variable.
51903 (gzio_mod_CFLAGS): Likewise.
51905 * commands/cat.c: Include grub/gzio.h.
51906 (grub_cmd_cat): Use grub_gzfile_open instead of
51909 * commands/cmp.c: Include grub/gzio.h.
51910 (grub_cmd_cmp): Use grub_gzfile_open instead of
51913 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51914 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51916 (grub_rescue_cmd_module): Likewise.
51918 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51920 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51921 kern/sparc64/ieee1275/init.c because it contains _start.
51922 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51924 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51926 * configure.ac: Add support for sparc64 host with ieee1275
51928 * configure: Generated from configure.ac.
51929 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51931 (grub_ofdisk_read): Likewise.
51932 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51933 pointers as (void *) to remove a warning.
51934 (grub_ofdisk_close): Likewise.
51935 (grub_ofdisk_read): Likewise.
51936 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51937 returns, so make it return void to remove a warning.
51938 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51939 Corresponding prototype change.
51940 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51941 values, and cast the pointers as (void *) to remove a warning.
51942 (grub_mm_dump): Likewise.
51943 * conf/sparc64-ieee1275.mk: New file.
51944 * conf/sparc64-ieee1275.rmk: Likewise.
51945 * include/grub/sparc64/setjmp.h: Likewise.
51946 * include/grub/sparc64/types.h: Likewise.
51947 * include/grub/sparc64/ieee1275/console.h: Likewise.
51948 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51949 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51950 * include/grub/sparc64/ieee1275/time.h: Likewise.
51951 * kern/sparc64/cache.c: Likewise.
51952 * kern/sparc64/dl.c: Likewise.
51953 * kern/sparc64/ieee1275/init.c: Likewise.
51954 * kern/sparc64/ieee1275/openfw.c: Likewise.
51956 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51958 * util/console.c (grub_ncurses_putchar): If C is greater than
51959 0x7f, set C to a question mark.
51960 (grub_ncurses_getcharwidth): New function.
51961 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51964 * normal/menu.c (print_entry): Made aware of Unicode. First,
51965 convert TITLE to UCS-4, and predict the cursor position by
51968 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51970 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51972 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51974 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51975 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51978 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51979 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51980 grub_strcpy and grub_strlen. Take it into account that a space
51981 character is inserted as a delimiter.
51983 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51985 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51986 invalid magic in the error.
51988 * commands/search.c: New file.
51990 * util/grub-emu.c (main): Call grub_search_init and
51993 * kern/rescue.c (grub_rescue_print_disks): Removed.
51994 (grub_rescue_print_devices): New function.
51995 (grub_rescue_cmd_ls): Use grub_device_iterate with
51996 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51997 grub_rescue_print_disks.
51999 * kern/partition.c (grub_partition_iterate): Return the result of
52000 PARTMAP->ITERATE instead of GRUB_ERRNO.
52002 * kern/device.c: Include grub/partition.h.
52003 (grub_device_iterate): New function.
52005 * include/grub/partition.h (grub_partition_iterate): Return int
52006 instead of grub_err_t.
52008 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52010 [GRUB_UTIL] (grub_search_fini): Likewise.
52012 * include/grub/device.h (grub_device_iterate): New prototype.
52014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52016 (pkgdata_MODULES): Added search.mod.
52017 (search_mod_SOURCES): New variable.
52018 (search_mod_CFLAGS): Likewise.
52020 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52021 (pkgdata_MODULES): Added search.mod.
52022 (search_mod_SOURCES): New variable.
52023 (search_mod_CFLAGS): Likewise.
52025 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52026 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52027 All callers changed.
52029 * DISTLIST: Added commands/search.c.
52031 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52033 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52035 (grub_getcharwidth): New function.
52037 * kern/misc.c (grub_utf8_to_ucs4): New function.
52039 * include/grub/term.h (struct grub_term): Added a new member
52041 (grub_getcharwidth): New prototype.
52043 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52045 * term/i386/pc/console.c (map_char): New function. Segregated from
52046 grub_console_putchar.
52047 (grub_console_putchar): Use map_char.
52048 (grub_console_getcharwidth): New function.
52049 (grub_console_term): Specified grub_console_getcharwidth as
52052 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52053 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52055 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52057 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52058 on grub_strtoul completely.
52059 (write_char): Declare local variables in the beginning of the
52061 (grub_vesafb_getcharwidth): New function.
52062 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52065 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52067 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52068 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52069 commands/i386/pc/vbetest.c.
52071 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52072 call grub_vbe_get_controller_info again, because the returned
52073 information is volatile.
52074 (grub_vbe_set_video_mode): Mostly rewritten.
52075 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52076 grub_vbe_status_t correctly.
52077 (grub_vbe_get_video_mode_info): Likewise.
52078 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52079 several if statements.
52081 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52082 * commands/i386/pc/vbeinfo.c: ... this.
52084 * commands/i386/pc/vbe_test.c: Renamed to ...
52085 * commands/i386/pc/vbetest.c: ... this.
52087 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52089 (grub_cmd_vbeinfo): ... this. Save video modes before
52090 iterating. Skip a video mode, if it is not available, not enough
52091 information is given or it is monochrome. Show the memory
52092 model. Leave the interpretation of MODEVAR to grub_strtoul
52094 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52095 (GRUB_MOD_FINI): Likewise.
52097 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52098 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52099 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52100 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52101 grub_strtoul completely.
52102 (real2pm): Removed.
52103 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52104 (GRUB_MOD_FINI): Likewise.
52106 * normal/misc.c: Include grub/mm.h.
52108 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52109 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52110 (vbe_list_modes_mod_SOURCES): Removed.
52111 (vbe_list_modes_mod_CFLAGS): Likewise.
52112 (vbe_test_mod_SOURCES): Likewise.
52113 (vbe_test_mod_CFLAGS): Likewise.
52114 (vbeinfo_mod_SOURCES): New variable.
52115 (vbeinfo_mod_CFLAGS): Likewise.
52116 (vbetest_mod_SOURCES): Likewise.
52117 (vbetest_mod_CFLAGS): Likewise.
52119 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52121 * normal/misc.c: New file.
52123 * DISTLIST: Added normal/misc.c.
52125 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52126 DISK to HOOK. Call HOOK with DISK.
52127 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52128 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52129 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52131 * normal/menu_entry.c (struct screen): Added a new member
52132 "completion_shown".
52133 (completion_buffer): New global variable.
52134 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52135 (store_completion): New function.
52136 (complete): Likewise.
52137 (clear_completions): Likewise.
52138 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52139 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52140 a tab, call complete.
52142 * normal/completion.c (disk_dev): Removed.
52143 (print_simple_completion): Likewise.
52144 (print_partition_completion): Likewise.
52145 (print_func): New global variable.
52146 (add_completion): Do not take the arguments WHAT or PRINT any
52147 longer. Added a new argument TYPE. Instead of printing directly,
52148 call PRINT_FUNC if not NULL.
52149 All callers changed.
52150 (complete_device): Use a local variable DEV instead of
52151 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52152 (grub_normal_do_completion): Take a new argument HOOK. Do not
52153 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52154 empty string, return NULL instead.
52155 All callers changed.
52157 * normal/cmdline.c (print_completion): New function.
52159 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52161 All callers changed.
52163 * kern/disk.c (grub_print_partinfo): Removed.
52165 * include/grub/partition.h (struct grub_partition_map): Add a new
52166 argument DISK into HOOK of ITERATE.
52167 (grub_partition_iterate): Add a new argument DISK to HOOK.
52169 * include/grub/normal.h (enum grub_completion_type): New enum.
52170 (grub_completion_type_t): New type.
52171 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52172 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52173 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52174 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52175 (grub_normal_do_completion): Added a new argument HOOK.
52176 (grub_normal_print_device_info): New prototype.
52178 * include/grub/disk.h (grub_print_partinfo): Removed.
52180 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52181 (normal_mod_SOURCES): Likewise.
52182 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52183 (normal_mod_SOURCES): Likewise.
52185 * commands/ls.c (grub_ls_list_disks): Use
52186 grub_normal_print_device_info instead of grub_print_partinfo. Free
52188 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52189 duplicating the code.
52191 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52193 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52194 follow GCS more precisely.
52195 * commands/i386/pc/vbe_test.c: Likewise.
52196 * include/grub/i386/pc/vbe.h: Likewise.
52197 * term/i386/pc/vesafb.c: Likewise.
52198 * video/i386/pc/vbe.c: Likewise.
52200 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52202 * DISTLIST: Added term/i386/pc/vesafb.c
52203 DISTLIST: Added video/i386/pc/vbe.c
52204 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52205 DISTLIST: Added commands/i386/pc/vbe_test.c.
52206 * commands/i386/pc/vbe_list_modes.c: New file.
52207 * commands/i386/pc/vbe_test.c: Likewise.
52208 * term/i386/pc/vesafb.c: Likewise.
52209 * video/i386/pc/vbe.c: Likewise.
52210 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52211 (grub_vbe_probe) Added prototype.
52212 (grub_vbe_set_video_mode) Likewise.
52213 (grub_vbe_get_video_mode) Likewise.
52214 (grub_vbe_get_video_mode_info) Likewise.
52215 (grub_vbe_set_pixel_rgb) Likewise.
52216 (grub_vbe_set_pixel_index) Likewise.
52217 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52218 (pkgdata_MODULES): Added vesafb.mod.
52219 (pkgdata_MODULES): Added vbe_list_modes.mod.
52220 (pkgdata_MODULES): Added vbe_test.mod.
52221 (vbe_mod_SOURCES): Added.
52222 (vbe_mod_CFLAGS): Likewise.
52223 (vesafb_mod_SOURCES): Likewise.
52224 (vesafb_mod_CFLAGS): Likewise.
52225 (vbe_list_modes_mod_SOURCES): Likewise.
52226 (vbe_list_modes_mod_CFLAGS): Likewise.
52227 (vbe_test_mod_SOURCES): Likewise.
52228 (vbe_test_mod_CFLAGS): Likewise.
52230 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52232 * normal/command.c (grub_command_execute): If INTERACTIVE is
52233 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52234 CMDLINE. Disable the pager if INTERACTIVE is true.
52235 All callers are changed.
52237 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52238 before reading a config file.
52239 * normal/main.c (read_config_file): Even if a command is not
52240 found, register it if it is within an entry.
52242 * util/grub-emu.c: Include sys/types.h and unistd.h.
52243 (options): Added --hold.
52244 (struct arguments): Added a new member "hold".
52245 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52247 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52248 cleared by a debugger, if it is not zero.
52250 * include/grub/normal.h (grub_command_execute): Add an argument
52253 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52255 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52257 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52259 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52260 program with another one, because the old one didn't detect a bug
52261 in gcc-3.4. Always use regparm 2, because the new test is still
52262 not enough for gcc-4.0. Someone must investigate a simple test
52263 case which detects a bug in gcc-4.0.
52265 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52267 * DISTLIST: Added normal/completion.c.
52269 * normal/completion.c: New file.
52271 * term/i386/pc/console.c (grub_console_getwh): New function.
52272 (grub_console_term): Assign grub_console_getwh to getwh.
52274 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52275 function is defined in normal/completion.c as
52276 grub_normal_do_completion.
52277 (grub_cmdline_get): Use grub_normal_do_completion instead of
52280 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52281 returns non-zero, otherwise return 0.
52282 (grub_partition_iterate): First, probe the partition map. Then,
52283 call ITERATE only for this partition map.
52285 * kern/misc.c (grub_strncmp): Rewritten.
52287 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52288 returns non-zero. Otherwise return 0.
52290 * include/grub/partition.h (grub_partition_map_iterate): Return
52291 int instead of void.
52293 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52295 * include/grub/misc.h (grub_strncmp): Change the type of N to
52298 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52301 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52302 unsigned explicitly before comparing it with I.
52304 * kern/main.c (grub_env_write_root): Add the attribute unused into
52307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52308 normal/completion.c.
52309 (normal_mod_SOURCES): Likewise.
52310 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52311 (normal_mod_SOURCES): Likewise.
52313 * normal/command.c (grub_iterate_commands): If ITERATE returns
52314 non-zero, return one immediately.
52316 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52318 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52319 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52321 (grub_vbe_get_controller_info): New function.
52322 (grub_vbe_get_mode_info): Likewise.
52323 (grub_vbe_set_mode): Likewise.
52324 (grub_vbe_get_mode): Likewise.
52325 (grub_vbe_set_memory_window): Likewise.
52326 (grub_vbe_get_memory_window): Likewise.
52327 (grub_vbe_set_scanline_length): Likewise.
52328 (grub_vbe_get_scanline_length): Likewise.
52329 (grub_vbe_set_display_start): Likewise.
52330 (grub_vbe_get_display_start): Likewise.
52331 (grub_vbe_set_palette_data): Likewise.
52332 * include/grub/i386/pc/vbe.h: New file.
52334 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52336 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52337 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52338 * DISTLIST: Likewise.
52339 * kern/ieee1275/of.c: Moved to ...
52340 * kern/ieee1275/ieee1275.c: ... here.
52342 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52344 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52345 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52346 Pass 0 as `end' parameter to grub_strtoul().
52348 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52350 * include/grub/powerpc/ieee1275/console.h: Do not include
52351 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52353 (grub_console_cur_color): Remove i386-specific prototype.
52354 (grub_console_real_putchar): Likewise.
52355 (grub_console_checkkey): Likewise.
52356 (grub_console_getkey): Likewise.
52357 (grub_console_getxy): Likewise.
52358 (grub_console_gotoxy): Likewise.
52359 (grub_console_cls): Likewise.
52360 (grub_console_setcursor): Likewise.
52361 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52362 Include <grub/machine/console.h>.
52363 * term/ieee1275/ofconsole.c: Likewise.
52365 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52367 * Makefile.in (LIBLZO): New variable.
52369 * configure.ac: Check for LZO version 2.
52371 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52372 lzo/lzo1x.h instead of lzo1x.h.
52374 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52377 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52378 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52380 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52381 copying the data from PARTITION to P.
52383 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52385 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52386 negative, unload the module.
52388 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52389 map is "pc_partition_map" but not "pc".
52390 (usage): Fix the description. The options are --boot-image and
52391 --core-image but not --boot-file or --core-file.
52392 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52393 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52396 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52397 --core-file. Specify INSTALL_DEVICE as an argument.
52399 * util/console.c: Include config.h.
52400 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52401 [HAVE_NCURSES_H]: Include ncurses.h.
52402 [HAVE_CURSES_H]: Include curses.h.
52403 [!A_NORMAL] (A_NORMAL): Defined as zero.
52404 [!A_STANDOUT] (A_STANDOUT): Likewise.
52406 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52408 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52410 * configure.ac: Check for curses libraries and headers.
52412 * Makefile.in (LIBCURSES): New variable.
52414 * genmk.rb (Script::rule): Set the executable bits.
52416 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52417 name of the PC partition map is "pc_partition_map" but not "pc".
52419 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52421 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52422 (modules): Likewise.
52423 (usage): Added descriptions for --modules and --grub-probefs.
52424 Handle --modules and --grub-probefs. Save the arguments in MODULES
52425 and GRUB_PROBEFS, respectively.
52426 Auto-detect a filesystem module against GRUBDIR. If the result is
52427 empty and modules are not specified explicitly, abort the
52428 installation. Add the result to MODULES.
52430 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52431 disk/powerpc/ieee1275/ofdisk.c,
52432 include/grub/powerpc/ieee1275/init.h and
52433 term/powerpc/ieee1275/ofconsole.c.
52434 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52435 term/ieee1275/ofconsole.c.
52437 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52439 * COPYING: Upgraded to the latest version. Only the address of the
52440 FSF office has changed.
52442 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52444 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52445 kern/ieee1275.c with kern/ieee1275/of.c.
52447 * kern/ieee1275.c: Moved to ...
52448 * kern/ieee1275/of.c: ... here.
52450 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52452 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52455 * config.guess: Updated to the latest version from gnulib.
52456 * config.sub: Likewise.
52457 * install.sh: Likewise.
52458 * mkinstalldirs: Likewise.
52460 * include/grub/console.h: Removed. This file is arch-specific. Do
52461 not put this in include/grub.
52463 * include/grub/i386/pc/console.h: Resurrected.
52465 * util/console.c: Include grub/machine/console.h instead of
52467 * util/grub-emu.c: Likewise.
52469 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52471 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52474 From Vincent Pelletier <subdino2004@yahoo.fr>
52475 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52476 Redefined to use grub_getwh.
52477 (grub_term): New member named getwh.
52478 (grub_getwh): New prototype.
52479 * kern/term.c (grub_getwh): New function.
52480 * term/i386/pc/console.c (grub_console_getwh): New function.
52481 (grub_console_term): New member `getwh'.
52482 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52483 (grub_vga_term): New member `getwh'.
52484 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52486 (grub_ofconsole_getw): New function.
52487 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52488 (grub_ofconsole_term): New field named getwh and new initial
52491 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52493 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52494 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52495 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52496 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52497 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52498 of <grub/machine/ieee1275.h>.
52499 * commands/ieee1275/reboot.c: Likewise.
52500 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52501 * kern/ieee1275.c: ... to here. All users updated. Change all
52502 parameter structs to use new type `grub_ieee1275_cell_t'.
52503 * term/powerpc/ieee1275/ofconsole.c: Move ...
52504 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52505 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52506 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52507 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52509 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52510 Remove unused prototypes. All users updated.
52511 * include/grub/powerpc/ieee1275/console.h: Removed.
52512 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52513 `grub_ieee1275_cell_t'.
52514 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52515 Cast comparisons with -1 to the correct type.
52516 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52517 type to match `grub_ieee1275_entry_fn'.
52519 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52521 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52523 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52524 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52526 (grub_probefs_SOURCES): New variable.
52528 * util/i386/pc/grub-probefs.c: New file.
52530 * util/i386/pc/grub-setup.c (main): Call
52531 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52532 grub_hfs_init and grub_jfs_init to initialize the system. Call
52533 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52534 grub_pc_partition_map_fini to finish the system.
52536 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52538 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52540 (grub_multiboot_load_elf32): Likewise.
52541 (grub_multiboot_is_elf64): Likewise.
52542 (grub_multiboot_load_elf64): Likewise.
52543 (grub_multiboot_load_elf): Likewise.
52544 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52545 an ELF32 or ELF64 file.
52546 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52548 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52549 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52550 NULL before calling FS->LABEL.
52551 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52552 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52553 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52554 before calling FS->LABEL.
52556 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52558 * util/i386/pc/grub-install.in (datadir): New variable.
52560 (pkgdatadir): New variable.
52561 (pkglibdir): Removed.
52563 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52565 * DISTLIST: Added util/i386/pc/grub-install.in.
52567 * util/i386/pc/grub-install.in: New file.
52569 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52570 (grub_install_SOURCES): Likewise.
52572 * genmk.rb: Added support for scripts.
52573 (Script): New class.
52574 (scripts): New variable.
52576 * Makefile.in (install-local): Install sbin_SCRIPTS by
52578 (uninstall): Remove sbin_SCRIPTS.
52580 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52581 device, try to get a GRUB device by
52582 grub_util_biosdisk_get_grub_dev.
52585 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52586 description for --device-map.
52588 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52590 Change the semantics of variable hooks. They now return strings
52591 instead of error values.
52593 * util/i386/pc/grub-setup.c: Include grub/env.h.
52594 (setup): Use grub_device_set_root instead of grub_env_set.
52596 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52597 grub_env_get instead of grub_device_set_root and
52598 grub_device_get_root, respectively.
52600 * kern/main.c (grub_env_write_root): New function.
52601 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52602 grub_env_set instead of grub_device_set_root.
52604 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52606 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52607 rather than calling ENV->WRITE_HOOK afterwards.
52608 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52609 passing a pointer of a pointer.
52610 (grub_register_variable_hook): Change the types of "read_hook" and
52611 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52613 Allocate the default empty string on the heap, because this string
52614 may be freed later.
52616 * kern/device.c: Include grub/env.h.
52617 (grub_device_set_root): Removed.
52618 (grub_device_get_root): Likewise.
52619 (grub_device_open): Use grub_env_get instead of
52620 grub_device_get_root.
52622 * include/grub/env.h (grub_env_read_hook_t): New type.
52623 (grub_env_write_hook_t): Likewise.
52624 (grub_env_var): Change the types of "read_hook" and "write_hook"
52625 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52626 (grub_register_variable_hook): Likewise.
52628 * include/grub/device.h (grub_device_set_root): Removed.
52629 (grub_device_set_root): Likewise.
52631 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52632 make sure that DIRNAME terminates with '/', so that
52633 grub_fat_find_dir will fail if PATH is not a directory.
52635 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52637 Use the qualifier auto for print_files and print_files_long.
52638 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52640 Put a newline only if there is no error.
52641 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52644 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52646 * kern/partition.c (grub_partition_probe): Initialize PART to
52647 NULL. Otherwise, when no partition map is registered, this returns
52650 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52652 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52653 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52656 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52658 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52659 information on each device, if it does not have partitions. Print
52660 "Device" instead of "Disk", because this function is not specific
52663 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52664 static to ensure that it is put on the memory rather than a
52667 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52669 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52670 (grub_cat_init): Likewise.
52671 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52672 (options): Likewise.
52673 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52674 (grub_configfile_init): Likewise.
52675 * font/manager.c (GRUB_MOD_INIT): Likewise.
52676 * commands/help.c (GRUB_MOD_INIT): Likewise.
52677 (grub_help_init): Likewise.
52678 * normal/command.c (grub_command_init): Likewise.
52679 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52680 * disk/loopback.c (grub_loop_init): Likewise.
52681 (GRUB_MOD_INIT): Likewise.
52682 * commands/ls.c (grub_ls_init): Likewise.
52683 (GRUB_MOD_INIT): Likewise.
52684 (options): Likewise.
52685 * commands/boot.c (grub_boot_init): Likewise.
52686 (GRUB_MOD_INIT): Likewise.
52687 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52688 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52689 (GRUB_MOD_INIT): Likewise.
52690 * commands/cmp.c (grub_cmp_init): Likewise.
52691 (GRUB_MOD_INIT): Likewise.
52693 * normal/arg.c: Use <> instead of "" to include header files.
52694 (SHORT_ARG_HELP): New macro.
52695 (SHORT_ARG_USAGE): Likewise.
52696 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52697 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52699 (find_short): Check if C is 'h' or 'u' explicitly.
52700 (grub_arg_show_help): Use space characters instead of tabs. Treat
52701 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52702 are shown with --help and --usage only if they are not used for
52703 the command itself.
52704 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52707 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52708 const into "longarg". Change the type of "shortarg" to int.
52710 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52712 * boot/i386/pc/boot.S (boot_drive_check): New label.
52714 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52717 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52718 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52720 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52722 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52723 When turning off Gate A20, skip the check and return immediately,
52724 because this is not fatal usually.
52726 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52728 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52729 be 0x7C00 instead of 0x8000.
52731 * boot/i386/pc/pxeboot.S: Rewritten.
52733 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52735 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52738 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52740 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52741 robustness. This routine now supports a BIOS call and System
52742 Control Port A to modify the gate A20.
52744 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52745 Increased to 0x440.
52747 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52749 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52750 device path and resulting ihandle.
52751 (grub_ofdisk_close): dprintf the ihandle being closed.
52752 (grub_ofdisk_read): dprintf function parameters.
52753 * kern/mm.c (grub_mm_init_region): Likewise.
52754 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52755 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52756 size, and boot arguments.
52757 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52758 before loading into memory.
52759 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52760 before loading into memory.
52762 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52764 * kern/mm.c: Added much documentation.
52765 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52766 8, set to 5 instead of 8.
52768 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52770 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52772 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52773 (grub_mkdevicemap_SOURCES): New variable.
52775 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52776 lib/device.c of GRUB Legacy.
52778 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52780 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52781 instead of PATH is NULL.
52783 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52785 * commands/cmp.c (BUFFER_SIZE): New macro.
52786 (grub_cmd_cmp): Close the right file at the right time. Compare
52787 only data just read. Don't report files of different size as
52788 identical. Dynamically allocate buffers. Move variable
52789 declarations at the beginning of function.
52791 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52793 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52796 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52798 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52799 when backspace is pressed at beginning of line.
52801 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52803 * DISTLIST: Added genfslist.sh.
52805 * normal/main.c (fs_module_list): New variable.
52806 (autoload_fs_module): New function.
52807 (read_fs_list): Likewise.
52808 (grub_normal_execute): Call read_fs_list.
52810 * kern/fs.c (grub_fs_autoload_hook): New variable.
52811 (grub_fs_probe): Added support for auto-loading.
52813 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52814 (grub_fs_module_list_t): New type.
52816 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52817 (grub_fs_autoload_hook): New prototype.
52819 * genfslist.sh: New file.
52821 * genmk.rb: Added a rule to generate a filesystem list.
52823 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52825 * configure.ac: Fix the test for cross-compiling.
52827 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52828 define GRUB_UTIL anymore.
52830 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52831 so this function works on other systems than just big endian.
52832 (load_modules): Likewise.
52833 (add_segments): Likewise.
52835 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52837 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52838 contains `l' modifier, get a long from va_arg().
52840 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52842 * kern/mm.c (grub_free): If the next free block which is being
52843 merged is the first free block, set the first block to the block
52845 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52847 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52849 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52850 `grub_ieee1275_chosen'.
52852 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52854 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52855 (grub_ieee1275_chosen): New variable.
52856 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52858 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52859 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52860 Rename first argument to `phandle' for consistency.
52861 (grub_ieee1275_get_property_length): Likewise.
52862 (grub_ieee1275_next_property): Likewise. Change type of first argument
52863 to grub_ieee1275_phandle_t.
52864 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52865 Move export next to declaration.
52866 (grub_ieee1275_chosen): New variable.
52867 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52868 Correct cosmetic typo.
52869 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52870 `grub_ieee1275_chosen'.
52871 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52872 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52873 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52874 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52875 `grub_ieee1275_chosen'.
52877 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52879 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52881 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52882 /chosen/bootargs as "variable=value" pairs.
52884 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52886 * include/grub/misc.h (grub_dprintf): New macro.
52887 (grub_real_dprintf): New prototype.
52888 (grub_strword): Likewise.
52889 (grub_iswordseparator): Likewise.
52890 * kern/misc.c (grub_real_dprintf): New function.
52891 (grub_strword): Likewise.
52892 (grub_iswordseparator): Likewise.
52894 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52896 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52897 (roundup): Remove macro.
52898 (grub_ieee1275_flags): Make static.
52899 (grub_ieee1275_realmode): Remove.
52900 (grub_ieee1275_test_flag): New function.
52901 (grub_ieee1275_set_flag): Likewise.
52902 (find_options): Rename to `grub_ieee1275_find_options'; update
52903 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52904 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52905 (cmain): New prototype.
52906 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52907 `grub_ieee1275_flags' directly.
52908 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52909 machine/biosdisk.h.
52910 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52911 Don't include grub/machine/init.h.
52912 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52913 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52915 (grub_ieee1275_realmode): Likewise.
52916 (grub_ieee1275_flag): New enum.
52917 (grub_ieee1275_test_flag): New prototype.
52918 (grub_ieee1275_set_flag): New prototype.
52919 * include/grub/powerpc/ieee1275/init.h: Remove file.
52920 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52921 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52922 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52923 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52925 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52926 `grub_ieee1275_test_flag'.
52927 (grub_ieee1275_encode_devname): Likewise.
52929 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52931 * include/grub/powerpc/ieee1275/ieee1275.h
52932 (grub_ieee1275_encode_devname): New prototype.
52933 (grub_ieee1275_get_filename): Likewise.
52934 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52936 (grub_set_prefix): Likewise.
52937 (grub_machine_init): Call grub_set_prefix.
52938 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52939 (grub_parse_type): New enum.
52940 (grub_ieee1275_get_devargs): New function.
52941 (grub_ieee1275_get_devname): Likewise.
52942 (grub_ieee1275_parse_args): Likewise.
52943 (grub_ieee1275_get_filename): Likewise.
52944 (grub_ieee1275_encode_devname): Likewise.
52946 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52948 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52949 `grub_loader_unset'.
52951 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52953 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52954 instead of grub_ieee1275_interpret.
52955 (grub_halt_init): New function.
52956 (grub_halt_fini): Likewise.
52957 (GRUB_MOD_INIT): Correct message grammar.
52958 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52959 instead of grub_ieee1275_interpret.
52960 (grub_reboot_init): New function.
52961 (grub_reboot_fini): Likewise.
52962 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52963 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52964 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52965 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52966 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52968 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52970 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52972 (grub_halt): Likewise.
52973 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52974 (cmain): Remove __attribute__((unused)).
52975 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52976 (grub_heap_len): Likewise.
52977 (grub_machine_fini): New function.
52978 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52979 (grub_halt): Likewise.
52980 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52982 * util/powerpc/ieee1275/misc.c: New file.
52984 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52986 * DISTLIST: New file.
52987 * gendistlist.sh: Likewise.
52989 * Makefile.in (COMMON_DISTFILES): Removed.
52990 (BOOT_DISTFILES): Likewise.
52991 (CONF_DISTFILES): Likewise.
52992 (DISK_DISTFILES): Likewise.
52993 (FS_DISTFILES): Likewise.
52994 (INCLUDE_DISTFILES): Likewise.
52995 (KERN_DISTFILES): Likewise.
52996 (LOADER_DISTFILES): Likewise.
52997 (TERM_DISTFILES): Likewise.
52998 (UTIL_DISTFILES): Likewise.
52999 (DISTFILES): Likewise.
53000 (uninstall): Uninstall files in $(pkgdata_DATA).
53001 (DISTLIST): New target.
53002 (distdir): Use the contents of the file DISTLIST to get a list of
53005 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53007 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53008 descriptor. This is ported from GRUB Legacy.
53010 * gencmdlist.sh: Added an extra semicolon to make it work with
53011 old sed versions. Reported by Robert Bihlmeyer
53012 <robbe@orcus.priv.at>.
53014 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53016 Automatic loading of commands is supported.
53018 * normal/main.c (read_command_list): New function.
53019 (grub_normal_execute): Call read_command_list.
53021 * normal/command.c (grub_register_command): Return zero or CMD.
53022 Allocate CMD->NAME from the heap.
53023 Initialize CMD->MODULE_NAME to zero.
53024 Find the same name as well. If the same command is found and it is
53025 a dummy command, overwrite members. If it is not a dummy command,
53027 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53028 (grub_command_find): If a dummy command is found, load a module
53029 and retry to find a command only once.
53031 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53032 make sure that each command is loaded.
53034 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53036 (struct grub_command): Remove const from the member `name'.
53037 Add a new member `module_name'.
53038 (grub_register_command): Return grub_command_t.
53040 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53041 sure that each command is loaded.
53043 * genmk.rb (PModule::rule): Specify a module name without the
53044 suffix ".mod" to gencmdlist.sh.
53046 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53048 * gencmdlist.sh: New file.
53050 * genmk.rb (PModule::rule): Generate a rule for a command list.
53052 Generate command.lst from $(COMMANDFILES).
53054 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53055 (DATA): Added $(pkgdata_DATA).
53056 (install-local): Install files in $(pkgdata_DATA).
53058 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53060 * term/i386/pc/vga.c (debug_command): Removed.
53061 (GRUB_MOD_INIT): Do not register the command "debug".
53063 From Hollis Blanchard:
53064 * commands/configfile.c: New file.
53065 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53066 commands/configfile.c.
53067 (pkgdata_MODULES): Added configfile.mod.
53068 (configfile_mod_SOURCES): New variable.
53069 (configfile_mod_CFLAGS): Likewise.
53070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53071 commands/configfile.c.
53072 (pkgdata_MODULES): Added configfile.mod.
53073 (configfile_mod_SOURCES): New variable.
53074 (configfile_mod_CFLAGS): Likewise.
53075 * util/grub-emu.c (main): Call grub_configfile_init and
53076 grub_configfile_fini.
53077 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53079 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53081 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53083 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53086 * commands/help.c (grub_cmd_help): Do not print newlines after
53087 the last command in print_command_help.
53089 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53091 * commands/default.h: New file.
53092 * commands/timeout.h: Likewise.
53093 * normal/context.c: Likewise.
53095 * util/misc.c: Do not include sys/times.h.
53096 Include sys/time.h and grub/machine/time.h.
53097 (grub_get_rtc): Rewritten with gettimeofday.
53099 * util/grub-emu.c (main): Call grub_default_init and
53100 grub_timeout_init before grub_normal_init, and call
53101 grub_timeout_fini and grub_default_fini after grub_main.
53103 * util/console.c (grub_ncurses_checkkey): Return the read
53106 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53109 * normal/main.c (read_config_file): Push MENU. If this fails,
53110 print an error and wait for a user input.
53111 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53112 If a menu is empty or an error occurs, pop MENU.
53113 (grub_normal_execute): Pop and free MENU after grub_menu_run
53116 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53118 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53120 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53122 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53124 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53127 * include/grub/normal.h (struct grub_menu_list): New struct.
53128 (grub_menu_list_t): New type.
53129 (struct grub_context): New struct.
53130 (grub_context_t): New type.
53131 (grub_register_command): Got rid of EXPORT_FUNC.
53132 (grub_unregister_command): Likewise.
53133 (grub_context_get): New prototype.
53134 (grub_context_get_current_menu): Likewise.
53135 (grub_context_push_menu): Likewise.
53136 (grub_context_pop_menu): Likewise.
53137 [GRUB_UTIL] (grub_default_init): Likewise.
53138 [GRUB_UTIL] (grub_default_fini): Likewise.
53139 [GRUB_UTIL] (grub_timeout_init): Likewise.
53140 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53142 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53143 commands/timeout.c and normal/context.c.
53144 (pkgdata_MODULES): Added default.mod and timeout.mod.
53145 (normal_mod_SOURCES): Added normal/context.c.
53146 (default_mod_SOURCES): New variable.
53147 (default_mod_CFLAGS): Likewise.
53148 (timeout_mod_SOURCES): Likewise.
53149 (timeout_mod_CFLAGS): Likewise.
53150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53152 (pkgdata_MODULES): Added default.mod and timeout.mod.
53153 (normal_mod_SOURCES): Added normal/context.c.
53154 (default_mod_SOURCES): New variable.
53155 (default_mod_CFLAGS): Likewise.
53156 (timeout_mod_SOURCES): Likewise.
53157 (timeout_mod_CFLAGS): Likewise.
53159 * Makefile.in (all-local): Added $(MKFILES).
53161 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53163 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53164 (grub_emu_SOURCES): Likewise.
53165 (pkgdata_MODULES): Add `sun.mod'.
53166 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53169 (pkgdata_MODULES): Add `sun.mod'.
53170 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53171 * include/grub/partition.h (grub_sun_partition_map_init): New
53173 (grub_sun_partition_map_fini): Likewise.
53174 * partmap/sun.c: New file.
53175 * util/grub-emu.c (main): Initialize and de-initialize the sun
53176 partitionmap support.
53178 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53180 This implements an Emacs-like menu entry editor.
53182 * normal/menu_entry.c: New file.
53184 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53185 characters to ASCII.
53186 (saved_char): New variable.
53187 (grub_ncurses_checkkey): Rewritten completely.
53188 (grub_ncurses_getkey): Likewise.
53189 (grub_ncurses_init): Call raw instead of cbreak.
53191 * normal/menu.c (print_entry): Do not put a space.
53192 (init_page): Renamed to ...
53193 (grub_menu_init_page): ... this. All callers changed.
53194 (edit_menu_entry): Removed.
53195 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53197 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53199 * kern/misc.c (grub_vprintf): Call grub_refresh.
53201 * normal/menu.c (DISP_LEFT): Renamed to ...
53202 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53203 * normal/menu.c (DISP_UP): Renamed to ...
53204 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53205 * normal/menu.c (DISP_RIGHT): Renamed to ...
53206 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53207 * normal/menu.c (DISP_DOWN): Renamed to ...
53208 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53209 * normal/menu.c (DISP_HLINE): Renamed to ...
53210 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53211 * normal/menu.c (DISP_VLINE): Renamed to ...
53212 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53213 * normal/menu.c (DISP_UL): Renamed to ...
53214 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53215 * normal/menu.c (DISP_UR): Renamed to ...
53216 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53217 * normal/menu.c (DISP_LL): Renamed to ...
53218 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53219 * normal/menu.c (DISP_LR): Renamed to ...
53220 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53221 * normal/menu.c (TERM_WIDTH): Renamed to ...
53222 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53223 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53224 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53225 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53226 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53227 * normal/menu.c (TERM_MARGIN): Renamed to ...
53228 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53229 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53230 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53231 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53232 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53233 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53234 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53235 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53236 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53237 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53238 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53239 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53240 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53241 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53242 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53243 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53244 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53245 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53246 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53247 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53248 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53249 All callers changed.
53251 * include/grub/normal.h: New prototype.
53253 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53254 normal/menu_entry.c.
53255 (normal_mod_SOURCES): Likewise.
53256 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53257 (normal_mod_SOURCES): Likewise.
53259 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53261 * include/grub/normal.h (grub_halt_init): New prototype.
53262 (grub_halt_fini): Likewise.
53263 (grub_reboot_init): Likewise.
53264 (grub_reboot_fini): Likewise.
53266 * util/grub-emu.c: Include signal.h.
53267 (main_env): New global variable.
53268 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53270 (grub_machine_fini): New function.
53271 (main): Call grub_halt_init and grub_reboot_init before
53272 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53273 Call setjmp with MAIN_ENV to go back afterwards.
53274 Call grub_machine_fini right before return.
53276 * include/grub/util/misc.h: Include setjmp.h.
53277 (main_env): New prototype.
53279 * include/grub/kernel.h (grub_machine_fini): New prototype.
53280 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53281 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53283 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53284 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53285 * term/i386/pc/console.c (grub_console_fini): Likewise.
53287 * util/i386/pc/misc.c: New file.
53289 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53290 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53291 commands/i386/pc/reboot.c.
53293 2005-02-14 Guillem Jover <guillem@hadrons.org>
53295 * include/grub/dl.h (grub_dl_check_header): New prototype.
53296 (grub_arch_dl_check_header): Change return type to grub_err_t,
53297 remove size parameter and export function. Update all callers.
53298 * kern/dl.c (grub_dl_check_header): New function.
53299 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53300 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53301 are inside the core.
53302 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53303 independent ELF header checks.
53304 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53305 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53306 `grub_dl_check_header' instead of explicit checks. Check for the
53308 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53309 `grub_dl_check_header' instead of explicit checks. Remove arch
53310 specific ELF header checks.
53312 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53315 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53317 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53318 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53320 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53322 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53323 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53324 (part_map_iterate): Clear `grub_errno' and return 0 if
53325 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53326 * partmap/amiga.c (amiga_partition_map_iterate): Return
53327 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53328 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53330 2005-02-01 Guillem Jover <guillem@hadrons.org>
53332 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53335 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53337 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53339 (grub_rescue_cmd_linux): New prototype.
53340 (grub_rescue_cmd_initrd): Likewise.
53341 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53343 (grub_linux_release_mem): Release the memory for the initrd.
53344 (grub_load_linux): Renamed from this...
53345 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53346 Changed `entry' not to be static. Loop over memory regions to
53347 find another one when the default fails.
53348 (grub_rescue_cmd_initrd): New function.
53349 (grub_linux_init): Remove function.
53350 (grub_linux_fini): Likewise.
53351 (GRUB_MOD_INIT): Register `initrd'.
53352 (GRUB_MOD_FINI): Unregister `initrd'.
53353 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53355 (grub_linux_normal_fini): Likewise.
53356 (GRUB_MOD_INIT): Register `initrd'.
53357 (GRUB_MOD_FINI): Unregister `initrd'.
53359 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53361 * commands/help.c: New file.
53362 * normal/arg.c (show_help): Renamed to...
53363 (grub_arg_show_help): ... this.
53364 * commands/i386/pc/halt.c: New file.
53365 * commands/i386/pc/reboot.c: Likewise.
53366 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53367 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53368 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53369 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53371 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53373 (pkgdata_MODULES): Add `help.mod'.
53374 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53375 * grub/i386/pc/init.h (grub_reboot): New prototype.
53376 (grub_halt): Likewise.
53377 * include/grub/normal.h (grub_arg_show_help): New prototype.
53378 (grub_help_init): Likewise.
53379 (grub_help_fini): Likewise.
53380 * util/grub-emu.c (main): Initialize and deinitialize the help
53383 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53385 * normal/command.c (grub_command_init): Fixed the description of
53386 the `set' and `unset' commands.
53388 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53390 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53392 * commands/ieee1275/halt.c: New file.
53393 * commands/ieee1275/reboot.c: Likewise.
53394 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53395 `__attribute__ ((unused))'. Some GCS related fixed.
53396 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53397 (grub_suspend_fini): Likewise.
53398 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53400 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53401 (halt_mod_CFLAGS): New variables.
53402 * include/grub/powerpc/ieee1275/ieee1275.h
53403 (grub_ieee1275_interpret): New prototype.
53405 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53407 * include/grub/misc.h (memmove): New prototype.
53408 (memcpy): Likewise.
53410 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53412 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53413 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53415 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53417 * kern/misc.c (grub_strndup): Function rewritten.
53419 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53421 * normal/menu.c (TERM_WIDTH): Macro redefined.
53422 (TERM_TOP_BORDER_Y): Likewise.
53423 (draw_border): Replaced while-loop by a for-loop. Make the number
53424 of lines consistent with the number of lines displayed in
53425 print_entries. Added a margin below the rectangle.
53426 (print_entry): Make the entry fit in the rectangle.
53427 (print_entries): Display the scroll arrows next to the right
53430 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53432 * fs/minix.c (grub_minix_find_file): Reserve more space for
53433 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53434 `grub_strncpy' to copy `path' into it.
53436 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53438 Add the loopback device, a device via which files can be accessed
53441 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53442 (pkgdata_MODULES): Add loopback.mod.
53443 (loopback_mod_SOURCES): New variable.
53444 (loopback_mod_CFLAGS): Likewise.
53445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53447 (pkgdata_MODULES): Add loopback.mod.
53448 (loopback_mod_SOURCES): New variable.
53449 (loopback_mod_CFLAGS): Likewise.
53450 * disk/loopback.c: new file.
53451 * include/grub/normal.h (grub_loop_init): New prototype.
53452 (grub_loop_fini): New prototype.
53453 * util/grub-emu.c (main): Initialize and de-initialize loopback
53455 * include/grub/disk.h (grub_disk_dev_id): Add
53456 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53458 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53460 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53462 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53463 (suspend_mod_SOURCES): New variable.
53464 (suspend_mod_CFLAGS): Likewise.
53465 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53467 * commands/ieee1275/suspend.c: New file.
53469 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53471 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53472 ((unused))' to `__attribute__ ((used))'.
53473 (GRUB_MOD_FINI): Likewise.
53474 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53475 * genmk.rb (PModule): Assign space to common symbols when linking
53478 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53480 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53481 `unsigned' arguments to `grub_size_t'.
53482 (grub_malloc): Likewise.
53483 (grub_realloc): Likewise.
53484 (grub_memalign): Likewise.
53485 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53486 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53487 * util/misc.c (grub_malloc): Likewise.
53488 (grub_realloc): Likewise.
53489 * kern/mm.c (get_header_from_pointer): Change the casts to
53490 `unsigned' into a cast to `grub_size_t'.
53492 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53493 point to `currnode' when `currnode' is changed.
53495 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53496 Schottelius <nico-linux@schottelius.org>.
53498 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53500 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53501 (note_path): Remove variable.
53502 (GRUB_IEEE1275_NOTE_NAME): New macro.
53503 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53504 (grub_ieee1275_note_hdr): New structure.
53505 (grub_ieee1275_note_desc): Likewise.
53506 (grub_ieee1275_note): Likewise.
53507 (load_note): Remove `dir' argument. All callers updated. Remove
53508 `note_img' and `path'. Do not load a file from `note_path'.
53509 Initialize a struct grub_ieee1275_note and write that to `out'.
53510 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53512 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53514 * util/misc.c (grub_util_read_image): Revert last change. It
53515 called `grub_util_read_at', which seeks from the beginning of the
53518 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53520 * TODO: Add note about endianness in grub-mkimage.
53521 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53523 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53524 (grub_mkimage_SOURCES): New target.
53525 * include/grub/kernel.h (grub_start_addr): Remove variable.
53526 (grub_end_addr): Likewise.
53527 (grub_total_module_size): Likewise.
53528 (grub_kernel_image_size): Likewise.
53529 (GRUB_MODULE_MAGIC): New constant.
53530 (grub_module_info): New structure.
53531 (grub_arch_modules_addr): New prototype.
53532 (grub_get_end_addr): Remove prototype.
53533 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53534 * include/grub/powerpc/ieee1275/kernel.h: New file.
53535 * include/grub/util/misc.h (grub_util_get_fp_size): New
53537 (grub_util_read_at): Likewise.
53538 (grub_util_write_image_at): Likewise.
53539 * kern/main.c (grub_get_end_addr): Remove function.
53540 (grub_load_modules): Call grub_arch_modules_addr instead of using
53541 grub_end_addr. Look for a grub_module_info struct in memory. Use
53542 the grub_module_info fields instead of calling grub_get_end_addr
53543 as loop conditions. Move grub_add_unused_region code here.
53544 (grub_add_unused_region): Remove function.
53545 * kern/i386/pc/init.c: Include grub/cache.h.
53546 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53547 one call to add_mem_region.
53548 (grub_arch_modules_addr): New function.
53549 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53550 (grub_total_module_size): Likewise.
53551 Include grub/machine/kernel.h.
53552 (grub_arch_modules_addr): New function.
53553 * util/grub-emu.c (grub_end_addr): Remove variable.
53554 (grub_total_module_size): Likewise.
53555 (grub_arch_modules_addr): New function.
53556 * util/misc.c: Include unistd.h.
53557 (grub_util_get_fp_size): New function.
53558 (grub_util_read_at): Likewise.
53559 (grub_util_write_image_at): Likewise.
53560 (grub_util_read_image): Call grub_util_read_at.
53561 (grub_util_write_image): Call grub_util_write_image_at.
53562 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53563 additional memory in kernel_img for a struct grub_module_info.
53564 Fill in that grub_module_info.
53565 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53567 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53569 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53571 * include/grub/powerpc/ieee1275/ieee1275.h
53572 (grub_ieee1275_milliseconds): New prototype.
53573 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53575 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53576 grub_ieee1275_milliseconds.
53578 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53580 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53582 (find_options): New function.
53583 (cmain): Call find_options.
53584 * include/grub/powerpc/ieee1275/ieee1275.h
53585 (grub_ieee1275_realmode): New extern variable.
53586 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53587 grub_map if grub_ieee1275_realmode is false.
53589 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53591 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53592 lines are inserted and make it work like readline. Reported by
53593 Vincent Pelletier <subdino2004@yahoo.fr>.
53595 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53597 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53599 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53600 `kern/powerpc/cache.S'.
53602 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53604 * genmk.rb: Handle the `Program' class in the main loop. Written
53605 by Johan Rydberg <jrydberg@gnu.org>.
53606 (Program): New class.
53607 (programs): New variable.
53608 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53609 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53610 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53611 (help_arch): Function removed.
53612 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53613 `powerpc/libgcc.h' and `loader.h'.
53614 (pkgdata_PROGRAMS): New variable.
53615 (sbin_UTILITIES): Variable removed.
53616 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53617 (grubof_SOURCES): Variable re-defined so it only includes the
53618 core functionality.
53619 (grubof_CFLAGS): Remove `-DGRUBOF'.
53620 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53621 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53622 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53623 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53624 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53625 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53626 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53627 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53628 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53629 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53630 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53631 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53632 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53633 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53634 (pc_mod_CFLAGS): New variables.
53635 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53636 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53637 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53638 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53640 * include/grub/i386/pc/init.h (grub_os_area_addr)
53641 (rub_os_area_size): ... to here.
53642 * include/grub/powerpc/ieee1275/ieee1275.h
53643 (grub_ieee1275_entry_fn): Export symbol.
53644 * include/grub/powerpc/ieee1275/init.h: New file.
53645 * include/grub/powerpc/libgcc.h: Likewise.
53646 * include/grub/cache.h: Likewise.
53647 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53648 <hollis@penguinppc.org>.
53649 * kern/dl.c: Include <grub/cache.h>.
53650 (grub_dl_flush_cache): New function.
53651 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53653 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53654 (grub_console_init): Removed prototypes.
53655 (grub_machine_init): Don't initialize the modules anymore.
53656 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53658 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53659 Macro undef removed.
53660 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53661 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53662 relocation `R_PPC_REL32'. Return an error when the relocation is
53664 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53665 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53666 * util/misc.c (grub_arch_sync_caches): Likewise.
53668 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53670 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53671 `symlist.c', add `grubof_symlist.c'.
53672 (symlist.c): Variable removed.
53673 (grubof_HEADERS): Variable added.
53674 (grubof_symlist.c): New target.
53675 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53676 `kernel_img_HEADERS'.
53677 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53678 * kern/powerpc/dl.c: New file.
53679 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53681 (grub_arch_dl_relocate_symbols): Likewise.
53682 (grub_register_exported_symbols): Likewise.
53684 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53686 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53687 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53688 to fail instead. Reported by Vincent Pelletier
53689 <subdino2004@yahoo.fr>.
53691 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53692 it is not allocated. Reported by Vincent Pelletier
53693 <subdino2004@yahoo.fr>.
53695 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53696 output so the output looks better.
53698 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53700 Modulize the partition map support and add support for the amiga
53703 * commands/ls.c: Include <grub/partition.h> instead of
53704 <grub/machine/partition.h>.
53705 * kern/disk.c: Likewise.
53706 * kern/rescue.c: Likewise.
53707 * loader/i386/pc/chainloader.c: Likewise.
53708 * normal/cmdline.c: Likewise.
53709 * kern/powerpc/ieee1275/init.c: Likewise.
53710 (grub_machine_init): Call `grub_pc_partition_map_init',
53711 `grub_amiga_partition_map_init' and
53712 `grub_apple_partition_map_init'.
53713 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53714 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53715 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53716 `partition.h' and `pc_partition.h'.
53717 (grub_setup_SOURCES): Remove
53718 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53719 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53720 (grub_emu_SOURCES): Likewise.
53721 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53722 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53723 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53725 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53726 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53727 (grubof_SOURCES): Likewise.
53728 * disk/i386/pc/partition.c: File removed.
53729 * disk/powerpc/ieee1275/partition.c: Likewise.
53730 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53731 * include/grub/i386/pc/partition.h: Likewise.
53732 * kern/partition.c: New file.
53733 * partmap/amiga.c: Likewise.
53734 * partmap/apple.c: Likewise.
53735 * partmap/pc.c: Likewise.
53736 * include/grub/partition.h: Likewise..
53737 * include/grub/pc_partition.h: Likewise.
53738 * util/grub-emu.c: Include <grub/partition.h> instead of
53739 <grub/machine/partition.h>.
53740 (main): Call `grub_pc_partition_map_init',
53741 `grub_amiga_partition_map_init' and
53742 `grub_apple_partition_map_init' and deinitialize afterwards.
53743 * util/i386/pc/biosdisk.c: Include `#include
53744 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53745 `<grub/machine/partition.h>'.
53746 * util/i386/pc/grub-setup.c: Likewise.
53747 * util/i386/pc/biosdisk.c: Likewise.
53748 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53749 partition information in case of a PC partition.
53750 * util/i386/pc/grub-setup.c: Include `#include
53751 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53752 `<grub/machine/partition.h>'.
53753 (setup): Only access the PC specific partition information in case
53756 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53758 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53759 (grub_longjmp): Likewise.
53760 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53762 * normal/powerpc/setjmp.S: New file.
53763 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53764 `normal/powerpc/setjmp.S'.
53765 (grubof_CFLAGS): Add `-DGRUBOF'.
53766 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53767 [GRUB_UTIL && !GRUBOF].
53769 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53771 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53772 property named `name'. Correctly handle the error returned by
53773 `grub_ieee1275_finddevice' if a device can not be opened.
53775 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53777 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53778 `actual' for negativity.
53779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53782 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53784 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53785 (PAGE_OFFSET): New macro.
53786 (CRTC_ADDR_PORT): Likewise.
53787 (CRTC_DATA_PORT): Likewise.
53788 (START_ADDR_HIGH_REGISTER): Likewise.
53789 (START_ADDR_LOW_REGISTER): Likewise.
53790 (GRAPHICS_ADDR_PORT): Likewise.
53791 (GRAPHICS_DATA_PORT): Likewise.
53792 (READ_MAP_REGISTER): Likewise.
53793 (INPUT_STATUS1_REGISTER): Likewise.
53794 (INPUT_STATUS1_VERTR_BIT): Likewise.
53795 (page): New variable.
53796 (wait_vretrace): New function.
53797 (set_read_map): Likewise.
53798 (set_start_address): Likewise.
53799 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53801 (check_vga_mem): Take the page into account.
53802 (write_char): Likewise.
53803 (write_cursor): Likewise.
53804 (scroll_up): Likewise. Copy the page to the page that is not
53805 shown and switch between both pages.
53806 (grub_vga_putchar): Fix off by one error.
53807 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53810 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53812 Add support for iso9660 (including rockridge).
53814 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53815 (iso9660_mod_SOURCES): New variable.
53816 (iso9660_mod_CFLAGS): Likewise.
53817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53818 * include/grub/fs.h (grub_iso9660_init): New prototype.
53819 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53820 * fs/iso9660.c: New file.
53822 * include/grub/misc.h (grub_strncat): New prototype.
53823 * kern/misc.c (grub_strncat): New function.
53825 * fs/hfs.c (grub_hfs_mount): Translate the error
53826 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53827 * fs/jfs.c (grub_jfs_mount): Likewise.
53828 * fs/ufs.c (grub_ufs_mount): Likewise.
53830 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53832 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53833 which initialized BAT registers.
53834 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53835 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53837 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53838 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53840 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53841 (grub_mapclaim): Likewise.
53842 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53843 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53846 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53848 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53849 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53850 -ffreestanding and -msoft-float.
53852 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53854 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53855 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53856 set in grub_ieee1275_flags.
53858 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53860 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53862 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53863 grub_console_init first.
53864 Change the memory range used for grub_ieee1275_claim and
53865 grub_mm_init_region.
53866 Print an error message if the claim fails.
53867 Include <grub/misc.h>.
53869 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53871 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53872 Call grub_children_iterate for device nodes of type `scsi',
53874 (grub_ofdisk_open): Remove manual device alias resolution.
53875 Fix memory leak when device cannot be opened.
53876 * include/grub/powerpc/ieee1275/ieee1275.h
53877 (grub_children_iterate): New prototype.
53878 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53880 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53881 Return -1 if args.size was -1.
53883 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53885 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53886 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53887 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53888 Open Firmware's memory for it; claim memory from _start to _end.
53889 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53890 (_end): New extern.
53891 (_start): Zero BSS from __bss_start to _end.
53892 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53894 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53896 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53898 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53899 -1 if args.base was -1.
53901 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53903 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53904 escape sequence instead of a literal ^L. Also call
53905 grub_ofconsole_gotoxy.
53907 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53909 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53910 void * arguments to grub_addr_t. All callers updated. Also make
53911 the `result' argument optional.
53912 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53913 All callers updated.
53915 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53917 * commands/ls.c (grub_ls_list_files): Use the string following the
53918 initial ')', if present, as the filesystem path.
53919 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53921 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53923 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53925 Make the source code of the menu interface more readable.
53927 * normal/menu.c: Include grub/mm.h.
53928 (TERM_WIDTH): New macro.
53929 (TERM_HEIGHT): Likewise.
53930 (TERM_INFO_HEIGHT): Likewise.
53931 (TERM_MARGIN): Likewise.
53932 (TERM_SCROLL_WIDTH): Likewise.
53933 (TERM_TOP_BORDER_Y): Likewise.
53934 (TERM_LEFT_BORDER_X): Likewise.
53935 (TERM_BORDER_WIDTH): Likewise.
53936 (TERM_MESSAGE_HEIGHT): Likewise.
53937 (TERM_BORDER_HEIGHT): Likewise.
53938 (TERM_NUM_ENTRIES): Likewise.
53939 (TERM_FIRST_ENTRY_Y): Likewise.
53940 (TERM_ENTRY_WIDTH): Likewise.
53941 (TERM_CURSOR_X): Likewise.
53942 (draw_border): Use macros instead of magic numbers.
53943 (print_entry): Likewise.
53944 (print_entries): Likewise.
53945 (run_menu): Likewise. Also, handle the key 'e'.
53946 (run_menu_entry): Ignore empty command lines.
53947 (print_message): Added a new argument EDIT. If EDIT is true,
53948 print a different message.
53949 (init_page): Likewise.
53950 (edit_menu_entry): New function. Not implemented yet.
53952 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53954 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53955 can be loaded from normal mode.
53957 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53959 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53960 (multiboot_mod_CFLAGS): New variables.
53961 * loader/i386/pc/linux_normal.c: New file.
53962 * loader/i386/pc/multiboot_normal.c: Likewise.
53964 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53965 attribute `unused'.
53967 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53968 `fdiro' to read the mode information from instead of `diro'.
53970 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53971 looking up a symlink.
53973 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53975 * normal/command.c (grub_command_execute): Don't parse the
53976 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53977 flags of the command.
53979 * normal/menu.c (grub_menu_run): Fix typo.
53981 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53983 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53985 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53986 `y + 1' instead of `y - 1'.
53988 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53990 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53992 From Hollis Blanchard <hollis@penguinppc.org>:
53993 * kern/misc.c (memmove): New alias for grub_memmove.
53994 (memcmp): New alias for grub_memcmp.
53995 (memset): New alias for grub_memset.
53996 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53997 Change "int handle" to "grub_ieee1275_phandle_t handle".
53998 * include/grub/powerpc/ieee1275/ieee1275.h
53999 (grub_ieee1275_get_property): Likewise.
54001 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54003 Added normal mode command `chainloader' as module chain.mod, which
54004 depends on normal.mod and _chain.mod.
54006 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54007 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54008 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54010 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54011 but arguments parsing moved to ...
54012 (grub_chainloader_cmd): ... here. New function.
54013 * include/grub/i386/pc/chainloader.h: New file.
54014 * loader/i386/pc/chainloader_normal.c: Likewise.
54016 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54018 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54019 (grub_mkimage_LDFLAGS): Likewise.
54020 (grub_emu_SOURCES): Likewise.
54021 (kernel_img_HEADERS): Added fshelp.h.
54022 * fs/ext2.c: Include <grub/fshelp.h>.
54023 (FILETYPE_REG): New macro.
54024 (FILETYPE_INO_REG): Likewise.
54025 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54027 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54029 (grub_fshelp_node): New struct.
54030 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54032 (grub_ext2_get_file_block): Removed function.
54033 (grub_ext2_read_block): New function.
54034 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54035 This function was written.
54036 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54037 (grub_ext2_find_file): Removed function.
54038 (grub_ext2_read_symlink): New function.
54039 (grub_ext2_iterate_dir): Likewise.
54040 (grub_ext2_open): Rewritten.
54041 (grub_ext2_dir): Rewritten.
54042 * include/grub/fshelp.h: New file.
54043 * fs/fshelp.c: Likewise.
54045 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54047 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54048 (print_message): Add a missing newline.
54049 (run_menu): Added timeout support.
54050 (run_menu_entry): New local function.
54051 (grub_menu_run): Added support for booting.
54053 * kern/loader.c (grub_loader_is_loaded): New function.
54055 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54056 (grub_get_rtc): Exported.
54058 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54059 (grub_get_rtc): Exported.
54061 * include/grub/normal.h (struct grub_command_list): Remove
54062 constant from the member `command'.
54064 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54066 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54068 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54070 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54072 Add support for the JFS filesystem.
54074 * fs/jfs.c: New file.
54075 * include/grub/fs.h (grub_jfs_init): New prototype.
54076 (grub_jfs_fini): New prototype.
54077 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54078 (grub_emu_SOURCES): Likewise.
54079 (pkgdata_MODULES): Add jfs.mod.
54080 (jfs_mod_SOURCES): New variable.
54081 (jfs_mod_CFLAGS): Likewise.
54082 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54083 (grubof_SOURCES): Likewise.
54084 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54086 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54087 endian to the host endian.
54088 (grub_fat_utf16_to_utf8): Move function from there...
54089 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54090 the endianness of the source string anymore.
54091 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54093 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54095 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54096 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54097 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54098 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54100 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54101 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54102 for `node_found' and `it_dir'.
54103 (grub_hfs_dir): Add prototype for `dir_hook'.
54105 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54106 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54107 and `indir32' to silence a gcc warning.
54109 * include/grub/fs.h (grub_hfs_init): New prototype.
54110 (grub_hfs_fini): Likewise.
54113 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54115 Each disk device has its own id now. This is useful to make use
54116 of multiple disk devices.
54118 * include/grub/disk.h (grub_disk_dev_id): New enum.
54119 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54120 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54122 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54123 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54125 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54126 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54128 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54129 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54131 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54132 "id" which is used by the cache manager.
54134 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54137 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54139 * fs/hfs.c: New file.
54140 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54141 (grub_emu_SOURCES): Likewise.
54142 (pkgdata_MODULES): Add hfs.mod.
54143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54144 (grubof_SOURCES): Likewise.
54145 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54147 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54148 * kern/misc.c (grub_strncasecmp): Add function.
54150 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54152 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54155 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54156 (grub_ext2_dir): In case the directory entry type is unknown, read
54159 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54161 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54162 grub_load_linux instead of grub_rescue_cmd_linux as second
54163 argument of grub_rescue_register_command.
54165 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54167 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54169 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54171 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54172 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54173 `loader/powerpc/ieee1275/linux.c',
54174 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54175 * include/grub/powerpc/ieee1275/ieee1275.h
54176 (grub_ieee1275_release): New prototype.
54177 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54178 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54179 normal, boot, linux and linux_normal.
54180 * loader/powerpc/ieee1275/linux.c: New file.
54181 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54183 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54185 * normal/arg.c (grub_arg_parse): Correct error handling after
54186 reallocating the argumentlist (check if `argl' is not null instead
54187 of checking if `args' is not null).
54188 * kern/mm.c (grub_realloc): Return the same pointer when using the
54189 same region, instead of returning the header address.
54191 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54193 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54194 one block instead of two when looking for the initial partition.
54195 (grub_partition_probe): Initialize the local variable `p' with 0.
54196 Use base 10 for the grub_strtoul call.
54197 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54198 need for one local variable.
54199 (grub_strtoul): Don't add the new value to `num', instead of that
54202 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54204 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54205 (pxeboot_img_SOURCES): New variable.
54206 (pxeboot_img_ASFLAGS): Likewise.
54207 (pxeboot_img_LDFLAGS): Likewise.
54208 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54209 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54210 <lode_leroy@hotmail.com>.
54212 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54214 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54215 there was no input.
54217 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54219 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54220 the history buffer logic.
54222 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54224 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54225 (FILETYPE_INO_SYMLINK): New macros.
54226 (grub_ext2_find_file): Check if the node is a directory using the
54227 inode stat information instead of using the filetype in the
54228 dirent. Exclude the first character of an absolute symlink.
54229 (grub_ext2_dir): Mask out the filetype part of the mode member of
54232 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54234 Add support for UFS version 1 and 2. Add support for the minix
54235 filesystem version 1 and 2, both the variants with 14 and 30 long
54238 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54240 (grub_emu_SOURCES): Likewise.
54241 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54242 (ufs_mod_SOURCES): New variable.
54243 (ufs_mod_CFLAGS): Likewise.
54244 (minix_mod_SOURCES): Likewise.
54245 (minix_mod_CFLAGS): Likewise.
54246 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54248 (grubof_SOURCES): Likewise.
54249 * fs/ufs.c: New file.
54250 * fs/minix.c: New file.
54251 * include/grub/fs.h (grub_ufs_init): New prototype.
54252 (grub_ufs_fini): Likewise.
54253 (grub_minix_init): Likewise.
54254 (grub_minix_fini): Likewise.
54255 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54258 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54260 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54261 commands/ls.c, commands/terminal.c, commands/boot.c,
54262 commands/cmp.c and commands/cat.c.
54263 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54265 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54268 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54270 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54271 and grub_, respectively. Because the conversion is trivial and
54272 mechanical, I omit the details here. Please refer to the CVS
54273 if you need more information.
54275 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54277 * include/pupa: Renamed to ...
54278 * include/grub: ... this.
54279 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54280 * util/i386/pc/grub-mkimage.c: ... this.
54281 * util/i386/pc/pupa-setup.c: Renamed to ...
54282 * util/i386/pc/grub-setup.c: ... this.
54283 * util/pupa-emu.c: Renamed to ...
54284 * util/grub-emu.c: ... this.
54286 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54288 Add support for the newworld apple macintosh (PPC). This has been
54289 tested on the powerbook 2000 only. It only adds support for
54290 generic ieee1275 functions, console and disk support. This should
54291 be easy to port to other architectures with support for Open
54294 * configure.ac: Accept the powerpc as host_cpu. In the case of
54295 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54296 specific tests are only executed while building for the i386.
54297 Inverse test for crosscompile.
54298 * genmk.rb (Utility): Allow assembler files.
54299 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54300 * conf/powerpc-ieee1275.rmk: New file.
54301 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54302 * disk/powerpc/ieee1275/partition.c: Likewise.
54303 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54304 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54305 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54306 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54307 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54308 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54309 * include/pupa/powerpc/ieee1275/loader.h
54310 * include/pupa/powerpc/setjmp.h: Likewise.
54311 * include/pupa/powerpc/types.h: Likewise.
54312 * kern/powerpc/ieee1275/init.c: Likewise.
54313 * kern/powerpc/ieee1275/openfw.c: Likewise.
54314 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54316 These files were written by Johan Rydberg
54317 (jrydberg@night.trouble.net) and I only modified them slightly.
54319 * boot/powerpc/ieee1275/cmain.c: New file.
54320 * boot/powerpc/ieee1275/crt0.S: Likewise.
54321 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54322 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54324 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54326 * Makefile.in: Update copyright.
54327 * genmodsrc.sh: Likewise.
54328 * gensymlist.sh: Likewise.
54329 * term/i386/pc/vga.c: Indent correctly.
54331 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54332 bugreporting address.
54333 * util/i386/pc/pupa-setup.c (usage): Likewise,
54334 (main): Call pupa_ext2_init and pupa_ext2_fini.
54336 * fs/fat.c (log2): Renamed to ...
54337 (fat_log2): ... this.
54338 All callers changed.
54339 * kern/misc.c (memcpy): Alias to pupa_memmove.
54340 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54342 * util/console.c (pupa_ncurses_fini): Return 0.
54344 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54345 Move fail label here.
54346 [__GNU__]: Don't warn when using stat.
54347 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54348 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54349 long int. Use strtol instead of strtoul.
54351 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54353 * commands/boot.c: New file.
54354 * commands/cat.c: Likewise.
54355 * commands/cmp.c: Likewise.
54356 * commands/ls.c: Likewise.
54357 * commands/terminal.c: Likewise.
54358 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54359 (pupa_register_command): Changed interface to match the new
54361 (pupa_command_execute): Changed (almost rewritten) so it uses
54362 pupa_split_command. Added support for setting variables using the
54364 (rescue_command): Changed to work with the new argument parser.
54365 (terminal_command): Moved from here to commands/terminal.c.
54366 (set_command): New function.
54367 (unset_command): New function.
54368 (insmod_command): New function.
54369 (rmmod_command): New function.
54370 (lsmod_command): New function.
54371 (pupa_command_init): Don't initialize the command terminal
54372 anymore. Initialize the commands set, unset, insmod, rmmod and
54374 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54375 (kernel_img_HEADERS): Add arg.h and env.h.
54376 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54377 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54378 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54380 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54382 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54383 (boot_mod_SOURCES): New variable.
54384 (terminal_mod_SOURCES): Likewise.
54385 (ls_mod_SOURCES): Likewise.
54386 (cmp_mod_SOURCES): Likewise.
54387 (cat_mod_SOURCES): Likewise.
54389 * normal/arg.c: New file.
54390 * kern/env.c: Likewise.
54391 * include/pupa/arg.h: Likewise.
54392 * include/pupa/env.h: Likewise.
54393 * font/manager.c (font_command): Changed to match argument parsing
54395 (PUPA_MOD_INIT): Likewise.
54396 * hello/hello.c (pupa_cmd_hello): Likewise.
54397 (PUPA_MOD_INIT): Likewise.
54398 * include/pupa/disk.h: Include <pupa/device.h>.
54399 (pupa_print_partinfo): New prototype.
54400 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54401 (pupa_dl_get_prefix): Likewise.
54402 * include/pupa/misc.h: Include <pupa/err.h>.
54403 (pupa_isgraph): New prototype.
54404 (pupa_isdigit): Likewise.
54405 (pupa_split_cmdline): Likewise.
54406 * include/pupa/normal.h: Include <pupa/arg.h>.
54407 (pupa_command): Changed the prototype of the member `func' to
54408 match the argument parsing interface. Added member `options'.
54409 (pupa_register_command): Updated to match function.
54410 (pupa_arg_parse): New prototype.
54411 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54412 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54413 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54414 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54415 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54416 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54417 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54418 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54419 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54420 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54421 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54422 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54423 * kern/disk.c: Include <pupa/file.h>.
54424 (pupa_print_partinfo): New function.
54425 * kern/dl.c: Include <pupa/env.h>.
54426 (pupa_dl_dir): Variable removed.
54427 (pupa_dl_load): Use the environment variable `prefix' instead of
54428 the variable pupa_dl_dir.
54429 (pupa_dl_set_prefix): Function removed.
54430 (pupa_dl_get_prefix): Likewise.
54431 * kern/i386/pc/init.c: Include <pupa/env.h>.
54432 (pupa_machine_init): Use the environment variable `prefix' instead of
54433 using pupa_dl_set_prefix to set the prefix.
54434 * kern/main.c: Include <pupa/env.h>.
54435 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54436 using pupa_dl_get_prefix to get the prefix.
54437 * kern/misc.c: Include <pupa/env.h>.
54438 (pupa_isdigit): New function.
54439 (pupa_isgraph): Likewise.
54440 (pupa_ftoa): Likewise.
54441 (pupa_vsprintf): Added support for printing values of the type
54442 `double'. Make it possible to format variable output when using
54443 formatting like `%1.2%f'.
54444 (pupa_split_cmdline): New function.
54445 * kern/rescue.c: Include <pupa/env.h>.
54446 (next_word): Removed function.
54447 (pupa_rescue_cmd_prefix): Likewise.
54448 (pupa_rescue_cmd_set): New function.
54449 (pupa_rescue_cmd_unset): New function.
54450 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54451 split the command line instead of splitting it here. Added
54452 support for setting variables using the syntax `foo=bar'. Don't
54453 initialize the prefix command anymore. Initialized the set and
54455 * normal/cmdline.c: Include <pupa/env.h>.
54456 (pupa_tab_complete): Added prototypes for print_simple_completion,
54457 print_partition_completion, add_completion, iterate_commands,
54458 iterate_dev, iterate_part and iterate_dir. Moved code to print
54459 partition information from here to kern/disk.c.
54460 (pupa_cmdline_run): Don't check if the function exists anymore.
54461 * normal/main.c: Include <pupa/env.h>.
54462 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54463 instead of using pupa_dl_get_prefix to get the prefix.
54464 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54465 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54467 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54468 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54469 ((unused))' to silence a gcc warning.
54470 (pupa_vga_setcolor): Likewise.
54471 (debug_command): Changed to match argument parsing
54473 * util/pupa-emu.c: Include <pupa/env.h>.
54474 (options): Added 0's for unused fields to silence a gcc warning.
54476 (main): Use the environment variable `prefix' instead of using
54477 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54478 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54481 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54482 * util/misc.c: Include <malloc.h>.
54483 (pupa_malloc): Rewritten so errors are correctly reported.
54484 (pupa_realloc): Likewise.
54485 (pupa_memalign): Likewise.
54486 (pupa_mm_init_region): Declare unused variables with
54487 `__attribute__ ((unused))' to silence a gcc warning.
54488 * normal/i386/setjmp.S: Remove tab at the end of the file to
54489 silence a gcc warning.
54490 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54491 variables with `__attribute__ ((unused))' to silence a gcc
54493 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54494 local variable i unsigned to silence a gcc warning.
54496 * kern/term.c: Include <pupa/misc.h>.
54497 (pupa_more_lines): New variable.
54498 (pupa_more): Likewise.
54499 (pupa_putcode): When the pager is active pause at the end of every
54501 (pupa_set_more): New function.
54502 * include/pupa/term.h (pupa_set_more): New prototype.
54505 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54507 Now this project is GRUB 2 rather than PUPA. The location of
54508 the CVS repository was moved to GRUB's.
54510 * configure.ac: Use bug-grub as the reporting address.
54511 Use GRUB instead of PUPA.
54512 Change the version number to 1.90.
54514 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54516 * genkernsyms.sh: Updated copyright information.
54517 * genmk.rb: Likewise.
54518 * genmodsrc.sh: Likewise.
54519 * gensymlist.sh: Likewise.
54520 * boot/i386/pc/boot.S: Likewise.
54521 * boot/i386/pc/diskboot.S: Likewise.
54522 * disk/i386/pc/biosdisk.c: Likewise.
54523 * disk/i386/pc/partition.c: Likewise.
54524 * font/manager.c: Likewise.
54525 * fs/ext2.c: Likewise.
54526 * fs/fat.c: Likewise.
54527 * include/pupa/boot.h: Likewise.
54528 * include/pupa/device.h: Likewise.
54529 * include/pupa/disk.h: Likewise.
54530 * include/pupa/dl.h: Likewise.
54531 * include/pupa/elf.h: Likewise.
54532 * include/pupa/err.h: Likewise.
54533 * include/pupa/file.h: Likewise.
54534 * include/pupa/font.h: Likewise.
54535 * include/pupa/fs.h: Likewise.
54536 * include/pupa/kernel.h: Likewise.
54537 * include/pupa/loader.h: Likewise.
54538 * include/pupa/misc.h: Likewise.
54539 * include/pupa/mm.h: Likewise.
54540 * include/pupa/net.h: Likewise.
54541 * include/pupa/normal.h: Likewise.
54542 * include/pupa/rescue.h: Likewise.
54543 * include/pupa/setjmp.h: Likewise.
54544 * include/pupa/symbol.h: Likewise.
54545 * include/pupa/term.h: Likewise.
54546 * include/pupa/types.h: Likewise.
54547 * include/pupa/i386/setjmp.h: Likewise.
54548 * include/pupa/i386/types.h: Likewise.
54549 * include/pupa/i386/pc/biosdisk.h: Likewise.
54550 * include/pupa/i386/pc/boot.h: Likewise.
54551 * include/pupa/i386/pc/console.h: Likewise.
54552 * include/pupa/i386/pc/init.h: Likewise.
54553 * include/pupa/i386/pc/kernel.h: Likewise.
54554 * include/pupa/i386/pc/linux.h: Likewise.
54555 * include/pupa/i386/pc/loader.h: Likewise.
54556 * include/pupa/i386/pc/memory.h: Likewise.
54557 * include/pupa/i386/pc/multiboot.h: Likewise.
54558 * include/pupa/i386/pc/partition.h: Likewise.
54559 * include/pupa/i386/pc/time.h: Likewise.
54560 * include/pupa/i386/pc/vga.h: Likewise.
54561 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54562 * include/pupa/util/getroot.h: Likewise.
54563 * include/pupa/util/misc.h: Likewise.
54564 * include/pupa/util/resolve.h: Likewise.
54565 * kern/device.c: Likewise.
54566 * kern/disk.c: Likewise.
54567 * kern/dl.c: Likewise.
54568 * kern/err.c: Likewise.
54569 * kern/file.c: Likewise.
54570 * kern/fs.c: Likewise.
54571 * kern/loader.c: Likewise.
54572 * kern/main.c: Likewise.
54573 * kern/misc.c: Likewise.
54574 * kern/mm.c: Likewise.
54575 * kern/rescue.c: Likewise.
54576 * kern/term.c: Likewise.
54577 * kern/i386/dl.c: Likewise.
54578 * kern/i386/pc/init.c: Likewise.
54579 * kern/i386/pc/lzo1x.S: Likewise.
54580 * kern/i386/pc/startup.S: Likewise.
54581 * loader/i386/pc/chainloader.c: Likewise.
54582 * loader/i386/pc/linux.c: Likewise.
54583 * loader/i386/pc/multiboot.c: Likewise.
54584 * normal/cmdline.c: Likewise.
54585 * normal/command.c: Likewise.
54586 * normal/main.c: Likewise.
54587 * normal/menu.c: Likewise.
54588 * normal/i386/setjmp.S: Likewise.
54589 * term/i386/pc/console.c: Likewise.
54590 * term/i386/pc/vga.c: Likewise.
54591 * util/console.c: Likewise.
54592 * util/genmoddep.c: Likewise.
54593 * util/misc.c: Likewise.
54594 * util/pupa-emu.c: Likewise.
54595 * util/resolve.c: Likewise.
54596 * util/unifont2pff.rb: Likewise.
54597 * util/i386/pc/biosdisk.c: Likewise.
54598 * util/i386/pc/getroot.c: Likewise.
54599 * util/i386/pc/pupa-mkimage.c: Likewise.
54600 * util/i386/pc/pupa-setup.c: Likewise.
54602 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54604 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54605 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54606 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54607 reading and reset it after reading.
54608 (pupa_ext2_close): Return PUPA_ERR_NONE.
54610 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54612 (struct linux_kernel_header): Add kernel_version and
54614 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54615 pupa_file_read succeeds.
54616 (pupa_rescue_cmd_initrd): Implement.
54618 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54620 * fs/ext2.c (pupa_ext2_label): New function.
54621 (pupa_ext2_fs): Added label.
54622 * fs/fat.c (pupa_fat_label): New function.
54623 (pupa_fat_fs): Added label.
54624 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54626 * kern/misc.c (pupa_strndup): New function.
54627 * include/pupa/misc.h (pupa_strndup): New prototype.
54629 * include/pupa/normal.h: Include <pupa/err.h>.
54630 (pupa_set_history): New prototype.
54631 (pupa_iterate_commands): New prototype.
54632 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54633 <pupa/disk.h>, <pupa/file.h>.
54634 (hist_size): New variable.
54635 (hist_lines): Likewise.
54636 (hist_end): Likewise.
54637 (hist_used): Likewise.
54638 (pupa_set_history): New function.
54639 (pupa_history_get): Likewise.
54640 (pupa_history_add): Likewise.
54641 (pupa_history_replace): Likewise.
54642 (pupa_tab_complete): Likewise.
54643 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54644 completion shows partitionnames while completing partitions, this
54645 feature was suggested by Jeff Bailey.
54646 * normal/command.c (pupa_iterate_commands): New function.
54647 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54648 (pupa_normal_init): Initialize history buffer.
54649 (PUPA_MOD_INIT): Likewise.
54650 (pupa_normal_fini): Free the history buffer.
54651 (PUPA_MOD_FINI): Likewise.
54653 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54656 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54657 * configure.ac [i386]: Check for regparam bug.
54658 (NESTED_FUNC_ATTR) [! i386]: Defined.
54660 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54662 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54663 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54664 (pupa_emu_SOURCES): New variable.
54665 (pupa_emu_LDFLAGS): Likewise.
54666 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54667 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54668 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54669 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54670 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54671 (pupa_jmp_buf): New typedef.
54672 (pupa_setjmp) [PUPA_UTIL]: New macro.
54673 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54674 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54675 (pupa_refresh): New prototype.
54676 * include/pupa/util/getroot.h: New file.
54677 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54679 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54680 (pupa_rescue_cmd_cat): Likewise.
54681 (pupa_rescue_cmd_ls): Likewise.
54682 (pupa_rescue_cmd_testload): Likewise.
54683 (pupa_rescue_cmd_lsmod): Likewise.
54684 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54685 * normal/menu.c (run_menu): Likewise.
54686 * kern/term.c (pupa_cls): Likewise.
54687 (pupa_refresh): New function.
54688 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54689 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54690 * util/console.c: New file.
54692 * util/i386/pc/getroot.c: New file.
54693 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54694 (pupa_putchar): New function.
54695 (pupa_refresh): Likewise.
54696 (xgetcwd): Function moved to ...
54697 (strip_extra_slashes): Likewise.
54698 (get_prefix): Likewise.
54699 * util/i386/pc/getroot.c: ... here.
54700 (find_root_device): Function moved and renamed to...
54701 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54702 Changed all callers.
54703 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54705 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54706 Changed all callers.
54707 * util/misc.c (pupa_memalign): New function.
54708 (pupa_mm_init_region): Likewise.
54709 (pupa_register_exported_symbols): Likewise.
54710 (pupa_putchar): Function removed.
54711 * util/pupa-emu.c: New file.
54713 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54715 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54716 (_multiboot_mod_SOURCES): New variable.
54717 (_multiboot_mod_CFLAGS): Likewise.
54718 * loader/i386/pc/multiboot.c: New file.
54719 * include/pupa/i386/pc/multiboot.h: Likewise.
54720 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54721 (pupa_multiboot_real_boot): New function.
54722 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54723 (pupa_multiboot_real_boot): New prototype.
54724 (pupa_rescue_cmd_multiboot): Likewise
54725 (pupa_rescue_cmd_module): Likewise.
54727 * kern/loader.c (pupa_loader_set): Continue when
54728 pupa_loader_unload_func() fails.
54729 (pupa_loader_unset): New function.
54730 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54732 * kern/misc.c (pupa_stpcpy): New function.
54733 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54735 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54737 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54738 for available extensions.
54740 * include/pupa/i386/pc/time.h: New file.
54741 * kern/disk.c: Include <pupa/machine/time.h>.
54742 (PUPA_CACHE_TIMEOUT): New macro.
54743 (pupa_last_time): New variable.
54744 (pupa_disk_open): Flush the cache when there was a timeout.
54745 (pupa_disk_close): Reset the timer.
54746 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54748 * util/misc.c: Include <sys/times.h>
54749 (pupa_get_rtc): New function.
54751 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54753 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54755 (pupa_ext2_get_file_block): Use blocks member.
54757 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54758 first block. Return -1 instead of pupa_errno on error.
54760 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54762 * README: In the pupa-mkimage example use _chain instead of chain
54763 and ext2 instead of fat.
54764 * TODO: Replace ext2fs with jfs as an example. Add an item for
54765 adding journal playback for ext2fs.
54766 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54767 (pkgdata_MODULES): Added ext2.mod.
54768 (ext2_mod_SOURCES): New variable.
54769 (ext2_mod_CFLAGS): Likewise.
54770 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54771 * include/pupa/misc.h (pupa_strncpy): New prototype.
54772 (pupa_strcat): Likewise.
54773 (pupa_strncmp): Likewise.
54774 * kern/misc.c (pupa_strcat): Enable function.
54775 (pupa_strncpy): New function.
54776 (pupa_strncmp): Likewise.
54777 * fs/ext2.c: New file.
54779 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54780 when the read failed before retrying.
54781 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54782 (_FILE_OFFSET_BITS): Likewise.
54783 * configure.ac: Added AC_SYS_LARGEFILE.
54785 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54787 * genmk.rb (PModule#rule): Make sure to get only symbol names
54788 from the output of nm.
54789 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54791 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54793 I forgot to check in these changes for a long time. This adds
54794 incomplete support for VGA console, and this is still very
54795 buggy. Also, a lot of consideration is required for I18N,
54796 UNICODE, and VGA font issues. Therefore, assume that this is
54797 such that "better than nothing".
54799 * font/manager.c: New file.
54800 * include/pupa/font.h: Likewise.
54801 * include/pupa/i386/pc/vga.h: Likewise.
54802 * term/i386/pc/vga.c: Likewise.
54803 * util/unifont2pff.rb: Likewise.
54805 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54806 (pkgdata_MODULES): Added vga.mod and font.mod.
54807 (vga_mod_SOURCES): New variables.
54808 (vga_mod_CFLAGS): Likewise.
54809 (font_mod_SOURCES): Likewise.
54810 (font_mod_CFLAGS): Likewise.
54812 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54814 * include/pupa/term.h: Include pupa/err.h.
54815 (struct pupa_term): Added init and fini.
54816 Changed the argument of putchar to pupa_uint32_t.
54818 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54819 (pupa_console_real_putchar): New prototype.
54820 (pupa_console_putchar): Removed.
54821 (pupa_console_checkkey): Exported.
54822 (pupa_console_getkey): Likewise.
54824 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54827 * kern/term.c (pupa_term_set_current): Rewritten.
54828 (pupa_putchar): Likewise.
54829 (pupa_putcode): New function.
54831 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54832 (pupa_console_real_putchar): ... this.
54833 (pupa_vga_set_mode): New function.
54834 (pupa_vga_get_font): Likewise.
54836 * normal/command.c: Include pupa/term.h.
54837 (terminal_command): New function.
54838 (pupa_command_init): Register the command "terminal".
54840 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54841 (DISP_UP): Likewise.
54842 (DISP_RIGHT): Likewise.
54843 (DISP_DOWN): Likewise.
54844 (DISP_HLINE): Likewise.
54845 (DISP_VLINE): Likewise.
54846 (DISP_UL): Likewise.
54847 (DISP_UR): Likewise.
54848 (DISP_LL): Likewise.
54849 (DISP_LR): Likewise.
54851 * term/i386/pc/console.c (pupa_console_putchar): New function.
54853 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54855 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54856 FIX. Reverse the path_list.
54858 * include/pupa/normal.h: Export pupa_register_command and
54859 pupa_unregister_command.
54861 * hello/hello.c (pupa_cmd_hello): New module.
54862 * conf/i386-pc.rmk: Added hello.mod.
54864 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54866 * kern/i386/pc/lzo1x.S: New file.
54868 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54869 (compress_kernel): New variable.
54870 (generate_image): Heavily modified to support compressing a
54871 large part of the core image.
54873 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54875 (pupa_util_load_image): New function.
54877 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54878 (pupa_compressed_size): New variable.
54879 (codestart): Enable Gate A20 here.
54880 Decompress the compressed part of the core image.
54881 Rearrange the code to put functions and variables which are
54882 required for initialization in the non-compressed part.
54885 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54888 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54890 * include/pupa/i386/pc/kernel.h
54891 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54892 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54893 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54894 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54895 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54897 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54899 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54900 (Utility#rule): Likewise.
54902 * configure.ac: Check if LZO is available.
54904 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54906 * include/pupa/normal.h: New file.
54907 * include/pupa/setjmp.h: Likewise.
54908 * include/pupa/i386/setjmp.h: Likewise.
54909 * normal/cmdline.c: Likewise.
54910 * normal/command.c: Likewise.
54911 * normal/main.c: Likewise.
54912 * normal/menu.c: Likewise.
54913 * normal/i386/setjmp.S: Likewise.
54915 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54916 (pupa_rescue_cmd_initrd): Likewise.
54918 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54921 * kern/i386/pc/startup.S (translation_table): New variable.
54922 (translate_keycode): New function.
54923 (pupa_console_getkey): Call translate_keycode.
54925 * kern/rescue.c (attempt_normal_mode): New function.
54926 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54927 it failed, print a message.
54929 * kern/mm.c (pupa_real_malloc): Print more information when a
54930 free magic is broken.
54931 (pupa_free): If the first free header is not free actually, set
54934 * kern/main.c (pupa_load_normal_mode): Just load the module
54936 (pupa_main): Don't print the message
54937 "Entering into rescue mode..." here.
54939 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54941 (pupa_rescue_cmd_initrd): Likewise.
54942 (pupa_rescue_cmd_initrd): Likewise.
54944 * include/pupa/symbol.h (FUNCTION): Specify the type.
54945 (VARIABLE): Likewise.
54947 * include/pupa/err.h (pupa_err_t): Added
54948 PUPA_ERR_UNKNOWN_COMMAND.
54950 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54951 (pupa_dl_get_prefix): Likewise.
54953 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54954 Added _chain.mod and _linux.mod instead of chain.mod and
54956 (chain_mod_SOURCES): Renamed to ...
54957 (_chain_mod_SOURCES): ... this.
54958 (chain_mod_CFLAGS): Renamed to ...
54959 (_chain_mod_CFLAGS): ... this.
54960 (linux_mod_SOURCES): Renamed to ...
54961 (_linux_mod_SOURCES): ... this.
54962 (linux_mod_CFLAGS): Renamed to ...
54963 (_linux_mod_CFLAGS): ... this.
54964 (normal_mod_SOURCES): New variable.
54965 (normal_mod_CFLAGS): Likewise.
54966 (normal_mod_ASFLAGS): Likewise.
54968 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54970 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54973 * kern/dl.c (pupa_dl_ref): Refer depending modules
54975 (pupa_dl_unref): Unrefer depending modules recursively.
54976 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54977 a module is unloaded before one depending on that module is
54979 (pupa_dl_unload): Unload depending modules explicitly,
54982 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54984 * include/pupa/i386/pc/linux.h: New file.
54985 * loader/i386/pc/linux.c: Likewise.
54987 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54989 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54990 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54991 of PUPA_CHAINLOADER_BOOT_SECTOR.
54993 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54994 (pupa_linux_prot_size): New variable.
54995 (pupa_linux_tmp_addr): Likewise.
54996 (pupa_linux_real_addr): Likewise.
54997 (pupa_linux_boot_zimage): New function.
54998 (pupa_linux_boot_bzimage): Likewise.
55000 * kern/i386/pc/init.c (struct mem_region): New structure.
55001 (MAX_REGIONS): New macro.
55002 (mem_regions): New variable.
55003 (num_regions): Likewise.
55004 (pupa_os_area_addr): Likewise.
55005 (pupa_os_area_size): Likewise.
55006 (pupa_lower_mem): Likewise.
55007 (pupa_upper_mem): Likewise.
55008 (add_mem_region): New function.
55009 (compact_mem_regions): Likewise.
55010 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55011 the size of the conventional memory and that of so-called upper
55012 memory (before the first memory hole).
55013 Instead of adding each found region to free memory, use
55014 add_mem_region and add them after removing overlaps.
55015 Also, add only 1/4 of the upper memory to free memory. The rest
55016 is used for loading OS images. Maybe this is ad hoc, but this
55017 makes it much easier to relocate OS images when booting.
55019 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55020 (pupa_enter_rescue_mode): Don't register initrd and module.
55022 * kern/mm.c: Include pupa/dl.h.
55024 * kern/main.c: Include pupa/file.h and pupa/device.h.
55026 * kern/loader.c (pupa_loader_load_module_func): Removed.
55027 (pupa_loader_load_module): Likewise.
55029 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55032 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55033 (pupa_linux_tmp_addr): Likewise.
55034 (pupa_linux_real_addr): Likewise.
55035 (pupa_linux_boot_zimage): Likewise.
55036 (pupa_linux_boot_bzimage): Likewise.
55038 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55039 (pupa_upper_mem): Likewise.
55040 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55041 module is too dangerous.
55043 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55044 (pupa_os_area_size): Likewise.
55045 (pupa_loader_set): Remove the first argument. Loader doesn't
55046 manage modules or initrd any longer.
55047 (pupa_loader_load_module): Removed.
55049 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55050 (linux_mod_SOURCES): New variable.
55051 (linux_mod_CFLAGS): Likewise.
55053 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55055 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55056 the length of a blocklist correctly.
55058 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55059 Use ioctl only if the OS file is a block device.
55060 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55061 not very useful for normal files.
55063 * kern/main.c (pupa_set_root_dev): New function.
55064 (pupa_load_normal_mode): Likewise.
55065 (pupa_main): Call those above.
55067 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55070 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55072 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55074 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55075 (setup): Configure the installed partition information and the
55078 * loader/i386/pc/chainloader.c (my_mod): New variable.
55079 (pupa_chainloader_unload): New function.
55080 (pupa_rescue_cmd_chainloader): Refer itself.
55081 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55083 * kern/i386/pc/startup.S (install_partition): Removed.
55084 (version_string): Likewise.
55085 (config_file): Likewise.
55086 (pupa_install_dos_part): New variable.
55087 (pupa_install_bsd_part): Likewise.
55088 (pupa_prefix): Likewise.
55089 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55091 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55093 (make_install_device): New function.
55094 (pupa_machine_init): Set the dl prefix.
55096 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55097 (buf): Renamed to ...
55098 (linebuf): ... this.
55099 (pupa_rescue_cmd_prefix): New function.
55100 (pupa_rescue_cmd_insmod): Likewise.
55101 (pupa_rescue_cmd_rmmod): Likewise.
55102 (pupa_rescue_cmd_lsmod): Likewise.
55103 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55106 * kern/mm.c (pupa_memalign): If failed even after invalidating
55107 disk caches, unload unneeded modules and retry.
55109 * kern/misc.c (pupa_memmove): New function.
55110 (pupa_memcpy): Removed.
55111 (pupa_strcpy): New function.
55112 (pupa_itoa): Made static.
55114 * kern/dl.c (pupa_dl_iterate): New function.
55115 (pupa_dl_ref): Likewise.
55116 (pupa_dl_unref): Likewise.
55117 (pupa_dl_unload): Return if succeeded or not.
55118 (pupa_dl_unload_unneeded): New function.
55119 (pupa_dl_unload_all): Likewise.
55120 (pupa_dl_init): Renamed to ...
55121 (pupa_dl_set_prefix): ... this.
55122 (pupa_dl_get_prefix): New function.
55124 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55125 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55126 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55127 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55128 (pupa_install_dos_part): Declared.
55129 (pupa_install_bsd_part): Likewise.
55130 (pupa_prefix): Likewise.
55131 (pupa_boot_drive): Likewise.
55133 * include/pupa/types.h: Fix a typo.
55135 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55137 (pupa_memmove): Declared.
55138 (pupa_strcpy): Likewise.
55140 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55141 pupa_mod_init takes one argument, its own module.
55142 (pupa_dl_unload_unneeded): Declared.
55143 (pupa_dl_unload_all): Likewise.
55144 (pupa_dl_ref): Likewise.
55145 (pupa_dl_unref): Likewise.
55146 (pupa_dl_iterate): Likewise.
55147 (pupa_dl_init): Renamed to ...
55148 (pupa_dl_set_prefix): ... this.
55149 (pupa_dl_get_prefix): Declared.
55151 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55152 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55154 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55155 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55157 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55158 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55160 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55162 * util/i386/pc/pupa-setup.c (setup): Define the internal
55163 function find_first_partition_start at the top level, because GCC
55164 3.0.x cannot compile internal functions in deeper scopes
55166 (find_root_device): Use lstat instead of stat.
55167 Don't follow symbolic links.
55168 Fix the path-constructing code.
55170 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55171 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55172 by a BLKGETSIZE ioctl first, because block devices don't fill
55173 the member st_mode of the structure stat on Linux.
55174 [__linux__] (linux_find_partition): Use a temporary buffer
55175 REAL_DEV for the working space. Copy it to DEV before returning.
55176 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55177 buffer cache consistent.
55178 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55179 strncmp. The previous value was merely wrong.
55180 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55182 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55183 FAT size is 12. The previous value was merely wrong.
55185 * kern/main.c (pupa_main): Don't split the starting message from
55188 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55189 LF, because BIOS goes crazy about character attributes in this
55192 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55194 * include/i386/pc/util/biosdisk.h: New file.
55195 * util/i386/pc/biosdisk.c: Likewise.
55196 * util/i386/pc/pupa-setup.c: Likewise.
55198 * Makefile.in (INCLUDE_DISTFILES): Added
55199 include/pupa/i386/pc/util/biosdisk.h.
55200 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55201 directory util/i386/pc.
55202 (install-local): Added a rule for sbin_UTILITIES.
55203 (uninstall): Likewise.
55205 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55207 * util/misc.c (xrealloc): New function.
55208 (pupa_malloc): Likewise.
55209 (pupa_free): Likewise.
55210 (pupa_realloc): Likewise.
55211 (pupa_stop): Likewise.
55212 (pupa_putchar): Likewise.
55214 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55216 * include/pupa/util/misc.h (xrealloc): Declared.
55218 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55220 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55221 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55223 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55224 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55226 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55227 way should be implemented.
55228 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55230 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55231 the size of NAME for safety.
55232 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55235 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55236 (pupa_setup_SOURCES): Likewise.
55238 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55240 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55242 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55243 bunch of pushl's from pusha, because this destroys the return
55246 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55248 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55249 This means that any missing prototypes could be fatal. Also, you
55250 must take care when writing assembly code. See the comments at
55251 the beginning of startup.S, for more details.
55253 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55254 compilation mechanism.
55255 (pupa_chainloader_real_boot): Likewise.
55256 (pupa_biosdisk_rw_int13_extensions): Likewise.
55257 (pupa_biosdisk_rw_standard): Likewise.
55258 (pupa_biosdisk_check_int13_extensions): Likewise.
55259 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55260 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55261 (pupa_get_memsize): Likewise.
55262 (pupa_get_mmap_entry): Likewise.
55263 (pupa_console_putchar): Likewise.
55264 (pupa_console_setcursor): Likewise.
55265 (pupa_getrtsecs): Use pushl instead of push.
55267 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55268 memory instead of the stack for a mmap entry, because some
55269 BIOSes may ignore the maximum size and overflow.
55271 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55273 * genmk.rb (PModule#rule): Compile automatically generated
55274 sources with module-specific CFLAGS as well as other sources.
55276 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55278 * configure.ac: Check ld.
55279 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55280 respectively, before checking endianness and sizes.
55282 * Makefile.in (LD): New variable.
55284 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55286 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55288 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55290 * Changelog: New file.