1 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
3 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
6 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/term/at_keyboard.c: Retry probing keyboard if
11 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
15 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
18 safety to avoid triggerring VirtualBox bug.
20 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
24 Fixes hang on virtualbox.
26 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
28 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
29 kernels whose paths contain regex metacharacters.
30 * util/grub.d/10_kfreebsd.in: Likewise.
31 * util/grub.d/10_linux.in: Likewise.
32 * util/grub.d/20_linux_xen.in: Likewise.
34 Reported by: Heimo Stranner.
36 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
38 * docs/grub-dev.texi (Finding your way around): The build system no
39 longer uses AutoGen directly.
41 2014-06-21 Роман Пехов <roman_pekhov>
43 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
45 2014-06-21 Glenn Washburn <development@efficientek.com>
47 * util/grub-install.c: Fix handling of --disk-module.
49 2014-06-21 Stephane Rochoy <sheda>
51 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
54 2014-06-21 Stephane Rochoy <sheda>
56 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
57 EFI system table physical address.
59 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
61 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
63 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
65 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
67 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
69 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
72 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
74 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
76 Reported by: Yves Blusseau <blusseau@zetam.org>.
78 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
80 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
81 GDT in conventional memory.
83 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
85 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
86 UUID. Other parts of grub-mkconfig tolerate these, they were
87 previously allowed here up to commit
88 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
89 practice when the system has active LVM snapshots.
90 Fixes Ubuntu bug #1287436.
92 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
94 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
95 "logical_volumes" block a little more accurately.
97 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
99 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
101 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
103 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
106 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
108 Replace few instances of memcmp/memcpy in the code that should be
109 grub_memcmp/grub_memcpy.
111 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
113 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
116 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
118 btrfs: fix get_root key comparison failures due to endianness
120 * grub-core/fs/btrfs.c (get_root): Convert
121 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
123 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
125 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
127 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
128 no longer to be forgiving of trailing spaces on grub-probe output
129 lines, which among other things means that util/grub.d/10_linux.in
130 no longer detects LVM. To fix this, make grub-probe's output
131 delimiting more consistent. As a bonus, this improves the coverage
134 Fixes Debian bug #735935.
136 * grub-core/disk/cryptodisk.c
137 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
138 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
140 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
142 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
143 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
144 probe_mods): Adjust for extra user-data arguments.
145 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
146 probe_abstraction): Use configured delimiter. Update callers.
148 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
150 * util/grub-probe,c (options): Make -0 work again (broken by
152 (main): Simplify logic.
154 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
156 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
158 2014-03-26 Fu Wei <fu.wei@linaro.org>
160 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
162 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
164 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
165 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
167 Suggested by: Markus Müller.
169 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
171 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
172 if E820 failed to return any regions.
174 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
176 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
177 tables for low memory calculations.
179 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
181 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
184 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
186 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
189 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
191 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
194 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
196 Add bootpath parser for open firmware.
198 It enables net boot even when there is no bootp/dhcp server.
200 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
201 and call it at grub_ieee1275_net_config_real.
202 * grub-core/kern/ieee1275/init.c: Add bootpath to
203 grub_ieee1275_net_config.
204 * include/grub/ieee1275/ieee1275.h: Likewise.
207 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
209 Add grub_env_set_net_property function.
211 * grub-core/net/bootp.c: Remove set_env_limn_ro.
212 * grub-core/net/net.c: Add grub_env_set_net_property.
213 * include/grub/net.h: Likewise.
215 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
217 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
219 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
221 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
223 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
225 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
226 7 seconds to recover if last poweroff was bad.
228 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
230 * grub-core/disk/ahci.c: Properly handle transactions with no
233 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
235 * grub-core/disk/ahci.c: Add safety cleanups.
237 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
239 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
240 slots to avoid pointing to uninited area.
242 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
244 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
245 enabling busmaster for the end.
247 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
249 * util/grub-mkfont.c: Downgrade warnings about unhandled features
252 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
254 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
256 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
258 * .gitignore: add missing files and .exe variants.
260 2014-01-26 Mike Gilbert <floppym@gentoo.org>
262 grub-install: support for partitioned partx loop devices.
264 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
265 /dev/loopX as being the parent of /dev/loopXpY.
267 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
269 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
270 Ensure that pointers are inited to NULL and that pointers are not
273 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
275 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
276 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
277 * include/grub/emu/misc.h: ... and here.
278 * include/grub/err.h: ... and here.
279 * util/import_gcry.py: ... and here (in files g10lib.h).
281 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
283 * util/grub-mkimage.c: Make prefix argument mandatory.
285 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
287 Fix several translatable strings.
289 Suggested by: D. Prévot.
291 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
293 * util/grub-install.c: List available targets.
295 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
297 * util/grub-install.c (write_to_disk): Add an info message.
299 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
301 * Makefile.am: Allow adding extra files to generated Windows ZIP
302 archive by setting GRUB_WINDOWS_EXTRA_DIST.
304 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
306 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
307 Show detected font path in summary.
309 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
311 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
313 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
314 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
315 * grub-core/net/tftp.c (tftp_open): Likewise.
316 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
318 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
320 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
323 In net/net.c there is a while (1) that only exits if there is a stop
324 condition and more then 10 packages or if there is no package received.
326 If GRUB is idle and enter in this loop, the only condition to leave is
327 if it doesn't have incoming packages. In a network with heavy traffic
330 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
332 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
333 EPERM when modifying kern.geom.debugflags. It is only a problem for
334 such things as installing GRUB to the MBR, in which case there'll be
335 an error later anyway, not for opening files during tests.
337 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
339 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
340 instead of MOD_FILES.
341 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
342 both with and without .exe.
343 * grub-core/genemuinitheader.sh: Same.
345 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
347 * util/grub-install.c: Fix a typo.
349 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
351 * grub-core/normal/main.c (read_config_file): Buffer config file.
354 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
356 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
357 symbolic link to directory. It fails in Msys shell on Windows 2003.
359 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
361 * Makefile.am (default_payload.elf): Add modules
362 multiboot cbmemc linux16 gzio echo help.
364 2014-01-18 Mike Gilbert <floppym@gentoo.org>
366 * Makefile.util.def: Link grub-ofpathname with zfs libs.
368 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
370 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
373 Reported by: Andrey Borzenkov.
375 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
377 * include/grub/misc.h: Move macros for compiler features to ...
378 * include/grub/compiler.h: ... new file.
379 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
380 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
381 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
382 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
383 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
384 * grub-core/video/capture.c: Include <grub/misc.h>.
385 * include/grub/command.h: Include <grub/misc.h>.
386 * include/grub/dl.h: Include <grub/misc.h>.
387 * include/grub/procfs.h: Include <grub/misc.h>.
389 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
391 * configure.ac: Add support for BUILD_EXEEXT and use it ...
392 * Makefile.am: ... here.
393 * Makefile.util.def: ... and here.
394 * grub-core/Makefile.am: ... and here.
396 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
398 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
399 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
401 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
403 * grub-core/term/terminfo.c: Recognize keys F1-F12.
405 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
407 * configure.ac: Add support for BUILD_LDFLAGS.
408 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
409 * grub-core/Makefile.am: ... and here.
410 * INSTALL: Mention BUILD_LDFLAGS.
412 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
414 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
416 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
418 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
421 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
423 * NEWS: Add few missing entries.
425 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
427 * util/grub.d/00_header.in (make_timeout): Use && rather than test
429 * util/grub.d/10_windows.in: Likewise.
430 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
432 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
435 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
437 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
438 redundant preprocessor conditional.
440 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
442 * Makefile.util.def (grub-macbless): Change mansection to 8.
444 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
446 * grub-core/loader/arm64/linux.c: correctly set device path end length.
448 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
450 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
451 arm64 to comply with EFI specification. Also use grubaa64.efi for
453 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
455 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
457 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
458 on MinGW-64 when compiling for 32 bits.
460 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
462 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
464 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
466 * NEWS: Add few missing entries. Correct existing ones.
468 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
470 Don't abort() on unavailable coreboot tables if not running on coreboot.
472 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
474 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
477 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
479 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
480 mention of it from 2.02.
482 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
484 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
486 As these functions are used on pre-ARMv6 CPUs as well we don't want
487 to make assembler assume that architecture is higher than default one.
489 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
491 * NEWS: First draft of 2.02 entry.
493 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
495 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
496 * docs/grub.texi (Getting the source code): Likewise.
498 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
500 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
503 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
505 * configure.ac: Set version to 2.02~beta2.
507 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
509 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
511 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
513 * util/grub-probe.c: Improve help message and simplify list handling.
515 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
517 Fix buffer overflow in grub_efi_print_device_path.
519 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
521 Show SATA device path.
523 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
525 Revert grub-file usage in grub-mkconfig.
527 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
529 Make newly-created files other than grub.cfg world-readable.
531 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
533 * util/grub.d/00_header.in: Improve compatibility with old config.
535 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
537 Make rijndael.c respect aliasing rules.
539 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
541 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
543 Make grub_util_device_is_mapped_stat available in grub-emu core.
545 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
547 Add -Qn to TARGET_CFLAGS if it's supported.
548 Fixes compilation on cygwin.
550 Reported by: Andrey Borzenkov.
551 Suggested by: Andrey Borzenkov.
553 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
555 Save TARGET_CC version in modinfo.sh.
557 Suggested by: Andrey Borzenkov.
559 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
561 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
562 follow the same algorithm to avoid method mismatch. Don't assume
563 DMRAID- UUID to mean full disk but instead check that mapping is linear.
565 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
567 Declare GRUB_EFI_VENDOR_APPLE_GUID.
569 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
571 Dump type and vendor specific data when printing device path.
573 2013-12-23 Colin Watson <cjwatson@debian.org>
575 Update some documentation to refer to Git rather than Bazaar.
577 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
579 * po/README: Likewise. Fix spelling mistake.
581 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
583 Don't distribute config.h.
585 * Makefile.am (platform_HEADERS): Move to ...
586 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
587 failure when building from a distributed tarball.
589 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
591 * configure.ac: Fix spelling.
592 * grub-core/commands/parttool.c: Fix grammar.
593 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
594 Embedding Partition".
596 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
598 ARM64 support for grub-mkrescue.
600 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
602 Install modinfo.sh to keep build information around.
604 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
606 * grub-core/modinfo.sh.in: Add build config information.
608 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
610 ARM64 grub-file and grub-mkconfig support.
612 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
614 Remove leftover options defines.
616 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
618 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
620 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
622 * grub-core/loader/arm64/linux.c: Add missing bracket.
624 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
626 Add arm64-efi recognition to grub-file.
628 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
630 Fix ia64-efi recognition in grub-file.
632 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
634 Recognize raspberry pi kernel in grub-file.
636 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
638 Enable cache on ARM U-Boot port.
640 Without it the port is reidiculously slow.
642 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
644 Fix ARM cache maintainance.
646 More code was converted from ASM to C for easier handling.
648 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
650 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
653 Suggested by: Leif Lindholm.
655 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
657 * util/grub-mkconfig.in: Fix Xen platform conditions.
659 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
661 * util/grub-mkrescue.c: Split single help message string in several
662 strings used in previous shell version.
664 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
666 Add arm64 Linux loader.
668 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
670 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
672 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
674 Add module loading and parsing boot time checkpoints.
676 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
678 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
681 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
683 * util/grub-mkconfig.in: Skip non-executable files.
685 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
687 Workaround buggy timer in raspberry pie by using our own timer
690 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
692 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
693 Increase to 16 MiB to allow loading the whole memdisk.
695 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
697 Fix ARM Linux Loader on non-FDT platforms.
699 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
701 * configure.ac: Choose link format based on host_os on emu.
703 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
705 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
707 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
709 * grub-core/kern/emu/main.c: Build fix for emu.
711 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
713 Build fixes for argp.h with older gcc.
715 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
717 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
720 Suggested by: David Prévot.
722 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
724 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
726 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
728 Enable -Wformat=2 if it's supported.
730 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
732 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
733 -Wmissing-declarations if supported.
735 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
737 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
738 u32 as both HFS and HFS+ have 32-bit inodes.
740 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
742 * include/grub/misc.h (grub_strtol): Fix overflow.
744 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
746 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
747 as return type in both conditionals.
749 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
751 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
752 to use uint8_t for color.
754 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
756 * util/misc.c (grub_util_get_image_size): Check for overflow.
758 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
760 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
763 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
765 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
766 for pointer difference.
768 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
770 * util/import_gcry.py: Skip sample keys.
772 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
774 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
776 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
778 * configure.ac: Remove duplicate warning arguments.
780 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
782 Add missing static qualifiers.
784 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
786 Add missing includes.
788 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
790 Inline printf templates when possible to enable format checking.
792 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
794 * include/grub/crypto.h: Don't discard const attribute.
796 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
798 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
801 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
803 * grub-core/lib/crypto.c: Don't discard const attribute.
805 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
807 * grub-core/lib/disk.c: Fix potential overflow.
809 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
811 * grub-core/lib/arg.c: Don't discard const attribute.
813 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
815 * grub-core/kern/dl.c: Don't discard const attribute.
817 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
819 * grub-core/kern/disk.c: Fix potential overflow.
821 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
823 * conf/Makefile.common: Don't include non-existing directory
824 grub-core/lib/libgcrypt-grub/include.
826 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
828 Clarify several translatable messages.
830 2013-12-21 David Prévot <david@tilapin.org>
832 Correct some translatable strings.
834 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
836 * util/grub-mkrescue.c: Rephrase mkrescue description.
838 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
839 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
841 Clarify several translatable messages.
843 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
845 Be more verbose about some configure failures.
847 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
849 Fix various build problems on GNU/Hurd.
851 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
854 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
855 [__GNU__]: Add prototype.
856 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
857 long int using %ld rather than %d.
859 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
861 * util/grub-install.c: Inform user about install platform.
863 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
865 * configure.ac: Set version to 2.02~beta1.
867 2013-12-18 Allen Pais <allen.pais@oracle.com>
868 2013-12-18 Bob Picco <bob.picco@oracle.com>
870 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
872 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
874 Make grub_zlib_decompress handle incomplete chunks.
878 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
880 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
883 2013-12-18 Aleš Nesrsta <starous@volny.cz>
885 * grub-core/disk/usbms.c: Retry on unknown errors.
886 Reuse the same tag on retries.
888 2013-12-18 Aleš Nesrsta <starous@volny.cz>
890 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
892 Avoid confusing them with already completed transfers.
894 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
898 Due to XEN bug it prevents Linux boot. Remove it at least, until
901 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
903 * po/exclude.pot: Add 2 missing excludes.
905 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
907 Add missing license section in macbless.mod and macho.mod.
909 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
911 Allow compilation without thumb-interwork as long as no thumb is
912 involved or only thumb2 is used.
914 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
916 Use -Wl,--no-relax rather than -mno-relax for uniformity.
918 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
920 * INSTALL: Update comment as to why sparc64 clang isn't usable.
922 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
924 Add __attribute__ ((sysv_abi)) only if it's really needed.
926 Some compilers don't support it.
928 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
930 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
932 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
934 Remove -Wold-style-definition.
936 Not very useful and interaction of it with regexp depends on GCC
939 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
941 Make grub_util_get_windows_path_real static.
943 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
945 * grub-core/commands/fileXX.c: Silence cast-align.
946 * grub-core/loader/i386/xen_fileXX.c: Likewise.
948 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
950 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
951 rather than LL suffix.
953 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
955 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
957 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
959 * grub-core/loader/arm/linux.c: Use common initrd functions.
961 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
963 Decrease number of strings to translate.
965 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
967 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
969 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
971 Mark strings for translation and add remaining ones to exclude list.
973 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
975 * util/grub-file.c (main): Fix sizeof usage.
977 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
979 Silence spurious warning.
981 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
983 Remove check_nt_hiberfil as it's been superseeded by file command.
985 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
987 * docs/osdetect.cfg: Add isolinux config to detected OSes.
989 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
991 Implement syslinux parser.
993 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
995 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
997 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1001 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1003 Use AT keyboard on Yeeloong 3A.
1005 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1007 Add Yeeloong 3A reboot and halt.
1009 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1011 Add Radeon Yeeloong 3A support.
1013 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1015 Add bonito 3A support.
1017 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1019 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1021 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1023 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1025 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1027 * grub-core/loader/macho.c: Fix compilation on non-i386.
1029 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1031 Add missing format_arg attribute to check that printf with translated
1032 messages has proper arguments.
1034 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1036 Use grub_xasprintf to format translated error messages containing
1039 2013-12-17 Jon McCune <jonmccune@google.com>
1041 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1043 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1045 Unify message for unsupported relocation.
1047 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1049 Mark miscompile error for translation.
1051 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1053 Use %I64 and not %ll when using OS printf if compiling for windows.
1055 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1057 Update Mac code to match new register_efi prototype.
1059 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1061 Implement better integration with Mac firmware.
1063 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1065 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1068 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1070 Include serial module in default_payload.elf.
1072 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1074 Add explicit thumb interwork bx in asm files.
1076 Shouldn't matter for armv >= 5 but let's be safe.
1078 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1080 Implement Truecrypt ISO loader.
1082 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1084 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1086 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1088 Implement grub_file tool and use it to implement generating of config
1091 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1093 Change to v1 xen grants.
1095 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1097 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1099 GRUB relied on %ebx being preserved across hypercall which isn't true.
1101 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1103 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1105 GRUB relied on %rdi being preserved across hypercall which isn't true.
1107 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1109 Implement XEN VFB support.
1111 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1113 Remove grub_bios_interrupt on coreboot.
1115 It's not used currently and cannot be used safely currently.
1117 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1119 Update exclude.pot and mark few strings for translation.
1121 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1123 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1125 Reported by: Jon McCune
1127 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1129 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1130 Add verbose information which firmware directories were tried.
1132 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1134 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1135 function to optionally redirect all three standard descriptors.
1136 Redefine grub_util_exec, grub_util_exec_redirect and
1137 grub_util_exec_redirect_null to use it.
1138 * include/grub/emu/exec.h: Define it.
1139 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1140 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1141 Use grub_util_exec_redirect_all to redirect error to NULL.
1143 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1145 * grub-core/tests/sleep_test.c: Silence spurious warning.
1147 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1149 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1150 linker trying to "fixup" the code.
1152 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1154 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1156 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1158 Add support for converting PE+ to Elf64.
1160 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1162 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1164 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1166 Remove practice of assigning random const pointers to device id.
1168 This is not required as cache code already checks driver id as well.
1170 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1172 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1175 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1177 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1178 mingw or cygwin as API already matches.
1180 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1182 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1184 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1186 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1189 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1191 Handle X86_64_PC64 relocation.
1193 Those are generated by some cygwin compilers.
1195 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1197 Determine the need for mingw-related stubs at compile time rather than
1198 using not very significant $target_os.
1200 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1202 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1203 may not work with ELF.
1205 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1207 Use unix functions for temporary files and special files on cygwin.
1209 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1211 Define functions explicitly rather than using --defsym in tests
1212 whenever possible. Respect locality in remaining cases.
1214 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1216 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1218 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1220 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1221 unlikely errors when getting EFI variables and make exhaustive search
1222 for all BootNNNN variables to find matching one.
1224 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1226 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1228 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1230 New functional test for sleep function.
1232 This test allows to check sleep without qemu. Keep qemu version as
1233 well as functional test won't notice if all clocks are going too fast
1236 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1238 Add explicit sysv_abi on amd64 asm routines.
1240 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1242 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1245 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1247 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1250 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1252 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1255 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1257 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1259 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1261 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1264 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1266 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1268 In case of quick removal of loopback and adding another one it may
1269 get same ID, confusing the cache system.
1271 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1273 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1276 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1278 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1279 than converting to long.
1281 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1283 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1285 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1287 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1288 than almost useless pointer.
1290 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1292 Add gcc_struct to all packed structures when compiling with mingw.
1294 Just "packed" doesn't always pack the way we expect.
1296 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1298 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1300 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1302 * util/grub-pe2elf.c: Fix handling of .bss.
1304 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1306 Implement windows flavour of EFI install routines.
1308 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1310 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1312 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1314 Change grub_install_register_efi interface to pass GRUB device.
1316 This allows grub_install_register_efi to request partition info
1319 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1321 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1323 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1325 Do not use TCHAR string functions as they are not available on cygwin.
1327 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1329 Workaround windows bug when querying EFI system partition parameters.
1331 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1333 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1336 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1338 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1340 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1342 Make i386-* other than i386-pc compileable under cygwin.
1344 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1346 Fix definition of grub_efi_hard_drive_device_path. Take care that
1347 existing code would work even if by some reason bogus definition is
1348 used by EFI implementations.
1350 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1352 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1354 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1356 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1359 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1361 * util/config.c: Remove trailing newline from distributor in simple
1364 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1366 * include/grub/efi/api.h: Rename protocol and interface to avoid
1369 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1371 * .gitignore: add .exe variants. add missing files. remove few outdated
1374 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1376 * grub-core/osdep/exec.c: Use unix version on cygwin.
1378 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1380 Implement multiboot2 EFI BS specification.
1382 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1384 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1385 Crash happened only in some cases like a string starting at the
1386 half of the screen of same length.
1388 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1390 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1391 with EFI counterpart.
1393 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1395 Propagate the EFI commits to x86-efi specific parts.
1397 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1399 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1401 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1403 Introduce grub_efi_packed_guid and use it where alignment is not
1406 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1408 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1409 unaligned u16 rather than u8[2].
1411 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1413 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1414 for relocation range.
1416 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1418 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1419 non-function pcrel21b relocation. It happens with .text.unlikely
1422 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1424 * make MAX_USABLE_ADDRESS platform-specific
1425 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1427 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1429 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1431 2013-12-09 Jon McCune <jonmccune@google.com>
1433 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1434 in grub-install and grub-bios-setup for x86 BIOS targets.
1436 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1438 Add missing compile and link options for sparc64-emu.
1440 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1442 Implement sparc64 trampolines (needed for sparc64-emu).
1444 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1446 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1447 range of R_SPARC_HI22.
1448 Implement R_SPARC_LM22.
1450 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1452 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1453 Do not explicitly check for symbol table as it's already checked in
1454 platform-independent layer.
1456 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1458 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1459 on ia64 as __clear_cache is a dummy on ia64.
1461 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1463 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1464 Do not explicitly check for symbol table as it's already checked in
1465 platform-independent layer.
1467 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1469 * util/grub-mkconfig.in: Add missing newline to output.
1471 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1473 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1474 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1476 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1478 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1479 compilation with GCC <= 4.2.
1480 * grub-core/kern/emu/argp_common.c: Likewise.
1482 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1484 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1485 right platform rather than leaking to sparc64-emu.
1487 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1489 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1490 But ensure that the variables in question are indeed unsigned.
1492 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1494 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1496 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1498 Remove grub_memalign on emu.
1500 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1502 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1503 truncate incomplete lines but instead flushes them.
1505 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1507 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1508 and implement windows variant.
1510 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1512 Fix mips-emu compilation.
1514 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1516 * configure.ac: Check for freetype library usability.
1518 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1522 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1524 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1526 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1528 * docs/grub.texi (Environment): Update color_normal and color_highlight
1529 defaults (light-gray instead of white).
1531 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1533 * grub-core/normal/main.c (INIT): Set default color to light-gray
1534 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1535 and apparently BIOS defaults.
1537 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1539 Transform -C option to grub-mkstandalone to --core-compress available
1540 in all grub-install flavours.
1542 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1544 Merge GRUBFS and GRUB_FS variables.
1546 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1548 Revert commit 69ca97c820, it caused failures when using OS device name
1549 in grub-install. Instead just strip off parenthesis in grub-install
1550 if (hdX) was passed.
1552 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1554 * util/grub-install.c (push_partmap_module): Add helper to convert
1555 partmap names to module names and use it in probe_mods(). Fixes
1556 failure to find partmap modules in diskfilter case.
1558 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1560 * configure.ac: Make unifont mandatory on coreboot.
1562 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1564 * configure.ac: Skip unifont 6.3 pcf and bdf.
1566 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1568 * Makefile.am: Remove partial font files if generation failed.
1570 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1572 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1574 * include/grub/util/misc.h: Define it ...
1575 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1577 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1579 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1582 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1584 Don't add -mlong-calls when compiling with clang.
1586 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1588 * configure.ac: Fix a typo.
1590 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1592 Revamp relocation handling.
1594 Move more code to common dl.c. Add missing veneers for arm and arm64.
1595 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1597 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1599 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1601 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1603 * INSTALL: Raise minimum python version to 2.6.
1604 * gentpl.py: Use python3-style print function.
1606 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1608 * util/grub-install.c: Mention Boot* variable.
1610 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1612 * grub-core/osdep/linux/hostdisk.c
1613 (grub_util_find_partition_start_os): Initialise start to avoid
1614 spurious compiler warning.
1616 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1618 On Linux, read partition start offsets from sysfs if possible, to
1619 cope with block device drivers that don't implement HDIO_GETGEO.
1620 Fixes Ubuntu bug #1237519.
1622 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1624 (sysfs_partition_start): Likewise.
1625 (grub_util_find_partition_start_os): Try sysfs_partition_start
1628 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1630 * grub-core/kern/fdt.c: Update struct size when adding node.
1632 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1634 Handle unaligned .bss on sparc64.
1636 Current code improperly assumes that both __bss_start and _end are
1637 aligned to 8-bytes. Eliminating this assumption and explicitly align
1640 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1642 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1643 so it doesn't land in the middle of loaded image.
1645 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1647 * configure.ac: Move all warning options that may be absent in
1648 gcc >= 3.1 to optional.
1650 Note: while this allows to compile with older GCC, official requirements
1651 remain the same and no support for older GCC.
1653 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1655 Copying the themes directory in grub-shell isn't
1656 parallel-test-friendly and breaks on the second test when the source
1657 directory is read-only (as in "make distcheck"). Instead, add a
1658 hidden --themes-directory option to grub-mkrescue et al, and use it
1661 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1663 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1664 as it's no longer necessarry.
1666 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1668 * configure.ac: Allow compilation with older GCC for ARM.
1670 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1672 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1673 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1676 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1678 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1680 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1682 Pass font config to config.h and not by TARGET_CFLAGS as adding
1683 arguments doesn't work if TARGET_CFLAGS is specified on command
1686 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1688 * configure.ac: Add -Wvla if compiler supports it.
1690 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1692 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1693 Remove variable length arrays.
1694 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1696 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1698 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1700 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1702 * include/grub/types.h: Declare all byteswaps as inline functions
1703 except compile-time ones.
1705 Solves variable shadowing in constructions like
1706 cpu_to_le (le_to_cpu(x) + 1).
1708 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1710 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1712 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1714 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1717 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1719 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1720 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1722 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1724 * grub-core/Makefile.core.def (setjmp): Distribute
1727 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1729 Add a new timeout_style environment variable and a corresponding
1730 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1731 controls hidden-timeout handling more simply than the previous
1732 arrangements, and pressing any hotkeys associated with menu entries
1733 during the hidden timeout will now boot the corresponding menu entry
1736 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1737 generates a warning, and if it shows the menu it will do so as if
1738 the second timeout were not present. Other combinations are
1739 translated into reasonable equivalents.
1741 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1743 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1745 * util/config.c: Add missing pointer adjustment.
1746 Reported by: qwertial
1748 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1750 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1751 directly, not via `cpu' link, to fix libgrub.pp generation.
1753 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1757 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1759 * docs/grub.texi (sleep): Document exit codes.
1761 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1763 Ensure that -mno-unaligned-access or some equivalent option is used.
1765 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1767 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1770 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1772 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1774 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1776 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1777 builds, since we don't have an EPS version of font_char_metrics.png.
1778 Add leading dot to image extension per the Texinfo documentation.
1780 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1782 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1783 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1784 * util/grub-gen-widthspec.c: Likewise.
1785 * util/grub-mkfont.c: Likewise.
1787 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1789 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1790 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1791 failed to install on (hdX).
1792 * util/grub-setup.c (get_device_name): Remove, not needed after
1795 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1797 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1799 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1801 * util/grub-fstest.c: Remove variable length arrays.
1803 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1805 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1807 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1809 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1810 computing crc32 rather than handling with md fundtions directly.
1812 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1814 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1815 checking fwstart.img rather than md fundtions directly.
1817 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1819 * util/grub-mkrescue.c (main): Check that fread succeeded.
1821 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1823 * conf/Makefile.common: Remove -mexplicit-relocs and
1824 -DUSE_ASCII_FALLBACK on yeeloong.
1826 -DUSE_ASCII_FALLBACK is already added by font snippets.
1827 -mexplicit-relocs isn't needed is compiler/assemblera are
1828 configured properly.
1829 If they're not we shouldn't attempt to fix it by ourselves.
1830 Binary compare between before and after shows no difference.
1832 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1834 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1835 sources in dependencies directly.
1837 This was the only instance of "library" in core config. A bug was
1838 reported that -fno-stack-protector wasn't passed to it. Instead of
1839 figuring out why it failed just remove this construction used
1842 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1844 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1847 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1849 * docs/grub.texi (ls): Fix command description in case of a device name
1852 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1854 Eliminate variable length arrays in grub_vsnprintf_real.
1856 A bit tricky because this function has to continue to work without
1857 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1858 but make all stack references use 32-bit offset rather than 8-bit one.
1859 So split va_args preparsing to separate function and put the prealloc
1862 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1864 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1865 Fixes build for windows.
1867 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1869 * gentpl.py: Don't generate platform-dependent conditionals for
1870 platform-independent targets.
1872 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1874 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1875 references to mdadm from otherwise generic code.
1876 (grub_util_exec_pipe): Likewise.
1877 (grub_util_exec_pipe_stderr): Likewise.
1878 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1879 This function calls vgs, not mdadm; adjust variable names
1882 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1884 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1885 of Autogen. The Autogen definitions files remain intact as they
1886 offer a useful abstraction.
1888 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1890 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1891 into no-ops, and use it in programs that copy files but do not need
1892 to take special care to sync writes (grub-mknetdir, grub-rescue,
1895 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1897 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1898 than hardcoding /usr/local/bin/xorriso.
1900 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1902 Add PCI command activation to all PCI drivers as required for coreboot
1903 and maybe some other firmwares.
1905 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1907 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1908 and non-Apple variants of efiemu compile.
1910 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1912 * configure.ac: Add explicit check for linking format of
1913 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1914 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1915 hardcoding linking format.
1917 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1919 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1922 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1923 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1925 Add a --locale-directory option to grub-install and related tools.
1927 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1928 --locale-directory option.
1929 (enum grub_install_options): Add
1930 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1931 * util/grub-install-common.c (grub_install_help_filter): Handle
1932 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1933 (grub_install_parse): Likewise.
1934 (get_localedir): New function to check for a user-provided option
1935 before trying grub_util_get_localedir.
1936 (copy_locales): Use get_localedir rather than
1937 grub_util_get_localedir. Handle differing locale directory layouts.
1938 (grub_install_copy_files): Likewise.
1940 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1942 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1943 Don't rely on PATH_MAX.
1945 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1947 * grub-core/genmoddep.awk: Use more portable && rather than and.
1949 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1951 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1952 an object after data. While it doesn't seem right solution, it
1953 works well enough and OSX isn't main compilation platform.
1955 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1957 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1958 While it doesn't seem right solution, it works well enough and
1959 OSX isn't main compilation platform.
1961 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1963 * configure.ac: Add -static to LDFLAGS when using apple linker to
1964 prevent it from pulling in dynamic linker.
1966 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1968 Apple assembly doesn't handle symbol arithmetic well. So define an
1969 offset symbol in boot.S and use it.
1971 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1973 Apple assembly doesn't handle symbol arithmetic well. So instead
1974 of getting addres of kernel_sector + 4 define kernel_sector_high.
1975 It also makes code more readable.
1977 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1979 With Apple assembly in .macro environvemnt you have to use $$ instead
1980 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
1981 to $$x on Apple and to $x on everything else.
1983 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1985 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
1988 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1990 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
1991 and non-Apple. This instruction is shorter and faster,
1992 so no reason not to use it on both.
1994 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1996 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
1997 .text when compiling for Apple.
1999 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2001 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2003 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2005 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2006 %dx restore the probe worked on non-existant drive. Reorganize the
2007 code a little bit to free 2 bytes necessary for push/pop.
2009 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2011 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2012 Add missing cast to silence warning.
2014 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2016 * util/grub-install.c (update_nvram): Support --no-nvram flag
2019 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2021 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2023 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2025 * util/garbage-gen.c: Add missing include of sys/time.h.
2027 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2029 Don't add -mflush-func if it's not supported by compiler.
2031 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2033 Move common BIOS/coreboot memory map declarations to
2034 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2036 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2038 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2040 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2042 * INSTALL: Document why older clang versions aren't appropriate.
2044 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2046 * INSTALL: Document about clang for mips.
2048 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2050 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2053 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2055 Add *-xen to the list of grub-install-common platforms.
2057 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2059 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2062 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2064 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2066 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2068 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2069 with -mcmodel=large.
2071 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2073 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2074 range-checking for 32-bit quantities.
2076 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2078 * configure.ac: Compile with -fPIC when compiling with clang on
2081 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2083 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2084 when compiling with clang.
2086 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2088 clang emits calls to abort () under some unknown conditions.
2089 Export abort () when compiling with clang.
2091 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2093 * docs/grub-dev.texi: Document stack and heap sizes.
2095 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2097 * include/grub/i386/pc/memory.h: Decrease
2098 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2099 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2100 The binary doesn't change (checked). It's more to better reflect actual
2103 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2105 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2106 at compile time that enough of scratch size is available.
2108 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2110 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2111 Previously we misaligned stack by 8 in startup.S and compensated
2112 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2113 right behaviour is to align stack in startup.S and keep it aligned
2114 in callwrap.S. startup.S part was committed few commits before. This
2115 takes care of callwrap.S.
2116 Reported by: Gary Lin.
2118 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2120 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2121 .data and .bss. May happen if compiler and assembly use different
2124 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2126 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2129 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2131 Add support for a new magic symbol _gp_disp on mips to handle PIC
2134 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2136 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2138 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2140 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2141 when rest of GRUB is compiled for hisher stepping. Instead use
2142 .set mips3/.set mips1 around cache and sync opcodes.
2144 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2146 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2147 do essentially the same thing, do it in similar way.
2149 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2151 * util/grub-mkrescue.c (main): If a source directory is not
2152 specified, read platform-specific files from subdirectories of
2153 pkglibdir, not pkgdatadir.
2155 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2157 * grub-core/normal/progress.c: Remove unused file.
2159 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2161 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2164 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2166 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2169 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2171 * coreboot.cfg: Add missing file.
2173 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2175 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2177 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2179 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2180 selectively skipping systems.
2182 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2184 * Makefile.util.def (grub-mkimage): Add
2185 grub-core/osdep/aros/config.c to extra_dist.
2186 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2187 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2188 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2189 grub-core/gnulib-no-gets.diff.
2191 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2193 Add automated filesystem checking based on scripts I've used now for
2194 quite some time locally. Most of the test require root so they are
2195 skipped when run without necessarry privelegies.
2197 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2199 * util/grub-install.c (main): Adjust info messages to match
2200 installed paths of grub-bios-setup and grub-sparc64-setup.
2202 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2204 * util/grub-install-common.c (copy_locales): Consistently use
2205 grub_util_get_localedir () rather than LOCALEDIR.
2206 (grub_install_copy_files): Likewise.
2208 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2210 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2211 16-byte boundary, as required by the x86-64 ABI, before calling
2212 grub_main. In some cases, GCC emits code that assumes this
2213 alignment, which crashes if not aligned. The EFI firmware is also
2214 entitled to assume that stack alignment without checking.
2216 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2218 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2219 4k page boundaries as expected by firmware rather than 1k
2221 (grub_mmap_malign_and_register): Likewise.
2223 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2225 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2226 fragmentation 512M is enough.
2228 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2230 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2231 pointer to 32K. This is the size of cache element which is the most
2232 common allocation >1K. This way the pointer is always around blocks
2233 of 32K and so we keep performance while decreasing fragmentation.
2235 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2237 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2238 current memory when allocating large chunks. This significantly
2239 decreases memory fragmentation.
2241 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2243 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2245 * tests/lzocompress_test.in: Skip if lzop is not installed.
2246 * tests/xzcompress_test.in: Skip if xz is not installed.
2248 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2250 * util/grub-mkrescue.c (main): Fix typo.
2252 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2254 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2255 clock frequency to 200 MHz,
2257 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2259 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2261 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2263 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2264 Load config file from (cbfsdisk)/etc/grub.cfg.
2266 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2268 * util/grub-install-common.c (grub_install_copy_files): Fix module
2269 destination directory.
2271 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2273 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2274 files have not been built.
2276 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2278 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2279 Handle errors from mkstemp.
2280 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2282 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2284 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2285 on primary master on pseries.
2287 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2289 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2290 already loaded. This saves memory needed for tests,
2292 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2294 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2297 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2299 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2302 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2304 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2305 master since with some combinations of qemu and firmware only primary
2306 IDE channel is available.
2308 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2310 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2311 low-memory platforms where we don't have enough memory for them.
2312 * grub-core/tests/videotest_checksum.c: Likewise.
2314 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2316 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2317 already loaded. This saves memory needed for tests,
2319 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2321 Fix handling of install lists.
2323 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2325 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2327 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2329 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2330 the devices before accessing them.
2332 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2334 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2337 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2339 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2341 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2343 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2344 (grub_file_close): Free file->name.
2346 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2348 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2349 (grub_load_public_key): Likewise.
2350 (grub_verify_signature_real): Likewise.
2351 (grub_cmd_verify_signature): Likewise.
2353 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2355 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2358 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2360 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2361 (grub_longjmp): Restore r31.
2362 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2364 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2366 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2367 modules to be in line with make_image_abs.
2369 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2371 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2373 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2375 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2377 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2379 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2381 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2382 to leave some memory to firmware.
2384 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2386 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2387 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2388 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2391 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2393 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2394 now needs full arguments.
2396 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2398 * util/grub-mkrescue.c (main): Add trailing \n in
2399 .disk_label.contentDetails to be in line with previous shell script.
2401 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2403 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2405 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2407 * util/grub-install-common.c (grub_install_parse): Recognize
2408 --compress=none like shell script did.
2410 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2412 * include/grub/misc.h: Replace check for __sparc64__ with one for
2413 __sparc__ as __sparc64__ isn't actually defined.
2415 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2417 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2418 counterpart of fixing the naming of escc ports.
2420 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2422 * util/grub-install-common.c (platforms): Fix the order of entries and
2423 remove useless field val.
2425 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2427 * util/grub-install.c: Add new option --no-bootsector to skip
2428 installing of bootsector. Accept --grub-setup=/bin/true as
2429 backwards-compatible synonym.
2431 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2433 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2434 order of qsort arguments (number of elements vs. element size).
2436 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2438 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2439 the function of these files exceeds what can be sanely handled in shell
2440 in posix-comaptible way. Also writing it in C extends the functionality
2441 to non-UNIX-like OS and minimal environments.
2443 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2445 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2446 compiling to thumb2.
2447 * grub-core/kern/arm/cache_armv7.S: Likewise.
2448 * grub-core/lib/arm/setjmp.S: Likewise.
2450 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2452 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2453 in grub_uboot_syscall
2455 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2457 Decrease stack usage in lexer.
2459 We have only 92K of stack and using over 4K per frame is wasteful
2461 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2462 as macros so that compiler would remove useless structure on stack.
2463 Better solution would be to fix flex not to put this structure on
2464 the stack but flex is external program.
2466 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2468 Decrease stack usage in signature verification.
2470 We have only 92K of stack and using over 4K per frame is wasteful
2472 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2474 (grub_verify_signature_real): Likewise.
2476 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2478 Decrease stack usage in mdraid 0.9x.
2480 We have only 92K of stack and using over 4K per frame is wasteful
2482 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2485 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2487 Decrease stack usage in BtrFS.
2489 We have only 92K of stack and using over 4K per frame is wasteful
2491 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2494 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2496 Decrease stack usage in JFS.
2498 We have only 92K of stack and using over 4K per frame is wasteful
2500 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2501 stack. Note: this function is recursive.
2502 (grub_jfs_read_inode): Read only part we care about.
2504 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2506 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2509 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2511 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2513 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2515 * docs/grub.texi (Environment): Document cmdpath.
2517 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2519 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2520 Remove "unused" attribute from arguments, they are used.
2522 2013-11-15 Colin Watson <cjwatson@debian.org>
2524 * .gitignore: Only ignore grub-mk* at the top level.
2526 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2528 * util/grub-reboot.in (usage): Fix a typo.
2530 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2532 Replace libgcc version of ctz with our own.
2534 On upcoming arm64 port libgcc ctz* are not usable in standalone
2535 environment. Since we need ctz* for this case and implementation is
2536 in C we may as well use it on all concerned platforms.
2538 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2540 * configure.ac: Probe for linking format rather than guessing it based
2543 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2545 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2546 "1" prior to handoff.
2548 Reported by: M A Young.
2550 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2552 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2555 Reported by: M A Young.
2557 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2559 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2560 compilation on NetBSD.
2562 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2564 * acinclude.m4: Don't add -P on initial nm test.
2566 Note: even though this patch postdates Andrey's it bears 14 Nov as
2567 date due to timezone difference.
2569 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2571 * grub-core/Makefile.core.def (signature_test): Add missing
2574 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2576 * util/grub-install_header: Set localedir here, since this file is
2578 * util/grub-install.in: Remove setting of localedir.
2579 * util/grub-mkrescue.in: Likewise.
2581 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2583 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2585 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2587 * configure.ac: Move nm checks to the end.
2588 Call grub_PROG_NM_WORKS.
2589 * acinclude.m4: New check grub_PROG_NM_WORKS.
2590 Use $TARGET_CFLAGS -c when compiling test binary.
2592 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2594 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2597 2013-11-14 Matthew Garrett <mjg@redhat.com>
2599 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2600 cmdpath to firmware directory.
2602 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2604 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2605 at the start of second iteration.
2607 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2609 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2611 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2613 * Makefile.am (default_payload.elf): New target for easier coreboot
2616 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2618 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2619 clang (not necessarry with -no-integrated-as).
2620 * include/grub/symbol.h [__arm__]: Likewise.
2622 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2624 * configure.ac: Use -no-integrated-as on arm with clang.
2625 * INSTALL: Mention ARM compilation with clang.
2627 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2629 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2632 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2634 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2635 code for indirect block handling.
2637 Saves 185 bytes on compressed image.
2639 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2643 * Makefile.am: Remove build-grub-* in make clean.
2645 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2647 New files to gitignore.
2649 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2650 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2652 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2654 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2656 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2658 * .gitignore: fix rules for .dep* and add *.a post git migration
2660 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2662 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2665 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2667 * grub-core/kern/misc.c: Don't redirect divisions in the
2669 * include/grub/misc.h: Likewise.
2671 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2673 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2674 systems that require checking the return value of write.
2676 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2678 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2679 efibootmgr quiet when --debug is not used, rather than when it is.
2681 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2683 * gentpl.py (define_macro_for_platform_dependencies): Remove
2684 first (and thus unused) of two definitions for this function.
2685 (platform_dependencies): Likewise.
2687 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2689 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2690 functions, we only need to check this for the target, not the host.
2691 * configure.ac (grub_apple_cc): Likewise.
2693 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2695 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2696 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2697 asm to stay in arm even if surrounding is thumb.
2699 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2701 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2702 helper functions are needed for thumb.
2704 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2706 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2707 level / 3 division explicitly unsigned. Saves few bytes.
2709 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2711 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2713 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2715 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2718 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2720 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2721 grub_uboot_boot_data to asm part.
2723 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2725 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2727 (grub_uboot_syscall): Save/restore r9 and align stack.
2729 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2731 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2733 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2735 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2736 occurencies with END.
2738 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2740 * util/grub-editenv.c (help_filter, argp): Document how to delete
2741 the whole environment block.
2742 Reported by Dan Jacobson. Fixes Debian bug #726265.
2744 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2746 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2749 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2751 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2752 increment/decrement.
2754 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2756 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2757 compiling with clang.
2759 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2761 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2764 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2766 Redirect all divisions to grub_divmod64.
2768 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2770 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2772 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2774 Add missing includes of loader.h.
2776 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2778 * configure.ac: Allow disabling themes.
2780 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2782 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2784 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2786 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2787 until it becomes operational.
2789 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2791 * grub-core/Makefile.core.def (legacy_password_test): Disable
2792 on platforms where no legacycfg is compiled.
2793 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2794 load legacy_password_test.
2796 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2798 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2800 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2802 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2804 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2806 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2807 strict-aliasing warning.
2808 (fsync): Silence cast warning.
2810 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2812 * grub-core/commands/verify.c: Remove variable length arrays.
2813 Load gcry_dsa/gcry_rsa automatically.
2815 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2817 * grub-core/tests/signature_test.c: New test.
2819 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2821 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2824 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2826 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2827 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2829 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2831 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2833 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2835 * grub-core/fs/proc.c: Allow \0 in proc files.
2837 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2839 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2841 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2843 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2845 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2847 * grub-core/fs/ext2.c: Remove variable length arrays.
2849 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2851 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2854 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2856 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2857 * grub-core/disk/cryptodisk.c: Likewise.
2858 * grub-core/disk/geli.c: Likewise.
2859 * grub-core/disk/luks.c: Likewise.
2861 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2863 * grub-core/tests/legacy_password_test.c: New test.
2864 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2866 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2868 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2870 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2872 * grub-core/tests/pbkdf2_test.c: New test.
2874 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2876 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2878 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2880 * grub-core/io/lzopio.c: Remove variable length arrays.
2882 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2884 * include/grub/crypto.h: Add maximums on hash size and cipher block
2887 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2889 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2891 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2893 * grub-core/tests/xnu_uuid_test.c: New test.
2895 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2897 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2900 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2902 * grub-core/commands/hashsum.c: Remove variable length arrays.
2904 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2906 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2908 * tests/grub_func_test.in: Increase memory allocation.
2910 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2912 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2913 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2916 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2918 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2919 (grub_util_get_fd_size_os): ...this.
2920 (grub_hostdisk_flush_initial_buffer): New empty function.
2922 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2924 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2925 without --defined-only.
2927 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2929 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2930 rip-relative addressing in prologue.
2932 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2934 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2935 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2937 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2939 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2940 Add missing semicolon.
2942 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2944 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2946 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2948 * configure.ac: Check for lzma.h for enabling liblzma and allow
2951 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2953 Add missing includes of loader.h.
2955 2013-11-11 Fam Zheng <famcool@gmail.com>
2957 * util/grub.d/30_os-prober.in: Add minix entry.
2959 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2961 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2962 right buffer for temporary load.
2964 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2966 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2968 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2970 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2973 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2975 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2977 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
2979 (LzmaDec_InitDicAndState): Make static.
2981 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2983 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2985 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2987 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
2989 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
2991 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2993 * docs/grub-dev.texi: Replace bzr references with git ones.
2995 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2997 * docs/grub.texi (Simple configuration): Remove reference to
2998 grub-reboot from saved default entry description - grub-default
2999 does not use it anymore.
3001 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3003 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3006 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3008 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3010 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3012 Fix grub_machine_fini bitrot.
3014 Reported by: Glenn Washburn.
3016 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3018 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3020 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3022 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3024 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3027 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3029 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3030 Add -march=core2 when testing compile of efiemu64.
3032 Thanks Andrey Borzenkov for spotting this.
3034 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3036 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3037 XEN PV environment and load kernels.
3039 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3041 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3042 * grub-core/loader/multiboot_mbi2.c: Likewise.
3044 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3046 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3049 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3051 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3053 Tested by: Denis 'GNUtoo' Carikli.
3055 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3057 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3059 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3061 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3062 Use to get rounded angle rather than truncated.
3064 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3066 * grub-core/term/serial.c: Add option for enabling/disabling
3067 RTS/CTS flow control.
3069 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3071 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3074 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3076 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3077 Use grub_fatal rather than divide by zero.
3078 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3080 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3082 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3084 (grub_fixed_fsf_divide): Likewise.
3086 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3088 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3089 division by-zero and senseless negative divisions.
3091 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3093 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3094 division by-zero and senseless negative divisions.
3095 (circprog_set_property): Don't accept negative num_ticks.
3097 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3099 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3100 division by-zero and senseless negative divisions.
3102 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3104 * configure.ac: Use elf_*_fbsd on kfreebsd.
3106 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3108 * grub-core/tests/div_test.c: New test.
3110 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3112 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3113 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3114 * grub-core/gfxmenu/view.c: Likewise.
3115 * grub-core/video/fb/video_fb.c: Introduce new functions:
3116 grub_video_set_area_status, grub_video_get_area_status,
3117 grub_video_set_region, grub_video_get_region.
3118 * grub-core/video/bochs.c: Likewise.
3119 * grub-core/video/capture.c: Likewise.
3120 * grub-core/video/video.c: Likewise.
3121 * grub-core/video/cirrus.c: Likewise.
3122 * grub-core/video/efi_gop.c: Likewise.
3123 * grub-core/video/efi_uga.c: Likewise.
3124 * grub-core/video/emu/sdl.c: Likewise.
3125 * grub-core/video/radeon_fuloong2e.c: Likewise.
3126 * grub-core/video/sis315pro.c: Likewise.
3127 * grub-core/video/sm712.c: Likewise.
3128 * grub-core/video/i386/pc/vbe.c: Likewise.
3129 * grub-core/video/i386/pc/vga.c: Likewise.
3130 * grub-core/video/ieee1275.c: Likewise.
3131 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3132 * include/grub/video.h: Likewise.
3133 * include/grub/video_fb.h: Likewise.
3134 * include/grub/fbfill.h: Updated render_target structure.
3135 grub_video_rect_t viewport, region, area
3136 int area_offset_x, area_offset_y, area_enabled
3137 * include/grub/gui.h: New helper function
3138 grub_video_bounds_inside_region.
3139 * docs/grub-dev.texi: Added information about new functions.
3141 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3143 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3146 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3148 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3150 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3152 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3154 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3155 simple division on arm and ia64.
3157 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3159 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3162 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3164 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3166 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3168 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3169 prefix symbol, not @.
3171 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3173 * INSTALL: Add note about older gcc and clang.
3175 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3177 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3179 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3181 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3182 NULL pointer dereference.
3184 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3186 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3189 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3191 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3194 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3196 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3198 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3199 * grub-core/disk/geli.c (ascii2hex): Likewise.
3201 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3203 * configure.ac: Run linker tests without -Werror.
3204 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3205 Change all occurences of -static-libgcc resp -lgcc to
3206 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3208 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3210 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3212 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3214 Allow compiling with clang (not really supported though).
3216 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3218 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3219 Add -mrtd -mregparm=3 on i386 when not using clang.
3220 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3222 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3224 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3226 * grub-core/lib/reed_solomon.c: Likewise.
3227 * include/grub/i386/gdb.h: Likewise.
3228 * include/grub/i386/pc/int.h: Likewise.
3229 * include/grub/i386/pc/pxe.h: Likewise.
3230 * include/grub/ieee1275/ieee1275.h: Likewise.
3232 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3234 Import libgcrypt 1.5.3.
3236 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3238 * configure.ac: Don't add -Wcast-align on x86.
3240 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3242 * configure.ac: Add -freg-struct-return on all platforms that
3245 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3247 * acinclude.m4: Use -Werror on parameter tests.
3248 * configure.ac: Likewise.
3250 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3252 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3254 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3256 * configure.ac: Check that -malign-loops works rather than assuming that
3257 either -falign-loops or -malign-loops work.
3259 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3261 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3263 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3265 * configure.ac: Prevent cflags leaking to subsequent tests by always
3266 resetting cflags to target_cflags in target tests.
3268 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3270 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3273 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3275 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3277 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3279 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3281 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3283 * grub-core/normal/cmdline.c (grub_cmdline_get):
3284 Remove nested functions.
3286 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3288 * tests/test_sha512sum.in: Make it work on emu.
3290 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3292 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3294 (grub_bidi_line_logical_to_visual): Likewise.
3296 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3298 Remove vestiges of -Wunsafe-loop-optimisations.
3300 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3301 -Wno-unsafe-loop-optimisations.
3302 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3304 * grub-core/io/gzio.c: Likewise.
3305 * grub-core/script/parser.y: Likewise.
3306 * grub-core/script/yylex.l: Likewise.
3307 * util/grub-mkfont.c: Likewise.
3309 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3311 * util/grub-mkfont.c (process_cursive): Remove nested function.
3313 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3315 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3316 (grub_boot_time): Likewise.
3318 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3320 * include/grub/symbol.h (FUNCTION): Use @function rather than
3322 (VARIABLE): Likewise.
3324 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3326 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3328 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3330 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3331 (parse_dhcp_vendor): Likewise.
3333 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3335 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3337 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3339 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3340 Define after defining type and not before.
3342 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3344 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3346 (grub_gcm_decrypt): Likewise.
3347 (algo_decrypt): Likewise.
3348 (grub_zfs_decrypt_real): Transform error type.
3350 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3352 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3354 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3356 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3357 (grub_usbms_cbi_reset): Likewise.
3358 (grub_usbms_bo_reset): Likewise.
3359 (grub_usbms_reset): Likewise.
3360 (grub_usbms_attach): Likewise.
3361 (grub_usbms_transfer_cbi): Likewise.
3363 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3365 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3366 "checksum = checksum;".
3368 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3370 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3373 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3375 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3378 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3380 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3382 (grub_ehci_fini_hw): Likewise.
3383 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3385 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3387 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3388 return grub_usb_err_t for cosistency. All users updated.
3390 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3392 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3393 assigning to itself.
3395 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3396 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3398 Issue separate DNS queries for ipv4 and ipv6
3400 Adding multiple questions on a single DNS query is not supportted by
3401 most DNS servers. This patch issues two separate DNS queries
3402 sequentially for ipv4 and then for ipv6.
3404 Fixes: https://savannah.gnu.org/bugs/?39710
3406 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3407 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3408 * (grub_net_dns_lookup): Now using separated dns packages.
3409 * (grub_cmd_nslookup): Add error condition.
3410 * (grub_cmd_list_dns): Print DNS option.
3411 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3412 --prefer-ipv4, and --prefer-ipv6.
3413 * include/grub/net.h (grub_dns_option_t): New enum.
3414 * (grub_net_network_level_address): option added.
3416 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3418 * grub-core/video/fb/video_fb.c: Merge two blit functions
3421 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3423 * grub-core/term/terminfo.c: Add sequences for home and end.
3425 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3430 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3432 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3435 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3437 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3438 e-mail by Per Öberg.
3440 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3442 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3445 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3447 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3449 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3451 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3453 * docs/grub.texi: Document usage of menuentry id.
3455 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3457 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3459 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3461 * grub-core/commands/i386/nthibr.c: New command.
3463 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3465 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3467 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3469 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3472 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3474 Support GRUB_DISABLE_SUBMENU config.
3476 Inspired by patch from Prarit Bhargava.
3478 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3480 * docs/grub.texi: Mention RSA support.
3482 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3484 * grub-core/commands/verify.c: Add RSA support.
3486 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3488 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3489 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3490 device is known to be ATAPI.
3492 2013-11-03 Mike Frysinger <vapier>
3494 * configure.ac: Don't add target-prefix.
3496 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3498 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3501 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3503 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3504 if language is English.
3506 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3508 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3510 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3512 * configure.ac: Don't add -m32/-m64 on emu.
3516 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3517 broken linux headers.
3519 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3521 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3523 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3525 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3526 Reed-Solomon recovery if more than half of redundancy info is 0.
3528 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3530 * util/grub-mount.c: Handle symlinks to directories.
3532 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3534 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3535 find_file recursively for symlink.
3537 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3539 * tests/util/grub-shell.in: Copy themes.
3541 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3543 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3545 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3547 * configure.ac: Use 0x8000 for address instead of 8000.
3549 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3551 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3554 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3556 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3559 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3561 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3563 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3565 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3566 file_progress_read_hook.
3567 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3569 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3571 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3574 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3576 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3578 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3580 Rewrite blocklist functions in order to get progress when
3581 reading large extents and decrease amount of blocklist hook calls.
3583 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3585 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3588 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3590 Support --base-clock for serial command to handle weird cards with
3591 non-standard base clock.
3593 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3595 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3597 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3598 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3599 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3600 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3601 + strcpy rather than strncpy.
3603 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3605 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3606 (check_pool_label): Likewise. Fixes overflow.
3607 (nvlist_find_value): Fix comparison.
3609 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3611 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3612 more appropriate functions.
3614 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3616 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3619 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3621 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3623 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3625 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3628 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3630 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3632 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3634 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3635 (initialize_tables): reset tl and td to NULL after freeing.
3637 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3639 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3641 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3643 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3646 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3648 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3650 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3652 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3655 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3657 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3658 a page in protected space.
3660 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3662 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3663 allocate space for zero-sized modules.
3665 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3667 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3669 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3671 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3673 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3675 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3676 safeguards. Fixes a crash with i386/pc/console.c.
3678 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3680 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3681 and grub_hostfs_init.
3683 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3685 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3686 windows method on other platforms without good stat as well.
3688 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3690 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3692 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3694 Make / in btrfs refer to real root, not the default volume.
3695 Modify mkrelpath to work even if device is mounted with subvolid option.
3697 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3699 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3701 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3704 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3706 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3709 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3711 * docs/autoiso.cfg: New file.
3713 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3715 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3716 COND_GRUB_PE2ELF conditions.
3718 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3720 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3721 "vnd", "rd" and "fd" disks.
3723 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3725 Move grub_disk_write out of kernel into disk.mod.
3727 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3729 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3732 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3734 * grub-core/kern/misc.c (grub_abort): Make static
3736 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3738 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3739 transform invalid unicode codepoints.
3741 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3743 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3746 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3748 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3750 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3752 Consolidate cpuid code.
3754 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3756 Move cpuid code to cpuid.h and TSC code to tsc.c.
3758 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3760 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3762 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3764 * util/grub-mkconfig.in: Replace $0 with $self.
3765 * util/grub-reboot.in: Likewise.
3766 * util/grub-set-default.in: Likewise.
3768 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3770 * docs/osdetect.cfg: New file.
3772 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3774 * tests/util/grub-shell.in: Add new --debug option.
3776 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3778 * tests/test_unset.in: New test.
3780 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3782 * tests/test_sha512sum.in: New test.
3784 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3786 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3787 * include/grub/misc.h: Remove strncat.
3788 * grub-core/lib/posix_wrap/string.h: Likewise.
3790 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3792 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3793 Try to handle more than 0xFFFF packets.
3794 Reported by: Bernhard Übelacker <bernhardu>.
3795 He also spotted few overflows in first version of this patch.
3797 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3799 * tests/date_unit_test.c: New test.
3801 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3803 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3804 of first three years after start of validity of unixtime.
3806 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3808 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3809 division as the one making more sense.
3810 (update_screen): Likewise.
3811 (complete): Likewise.
3813 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3815 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3817 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3819 Make char and string width grub_size_t rather than grub_ssize_t.
3821 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3823 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3825 (grub_history_replace): Likewise.
3827 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3829 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3832 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3834 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3837 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3839 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3840 Use unsigned divisions rather than signed variants.
3842 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3844 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3845 unsigned arithmetics.
3848 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3850 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3852 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3854 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3855 rather than signed one.
3856 (recovery): Likewise.
3858 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3860 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3862 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3864 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3867 2013-10-25 Jon McCune <jonmccune@google.com>
3869 * docs/grub.texi: Cleanup security documentation around signatures.
3871 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3873 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3875 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3877 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3880 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3882 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3883 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3884 functions when compiling for kernel.
3886 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3888 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3889 unsigned long long when using %llu.
3891 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3893 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3894 terminal after updating progress.
3896 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3898 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3899 argument. We don't disable Gate A20 in this code.
3901 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3903 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3904 Conceptually based on change in branch "vbe-on-coreboot".
3906 2013-10-24 Robert Millan <rmh@gnu.org>
3908 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3909 numeric constants with their symbolic equivalent.
3910 Taken from branch "vbe-on-coreboot".
3912 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3914 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3916 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3918 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3919 divmod64 for offset division.
3921 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3923 Rename .bzrignore to .gitignore. Add "*.o" rule.
3925 * .bzrignore: Renamed to...
3926 * .gitignore: ...this.
3928 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3930 Add new progress module that displays the load progress of files.
3932 * grub-core/lib/progress.c: New file.
3933 * grub-core/Makefile.core.def (progress): New module.
3934 * grub-core/kern/file.c (grub_file_open): File name added.
3935 * (grub_file_read): Progress hook added.
3936 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3937 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3938 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3939 * include/grub/file.h (struct grub_file): Add progress module members.
3940 * include/grub/term.h (struct grub_term_output): Likewise.
3941 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3942 Terminal velocity added.
3943 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3944 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3945 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3946 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3947 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3948 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3949 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3950 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3951 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3952 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3953 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3954 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3956 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3958 Verify signatures of signatures unless --skip-sig is specified.
3960 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3962 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3965 Saves 70 bytes on compressed image.
3967 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3969 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3972 Saves 10 bytes on compressed image.
3974 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3976 * grub-core/kern/misc.c (grub_isprint): Move to ...
3977 * include/grub/misc.h (grub_isprint): ... here. Make inline.
3979 Saves 20 bytes on compressed image due to remving exporting.
3981 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3983 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
3985 Saves 5 bytes on compressed image.
3987 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3989 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
3992 Saves 379 bytes on compressed image.
3994 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3996 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
3998 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4000 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4002 Saves 40 bytes on compressed image.
4004 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4006 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4007 mask rather than 64-bit type.
4009 Saves 20 bytes on compressed image.
4011 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4013 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4014 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4016 Saves 273 bytes on compressed image.
4018 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4020 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4021 variable length arrays.
4023 Saves 50 bytes on compressed image.
4025 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4027 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4029 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4031 * grub-core/fs/ufs.c: Remove variable length arrays.
4033 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4035 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4037 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4039 * grub-core/fs/zfs.c: Remove variable length arrays.
4040 Reduces zfs.mod by 160 bytes (208 compressed).
4042 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4044 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4046 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/net/arp.c: Remove variable length arrays.
4049 * grub-core/net/bootp.c: Likewise.
4050 * grub-core/net/dns.c: Likewise.
4051 * grub-core/net/icmp6.c: Likewise.
4052 * grub-core/net/net.c: Likewise.
4054 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4056 * grub-core/fs/ntfs.c: Remove variable length arrays.
4057 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4060 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4062 * grub-core/fs/hfs.c: Remove variable length arrays.
4063 Reduces hfs.mod by 8 bytes (52 compressed).
4065 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4067 * grub-core/fs/udf.c: Remove variable length arrays.
4068 Increases udf.mod by 128 bytes (but decreases by 13 when
4071 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4073 * grub-core/fs/iso9660.c: Remove variable length arrays.
4074 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4077 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4079 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4080 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4083 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4085 * grub-core/fs/xfs.c: Remove variable length arrays.
4086 Reduces xfs.mod by 40 bytes (43 compressed).
4088 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4090 * grub-core/fs/fshelp.c: Remove variable length arrays.
4091 Reduces fshelp.mod by 116 bytes (23 compressed).
4093 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4095 * grub-core/normal/completion.c: Remove variable length arrays.
4096 * grub-core/normal/menu_entry.c: Likewise.
4098 Reduces normal.mod by 496 bytes.
4100 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4102 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4103 by 356 bytes (158 compressed).
4105 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4107 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4108 by 364 bytes (169 compressed).
4110 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4112 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4113 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4114 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4116 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4118 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4119 bitmasks to small structures of size chosen to fit in registers.
4121 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4123 * conf/Makefile.common: Use -freg-struct-return on i386. This
4124 decreases code size and improves performance.
4126 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4128 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4130 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4132 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4134 Simplify expressions to save around 256 bytes in kernel.img.
4135 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4137 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4139 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4140 Use GRUB_UTIL_FD_O_* rather than O_*.
4142 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4144 Add haiku-specific functions.
4146 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4148 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4150 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4152 Move stat () and device mode checking into OS-dependent files as
4153 long as performance doesn't suffer.
4155 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4157 Split make_system_path_relative_to_its_root into separate file
4158 relpath.c from getroot.c as it's common between unix and haiku
4159 but otherwise haiku doesn't use any functions from unix getroot.c.
4161 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4163 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4165 (grub_util_is_special_file): Likewise.
4167 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4169 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4170 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4172 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4174 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4175 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4177 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4179 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4180 (load_image): Likewise.
4182 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4184 * util/grub-render-label.c: Move backend part to ...
4185 * util/render-label.c: ... here.
4187 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4189 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4190 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4192 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4194 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4196 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4198 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4199 CD-ROM in case when it's declared as having subpartitions.
4201 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4203 Don't add -lm on haiku.
4205 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4207 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4210 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4212 * configure.ac: Use -melf_*_haiku as target on haiku.
4214 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4216 * Makefile.util.def: Add util/setup.c to extra_dist.
4218 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4220 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4221 unknown types through.
4223 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4225 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4226 (grub_util_check_char_device): Likewise.
4227 * include/grub/emu/getroot.h: Likewise.
4229 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4231 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4232 memset rather than inline static function.
4234 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4236 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4237 not doing embedded decompressor.
4239 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4241 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4243 * grub-core/kern/disk.c: Likewise.
4244 * grub-core/kern/misc.c: Likewise.
4245 * include/grub/parser.h: Likewise.
4246 * include/grub/script_sh.h: Likewise.
4247 * include/grub/zfs/zfs.h: Likewise.
4249 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4251 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4253 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4256 defined before trying to use it.
4258 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4260 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4263 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4265 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4266 Use __unused__ rather than __used__ on gcc < 3.2.
4268 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4270 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4272 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4274 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4276 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4278 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4280 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4281 * include/grub/emu/misc.h: Likewise.
4283 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4285 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4288 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4290 * grub-core/tests/checksums.h: Regenerated due to progress bar
4291 get_minimal_size changes.
4293 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4295 Added `tr' command support.
4297 * grub-core/commands/tr.c: New file.
4298 * grub-core/Makefile.core.def: Build rules for new module.
4300 * tests/grub_cmd_tr.in: New test.
4301 * Makefile.util.def: Build rules for new test.
4303 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4305 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4307 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4309 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4310 * docs/gurb.texi: Likewise.
4312 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4314 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4315 Pixmap highlighted section with east and west slices was displayed
4316 incorrectly due to negative width of the central slice.
4318 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4320 * docs/grub.texi: Graphical options information update.
4321 Removed outdated. Updated current. Inserted missed.
4323 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4325 * docs/grub.texi: Mention few new platform-specific commands.
4327 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4329 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4330 currently used so this doesn't really have any effect.
4331 Reported by: Douglas Ray <dougray>
4333 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4335 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4336 compilation but prevents gcc from displaying messages in non-Latin
4338 * conf/Makefile.common: Likewise.
4340 2013-10-16 Hiroyuki YAMAMORI
4342 Handle Japanese special keys.
4343 Reported by: Hiroyuki YAMAMORI.
4344 Codes supplied by: Hiroyuki YAMAMORI.
4346 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4348 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4350 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4352 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4353 * docs/grub.texi: Likewise.
4355 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4357 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4358 value in case of incomplete read.
4359 (grub_util_fd_write): Likewise.
4361 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4363 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4365 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4367 * util/grub-editenv.c (create_envblk_file): More from here ...
4368 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4370 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4372 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4373 canonicalize file name before doing the rest.
4375 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4377 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4380 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4382 Define grub_util_is_directory/regular/special_file and
4383 use OS-dependent versions rather than to rely on stat().
4385 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4387 * util/grub-mkimage.c: Move backend part to ...
4388 * util/mkimage.c: ... here.
4390 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4392 Allow compilation with mingw64 albeit with warnings due to lack of
4395 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4396 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4397 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4398 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4400 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4402 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4404 Remove leftover references to some of the system headers.
4406 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4408 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4411 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4413 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4416 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4418 Split out blocklist retrieving from setup.c to
4419 grub-core/osdep/blocklist.c and add windows implementation since
4420 generic version doesn't work on NTFS on Windows due to aggressive
4423 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4425 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4428 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4430 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4431 Cut tailing newline. Remove arbitrary limitation. Always use
4432 grub_util_tchar_to_utf8.
4434 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4436 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4437 * tests/printf_unit_test.c (printf_test): Add %% tests.
4438 Reported by: Paulo Flabiano Smorigo.
4440 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4442 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4445 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4447 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4448 use nvlist_lookup_string and don't use nvlist_print.
4450 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4452 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4453 closedir to handle filename charset translation.
4455 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4457 * include/grub/emu/hostdisk.h: Move file operations to
4458 * include/grub/emu/hostfile.h: ... here.
4460 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4462 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4465 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4467 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4469 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4471 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4472 and remove export.h.
4474 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4476 * grub-core/kern/emu/error.c: Removed.
4477 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4478 explicitly as it's already in libgnu.a.
4480 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4482 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4483 config-util.h include.
4485 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4487 Split emunet into platform-dependent and GRUB-binding parts. Keep
4488 platform-dependent part in kernel for easy access to OS functions.
4490 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4492 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4495 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4497 * grub-core/osdep/windows/emuconsole.c: New file.
4499 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4501 * conf/Makefile.extra-dist: Add osdep/*/init.c
4503 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4505 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4507 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4509 * util/grub-probe.c (probe): Separate different drives in hint-str
4510 by spaces and not newlines.
4511 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4513 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4515 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4518 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4520 Pass-through unknown E820 types. It required reorganisation of mmap
4523 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4525 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4527 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4529 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4532 2013-10-14 qwertial <qwertial>
4534 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4536 2013-10-14 Jon McCune <jonmccune@google.com>
4538 * docs/grub.texi: Document new signatures possibility.
4540 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4542 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4544 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4546 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4548 (grub_util_tchar_to_utf8): Likewise.
4550 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4552 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4553 * grub-core/kern/emu/main.c: Add missing include.
4554 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4555 Don't call grub_util_init_nls.
4556 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4559 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4561 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4564 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4566 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4568 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4570 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4572 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4574 Add a wrapper for fopen. On unix-like systems just pass-through. On
4575 windows use unicode version.
4577 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4579 Move set_program_name and init_nls to host_init. On windows
4580 fix in this fuction console and argument charset as well.
4582 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4584 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4585 GRUB_ENABLE_CRYPTODISK.
4587 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4588 GRUB_ENABLE_CRYPTODISK.
4589 * util/grub-mkconfig_lib.in: Likewise.
4591 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4593 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4595 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4597 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4598 error when enabling debug.
4600 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4602 * configure.ac: Use -melf_*_obsd on openbsd.
4604 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4606 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4608 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4610 * include/grub/misc.h: Use gnu_printf rather than printf as format
4611 template since our functions are independent of libc.
4613 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4615 * util/grub-setup.c (setup): Move copying of partition table as
4616 futher up as possible to avoid possible overwrite by floppy routines.
4618 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4620 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4622 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4624 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4625 * docs/grub.texi: Likewise.
4627 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4629 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4630 it's mostly unused. Move vestiges to the callers.
4632 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4634 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4635 version of salt and hash. Use grub_snprintf rather than snprintf.
4637 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4639 * docs/grub.texi: Fix problem with braces.
4641 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4643 * conf/Makefile.extra-dist: Fix extra-dist list.
4644 * grub-core/Makefile.core.def: Likewise.
4646 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4648 * docs/grub.texi: Document disk names used on Windows and AROS.
4650 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4652 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4654 * grub-core/osdep/aros/hostdisk.c: Likewise.
4656 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4658 Avoid including hostfile.h when not necessarry as it pulls
4659 in OS-specific headers which may redefine generic names
4662 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4664 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4665 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4666 scrollbar_bottom_pad
4667 * docs/grub.texi: Likewise.
4669 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4671 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4673 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4675 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4677 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4679 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4681 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4684 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4686 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4689 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4691 Move OS-specific driver configuration to grub_util_fd_open. This
4692 moves OS-dependent parts from kern/emu/hostdisk.c to
4693 grub-core/osdep/*/hostdisk.c.
4695 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4697 * util/grub-mkimage.c (generate_image): Use size_t instead of
4699 * util/grub-mkimagexx.c (locate_sections): Likewise.
4700 (load_image): Likewise.
4702 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4704 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4706 (grub_util_write_image): Likewise.
4708 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4710 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4711 get random when no RNG is available.
4712 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4714 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4716 * include/grub/util/lvm.h: Removed.
4718 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4720 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4721 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4723 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4725 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4727 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4729 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4731 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4733 * grub-core/net/drivers/emu/emunet.c: Move to ..
4734 * grub-core/osdep/linux/emunet.c: ..here.
4736 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4738 * util/ieee1275/ofpath.c: Move to ...
4739 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4740 * grub-core/osdep/basic/ofpath.c: ..here.
4742 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4744 Move password-querying (util-version) routines to grub-core/osdep.
4746 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4748 Move sleep routines to grub-core/osdep.
4750 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4752 Move OS-dependent files to grub-core/osdep and document it.
4754 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4756 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4757 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4759 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4761 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4763 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4765 * util/misc.c: Remove leftover inclusion of malloc.h.
4767 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4769 * include/grub/setjmp.h: Remove leftover GRUBOF.
4771 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4773 * util/raid.c: Fold into ...
4774 * util/getroot_linux.c: ... here. Make all functions static.
4776 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4778 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4779 macros to GRUB ones.
4781 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4783 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4784 occasional bug. If there are too many boot entries or too low
4785 scrollbar height then we need to use another formula to calculate
4786 the position and size of the scrollbar thumb.
4788 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4790 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4792 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4794 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4795 * docs/grub.texi: Likewise.
4797 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4799 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4802 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4804 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4805 minimal width calculations.
4807 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4809 * docs/grub.texi: Update note on colors on emu console.
4811 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4813 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4814 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4815 it's FS and not GRUB limitation.
4817 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4819 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4821 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4823 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4825 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4827 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4828 kernels by version order.
4830 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4832 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4834 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4836 Add AROS hostdisk and getroot routines.
4838 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4840 Make cryptodisk and diskfilter probe data retrievable programmatically
4841 and not just printable.
4843 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4845 Split random retrieving code into separate files.
4847 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4849 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4852 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4854 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4856 * grub-core/tests/fake_input.c: Likewise.
4857 * grub-core/tests/cmdline_cat_test.c: Likewise.
4859 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4861 * grub-core/video/capture.c: Do not do finalization when .fini
4862 is called as there is explicit capture_end.
4864 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4866 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4867 changing windows to avoid crash.
4869 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4871 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4873 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4875 * po/exclude.pot: Add several strings to exclude.
4877 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4879 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4881 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4883 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4884 ./util/grub-gen-asciih.c to exclude list.
4886 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4888 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4889 and don't mark error strings for translation.
4891 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4893 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4894 properly in case of missing block size.
4896 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4898 * grub-core/lib/arm/setjmp.S: Add missing license section.
4900 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4902 * po/swiss.sed: Add replacement for key names and for term computer.
4904 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4906 * grub-core/gfxmenu/theme_loader.c: New global options for the
4907 theme background image handling. desktop-image-scale-method,
4908 desktop-image-h-align, desktop-image-v-align.
4909 * grub-core/gfxmenu/view.c: Likewise.
4910 * include/gfxmenu_view.h: Likewise.
4911 * include/bitmap_scale.h: Proportional scale functions introduced.
4912 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4913 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4914 cases of unexpected input variables for scale functions.
4915 * docs/grub.texi: Updated documentation for new options.
4917 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4919 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4921 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4923 * grub-core/tests/checksums.h: Corrected due to changes in
4924 bilinear interpolation function.
4926 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4928 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4929 to eliminate artefacts in bilinear interpolation.
4931 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4933 * grub-core/video/readers/tga.c: Support paletted tga.
4935 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4937 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4938 incorrect cbcr setting when in color mode.
4940 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4942 * grub-core/video/readers/png.c: Support paletted images and clean up
4945 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4947 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4948 usage of wrong table which resulted in mishandling of 4-byte
4951 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4953 * grub-core/term/terminfo.c: Add Home and End key sequences.
4955 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4957 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4958 Fix formula for computing total number of bytes.
4960 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4962 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4963 image processing, fix big-endian and support grayscale.
4965 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4967 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4968 Correctly will with maximum transparency when using index color.
4970 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4972 * grub-core/video/readers/png.c: Support grayscale
4974 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4976 * grub-core/video/readers/jpeg.c: Support grayscale.
4978 2013-09-26 Jon McCune <jonmccune@google.com>
4980 * grub-core/commands/loadenv.c: Support skipping signature check
4981 and variable names filtering.
4983 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4985 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
4986 * grub-core/kern/emu/hostfs.c: Likewise.
4987 * util/getroot_unix.c: Likewise.
4989 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4991 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
4992 Migrate all explicit defines to this new one.
4994 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4996 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
4997 grub_util_fd_strerror when using grub_util_fd_*.
4998 (grub_util_fd_open_device): Likewise.
4999 (grub_util_biosdisk_read): Likewise.
5000 (grub_util_biosdisk_write): Likewise.
5001 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5002 (grub_util_fd_strerror): Likewise.
5003 (grub_util_fd_sync): Likewise.
5004 (grub_util_fd_close): Likewise.
5005 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5006 (grub_util_fd_close): Likewise.
5007 (grub_util_fd_strerror): Likewise.
5008 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5009 function proto rather than macro.
5010 (grub_util_fd_sync): Likewise.
5011 (grub_util_fd_open): Likewise.
5012 (grub_util_fd_strerror): New proto.
5014 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5016 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5017 platforms on which it doesn't work.
5019 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5021 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5022 stat immediately to where it's used.
5024 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5026 * util/getroot.c (grub_util_check_block_device): Move to ...
5027 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5028 * util/getroot.c (grub_util_check_char_device): Move to ...
5029 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5031 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5033 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5036 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5038 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5040 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5042 * docs/grub.texi (File name syntax): Document ZFS filenames
5043 (/volume@snapshot/...).
5045 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5047 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5048 Always return full path. Fixes a problem with mkrelpath.
5050 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5052 * util/grub-install.in: Add GPT PReP support.
5053 * util/grub-probe.c (probe): Support GPT partition type.
5054 (main): Support -t gpt_parttype.
5056 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5058 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5060 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5062 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5064 2013-09-23 Tim Hardeck <thardeck>
5066 * util/grub.d/10_hurd.in: Filter out character for the class.
5067 * util/grub.d/10_kfreebsd.in: Likewise.
5068 * util/grub.d/10_linux.in: Likewise.
5069 * util/grub.d/20_linux_xen.in: Likewise.
5071 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5073 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5076 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5078 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5081 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5083 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5084 doesn't use posix_wrap. Keep literal -fno-builtin however.
5086 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5088 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5090 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5093 * configure.ac: Do not enable -Wmissing-noreturn as its
5094 usefulness is limited and creates problems on some OS notably with
5095 code generated by bison.
5097 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5100 * configure.ac: Do not explicitly enable -Waddress as it's not
5101 supported by all gcc and when it is, it's already enabled by -Wall.
5103 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5105 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5106 desactivated use of EDID at all.
5108 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5111 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5112 video if no text is available.
5114 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5117 * configure.ac: Substitute TARGET_RANLIB.
5119 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5122 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5124 Based on patches from AROS.
5126 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5129 * grub-core/Makefile.am: Override STRIP and RANLIB.
5130 * configure.ac: compute TARGET_RANLIB.
5131 * INSTALL: Document TARGET_RANLIB
5133 Based on patches from AROS.
5135 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5137 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5138 that floppies are unpartitioned.
5140 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5142 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5143 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5145 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5147 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5148 less nice but more portable.
5149 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5151 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5153 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5155 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5157 (grub_cryptodisk_cheat_insert): Likewise.
5158 (grub_cryptodisk_close): Likewise.
5160 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5162 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5163 Use windows path for DEFAULT_DIRECTORY.
5165 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5167 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5168 difference was likely just gcc version, not anything mingw-related.
5170 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5172 Use Winapi on both cygwin and mingw32 to share more code between both.
5174 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5176 * util/grub-install.in: Add --grub-editenv option.
5177 * util/grub-install_header (grub_compress_file): Explicitly check for
5178 plain file to avoid cp error.
5180 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5182 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5183 names; fix LVM driver name (lvm, not lv).
5184 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5187 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5189 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5190 files rather than one file with loads of #if's.
5191 * util/getroot.c: Likewise.
5193 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5195 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5197 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5199 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5200 GNU/Hurd to the list of checked PRNG.
5202 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5204 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5206 2013-09-21 Ales Nesrsta <starous@volny.cz>
5208 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5210 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5212 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5213 * grub-core/disk/lvm.c: Add LVM UUIDs.
5214 * util/getroot.c: Use LVM UUIDs whenever possible.
5216 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5218 * docs/grub.texi (Networking commands): Add documentation for
5219 network related commands.
5221 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5223 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5224 to determine if device is handled by devmapper.
5225 (convert_system_partition_to_system_disk): Likewise.
5226 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5227 already done in grub_util_open_dm.
5229 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5231 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5232 Clean up stack manipulation (sync_caches_armv*)
5234 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5236 * util/lvm.c: Remove since unused. Remove remaining references.
5238 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5240 Handle the case of partitioned LVM properly.
5242 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5243 Stop on meeting LVM, mpath or DMRAID.
5244 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5245 (read_device_map): Likewise.
5246 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5247 device is full disk rather than erroring out on LVM and similar cases.
5249 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5251 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5253 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5255 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5257 Reported by: Leif Lindholm
5259 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5260 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5262 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5265 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5267 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5268 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5270 2013-09-18 Douglas Ray <dougray@cpan.org>
5272 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5275 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5277 * docs/grub.texi: Fix broken link.
5279 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5281 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5282 to break endless loop.
5284 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5286 * util/grub-fstest.c: Fix several printf formats.
5287 * util/grub-mkimage.c: Likewise.
5288 * util/grub-mkimagexx.c: Likewise.
5289 * util/grub-script-check.c: Likewise.
5291 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5293 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5296 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5298 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5300 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5302 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5303 removed in current versions cygwin_conv_*.
5305 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5307 * configure.ac: Disable efiemu runtime on cygwin.
5309 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5311 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5312 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5314 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5316 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5319 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5321 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5323 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5326 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5328 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5329 when on x86 and not cygwin.
5330 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5333 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5335 * configure.ac: Set CPP to build one when checkoing for freetype for
5338 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5340 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5341 [!GRUB_BUILD]: Remove has_argument.
5343 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5345 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5346 Replace with a dummy.
5348 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5350 * configure.ac: Don't change host_os from mingw to cygwin.
5352 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5354 * configure.ac: Change target_os from windows to cygwin.
5356 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5358 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5360 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5361 (build-grub-gen-asciih): Likewise.
5362 (build-grub-gen-widthspec): Likewise.
5363 * Makefile.util.def (grub-pe2elf): Remove.
5364 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5365 * configure.ac: Separate tests for build.
5366 Move ./build-grub-pe2elf to grub-core.
5368 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5369 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5371 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5373 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5374 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5375 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5377 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5379 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5380 mingw32 as well based on grub_util_get_disk_size.
5381 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5382 grub_util_get_fd_size.
5384 (fsync): Moved to ...
5385 * grub-core/kern/emu/misc.c (fsync): ... here.
5387 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5389 * include/grub/mm.h (grub_extend_alloc): Remove.
5390 * grub-core/loader/i386/pc/plan9.c: Use own version of
5391 grub_extend_alloc with appropriate types.
5393 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5395 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5397 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5399 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5401 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5403 Fix dependencies on cygwin.
5405 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5406 dependencies when used and defined.
5407 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5409 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5411 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5412 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5414 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5416 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5417 implementation available to cause compile-time rather than runtime
5420 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5422 * util/grub-fstest.c: Don't check for symlinks on windows.
5424 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5426 * INSTALL: Mention unavailability of man pages when cross-compiling.
5428 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5430 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5432 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5434 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5436 * INSTALL: Document cross-compilation.
5437 * acinclude.m4: Determine whether nm support -P and --defined-only.
5438 * configure.ac: Add TARGET_ to all variables pertaining to target
5439 that don't have it yet.
5440 * gentpl.py: Likewise.
5441 * grub-core/Makefile.am: Likewise.
5442 * grub-core/genmod.sh.in: Likewise.
5443 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5446 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5448 * configure.ac: Remove -Wempty-body. It's not essential and needs
5451 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5453 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5454 * util/getroot.c: Likewise.
5456 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5458 * grub-core/disk/ahci.c: Add needed explicit cast.
5459 * grub-core/lib/backtrace.c: Likewise.
5460 * grub-core/net/ip.c: Likewise.
5461 * grub-core/net/tcp.c: Likewise.
5462 * grub-core/net/udp.c: Likewise.
5464 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5466 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5468 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5470 * util/import_gcry.py: Add final newline in visibility.h.
5472 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5474 * conf/Makefile.common: Fix typo.
5476 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5478 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5480 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5482 * Makefile.am (widthspec.h): Fix typo.
5483 * util/grub-gen-widthspec.c: Likewise.
5485 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5487 Move ascii.h and widthspec.h generation to a separate build-time-only
5490 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5492 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5493 Always fill bootdisk info and improve check for NetBSD disklabel.
5495 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5497 * conf/Makefile.extra-dist: Add util/bin2h.c.
5498 Reported by: floppym.
5500 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5502 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5504 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5506 * configure.ac: Disable unifont and starfield if no freetype was found.
5508 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5510 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5511 on NetBSD and OpenBSD.
5513 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5515 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5517 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5519 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5520 reduced. Inheritant options are processed during the theme loading.
5522 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5524 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5526 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5528 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5530 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5532 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5535 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5537 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5538 remove-potcdate.sed.
5540 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5542 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5543 unused attribute from pull argument.
5545 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5547 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5550 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5552 * util/getroot.c (pull_lvm_by_command): add --separator option
5553 to vgs call to disable padding of output to 10 characters.
5555 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5557 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5559 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5562 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5564 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5567 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5569 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5570 full Canadian cross. Tested with build=x86_64, host=arm,
5571 target=ppc-ieee1275.
5573 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5575 * configure.ac: Error if no $BUILD_CC could be found.
5578 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5580 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5583 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5585 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5586 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5588 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5590 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5591 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5592 falling back to the partition device, otherwise a later call to this
5593 function may fail spuriously.
5594 Reported by Axel Beckert. Fixes Debian bug #708614.
5596 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5598 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5600 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5602 Prevent shadowing of stdlib's devname(3) on BSD.
5604 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5605 and devlast to diskname and disklast, respectively.
5607 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5609 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5611 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5613 * docs/grub.texi: Introduce terminal window position options:
5614 terminal-left: terminal window's left position
5615 terminal-top: terminal window's top position
5616 terminal-width: terminal window's width
5617 terminal-height: terminal window's height
5618 terminal-border: terminal window's border width
5619 * grub-core/gfxmenu/theme-loader.c: Likewise.
5620 * include/grub/gfxmenu_view.h: Likewise.
5621 * po/exlude.pot: Likewise.
5622 * grub-core/gfxmenu/view.c: Likewise.
5623 Also updated minimal window size.
5624 Also terminal_sanity_check function has been introduced.
5625 * grub-core/tests/checksums.h: Update (terminal window height
5626 is adjusted now for low resolution screen)
5628 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5630 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5633 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5635 * po/exclude.pot: Add few recent exceptions.
5637 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5639 * tests/grub_func_test.in: Add unicode.pf2.
5641 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5643 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5644 standard rather than noral color, in line with other terminals.
5646 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5648 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5651 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5653 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5655 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5657 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5658 inappropriate printf.
5660 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5662 * .bzrignore: Remove grub-core/lib/dtc-grub,
5663 grub-core/Makefile.libfdt.def
5664 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5666 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5668 * include/grub/video.h (grub_video_register): Keep double-linked as
5669 well as single-linked invariants.
5670 Reported by: qwertial.
5672 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5674 * grub-core/commands/nativedisk.c (get_uuid): Handle
5675 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5677 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5679 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5680 maximum of NW, N, NE heights instead of N's height and maximum of
5681 NW, W, SW widths instead of W's width. (So the box will be always
5684 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5686 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5687 Fix misuse of variable count.
5689 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5690 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5691 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5693 New ports to arm-uboot and arm-efi.
5694 Mostly by Leif Lindholm with some additions from
5695 Francesco Lavra and cleanup by Vladimir Serbinenko.
5697 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5699 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5701 Reported by: Leon Drugi.
5703 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5705 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5706 Reported by: Paulo Flabiano Smorigo.
5708 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5710 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5712 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5714 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5716 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5718 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5720 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5722 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5724 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5726 * grub-core/net/bootp.c: Export net_* variables.
5727 * grub-core/net/net.c: Likewise.
5729 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5731 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5733 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5735 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5737 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5739 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5741 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5743 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5745 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5747 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5750 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5752 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5755 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5757 * grub-core/fs/zfs/zfs_lz4.c: New file.
5758 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5760 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5762 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5764 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5766 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5767 (check_pool_label): Likewise.
5768 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5770 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5772 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5774 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5776 * docs/grub.texi (Commands): Document postition parameters
5777 for menuentry command.
5779 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5781 * util/grub-mknetdir.in: Remove stray line from help output.
5783 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5785 Remove early sm712 init as there is no reason for it (the "watchdog"
5786 effect was due to wrong GPIO map).
5788 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5790 * grub-core/commands/pcidump.c: Remove static variables.
5792 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5794 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5796 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5798 * configure.ac: Move delimiter after the infos.
5800 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5802 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5804 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5806 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5807 not filling whole 8x16 space.
5809 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5811 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5813 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5815 * configure.ac: Indicate which liblzma is used if any.
5817 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5818 2013-06-21 Craig Sanders <savannah@taz.net.au>
5820 * util/grub-reboot.in: Document submenu usage.
5822 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5824 * .bzrignore: Update with a number of new test-related files.
5826 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5828 * util/grub-script-check.c: Fail on scripts containing no
5829 commands, to guard against corrupted grub-mkconfig setups that
5830 produce no useful output.
5831 * tests/grub_script_no_commands.in: New test.
5832 * Makefile.util.def (grub_script_no_commands): Add.
5833 Reported by Hans Putter. Fixes Debian bug #713886.
5835 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5837 * grub-core/disk/diskfilter.c: Forgot to remove comment
5838 from previous commit.
5840 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5842 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5843 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5845 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5847 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5849 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5851 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5852 rescan diskfilter devices until nothing new is found.
5854 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5856 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5858 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5860 Don't try to detect cbfs on *-emu.
5862 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5864 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5866 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5868 Add support for processed coreboot payload chainloading.
5870 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5872 Enable coreboot information commands even when not loaded as
5873 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5875 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5877 Support for cbfs. Also factor out the part which is common
5878 for all archives to a separate module. This splits tar from cpio
5879 as they are very different but keeps cpio, cpio_be, odc and newc
5880 together since they're very similar.
5882 2013-06-15 David Michael <fedora.dm0@gmail.com>
5884 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5885 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5887 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5889 * tests/grub_script_eval.in: Really add the eval test.
5891 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5893 Move flavour-specific parts out of common cpio.c file and
5894 rename remaining to cpio_common.c
5896 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5898 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5899 off new function grub_script_execute_new_scope. Change callers to use
5900 either of them as appropriate.
5901 * grub-core/commands/eval.c: New command eval.
5902 * docs/grub.texi (Commands): Document it.
5904 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5906 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5907 to fetch values when listing.
5909 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5911 Fix make dist on non-pc.
5913 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5915 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5916 without a device name.
5918 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5920 Remove enable_executable_check as it's not needed anymore.
5921 Reported by: dougray.
5923 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5925 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5926 ambigouos RAID before discovering RAIDs on top of it.
5929 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5931 Fix typo (failback vs fallback).
5933 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5935 * util/grub.d/30_os-prober.in: Add support for probing EFI
5936 System Partition (as of os-prober 1.58).
5938 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5940 * configure.ac: Add yet another path to unifont. For parabola.
5942 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5944 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5945 handling to copy the killed characters to the kill buffer as
5946 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5947 stored as char. Eliminates UCS4 truncation and corruption
5948 observed when killing characters with Ctrl-u and yanking them
5951 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5953 Detach optional parts of gfxterm and integrate in with coreboot init.
5955 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5957 Move blit and fill dispatcher to appropriate files to decrease export
5958 and relocation overhead.
5960 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5962 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5965 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5967 * grub-core/Makefile.am: Fix compilation problem with some
5970 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5972 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5974 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5976 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5979 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5981 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
5984 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
5986 * grub-core/partmap/dfly.c: New partition map.
5988 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5990 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
5992 Reported by: Francesco Lavra.
5994 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
5996 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
5997 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
5999 * conf/Makefile.common: define dist_grubconf_DATA
6001 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6003 Progressively skip menu elements on small terminals rather
6006 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6008 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6009 to avoid losing last column.
6011 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6013 * po/exclude.pot: Add missing string "%C".
6015 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6017 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6020 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6022 * util/grub-install.in: Gettextize "Not found" message.
6024 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6027 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6029 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6031 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6033 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6035 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6037 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6039 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6041 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6042 attribute since structure is not necessarily aligned.
6044 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6046 * docs/grub.texi (Device syntax): Clarify description of network
6049 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6051 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6052 for vasprintf presence.
6054 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6056 * util/grub-install.in: Handle efibootmgr presence check.
6057 Reported by: Leif Lindholm.
6059 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6061 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6062 new strings to translate.
6064 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6066 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6067 yet another string (pun intended) to translate.
6069 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6071 * po/POTFILES-shell.in: Autogenerate it.
6073 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6075 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6077 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6079 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6082 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6084 * docs/grub.texi (Network): Add description of net_default_interface,
6085 net_default_ip and net_default_mac. Rewrite variables description
6086 to emphasize that they are per-interface.
6088 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6090 New test: cmdline and cat.
6092 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6094 * grub-core/commands/cat.c: Show UTF-8 characters.
6096 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6098 * conf/Makefile.common: Poison float and double on non-emu.
6100 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6102 * configure.ac: Don't disable extended registers on emu.
6104 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6106 * configure.ac: Don't use extended registers on x86_64.
6107 Reported by: Peter Jones.
6109 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6111 * grub-core/term/efi/console.c: Fix compile error.
6113 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6115 Compressed HFS+ support.
6117 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6119 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6122 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6126 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6128 * grub-core/tests/setjmp_test.c: New test.
6130 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6132 New variables 'net_default_*' to determine MAC/IP of default interface.
6134 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6136 * tests/gettext_strings_test.in: A test to check for strings not
6137 marked for translation.
6139 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6141 * autogen.sh: Exclude unused libgcrypt files from translation.
6143 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6145 Simplify few strings.
6147 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6149 Mark few forgotten strings for translation.
6151 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6153 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6156 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6158 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6160 * grub-core/video/readers/tga.c: Likewise.
6162 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6164 * tests/priority_queue_unit_test.cc: New test.
6166 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6168 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6171 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6173 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6174 variable for one time boot menu entry.
6176 2013-05-05 Bean <bean123ch@gmail.com>
6178 * grub-core/commands/testspeed.c: New command testspeed.
6180 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6182 Factor-out human-size printing.
6184 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6186 Agglomerate more mallocs to speed-up gfxterm.
6188 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6190 Speed-up gfxterm by slightly agglomerating mallocs.
6192 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6196 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6198 Speed-up gfxterm by saving intermediate results in index+alpha
6201 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6203 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6206 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6208 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6209 line of timeout as it may contain the rest of long line.
6211 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6213 * grub-core/normal/main.c: Fix freed memory dereference.
6215 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6217 Fix several memory leaks.
6219 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6221 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6223 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6225 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6227 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6229 Fix test -a and -o precedence.
6230 Reported by: adrian15.
6232 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6234 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6236 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6238 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6239 and add it as source to functional_test module.
6241 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6243 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6245 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6247 New series of tests for gfxterm and gfxmenu.
6249 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6251 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6252 the theme path relative to $prefix/themes.
6254 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6256 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6258 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6260 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6262 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6265 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6267 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6268 grub_gfxmenu_timeout_notifications.
6269 (grub_gfxmenu_view_destroy): Likewise.
6271 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6273 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6275 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6277 Several fixes to ieee1275 and big-endian video.
6279 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6281 Add missing exports on mips.
6283 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6285 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6286 if no unifont is found.
6287 Restore original keyboard.
6289 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6291 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6292 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6294 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6296 First automated video test (running videotest and comparing results)
6298 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6300 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6301 instead of 2 to have full RGB/CMY test pattern.
6303 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6307 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6309 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6310 ARCS. All users updated.
6312 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6314 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6316 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6318 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6320 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6322 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6323 Reported by: qwertial.
6325 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6327 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6328 with syntax "XXX deg"/"XXX °".
6330 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6332 Make PCI init in i386-qemu port more robust.
6334 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6336 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6337 cached view is reused.
6338 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6341 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6343 Unify more code in grub-install_header.
6345 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6349 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6351 Enforce disabling of firmware disk drivers when native drivers kick in.
6353 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6355 * grub-core/commands/nativedisk.c: Customize the list of modules on
6356 platform. Don't try to search for disks already using native drivers.
6358 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6360 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6363 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6365 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6366 handling of variables containing backslash.
6368 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6370 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6372 Reported by: qwertial.
6374 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6376 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6378 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6380 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6382 Reported by: qwertial.
6384 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6386 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6388 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6390 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6392 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6394 New command `nativedisk'.
6396 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6398 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6399 * grub-core/loader/i386/bsd.c: Likewise.
6401 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6403 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6405 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6407 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6408 grub_get_unaligned16 rather than shifts.
6410 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6412 * grub-core/kern/file.c: Use const char * rather than casting to
6415 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6417 * grub-core/commands/probe.c: Add missing grub_device_close.
6419 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6421 * INSTALL: Document linguas.sh.
6423 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6425 Remove POTFILES.in and regenerate it in autogen.sh.
6427 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6429 Move --directory/--override-directorry to grub-install_header and unify.
6431 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6433 * grub-core/term/morse.c: Macroify dih and dah.
6435 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6437 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6439 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6441 * grub-core/term/ns8250.c: Systematically probe ports by writing
6442 to SR before using them.
6444 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6446 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6448 (check_sas): Get sas_adress info.
6450 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6452 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6455 2013-04-27 Leon Drugi <eyak>
6457 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6460 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6462 Core compression test.
6464 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6466 Implement grub_machine_get_bootlocation for ARC.
6468 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6470 Improve AHCI detection and command issuing.
6472 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6476 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6478 Make 'make check' work on emu.
6480 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6482 Replace libcurses with our own vt100 handling for the ease of testing
6483 and decreasing prerequisites.
6485 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6487 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6489 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6491 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6492 compile when not needed.
6494 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6496 * tests/pseries_test.in: New test.
6498 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6500 Add test to check that different boot mediums work.
6502 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6504 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6505 ofw limited ISO support.
6507 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6509 * configure.ac: Fix loongson conditional.
6511 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6515 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6517 Add serial on ARC platform.
6519 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6521 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6524 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6526 * tests/partmap_test.in: Add missing double semicolon.
6528 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6530 * util/grub-mkrescue.in: Fix loongson filename.
6532 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6534 * util/grub-mkrescue.in: Move all files that don't have a location
6535 set in stone under /boot/grub. Use ISO hard links rather than copies
6538 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6540 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6543 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6545 Make check work on mips-arc.
6547 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6549 * util/grub-mkrescue.in: Alias sashARCS as sash.
6551 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6553 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6556 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6558 * util/grub-install.in: Fix target fo qemu_mips.
6559 Fix extension on EFI.
6561 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6563 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6564 in front of chosen entry to mark it even if highlighting is lost.
6566 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6568 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6569 gfxpayload=keep if cbfb is active.
6571 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6573 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6575 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6577 Add missing video ids to coreboot and ieee1275 video.
6579 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6581 * util/grub-mkrescue.in: Add mips-arc support.
6583 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6585 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6587 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6589 Move mips-arc link address. Previous link address was chosen
6590 in belief that RAM on SGI platforms grows down while in fact it
6591 grows up from an unusual base.
6593 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6595 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6596 Fix a type which prevented CD-ROM and floppy boot.
6598 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6600 Support coreboot framebuffer.
6602 * grub-core/video/i386/coreboot/cbfb.c: New file.
6604 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6606 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6607 detecting too small regions.
6609 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6611 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6613 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6615 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6617 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6619 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6621 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6622 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6623 * grub-core/loader/powerpc/ieee1275/linux.c
6624 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6626 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6628 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6629 Look for /boot-rom as well as /rom/boot-rom.
6631 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6633 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6634 handling when creating text_layer failed.
6635 * grub-core/video/video.c (grub_video_create_render_target):
6636 Set result to 0 on error.
6637 (grub_video_delete_render_target): Do not dereference NULL.
6639 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6641 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6642 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6643 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6644 (grub_linux_load64): Mask out 2 high bits.
6646 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6648 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6651 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6653 Add support for pseries and other bootinfo machines to grub-mkrescue.
6655 Tested by: Paulo Flabiano Smorigo.
6657 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6659 * util/grub-mkrescue.in: Add GPT for EFI boot.
6661 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6663 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6664 It improves performance in qemu.
6666 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6668 * build-aux/snippet: Add missing gnulib files.
6670 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6672 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6674 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6676 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6678 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6679 2013-04-15 Peter Jones <pjones@redhat.com>
6681 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6683 Based on patch by Peter Jones.
6685 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6687 Fix DMRAID partition handling.
6689 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6691 * tests/grub_cmd_date.in: Skip on sparc64.
6693 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6695 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6696 firmware error messages.
6698 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6700 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6701 source and destination differ.
6703 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6705 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6708 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6710 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6711 match config-util.h to avoid warnings and increase compatibility.
6713 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6714 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6716 Add option to compress files on install/image creation.
6718 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6720 * docs/grub-dev.texi: Rearrange menu to match the section order.
6721 Reported by: Bryan Hundven.
6723 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6725 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6727 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6729 Move GRUB out of system area when using xorriso 1.2.9 or later.
6731 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6733 * tests/grub_cmd_date.in: Add missing exit 1.
6735 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6737 * tests/partmap_test.in: Skip on sparc64.
6739 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6741 Support grub-shell on sparc64.
6743 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6745 Support mkrescue on sparc64.
6747 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6749 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6750 Needed on OpenBIOS due to incomplete device tree.
6752 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6754 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6755 would be otherwise excluded.
6757 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6759 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6760 Inline name defines used only once.
6762 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6764 Fix memory leaks in ofnet.
6765 Reported by: Francesco Lavra.
6767 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6769 * docs/man/grub-glue-efi.h2m: Add missing file.
6771 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6773 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6775 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6777 Better support Apple Intel Macs on CD.
6779 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6781 Replace stpcpy with grub_stpcpy in tools.
6783 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6785 Handle Japanese special keys.
6786 Reported by: Hiroyuki YAMAMORI.
6787 Codes supplied by: Hiroyuki YAMAMORI.
6789 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6791 * util/grub-mkimage.c: Document memdisk implying --prefix.
6793 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6795 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6796 much we can do about it anyway.
6798 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6800 Fix handling of split transfers.
6802 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6804 * grub-core/net/http.c: Fix bad free.
6806 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6808 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6811 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6813 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6815 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6817 * tests/util/grub-shell.in: Fix it on powerpc.
6819 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6821 Turn off QEMU ACPI-way since new releases don't have shutdown port
6824 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6826 * docs/grub.texi: Update coreboot status info.
6828 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6830 * tests/grub_cmd_date.in: New test for datetime.
6832 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6834 * tests/partmap_test.in: Fix missing qemudisk setting.
6836 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6838 Support i386-ieee1275 grub-mkrescue and make check on it.
6840 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6842 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6845 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6847 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6848 GRUB_CMDLINE_XEN_DEFAULT.
6849 Reported by: Marc Warne (GigaTux) <gigatux>
6851 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6855 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6857 Use ACPI shutdown intests as traditional port was removed.
6859 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6861 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6864 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6866 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6867 Fix few warining messages and leaks while on it.
6869 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6871 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6872 links under grub-core/lib/libgcrypt-grub/mpi.
6874 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6876 Fix ia64-efi image generation on big-endian machines. Deduplicate
6877 some code while on it.
6878 Reported by: Leif Lindholm.
6880 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6882 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6885 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6887 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6889 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6891 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6894 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6896 * grub-core/normal/term.c: Few more fixes for menu entry editor
6898 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6900 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6902 * grub-core/normal/term.c: Few more fixes for menu entry editor
6904 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6906 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6908 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6909 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6911 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6913 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6914 instead of hardcoding grub.mo.
6916 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6918 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6920 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6922 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6923 grub-core/disk/geli.c.
6925 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6927 * util/grub-mkfont.c: Prefer enum to #define.
6929 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6931 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6933 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6935 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6937 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6939 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6941 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6943 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6945 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6947 * include/grub/bsdlabel.h: Use enums.
6949 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6951 Move GRUB_CHAR_BIT to types.h.
6953 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6955 * docs/grub.texi: Document more user commands.
6957 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6959 * docs/grub.texi: Document menuentry --id option.
6961 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6963 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6965 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6967 Unify file copying setup across different install scripts. Add
6968 options for performing partial install.
6970 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6971 2013-04-04 Peter Jones <pjones@redhat.com>
6973 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6975 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6977 Use TSC as a possible time source on i386-ieee1275.
6979 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6981 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
6984 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6986 * util/grub-setup.c (setup): Handle some corner cases.
6988 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6990 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
6992 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6994 * grub-core/commands/verify.c: Save verified file to avoid it being
6995 tampered with after verification was done.
6997 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6999 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7000 reported width by one to compensate for curesor algorithm problem.
7002 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7004 Fix screen corruption in menu entry editor and simplify the code
7007 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7009 * util/grub-mount.c (fuse_init): Return error if fuse_main
7012 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7014 * include/grub/elf.h: Add missing ARM relocation codes and fix
7017 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7019 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7021 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7022 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7024 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7025 into account when calculating radius.
7027 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7029 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7031 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7033 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7035 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7037 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7038 missing closing bracket.
7040 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7042 * INSTALL: Mention xorriso requirement.
7044 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7046 * grub-core/commands/verify.c: Fix hash algorithms values for
7047 the first three hashes - they start with 1, not with 0.
7049 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7051 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7052 Try terminating EFI services several times due to quirks in some
7055 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7057 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7058 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7059 BankField extended opcodes.
7060 (get_sleep_type): Add minimal scope handling (just enough to
7061 handle setting the scope to the root path).
7062 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7063 * include/grub/acpi.h: Add enumeration values for Event, Device,
7064 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7066 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7068 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7071 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7073 * grub-core/disk/ahci.c: Give more time for AHCI request.
7075 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7077 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7080 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7082 Replace the region at 0 from coreboot tables to available in BSD
7085 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7087 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7090 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7092 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7095 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7097 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7098 handling of multi-device filesystems.
7100 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7102 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7105 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7107 Add new 'proc' filesystem framework and put luks_script into it.
7109 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7111 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7114 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7116 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7118 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7120 Add ability to generate newc additions on runtime.
7122 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7124 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7127 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7129 * po/POTFILES.in: Regenerate.
7131 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7133 * grub-core/commands/verify.c (hashes): Add several hashes
7136 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7138 Slight improve in USB-related boot-time checkpoints.
7140 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7142 * grub-core/commands/boottime.c: Fix copyright header.
7144 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7146 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7147 coreboot tables content. Support for cbmemc.
7149 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7151 Fix a conflict between ports structures with 2 controllers of
7154 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7156 * include/grub/boottime.h: Add missing file.
7158 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7160 Initialize USB ports in parallel to speed-up boot.
7162 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7164 Fix USB devices not being detected when requested
7165 due to delayed attach.
7167 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7169 Implement boot time analysis framework.
7171 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7173 Remove get_endpoint_descriptor and change all functions needing
7174 descriptor to just receive it as argument rather than endpoint
7177 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7179 Better estimate the maximum USB transfer size.
7181 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7183 Resend a packet if we got the wrong buffer in status.
7185 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7187 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7188 multiplication rather than division.
7190 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7192 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7195 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7197 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7198 operations to have intended shifts and not divisions.
7200 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7202 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7203 intended shifts rather than division.
7205 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7207 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7208 computation for some years before epoch. Avode confusing division
7211 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7213 * grub-core/video/i386/pc/vbe.c
7214 (grub_video_vbe_print_adapter_specific_info): Replace division by
7217 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7219 Adjust types in gdb module to have intended unsigned shifts rather than
7222 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7224 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7225 maximum size is 4G - 1 on hfs
7227 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7229 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7231 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7233 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7236 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7238 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7239 causing gcc error with gcc 4.7.1.
7241 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7243 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7244 dereference null pointer. While the code is technically correct, gcc
7245 may eliminate a null check if pointer is already dereferenced.
7247 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7249 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7251 * grub-core/normal/term.c (read_terminal_list): Likewise.
7253 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7255 Lift up core size limits on some platforms. Fix potential memory
7256 corruption with big core on small memory systems. Document remaining
7259 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7261 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7264 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7266 Remove all trampoline support. Add -Wtrampolines when
7267 present. Remove symbols used for trampolines to make
7268 link fail if trampolines are present.
7270 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7272 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7273 append out of its parent.
7275 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7277 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7280 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7282 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7283 all vars to a macro. All users updated.
7285 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7287 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7290 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7292 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7294 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7296 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7298 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7300 Move to more hookless approach in IEEE1275 devices handling.
7302 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7304 * grub-core/kern/term.c (grub_term_normal_color),
7305 (grub_term_highlight_color): Add back lost defaults.
7307 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7309 Make elfload not use hooks. Opt for flags and iterators instead.
7311 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7313 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7314 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7316 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7318 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7320 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7322 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7323 hook pass-through parameter. All users updated and unnested.
7325 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7327 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7330 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7332 * grub-core/fs/hfs.c: Remove nested functions.
7334 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7336 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7337 the context through.
7338 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7340 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7342 * util/grub-editenv.c (list_variables): Move print_var out of its
7345 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7347 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7350 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7352 * grub-core/gentrigtables.c: Make tables const.
7354 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7356 Remove nested functions from videoinfo iterators.
7358 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7360 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7361 for 64-bit platforms.
7363 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7365 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7366 a FOR_CHILDREN macro.
7368 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7370 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7371 platform from firmware path.
7373 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7375 Enable linux16 on non-BIOS systems for i.a. memtest.
7377 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7379 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7381 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7383 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7384 Fix end of table condition.
7386 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7388 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7391 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7393 * grub-core/fs/jfs.c: Remove nested functions.
7395 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7397 * grub-core/fs/minix.c: Remove nested functions.
7399 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7401 * grub-core/fs/iso9660.c: Remove nested functions.
7403 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7405 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7408 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7410 * util/grub-fstest.c: Remove nested functions.
7412 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7414 * grub-core/loader/machoXX.c: Remove nested functions.
7416 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7418 Remove nested functions from disk and file read hooks.
7420 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7421 (struct grub_disk): Add read_hook_data member.
7422 * include/grub/file.h (struct grub_file): Likewise.
7423 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7428 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7430 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7431 Fix off by one error in enumerating extended partitions.
7433 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7435 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7436 memory leak if device name is not found.
7438 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7440 * grub-core/normal/menu_entry.c (update_screen): remove
7441 unused variable `off' which caused scroll down arrow to be always shown.
7443 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7445 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7446 access to unallocated memory.
7448 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7450 * Makefile.util.def: Add partmap/msdos.c to common library.
7451 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7452 * grub-core/disk/ldm.c: Check for existence of
7453 GRUB_PC_PARTITION_TYPE_LDM.
7455 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7457 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7458 sizes and display sector size.
7460 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7462 Implement new command cmosdump.
7464 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7466 Support Openfirmware disks with non-512B sectors.
7468 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7470 * (grub_ofdisk_get_block_size): New function.
7471 * (grub_ofdisk_prepare): Use the correct block size.
7472 * (grub_ofdisk_read): Likewise.
7473 * (grub_ofdisk_write): Likewise.
7474 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7477 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7479 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7481 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7483 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7486 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7488 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7491 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7493 Implement USBDebug (full USB stack variant).
7495 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7497 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7498 unless they have unexpected values.
7500 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7505 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7507 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7508 zero-out of port structure.
7510 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7512 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7513 of extended attributes.
7515 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7517 * util/grub-install.in: change misleading comment about
7520 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7522 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7523 when menu highlight color isn't set.
7525 2013-01-27 C. Masloch <pushbx@38.de>
7527 Improve FreeDOS direct loading support compatibility.
7529 * include/grub/i386/relocator.h (grub_relocator16_state):
7531 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7533 (grub_relocator16_boot): Handle %ebp.
7534 * grub-core/lib/i386/relocator16.S: Likewise.
7535 * grub-core/loader/i386/pc/freedos.c:
7536 Load BPB to pass kernel which partition to load from.
7537 Check that kernel file is not too large.
7538 Set register dl to BIOS unit number as well.
7540 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7542 * util/grub-reboot.in (usage): Document the need for
7544 * util/grub-set-default.in (usage): Likewise.
7545 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7547 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7549 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7550 than defining WORDS_BIGENDIAN manually.
7552 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7554 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7557 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7559 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7561 (blit_comb: add_device_width): Likewise.
7563 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7565 Remove nested functions from USB iterators.
7567 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7568 (grub_usb_controller_iterate_hook_t): Likewise.
7569 (grub_usb_iterate): Add hook_data argument.
7570 (grub_usb_controller_iterate): Likewise.
7571 (struct grub_usb_controller_dev.iterate): Likewise.
7573 Update all implementations and callers.
7575 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7577 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7578 margin when not needed.
7580 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7582 Make color variables global instead of it being per-terminal.
7584 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7586 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7589 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7591 Fix powerpc and sparc64 build failures caused by un-nesting memory
7594 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7596 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7597 parameter declarations.
7599 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7601 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7603 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7605 Improve spkmomdem reliability by adding a separator between bytes.
7607 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7609 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7610 an Acer registration utility with several sightings in the wild.
7611 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7613 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7615 Remove nested functions from filesystem directory iterators.
7617 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7618 (struct grub_fs.dir): Add hook_data argument.
7620 Update all implementations and callers.
7622 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7624 * docs/grub.texi (Multi-boot manual config): Fix typo for
7627 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7629 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7630 until after its use in generate_image.
7632 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7634 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7635 initrd size to addr_min, since the initrd will be allocated after
7638 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7640 * conf/Makefile.common: Fix autogen rules to pass definition
7641 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7643 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7645 * include/grub/elf.h: Update ARM definitions based on binutils.
7647 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7649 Split long USB transfers into short ones.
7651 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7653 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7654 is interrupted by ESC.
7656 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7658 * util/grub-script-check.c (main): Uniform the error message.
7660 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7662 Remove nested functions from ELF iterators.
7664 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7666 Remove nested functions from device iterators.
7668 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7669 (grub_arc_iterate_devs): Add hook_data argument.
7670 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7671 (struct grub_ata_dev.iterate): Add hook_data argument.
7672 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7673 (grub_device_iterate): Add hook_data argument.
7674 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7675 (struct grub_disk_dev.iterate): Add hook_data argument.
7676 (grub_disk_dev_iterate): Likewise.
7677 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7679 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7681 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7683 (struct grub_partition_map.iterate): Add hook_data argument.
7684 (grub_partition_iterate): Likewise.
7685 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7686 (struct grub_scsi_dev.iterate): Add hook_data argument.
7690 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7692 Fix typos for "developer" and "development".
7694 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7696 Add license header to spkmodem-recv.c.
7698 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7700 Rewrite spkmodem to use PIT for timing. Double the speed.
7702 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7704 Add new command pcidump.
7706 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7708 New terminal outputs using serial: morse and spkmodem.
7710 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7712 Improve bidi handling in entry editor.
7714 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7716 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7717 argument to prevent name collision.
7719 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7721 Remove nested functions from script reading and parsing.
7723 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7724 getline_data argument, passed to getline.
7725 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7726 getline_data argument, passed to grub_parser_split_cmdline.
7727 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7728 lexerstate->getline_data to lexerstate->getline.
7729 (grub_script_lexer_init): Add getline_data argument, saved in
7730 lexerstate->getline_data.
7731 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7732 argument, passed to grub_script_parse.
7733 * grub-core/script/script.c (grub_script_parse): Add getline_data
7734 argument, passed to grub_script_lexer_init.
7735 * include/grub/parser.h (grub_parser_split_cmdline): Update
7736 prototype. Update all callers to pass appropriate getline data.
7737 (struct grub_parser.parse_line): Likewise.
7738 (grub_rescue_parse_line): Likewise.
7739 * include/grub/reader.h (grub_reader_getline_t): Add void *
7741 * include/grub/script_sh.h (struct grub_lexer_param): Add
7742 getline_data member.
7743 (grub_script_parse): Update prototype. Update all callers to pass
7744 appropriate getline data.
7745 (grub_script_lexer_init): Likewise.
7746 (grub_normal_parse_line): Likewise.
7748 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7750 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7751 static instead of nested. Rename to ...
7752 (grub_parser_execute_getline): ... this.
7753 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7755 * grub-core/normal/main.c (read_config_file: getline): Make static
7756 instead of nested. Rename to ...
7757 (read_config_file_getline): ... this.
7758 (grub_normal_read_line): Add unused data argument.
7759 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7760 getline): Make static instead of nested. Rename to ...
7761 (grub_script_execute_sourcecode_getline): ... this.
7762 * util/grub-script-check.c (main: get_config_line): Make static
7765 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7767 Remove nested functions from memory map iterators.
7769 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7770 argument, passed to hook.
7771 * grub-core/kern/i386/coreboot/mmap.c
7772 (grub_linuxbios_table_iterate): Likewise.
7773 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7775 (grub_machine_mmap_iterate): Add hook_data argument.
7776 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7777 Add hook_data argument, passed to hook.
7778 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7780 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7782 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7784 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7786 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7788 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7790 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7791 (grub_machine_mmap_iterate): Likewise.
7792 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7793 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7795 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7796 Remove NESTED_FUNC_ATTR from here and from all users.
7797 (grub_mmap_iterate): Update prototype.
7798 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7799 pass appropriate hook data.
7800 (grub_machine_mmap_iterate): Likewise.
7802 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7803 static instead of nested.
7804 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7806 (lsmmap_hook): ... this.
7807 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7809 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7810 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7811 heap_init): Likewise.
7812 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7814 (mmap_iterate_hook): ... this.
7815 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7817 * grub-core/lib/ieee1275/relocator.c
7818 (grub_relocator_firmware_get_max_events: count): Likewise.
7819 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7821 (grub_relocator_firmware_fill_events_iter): ... this.
7822 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7823 hook): Likewise. Rename to ...
7824 (grub_relocator_alloc_chunk_align_iter): ... this.
7825 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7827 (generate_e820_mmap_iter): ... this.
7828 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7830 (count_hook): ... this.
7831 (grub_linux_boot: hook): Likewise. Rename to ...
7832 (grub_linux_boot_mmap_find): ... this.
7833 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7834 (grub_linux_boot_mmap_fill): ... this.
7835 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7836 hook): Likewise. Rename to ...
7837 (grub_fill_multiboot_mmap_iter): ... this.
7838 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7839 hook): Likewise. Rename to ...
7840 (count_hook): ... this.
7841 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7842 hook): Likewise. Rename to ...
7843 (grub_fill_multiboot_mmap_iter): ... this.
7844 * grub-core/loader/powerpc/ieee1275/linux.c
7845 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7846 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7847 Likewise. Rename to ...
7848 (alloc_phys_choose): ... this.
7849 (determine_phys_base: get_physbase): Likewise.
7850 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7851 find_hook): Likewise.
7852 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7853 (malloc_hook: count_hook): Likewise.
7854 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7855 Likewise. Rename to ...
7856 (lower_hook): ... this.
7857 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7858 (upper_hook): ... this.
7859 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7860 (post64_hook): ... this.
7861 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7862 Likewise. Rename to ...
7863 (lower_hook): ... this.
7864 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7865 (upper_hook): ... this.
7866 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7867 (grub_mmap_iterate: fill_hook): Likewise.
7868 (fill_mask): Pass addr and mask within a single struct.
7869 (grub_cmd_badram: hook): Make static instead of nested. Rename
7871 (badram_iter): ... this.
7872 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7873 (cutmem_iter): ... this.
7875 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7877 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7878 delimit path in strings using quotes.
7879 * util/getroot.c (grub_guess_root_devices): Likewise.
7880 (grub_make_system_path_relative_to_its_root): Likewise.
7881 * util/grub-probe.c (probe): Likewise.
7882 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7883 (xrealpath): Likewise.
7885 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7887 Fix compilation with older compilers.
7889 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7890 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7892 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7893 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7894 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7896 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7897 * include/grub/crypto.h: Add type defines.
7898 * util/import_gcrypth.sed: Remove duplicate type defines.
7900 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7902 New command list_trusted.
7904 * grub-core/commands/verify.c (grub_cmd_list): New function.
7906 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7908 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7911 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7913 Remove nested functions from PCI iterators.
7915 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7916 passed to hook. Update all callers to pass appropriate hook data.
7917 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7918 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7919 Remove NESTED_FUNC_ATTR from here and from all users.
7920 (grub_pci_iterate): Update prototype.
7921 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7922 instead of nested. Rename to ...
7923 (grub_cs5536_find_iter): ... this.
7924 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7925 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7927 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7929 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7931 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7933 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7934 * grub-core/video/radeon_fuloong2e.c
7935 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7936 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7937 find_card): Likewise.
7938 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7941 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7943 * grub-core/commands/verify.c: Mark messages for translating.
7945 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7947 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7950 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7952 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7955 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7957 * autogen.sh: Do not try to delete nonexistant files.
7958 * util/import_gcrypth.sed: Add some missing header removals.
7960 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7962 Clean up dangling references to grub-setup.
7963 Fixes Ubuntu bug #1082045.
7965 * docs/grub.texi (Images): Refer generally to grub-install rather
7966 than directly to grub-setup.
7967 (Installing GRUB using grub-install): Remove direct reference to
7969 (Device map) Likewise.
7970 (Invoking grub-install): Likewise.
7971 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7972 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7973 * util/grub-install.in (usage): Likewise.
7975 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7976 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7978 * configure.ac: Remove grub_setup output variable.
7980 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
7982 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
7983 grub-setup to grub-sparc64-setup.
7985 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7987 Import gcrypt public-key cryptography and implement signature checking.
7989 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7991 * grub-core/fs/ntfs.c: Ue more appropriate types.
7992 * grub-core/fs/ntfscomp.c: Likewise.
7993 * include/grub/ntfs.h: Likewise.
7995 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7997 Support Apple FAT binaries on non-Apple platforms.
7999 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8000 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8002 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8005 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8007 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8010 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8012 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8013 explicitly zeroing elements.
8014 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8015 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8016 of elements in a structure already allocated using grub_zalloc.
8017 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8019 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8021 * docs/grub.texi (grub_cpu): New subsection.
8022 (grub_platform): Likewise.
8024 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8026 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8028 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8030 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8033 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8035 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8036 * grub-core/fs/ntfscomp.c: Likewise.
8037 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8038 (grub_ntfs_comp): Likewise.
8040 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8042 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8044 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8045 of groups_per_block. All users updated.
8047 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8049 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8050 grub_error properly.
8051 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8052 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8054 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8056 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8057 always in /boot/zfs.
8058 Reported by: Yuta Satoh.
8060 2013-01-03 Yuta Satoh <nigoro>
8062 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8065 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8067 * configure.ac: Extend -Wno-trampolines to host.
8069 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8071 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8074 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8076 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8077 (Invoking grub-script-check): Likewise.
8079 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8081 * docs/grub.texi (Invoking grub-mount): New section.
8082 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8084 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8086 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8087 test failures, so that a failing unit test correctly causes 'make
8090 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8092 Fix failing printf test.
8094 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8095 '$' in the correct order when collecting type information.
8097 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8099 * docs/grub.texi (configfile): Explain environment variable
8101 (source): New section.
8102 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8104 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8106 Remove several trivially-unnecessary uses of nested functions.
8108 * grub-core/commands/i386/pc/sendkey.c
8109 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8111 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8113 (legacy_file_getline): ... this.
8114 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8116 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8117 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8119 (probe_dummy_iter): ... this.
8120 * grub-core/kern/i386/coreboot/mmap.c
8121 (grub_linuxbios_table_iterate: check_signature): Likewise.
8122 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8123 check_varstate): Likewise. Mark inline.
8124 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8125 an additional parameter.
8126 (find_long: fnd_long): Likewise. Pass two additional parameters.
8127 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8128 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8129 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8130 Likewise. Rename to ...
8131 (grub_cmos_find_port_iter): ... this.
8132 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8134 (find_rtc_iter): ... this.
8136 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8137 function directly into the function body, since it is only called
8140 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8142 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8143 __attribute__ ((unused)).
8144 * grub-core/video/bochs.c (find_card): Likewise.
8145 * grub-core/video/cirrus.c (find_card): Likewise.
8146 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8147 * grub-core/video/sis315pro.c (find_card): Likewise.
8148 * grub-core/video/sm712.c (find_card): Likewise.
8150 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8152 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8153 Fixes Savannah bug #37821.
8155 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8157 Apply program name transformations at build-time rather than at
8158 run-time. Fixes Debian bug #696465.
8160 * acinclude.m4 (grub_TRANSFORM): New macro.
8161 * configure.ac: Create output variables with transformed names for
8163 * util/bash-completion.d/grub-completion.bash.in: Use
8164 pre-transformed variables for program names.
8165 * util/grub-install.in: Likewise.
8166 * util/grub-kbdcomp.in: Likewise.
8167 * util/grub-mkconfig.in: Likewise.
8168 * util/grub-mkconfig_lib.in: Likewise.
8169 * util/grub-mknetdir.in: Likewise.
8170 * util/grub-mkrescue.in: Likewise.
8171 * util/grub-mkstandalone.in: Likewise.
8172 * util/grub-reboot.in: Likewise.
8173 * util/grub-set-default.in: Likewise.
8174 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8175 * tests/util/grub-shell-tester.in: Remove unused assignment.
8176 * tests/util/grub-shell.in: Likewise.
8177 * util/grub.d/00_header.in: Likewise.
8179 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8181 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8183 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8185 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8187 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8189 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8190 Reported by: Eriks Latosheks <foresterlv>.
8192 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8194 * docs/grub.texi (Network): Update instructions on generating netboot
8197 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8199 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8200 around device name if necessarry.
8202 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8204 * util/grub-install.in: Follow the symbolic link parameter added
8205 to the file command.
8207 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8209 * util/grub-install.in: Remove stale TODO.
8211 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8213 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8214 dynamic allocation for the bootpath buffer.
8216 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8218 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8221 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8223 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8224 argument rather than font name. All users updated.
8225 (grub_gfxterm_set_window): Likewise.
8227 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8229 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8232 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8234 * util/getroot.c (convert_system_partition_to_system_disk): Support
8237 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8239 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8240 infinite loop on corrupted FS.
8242 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8244 Fix big-endian mtime.
8246 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8247 together sec and usec.
8248 (grub_ufs_dir): Use correct byteswapping for UFS time.
8250 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8252 Support big-endian UFS1.
8254 * Makefile.util.def (libgrubmods): Add ufs_be.c
8255 * grub-core/Makefile.core.def (ufs1_be): New module.
8256 * grub-core/fs/ufs_be.c: New file.
8257 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8260 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8262 * include/grub/types.h: Fix functionality unaffecting typo in
8263 GRUB_TARGET_WORDSIZE conditional macro.
8265 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8267 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8269 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8271 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8272 that /netbsd appears first (when it exists).
8274 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8276 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8277 Fixes Savannah bug #37558.
8279 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8281 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8282 description of extract_entries_configfile.
8284 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8286 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8288 (grub_cmd_linux): Likewise.
8289 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8290 preferred_lifetime. Update all users.
8292 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8294 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8295 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8297 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8299 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8300 errors from grub-probe to /dev/null, not stdout.
8302 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8304 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8307 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8309 * util/grub-install.in: Make the error message if $source_dir
8310 doesn't exist more useful.
8312 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8314 Fix grub-emu build on FreeBSD.
8316 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8317 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8319 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8320 implementation is currently Linux-specific.
8321 * util/getroot.c (exec_pipe): Define only on Linux or when either
8322 libzfs or libnvpair is unavailable.
8323 (find_root_devices_from_poolname): Remove unused path variable.
8325 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8327 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8328 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8329 should fit before end == 63.
8331 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8333 * util/grub-setup.c (write_rootdev): Remove unused core_img
8334 parameter. Update all callers.
8335 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8336 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8339 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8341 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8342 (grub_add_tab): New function.
8343 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8344 * util/grub.d/10_illumos.in: Likewise.
8345 * util/grub.d/10_kfreebsd.in: Likewise.
8346 * util/grub.d/10_linux.in: Likewise.
8347 * util/grub.d/10_netbsd.in: Likewise.
8348 * util/grub.d/10_windows.in: Likewise.
8349 * util/grub.d/10_xnu.in: Likewise.
8350 * util/grub.d/20_linux_xen.in: Likewise.
8351 * util/grub.d/30_os-prober.in: Likewise.
8353 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8355 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8356 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8357 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8358 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8359 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8361 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8362 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8364 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8366 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8368 Reported by: BURETTE, Bernard.
8370 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8372 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8375 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8377 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8378 IEEE1275 machines. Fixes powerpc-emu compilation.
8379 * include/grub/terminfo.h: Likewise.
8381 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8383 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8385 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8387 (efiemu_set_variable): Make vendor_guid a const pointer.
8389 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8391 Don't require grub-mkconfig_lib to generate manpages for programs.
8393 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8394 dependencies, don't add grub-mkconfig_lib.
8395 (program): Pass empty adddeps.
8396 (script): Pass grub-mkconfig_lib as adddeps.
8398 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8400 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8401 * util/getroot.c (grub_find_device): Likewise.
8402 (get_mdadm_uuid): Likewise.
8403 (grub_util_is_imsm): Likewise.
8404 (grub_util_pull_device): Likewise.
8405 * util/grub-probe.c (probe): Likewise.
8407 2012-09-10 Benoit Gschwind <gschwind>
8409 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8410 (devs): Add devpath_8.
8412 2012-09-08 Peter Jones <pjones@redhat.com>
8414 * grub-core/Makefile.core.def (efifwsetup): New module.
8415 * grub-core/commands/efi/efifwsetup.c: New file.
8416 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8417 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8419 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8421 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8423 * configure.ac: Add SuSe path.
8425 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8429 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8431 * util/import_gcry.py: Sort cipher_files, to make build system
8432 generation more deterministic.
8434 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8436 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8437 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8438 (grub_set_datetime): Likewise.
8440 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8442 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8445 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8447 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8449 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8451 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8453 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8455 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8456 required for checkouts from bzr, but it may be useful for users or
8457 distributors wishing to update translations against a tarball
8458 distribution, and it can be helpful for the tarball to be a superset
8461 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8463 * Makefile.am (EXTRA_DIST): Add
8464 grub-core/tests/boot/linux.init-mips.S,
8465 grub-core/tests/boot/linux.init-ppc.S, and
8466 grub-core/tests/boot/linux-ppc.cfg.
8468 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8470 * grub-core/mmap/mips/loongson: Remove empty directory.
8472 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8474 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8477 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8479 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8482 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8484 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8486 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8488 * po/POTFILES.in: Regenerated.
8490 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8492 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8493 (NetBSD): New subsection.
8495 2012-07-22 Ales Nesrsta <starous@volny.cz>
8497 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8498 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8500 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8502 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8503 * util/grub.d/10_hurd.in: Add missing quoting.
8504 * util/grub.d/10_illumos.in: Likewise.
8505 * util/grub.d/10_kfreebsd.in: Likewise.
8506 * util/grub.d/10_linux.in: Likewise.
8507 * util/grub.d/20_linux_xen.in: Likewise.
8509 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8511 New command `lsefi'.
8513 * grub-core/Makefile.core.def (lsefi): New module.
8514 * grub-core/commands/efi/lsefi.c: New file.
8515 * include/grub/efi/api.h: Add more GUIDs.
8517 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8519 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8520 (grub_bsd_elf32_hook): Likewise.
8521 (grub_bsd_elf64_size_hook): Likewise.
8522 (grub_bsd_elf64_hook): Likewise.
8523 (grub_bsd_load_elf): Likewise.
8525 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8527 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8528 if hash function is unavailable.
8529 (dec_stream_header): Likewise.
8531 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8533 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8536 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8538 Fix coreboot compilation.
8540 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8541 (grub_vga_text_init_real): ... this.
8542 (grub_vga_text_fini): Rename to ...
8543 (grub_vga_text_fini_real): ... this.
8545 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8547 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8549 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8551 * grub-core/lib/legacy_parse.c: Support clear and testload.
8553 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8555 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8557 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8559 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8561 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8563 * grub-core/net/tftp.c (ack): Fix endianness problem.
8564 (tftp_receive): Likewise.
8565 Reported by: Michael Davidsaver.
8567 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8569 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8571 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8573 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8574 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8575 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8577 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8579 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8581 Reported by: Stuart Hayes.
8583 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8585 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8587 * grub-core/Makefile.core.def (mda_text): New module.
8588 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8589 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8590 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8591 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8593 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8594 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8595 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8597 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8599 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8601 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8603 * grub-core/term/i386/vga_common.c: Removed.
8604 * include/grub/i386/vga_common.h: Likewise.
8605 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8606 (grub_vga_cr_bw_read): Likewise.
8607 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8608 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8609 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8610 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8611 grub_vga_cr_read/grub_vga_cr_write.
8612 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8614 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8616 * configure.ac: Bump version to 2.00.
8617 * grub-core/normal/main.c (features): Add feature_200_final.
8619 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8620 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8622 * NEWS: Fix unclarity and language mistakes.
8624 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8626 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8627 additional size to 3 pages.
8628 Reported by: Stuart Hayes.
8630 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8632 * NEWS: Add 2.00 entry.
8634 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8636 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8637 put explicit "/" for empty path.
8638 (wildcard_expand): Improve dprintf.
8640 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8642 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8643 it's equal to currnode. This can happen with "" symlink.
8645 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8647 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8648 echo shell command by printf command.
8650 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8652 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8653 the value returned by firmware is the maximal position, not diumension.
8654 (grub_terminfo_output_state): Use a more sane fallback.
8656 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8658 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8660 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8662 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8663 frequency to 150 MHz.
8665 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8669 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8671 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8673 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8675 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8677 Handle slash in HFS label.
8679 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8680 (grub_hfs_dir): Tanslate slash.
8681 (grub_hfs_label): Don't translate slash.
8683 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8685 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8686 network protocol listing since it introduces problematic dependency on
8689 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8691 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8693 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8695 Init video early on yeeloong to avoid being rebooted by watchdog.
8697 * grub-core/Makefile.am (gensm712): New target.
8698 (sm712_start.S): Likewise.
8699 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8700 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8701 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8703 * include/grub/vga.h: Move registry definitions to...
8704 * include/grub/vgaregs.h: ... here.
8706 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8708 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8711 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8713 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8714 platforms with firmware disk drivers in the core.
8716 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8718 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8719 informative verbose message.
8720 (read_lv): Handle 64-bit segment size.
8722 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8724 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8726 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8728 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8729 character but still remove trainling spaces.
8730 (grub_fat_label): Ignore archive flag.
8732 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8734 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8735 cast between linux_kernel_header and linux_kernel_params.
8737 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8739 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8741 (grub_raid6_recover_func_t): Likewise.
8742 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8743 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8745 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8747 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8749 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8753 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8754 [__NetBSD__]: Add explicit cast before bitshift.
8756 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8758 * configure.ac: Bump to 2.00~rc1.
8760 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8762 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8765 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8766 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8768 * docs/grub.texi: Fix search syntax.
8769 (Multi-boot manual config): Put msdos rather than GPT example.
8770 Grammar corrections.
8772 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8774 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8776 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8778 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8780 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8782 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8783 message on double free. Put the value of magic in case of mismatch.
8785 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8787 Speed-up video on yeeloong.
8789 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8791 (grub_video_sm712_video_fini): Unmap cached_ptr.
8792 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8793 (grub_video_sm712_set_active_render_target): Removed.
8794 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8795 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8798 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8800 Avoid flushing the same line multiple times on loongson.
8802 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8803 Step in 32 bytes and not 1 byte.
8804 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8807 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8809 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8812 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8814 Implement flow control for http.
8816 * grub-core/net/http.c (parse_line): Handle response 206.
8817 (http_receive): Stall if too many packets are in the queue.
8818 (http_establish): Fix range header.
8819 (http_seek): Fix double free.
8820 (http_close): Likewise.
8821 (http_packets_pulled): New function.
8822 (grub_http_protocol): Set http_seek
8823 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8824 (ack_real): Set window depending on i_stall.
8825 (grub_net_send_tcp_packet): Likewise.
8826 (grub_net_tcp_stall): New function.
8827 (grub_net_tcp_unstall): Likewise.
8828 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8829 (grub_net_tcp_unstall): Likewise.
8831 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8833 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8835 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8837 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8839 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8841 * tests/util/grub-shell.in: Fix a typo.
8843 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8845 Implement flow control for tftp.
8847 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8848 packets but stop only if stop condition is satisfied.
8849 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8850 `stall' instead of `eof' as stop condition.
8851 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8852 (http_err): Likewise.
8853 * grub-core/net/tftp.c (ack): Replace the first argument with data
8855 (tftp_receive): Stall if too many packets are in wait queue.
8856 (tftp_packets_pulled): New function.
8857 (grub_tftp_protocol): Set packets_pulled.
8858 * include/grub/net.h (grub_net_packets): New field count.
8859 (grub_net_put_packet): Increment count.
8860 (grub_net_remove_packet): Likewise.
8861 (grub_net_app_protocol): New field `packets_pulled'.
8862 (grub_net): New field `stall'.
8864 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8866 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8867 sync part to handle them.
8869 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8871 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8872 * grub-core/net/drivers/ieee1275/ofnet.c
8873 (grub_ieee1275_net_config_real): Likewise.
8875 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8877 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8878 the direct route for server/gateway.
8880 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8882 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8883 IP address to server name since we may not hame the DNS.
8885 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8887 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8888 freeing random buffer on failure.
8889 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8891 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8893 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8895 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8897 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8899 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8900 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8901 Handle malloc error correctly.
8903 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8905 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8908 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8910 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8913 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8915 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8916 none is explicitly specified.
8918 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8920 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8923 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8925 Respect netmask from bootp/dhcp.
8927 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8928 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8929 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8931 (grub_net_add_ipv4_local): ... this.
8932 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8933 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8934 (grub_net_add_ipv4_local): New proto.
8936 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8938 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8939 determining EFI memory map size.
8941 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8943 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8945 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8947 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8948 when looking for partition separator.
8950 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8952 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8955 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8957 Restructure FAT driver to avoid hook in label reading as it hits a
8960 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8961 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8962 (grub_fat_iterate_dir): Split into ...
8963 (grub_fat_iterate_init): ... this, ...
8964 (grub_fat_iterate_fini): ... this, ...
8965 (grub_fat_iterate_dir_next): ... and this. All users updated.
8967 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8969 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8970 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8971 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8972 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8973 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8974 New fields last_key and last_key_time.
8975 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8976 extended key-esc into extended key-extended key.
8978 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8980 Avoid unnecessary memcpy of whole video buffer.
8982 * grub-core/video/fb/video_fb.c (dirty): New struct.
8983 (framebuffer): Add members current_dirty and previous_dirty.
8984 (dirty): New function.
8985 (grub_video_fb_fill_rect): Update dirty.
8986 (common_blitter): Likewise.
8987 (grub_video_fb_scroll): Likewise.
8988 (doublebuf_blit_update_screen): Copy only dirty part.
8989 (doublebuf_pageflipping_update_screen): Likewise.
8990 (grub_video_fb_doublebuf_blit_init): Init dirty.
8991 (doublebuf_pageflipping_init): Likewise.
8992 (grub_video_fb_setup): Likewise.
8994 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8996 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
8999 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9001 Fix wildcard regexp dot and other special characters handling.
9002 Reported by: Robert Mabee.
9004 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9005 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9006 (split_path): Trigger expansion on '?'.
9007 (unescape): New function.
9008 (wildcard_expand): Unescape parts copied without globbing.
9009 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9010 (grub_script_arglist_to_argv): Don't unescape expansions.
9012 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9014 * include/grub/net.h (grub_net_card): New member txbufsize.
9015 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9016 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9017 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9018 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9020 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9021 compatible property to check for macs. Set
9022 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9023 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9024 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9025 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9026 (send_card_buffer): Use txbuf.
9027 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9028 nested function out of the parent while on it.
9030 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9032 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9034 (grub_ieee1275_net_config_real): Fix config pointer.
9036 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9038 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9039 filename parsing to non-block devices.
9041 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9043 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9045 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9047 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9050 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9052 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9053 UUID search command even if hints probing failed.
9055 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9057 * po/POTFILES.in: Regenerated.
9059 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9061 Speed-up video on fuloong.
9063 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9065 (grub_pci_device_unmap_range): Handle non-cached address.
9066 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9068 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9069 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9070 (grub_video_sis315pro_set_active_render_target): Removed.
9071 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9072 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9073 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9075 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9078 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9080 * docs/grub.texi (Multi-boot manual config): New section.
9082 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9084 Avoid slow read-back from VRAM.
9086 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9088 * grub-core/video/fb/video_fb.c
9089 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9090 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9091 (front_target): Remove front_target. Add pages.
9092 (grub_video_fb_init): Skip setting front_pages.
9093 (grub_video_fb_fini): Likewise.
9094 (doublebuf_blit_update_screen): Use pages.
9095 (grub_video_fb_doublebuf_blit_init): Likewise.
9096 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9097 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9098 (grub_video_fb_setup): Prefer doublebuffing.
9100 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9102 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9105 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9109 * tests/util/grub-shell.in: Handle loongson.
9110 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9112 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9113 Reboot instead of shutdown if REBOOT is defined.
9115 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9117 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9118 sized ports since unlike on real hardware qemu supports only 32-bit
9121 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9123 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9124 * util/grub-mkrescue.in: Handle loongson.
9126 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9128 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9129 Set is_part appropriately.
9130 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9131 names. Canonicalize partition without full disk.
9133 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9135 Revert usb-quiesce since it's wrong.
9137 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9138 (grub_ofdisk_init): Don't do quiesce.
9140 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9142 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9143 PowerMac workaround to Xserves as well.
9144 Information supplied by: Benjamin Herrenschmidt.
9146 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9148 Don't assume that beginning address is also the entry point on ppc.
9150 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9151 (grub_linux_boot): Use linux_entry.
9152 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9153 (grub_linux_load64): Likewise.
9155 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9157 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9159 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9161 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9162 needlessly lose the console.
9164 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9166 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9169 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9171 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9172 than current grub_get_rtc() not implemented when booted with
9173 coreboot without TSC.
9175 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9176 Add machine/time.h to kernel headers on loongson.
9177 * grub-core/Makefile.core.def (kernel): Remove
9178 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9179 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9180 (grub_get_rtc): Likewise.
9181 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9182 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9183 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9184 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9185 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9186 rather than installing known non-working time source.
9187 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9188 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9189 * include/grub/time.h: Don't include machine/time.h.
9190 * include/grub/efi/time.h: Removed.
9191 * include/grub/i386/efi/time.h: Likewise.
9192 * include/grub/i386/ieee1275/time.h: Likewise.
9193 * include/grub/powerpc/ieee1275/time.h: Likewise.
9194 * include/grub/sparc64/ieee1275/time.h: Likewise.
9195 * include/grub/x86_64/efi/time.h: Likewise.
9197 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9199 Remove dot on i and j when combining with above diacritics.
9201 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9203 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9204 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9205 with dotless variants when any combining above is present.
9207 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9209 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9210 text and not binary.
9212 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9214 Stop polling as soon as we have the packet we were waiting for.
9216 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9218 * grub-core/net/arp.c (have_pending): New var.
9219 (pending_req): Likewise.
9220 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9222 (grub_net_arp_receive): Set have_pending.
9223 * grub-core/net/dns.c (recv_data): New field stop.
9224 (recv_hook): Set stop.
9225 (grub_net_dns_lookup): Init stop and use as stop condition.
9226 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9228 * grub-core/net/net.c (grub_net_poll_cards): New argument
9229 stop_condition. Stop when it goes true.
9230 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9232 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9234 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9236 Keep TX and RX buffers on EFI rather than always allocate new ones.
9238 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9239 card. All users updated.
9240 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9241 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9242 (get_card_packet): Likewise.
9243 (grub_efinet_findcards): Init new fields.
9245 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9247 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9248 compilation error on sparc64.
9250 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9252 Use ITC on IA64 rather than broken routine based on daytime.
9254 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9256 (grub_get_rtc) [__ia64__]: Likewise.
9257 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9258 (get_itc): New function.
9259 (grub_rtc_get_time_ms): Likewise.
9260 (grub_machine_init): Calibrate ITC.
9261 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9262 Keep only on non-ia64. Don't export since it's broken and used only
9263 if TSC is unavailable.
9265 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9267 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9269 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9270 Skip if parent is unused.
9272 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9274 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9276 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9278 Fix wildcard escaping.
9280 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9281 * grub-core/script/execute.c (wildcard_escape): .. to here.
9283 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9284 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9286 * grub-core/script/execute.c (gettext_append): Always escape.
9287 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9288 * grub-core/script/yylex.l: Don't cut away the escaping.
9289 * tests/grub_script_echo1.in: Add tests with wildcard.
9291 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9293 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9294 (ftdi_hw_configure): Likewise.
9295 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9297 (real_config): Handle 1.5 stop bits.
9298 (pl2303_hw_configure): Likewise.
9300 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9302 * Makefile.am: Add ppc linux bootcheck.
9303 * grub-core/tests/boot/linux-ppc.cfg: New file.
9304 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9306 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9308 * tests/grub_script_expansion.in: Skip network protocols.
9310 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9312 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9314 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9316 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9320 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9322 ESCC serial driver for conducting sautomated tests in qemu.
9323 Not tested on real hardware.
9325 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9326 * grub-core/term/ieee1275/escc.c: New file.
9327 * grub-core/Makefile.core.def (escc): New module.
9329 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9331 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9333 (serial_hw_fetch): Don't read invalid handle.
9334 (serial_hw_put): Don't write into invalid handle.
9336 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9338 Add a 1.5 stop bits value.
9340 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9341 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9342 GRUB_SERIAL_STOP_BITS_1_5.
9344 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9346 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9347 value rather than let it uninited.
9349 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9351 * grub-core/commands/wildcard.c (+check_file): New function.
9352 (wildcard_expand): Don't expand to non-existing files, expand with
9353 suffix and not attempt to expand if not needed.
9355 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9357 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9358 out of partitions containing other partitions.
9360 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9362 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9363 on some qemu versions with GRUB.
9365 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9367 (grub_openbsd_bootarg_pcibios): New struct.
9368 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9371 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9373 * tests/util/grub-shell.in: Trim firmware output on EFI.
9375 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9377 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9378 and coreboot since it's already in kernel.
9380 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9382 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9383 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9384 to here. New return value start. All users updated.
9385 Recursively scan linear mappings.
9386 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9388 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9389 Use grub_util_get_dm_node_linear_info.
9390 * util/getroot.c (convert_system_partition_to_system_disk): Use
9391 grub_util_info rather than grub_dprintf.
9392 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9394 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9396 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9398 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9399 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9401 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9403 * include/grub/types.h (grub_set_unaligned64): New function.
9404 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9407 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9409 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9410 (grub_ofdisk_fini): Quiesce USB devices.
9412 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9414 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9417 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9419 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9421 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9423 * grub-core/disk/pata.c (grub_pata_pio_read)
9424 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9425 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9427 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9429 Extend automated tests to qemu-mips.
9431 * Makefile.am: reorganise tests and enable qemu-mips.
9432 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9433 * grub-core/tests/boot/linux.init-mips.S: New file.
9434 * tests/partmap_test.in: Handle ata0 disks.
9435 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9438 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9440 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9442 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9445 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9447 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9448 (grub_halt): Likewise.
9449 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9451 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9453 * grub-core/term/serial.c (grub_serial_register)
9454 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9455 the behaviour in line with x86 platforms.
9457 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9459 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9460 (grub_ata_strncpy): Likewise.
9461 (grub_ata_identify): Add missing byteswaps.
9463 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9465 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9467 (screen_read_char): Likewise.
9468 (grub_vga_text_cls): Likewise.
9470 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9472 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9474 (make_file_path): Likewise.
9476 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9478 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9480 Tested by: Paulo Flabiano Smorigo.
9481 Crucial information about API supplied by: Coleen <Last name unknown>.
9482 Reviewed by: Coleen <Last name unknown>.
9484 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9486 * util/grub-mkimage.c: Disable -Wcast-align.
9488 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9490 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9493 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9495 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9497 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9499 * util/grub-probe.c (escape_of_path): Fix double free.
9501 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9503 * grub-core/commands/videoinfo.c (hook): Show pitch.
9505 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9507 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9509 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9511 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9512 (probe): Add ieee1275 to OFW devices.
9514 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9516 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9518 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9520 Handle IBM OFW path.
9522 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9524 (of_path_of_scsi): Handle vdevice.
9526 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9528 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9529 Allocate in multiples of 16 to avoid adding a few bytes free region the
9532 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9534 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9535 Allocate in multiples of 16 to avoid adding a few bytes free region the
9537 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9539 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9541 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9543 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9544 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9546 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9548 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9550 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9552 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9553 resulted in \\ at the end of the line.
9555 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9557 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9558 (grub_parser_cmdline_state): Likewise.
9559 (grub_parser_split_cmdline): Likewise.
9561 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9563 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9564 /dev/root and /dev/dm-*.
9566 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9568 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9569 fix partially stale display.
9571 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9573 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9576 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9578 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9579 Fix MBR remapping workaround.
9580 (grub_util_biosdisk_read) [__linux__]: Likewise.
9582 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9584 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9586 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9588 * configure.ac: Bump to beta6.
9590 2012-05-31 Christer Weinigel <christer@weinigel.se>
9592 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9594 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9596 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9597 (grub_cmd_linux): Likewise.
9599 2012-05-31 Christer Weinigel <christer@weinigel.se>
9603 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9604 (GRUB_EHCI_MULT_TWO): Likewise.
9605 (GRUB_EHCI_MULT_THREE): Likewise.
9606 (GRUB_EHCI_CMASK_MASK): New enum value.
9607 (GRUB_EHCI_SMASK_MASK): Likewise.
9608 (GRUB_EHCI_CMASK_OFF): Likewise.
9609 (GRUB_EHCI_SMASK_OFF): Likewise.
9610 (grub_ehci_pci_iter): Enable periodic schedule.
9611 (grub_ehci_parse_notrun): Likewise.
9612 (grub_ehci_restore_hw): Likewise.
9613 (grub_ehci_setup_qh): Set flags for low speed transfers.
9614 (grub_ehci_find_qh): Use periodic list for low speed.
9615 (grub_ehci_setup_transfer): Check periodic queue as well.
9616 (grub_ehci_check_transfer): Likewise.
9617 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9619 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9621 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9624 2012-05-31 Peter Jones <pjones@redhat.com>
9626 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9627 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9628 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9630 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9632 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9633 uninited variable. Allocate at least setup_sects.
9635 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9637 Fix handling of EFI with big memory maps.
9639 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9640 (real_mode_mem): Likewise.
9641 (real_mode_target): Likewise.
9642 (real_mode_pages): Likewise.
9643 (prot_mode_pages): Likewise.
9644 (linux_params): New var.
9645 (linux_cmdline): Likewise.
9646 (free_pages): Don't set real mode variables.
9647 (allocate_pages): Don't allocate real mode memory.
9648 (grub_e820_add_region): Remove the limit.
9649 (grub_linux_boot): Allocate and copy real mode memory.
9650 (grub_linux_unload): Free linux_cmdline.
9651 (grub_cmd_linux): Use temporary storage for parameters.
9652 (grub_cmd_initrd): Likewise.
9653 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9654 (linux_kernel_params): Make it 1K big.
9656 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9658 * Makefile.util.def: Remove -Wno-format.
9659 * grub-core/Makefile.core.def: Likewise.
9661 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9663 * tests/cmp_unit_test.c: Add missing failure message.
9664 * tests/example_unit_test.c: Likewise.
9665 * tests/printf_unit_test.c: Likewise.
9667 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9669 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9670 relaxation of protective MBR requirements.
9672 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9674 * configure.ac: Add condition for COND_HOST_XNU.
9675 * Makefile.util.def (10_xnu): New script.
9676 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9678 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9680 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9683 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9685 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9686 Binary on other platforms stays identical.
9688 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9690 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9693 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9695 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9697 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9699 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9700 rather than defining size_t ourselves to avoid conflict.
9702 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9704 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9705 initialisation to avoid __bzero reference.
9707 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9709 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9711 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9712 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9713 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9714 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9715 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9717 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9719 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9720 * grub-core/kern/misc.c: Likewise.
9721 * grub-core/loader/i386/xnu.c: Likewise.
9722 * include/grub/i386/tsc.h: Likewise.
9723 * include/grub/symbol.h: Likewise.
9725 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9727 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9728 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9731 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9733 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9734 Implement Apple flavour.
9735 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9737 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9739 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9740 (memmove) [__APPLE__]: Likewise.
9741 (memcpy) [__APPLE__]: Likewise.
9742 (memset) [__APPLE__]: Likewise.
9743 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9744 (memmove) [__APPLE__]: Likewise.
9745 (memcpy) [__APPLE__]: Likewise.
9746 (memset) [__APPLE__]: Likewise.
9748 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9750 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9753 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9755 * grub-core/normal/main.c (read_config_file): Provide config_file and
9757 * util/grub.d/41_custom.in: Use config_directoy when available.
9759 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9761 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9762 (grub_bfs_dir): Likewise.
9764 2012-05-27 Peter Jones <pjones@redhat.com>
9766 The old code gives arguments to a printf function which can't work
9767 correctly, and the compiler complains.
9769 * grub-core/tests/example_functional_test.c (example_test): Add
9771 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9772 * include/grub/test.h (grub_test_assert_helper): New declaration.
9773 (grub_test_assert): Use grub_test_assert_helper.
9775 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9777 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9778 (exfctest): ... this to avoid overlong filenames.
9781 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9783 Handle "." and ".." on squashfs.
9785 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9786 Make inode numbers into stack.
9787 (grub_squash_read_symlink): Use stack.
9788 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9789 (make_root_node): Fill stack.
9790 (grub_squash_open): Use stack.
9792 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9794 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9797 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9799 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9800 stderr on test calls.
9802 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9804 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9806 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9808 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9810 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9812 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9815 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9817 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9818 (grub_hfsplus_iterate_dir): Add "." and "..".
9820 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9822 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9823 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9825 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9827 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9828 (find_path): Handle "." and "..".
9830 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9832 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9833 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9834 (grub_affs_iterate_dir): Handle hardlinks.
9836 2012-05-26 Matthew Garrett <mjg@redhat.com>
9838 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9839 (grub_efi_console_fini): Likewise.
9840 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9841 (grub_video_gop_fill_mode_info): Rename to ...
9842 (grub_video_gop_fill_real_mode_info): ... this.
9843 (grub_video_gop_fill_mode_info): New function.
9844 (grub_video_gop_setup): Setup double framebuffer.
9845 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9847 (grub_video_gop_swap_buffers): Copy framebuffer.
9848 (grub_video_gop_fini): Free offscreen buffer.
9849 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9851 (grub_efi_gop_blt_pixel): New struct.
9853 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9855 * gentpl.py: Remove error disabling for objconv.
9857 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9859 * configure.ac: Remove -Wunitialized as it's not available on older
9862 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9864 Fix extent overflow comparator.
9866 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9867 (grub_hfsplus_read_block): Set type.
9868 (grub_hfsplus_cmp_extkey): Compare type.
9870 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9872 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9874 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9876 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9879 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9881 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9882 (dejavu_bold_14.pf2): New target.
9884 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9886 * configure.ac: Fix djvu font detection.
9888 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9890 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9891 ext* instead of ext2.
9893 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9895 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9898 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9900 * docs/grub-dev.texi: Remove dot from .png.
9902 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9904 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9905 protective entry in any slot.
9906 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9907 if protective entry is found in any slot.
9909 Protective entry in non-first slot make no sense but is a widespread
9912 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9914 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9916 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9918 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9920 (grub_reiserfs_open): Don't free root.
9922 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9924 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9925 after freeing for safety.
9927 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9929 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9930 Reported by: Jordan Uggla.
9932 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9934 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9935 actual implementation. Specifically, clarify that the grub menu will
9936 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9939 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9941 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9944 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9946 Remove unjustified hard dependency of normal.mod on gfxterm.
9948 * include/grub/term.h (grub_term_output): New member fullscreen.
9949 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9950 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9951 (grub_gfxterm): Set .fullscreen.
9952 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9953 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9955 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9957 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9958 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9959 Mention case-insensitive AFFS, SFS and JFS.
9961 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9963 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9965 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9967 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9970 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9972 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9973 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9975 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9977 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
9978 (grub_jfs_mount): Fill caseins.
9979 (grub_jfs_find_file): Respect caseins.
9981 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9983 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
9986 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9988 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
9989 New argument origpath. All users updated.
9991 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9993 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
9994 (read_attr): Ensure that we read start of possibly compressed block.
9996 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9998 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
9999 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10002 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10004 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10005 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10006 (dejavu.pf2): Replace with ...
10007 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10010 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10012 * util/grub.d/20_linux_xen.in: Add missing line.
10014 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10016 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10017 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10018 (grub_utf16_to_utf8): Likewise.
10020 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10022 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10023 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10024 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10025 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10026 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10027 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10029 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10031 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10034 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10036 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10037 (grub_udf_read_symlink): Handle read_string failure.
10039 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10041 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10044 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10046 Fix handling of UDF symlinks.
10048 * grub-core/fs/udf.c (read_string): New argument outbuf.
10050 (grub_ufs_read_symlink): Rename to ...
10051 (grub_udf_read_symlink): ... this. All users updated.
10052 Handle symlinks with more than one component.
10054 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10056 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10057 symlinks. Replace leading colon with a slash.
10059 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10061 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10064 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10066 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10067 match in inner node.
10069 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10071 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10072 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10073 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10074 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10075 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10076 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10077 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10078 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10079 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10081 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10083 Use grub-probe and not cmp to check that disk is empty.
10085 * util/grub-install.in: Use grub-probe for zero-check.
10086 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10087 (probe): Handle PRINT_ZERO_CHECK.
10088 (argp_parser): Handle -t zero_check.
10090 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10092 Flush block cache on adding disk to device map.
10094 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10095 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10097 (read_device_map): Likewise.
10098 (open_device): Flush on opening.
10100 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10102 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10103 (handle_symlink): Fix off-by-one error.
10104 Canonicalize the target.
10105 (grub_cpio_dir): Canonicalize the name.
10108 (grub_cpio_open): Canonicalize the name.
10110 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10112 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10115 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10117 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10118 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10120 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10122 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10123 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10126 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10128 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10131 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10133 Fix UFS1 big file support.
10135 * grub-core/fs/ufs.c (INODE): Removed.
10136 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10138 (INODE_MODE): Simplify.
10139 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10140 (grub_ufs_lookup_symlink): Don't use INODE.
10142 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10144 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10146 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10147 (grub_minix_data): Replace log_block_size with block_size.
10148 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10149 (grub_minix_mount): Fill block_size.
10151 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10153 * configure.ac: Bump to beta5.
10155 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10157 Fix wrapped HFS+ handling.
10159 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10160 blocks_start. All users updated.
10161 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10163 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10165 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10167 Fix long symlinks on reiserfs.
10169 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10170 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10171 (grub_reiserfs_iterate_dir): Save size for non-directories.
10172 (grub_reiserfs_open): Don't reread stat block as we already know the
10174 (grub_reiserfs_read): Split into...
10175 (grub_reiserfs_read_real): ... and ...
10176 (grub_reiserfs_read): ...this.
10178 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10180 Fix non-indexed JFS.
10182 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10183 (grub_jfs_data): New field namecomponentlen.
10184 (grub_jfs_mount): Fill namecomponentlen.
10185 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10187 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10189 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10190 * tests/grub_script_echo1.in: Add tests.
10192 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10194 * util/grub-install.in: Ignore empty devicetree directory.
10196 2012-05-08 Bean <bean123ch@gmail.com>
10198 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10200 (free_rsm): Free header as well.
10201 (free_old_fragments): Fix memory leak.
10202 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10203 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10204 (destroy_pq): Likewise.
10205 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10207 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10209 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10210 resulting hash as a precaution.
10212 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10214 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10215 '_' in variable names.
10216 * grub-core/net/net.c (grub_net_network_level_interface_register):
10219 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10221 Fix AFFS with non-512B blocks.
10223 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10224 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10225 (grub_affs_data): Replace blocksize with log_blocksize.
10226 (grub_affs_read_block): Fix non-512B blocks.
10227 (grub_affs_read_symlink): Likewise.
10228 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10229 (grub_affs_read): Fix non-512B blocks.
10230 (grub_affs_label): Likewise.
10231 (grub_affs_mtime): Likewise.
10232 (grub_affs_mount): Fix block detection routine.
10234 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10236 Add filesystem mtime to AFFS.
10238 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10239 (aftime2ctime): New function.
10240 (grub_affs_dir): Use aftime2ctime.
10241 (grub_affs_label): Fix return value.
10242 (grub_affs_mtime): New function.
10243 (grub_affs_fs): Add mtime.
10245 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10247 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10250 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10252 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10255 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10257 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10259 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10261 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10263 (FLAGS_CASE_SENSITIVE): New enum value.
10264 (cache_entry): New struct.
10265 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10266 cache_size and cache.
10267 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10268 Add log_blocksize and fshelp_flags.
10269 (grub_sfs_read_extent): Handle non-512 blocks.
10270 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10271 (grub_sfs_read_file): Handle non-512 blocks.
10272 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10274 (grub_sfs_read_symlink): Handle non-512 blocks.
10275 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10276 (grub_sfs_dir): Free cache.
10277 (grub_sfs_close): Likewise.
10279 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10281 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10284 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10286 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10288 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10290 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10292 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10294 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10295 (grub_sfs_read_extent): Likewise.
10296 (grub_sfs_read_block): Likewise.
10297 (grub_sfs_mount): Likewise.
10298 (grub_sfs_iterate_dir): Likewise.
10299 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10300 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10302 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10304 Fix errors on compressed NTFS with 512B clusters.
10306 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10308 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10310 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10311 Relax check for inline extents.
10312 (ntfscomp): Return correct -1 on error and not 0.
10314 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10316 * util/grub-install.in: Fix handling of prefix containing spaces.
10318 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10320 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10321 (grub_squash_read_data): Fix offset byte-swapping.
10323 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10325 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10326 per common usage and preffered in several parts of code.
10327 (grub_memcmp): Likewise.
10328 (grub_strncmp): Likewise.
10329 * include/grub/misc.h (grub_strcasecmp): Likewise.
10330 (grub_strncasecmp): Likewise.
10331 * Makefile.util.def (cmp_test): New test.
10332 (grub_script_strcmp): Likewise.
10333 * tests/cmp_unit_test.c: New file.
10334 * tests/grub_script_strcmp.in: Likewise.
10335 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10337 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10339 * include/grub/pci.h: Move enums into no-asm part.
10341 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10343 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10345 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10347 * util/getroot.c (find_hurd_root_device): Try to make error message
10348 and comments to translators clearer.
10350 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10352 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10354 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10356 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10359 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10361 * docs/grub.cfg: Update.
10363 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10365 * docs/grub.texi (PXE): Remove not present variables.
10367 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10369 * grub-core/net/net.c (defserver_set_env): New function.
10370 (defserver_get_env): Likewise.
10371 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10373 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10375 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10378 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10380 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10381 * grub-core/kern/emu/hostdisk.c: Likewise.
10383 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10385 Handle hurd userspace partitions.
10387 * util/getroot.c (find_hurd_root_device): New function.
10388 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10390 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10392 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10394 Reported by: Bastian Blank.
10396 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10398 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10399 crossing page boundary.
10401 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10403 Fix B-tree search in BFS, especially in presence of non-ASCII
10406 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10407 (find_in_b_tree): Use standard bsearch + btree algorithm.
10409 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10411 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10414 2012-05-03 Matthew Garrett <mjg@redhat.com>
10415 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10417 Suspend broadcom cards in order to stop their DMA.
10419 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10420 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10421 (pci): Don't build on x86 EFI.
10422 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10423 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10425 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10426 stop_broadcom if running on EFI.
10427 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10428 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10429 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10430 (grub_pci_find_capability): New proto.
10432 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10434 * docs/grub.texi: Remove dot from the extension as it apparently
10435 doesn't work with some makeinfo versions.
10437 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10439 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10440 with GRUB expectance.
10442 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10444 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10446 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10448 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10449 zero after directory block since last entry may be not 0-terminated if
10450 it ends on block boundary. Use continue instead of if spanning whole
10453 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10455 Support 4K sectors UDF inline files.
10457 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10458 (grub_udf_extended_file_entry): Likewise.
10459 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10461 (get_fshelp_size): New function.
10462 (grub_udf_read_icb): Read whole block.
10463 (grub_udf_iterate_dir): Likewise.
10464 (grub_udf_dir): Likewise.
10465 (grub_udf_open): Likewise.
10467 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10469 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10471 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10473 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10474 inline symlinks in addition to workaround.
10476 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10478 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10480 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10482 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10484 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10486 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10488 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10490 Fix reiserfs big seek times.
10492 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10493 exact. All users updated.
10494 (grub_reiserfs_read): Use nearest btree search for seeking.
10495 Fix return value on error.
10497 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10499 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10501 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10502 * docs/grub.texi: Update menuentry description.
10504 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10506 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10507 crash when embedding onto filesystem.
10509 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10511 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10514 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10516 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10518 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10520 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10523 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10524 2012-05-01 Bean <bean123ch@gmail.com>
10526 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10528 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10530 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10531 Special behaviour for len = 0 to read whole file isn't used anywhere and
10532 can cause buffer ovewrflows in several places.
10534 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10536 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10538 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10540 Handle RAIDZ on non-512B sectors.
10542 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10543 max_children_ashift.
10544 (fill_vdev_info_real): Fill max_children_ashift.
10545 (read_device): Use max_children_ashift.
10547 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10549 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10551 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10553 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10555 * docs/grub.texi: Update device.map parts.
10557 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10559 Don't scan into non-diskfilter devices having diskfilter names.
10561 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10562 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10564 (scan_disk_hook): New function.
10566 2012-04-29 Bean <bean123ch@gmail.com>
10568 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10571 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10573 * configure.ac: Detect starfield theme font path
10574 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10576 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10578 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10579 geometry on serial consoles.
10581 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10583 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10584 because of network consoles.
10586 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10588 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10591 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10593 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10594 falls on Q syndrom.
10596 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10598 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10599 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10601 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10603 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10604 Allocate at lest 8192 for temporary buffer as required for lzo.
10606 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10608 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10609 to cluster_bits, since it's already added in.
10610 (grub_fat_read_data): Likewise.
10612 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10614 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10615 as long as cluster size is multiple of 512 bytes.
10617 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10619 * util/grub-mkrescue.in: Fix locale directory.
10621 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10623 * grub-core/kern/emu/hostdisk.c (map): Make static.
10625 2012-04-23 Bean <bean123ch@gmail.com>
10627 * util/grub-fstest.c (fstest): Add missing break.
10629 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10633 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10634 not define nr variable.
10635 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10636 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10637 grub_find_device): Do not define.
10639 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10641 Fix kfreebsd compile and behaviour.
10643 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10645 * util/getroot.c: Fix wait.h include.
10646 (grub_guess_root_devices): Error if grub_find_device fails.
10647 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10648 (grub_util_get_dev_abstraction): Likewise.
10649 (grub_util_pull_device): Likewise.
10650 (grub_util_get_grub_dev): Likewise.
10651 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10653 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10655 Fix and unify wholedisk detection.
10657 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10658 is_part. All users updated.
10659 (device_is_wholedisk): Removed.
10660 (grub_util_biosdisk_get_grub_dev): Use is_part.
10662 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10664 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10667 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10669 * configure.ac: Bump to beta4.
10671 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10673 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10674 --fs-uuid --set UUID syntax.
10676 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10678 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10681 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10683 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10685 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10687 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10689 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10691 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10693 2012-04-18 Bean <bean123ch@gmail.com>
10695 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10698 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10700 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10702 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10703 corresponding to GRUB partitions.
10704 (grub_util_biosdisk_write): Likewise.
10706 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10708 Scan mdraid before LVM.
10710 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10711 (grub_diskfilter_register_front): ... this.
10712 (grub_diskfilter_register_back): New function.
10713 All users of grub_diskfilter_register updated.
10715 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10717 * util/grub-install.in: Fix an automatic target detection bug.
10719 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10721 * util/grub-install.in: New option --efi-directory.
10723 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10725 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10726 boot services if we have no other choice.
10728 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10730 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10732 * tests/util/grub-shell.in: Update to --directory.
10734 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10736 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10738 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10740 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10741 (grub_minix_read_file): Likewise.
10742 (grub_minix_read_inode): Likewise.
10743 (grub_minix_find_file): Likewise.
10744 (grub_minix_dir): Likewise.
10746 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10748 * util/grub-setup.c (setup): Fix partition handling and blocklist
10751 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10753 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10754 redundant buggy overlap check.
10756 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10758 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10761 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10763 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10764 kh.loadflags on pre-2.00 kernels.
10766 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10768 Terminate UNDI and PXE before launching the payload to avoid problems
10771 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10772 (grub_loader_flags): ... this. All users updated.
10773 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10774 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10775 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10776 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10778 (grub_pxe_restore): Likewise.
10779 (fini_hnd): New var.
10780 (GRUB_MOD_INIT): Register shutdown hook.
10781 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10782 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10783 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10784 (grub_loader_set): Rename second argument to flags.
10786 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10788 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10790 (grub_get_num_of_utf8_bytes): New function.
10791 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10792 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10794 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10795 (grub_ucs4_to_utf8): Change return type.
10797 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10799 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10801 * grub-core/fs/bfs.c (hop_level): Likewise.
10802 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10804 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10806 * grub-core/lib/adler32.c: Recode due to license unclearness.
10808 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10810 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10811 (test_header): Likewise.
10813 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10815 Fix --help formatting.
10817 * util/grub-mkconfig_lib.in (print_option_help): New function.
10818 (grub_fmt): Likewise.
10819 * util/grub-install.in: Use print_option_help and grub_fmt.
10820 * util/grub-kbdcomp.in: Likewise.
10821 * util/grub-mkconfig.in: Likewise.
10822 * util/grub-mknetdir.in: Likewise.
10823 * util/grub-mkrescue.in: Likewise.
10824 * util/grub-mkstandalone.in: Likewise.
10825 * util/grub-reboot.in: Likewise.
10826 * util/grub-set-default.in: Likewise.
10827 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10829 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10831 * linguas.sh: Remove autogenerated *.po.
10833 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10835 * po/README: Move language fetcing to ...
10836 * linguas.sh: ... here.
10837 * po/README: Point to linguas.sh.
10839 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10841 * po/README: Exclude ko.po due to disclaimer problems.
10843 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10845 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10847 (grub_gettext_translate_real): Handle 0th string.
10848 (grub_gettext_translate): Ensure that "" isn't translated.
10850 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10852 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10853 TRANSLATORS comment.
10854 (grub_diskfilter_print_partmap): Propagate changing of error into
10857 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10859 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10860 to uint64_t to prevent overflow.
10861 (grub_diskfilter_lv): Increase start_extent and extent_count
10862 to uint64_t to prevent overflow.
10864 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10866 * configure.ac: Increase version.
10868 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10870 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10872 * po/Rules-translit: New file.
10873 * po/arabic.sed: Likewise.
10874 * po/cyrillic.sed: Likewise.
10875 * po/greek.sed: Likewise.
10876 * po/hebrew.sed: Likewise.
10877 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10878 * po/Makefile.in.in: Add extra_dist4.
10880 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10882 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10884 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10885 modify names. Introduce MODE_BIGENDIAN.
10886 * grub-core/fs/minix_be.c: New file.
10887 * grub-core/fs/minix2_be.c: Likewise
10888 * grub-core/fs/minix3_be.c: Likewise.
10889 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10891 * grub-core/Makefile.core.def (minix_be): New module.
10892 (minix2_be): Likewise.
10893 (minix3_be): Likewise.
10895 2012-04-01 Felix <email@hamburg.de>
10897 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10898 (devs): Add MBP 2011.
10900 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10902 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10904 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10906 * grub-core/normal/cmdline.c (print_completion): New field
10908 (grub_cmdline_get): Handle width properly.
10910 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10912 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10914 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10916 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10917 after 29th of February.
10919 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10921 Fix exfat endianness handling.
10923 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10924 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10925 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10926 Byte-swap utf16 when necessary.
10927 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10929 2012-03-31 Anton Blanchard <anton@samba.org>
10930 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10932 Fix btrfs endianness handling.
10934 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10935 (lower_bound): Make root uint64_t. Use root in le.
10936 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10937 (find_path): Fix template key init.
10938 (grub_btrfs_dir): Fix mtime byteswap.
10939 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10941 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10943 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10944 recursion_depth. Break infinite resursions. All users updated.
10946 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10948 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10950 Reported by: Peter Jones.
10952 2012-03-31 Anton Blanchard <anton@samba.org>
10954 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10957 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10959 * util/grub-install.in: Fix nvram call for PreP.
10961 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10963 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10964 the error when some elements are missing into a warning.
10966 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10968 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10970 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10972 * docs/grub.texi (Invoking grub-probe): New section.
10973 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10975 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10977 Fix tab and wide character handling in editor and menu.
10979 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
10980 agglomerate control characters with combining marks.
10981 (bidi_line_wrap): Allow break on tab.
10982 (grub_unicode_get_comb_start): New function.
10983 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
10985 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
10987 * grub-core/normal/term.c (print_ucs4_terminal): New argument
10988 fixed_tab_size. All users updated.
10989 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
10990 (grub_term_getcharwidth): Handle \t.
10991 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
10994 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10996 Handle big-endian mdraid.
10998 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
10999 * grub-core/Makefile.core.def (mdraid09_be): New module.
11000 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11001 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11002 * grub-core/disk/mdraid_linux_be.c: New file.
11004 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11006 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11008 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11010 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11011 missing quotes which caused confusion among translators.
11013 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11015 * util/grub-mkconfig_lib.in: Fix typo.
11017 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11019 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11021 * tests/grub_script_leading_whitespace.in: New file.
11022 * Makefile.util.def (grub_script_leading_whitespace): New test.
11024 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11026 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11029 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11031 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11032 starts with control character.
11034 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11036 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11038 (grub_gdb_outbuf): Likewise.
11040 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11042 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11043 zero terminator. Fixes a crash.
11045 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11047 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11049 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11050 images independently of preffered adderss field.
11052 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11054 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11055 * grub-core/commands/regexp.c: Likewise.
11056 * grub-core/loader/i386/linux.c: Likewise.
11057 * grub-core/partmap/msdos.c: Likewise.
11058 * grub-core/script/execute.c: Likewise.
11059 * grub-core/term/gfxterm.c: Likewise.
11061 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11063 Add variable parsing in $"..." and fix several mismatches with bash.
11065 * Makefile.util.def (grub_script_gettext): New test.
11066 * grub-core/script/execute.c (parse_string): New function.
11067 (gettext_append): Likewise.
11068 (grub_script_arglist_to_argv): Use gettext_append.
11069 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11070 * tests/grub_script_gettext.in: New file.
11072 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11074 Fix handling of leading spaces in scripts.
11076 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11078 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11079 other than skipping \r. All users updated.
11080 * tests/grub_script_echo1.in: Add space-related tests.
11081 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11083 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11085 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11087 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11089 * configure.ac: Bump up the version to beta2.
11091 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11093 Fix gettext reload bugs (e.g. inability to disable gettext
11096 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11097 main_context and secondary_context. All functions updated.
11098 (grub_gettext_translate): Rename to ...
11099 (grub_gettext_translate_real): ... this. Return NULL on failed
11101 (grub_gettext_translate): Handle secondary context.
11102 (grub_gettext_delete_list): Close file and zero-out the context.
11103 (grub_mofile_open): Don't call grub_gettext_delete_list.
11105 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11106 if locale="" to avoid pointless error message.
11107 (grub_gettext_env_write_lang): Update lang even if load fails.
11108 Handle secondary context.
11109 (grub_gettext_reread_prefix): New function.
11110 (read_main): Likewise.
11111 (read_secondary): Likewise.
11112 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11113 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11114 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11115 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11117 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11119 * configure.ac: Decrease warning level to avoid spurious warnings and
11120 to be able to compile with GCC 4.2.
11121 * Makefile.util.def: Remove -Wno-error=logical-op.
11123 2012-03-10 William Bittner <william.bittner@gmail.com>
11125 * util/import_unicode.py: Add missing brackets around string for
11128 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11130 Fix efi chainloader on network root.
11132 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11134 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11137 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11139 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11140 unused show_text member.
11141 * docs/grub.texi: Document "text" property.
11143 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11145 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11148 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11150 Fix IMSM handling on Fedora.
11152 * util/getroot.c (grub_util_is_imsm): New function.
11153 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11155 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11157 * Makefile.am: Strip gold section.
11158 * conf/Makefile.common: Likewise.
11159 * gentpl.py: Likewise.
11160 * grub-core/Makefile.core.def: Likewise.
11161 * grub-core/genmod.sh.in: Likewise.
11163 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11165 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11166 * util/grub.d/20_linux_xen.in: Likewise.
11167 Based on Debian patch.
11169 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11171 * util/grub.d/10_linux.in: Fix syntax error resulting in
11172 Richard Laager's patch.
11173 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11175 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11177 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11180 2012-03-10 Richard Laager <rlaager@wiktel.com>
11182 * util/grub.d/10_linux.in: Fix ZFS root passing.
11184 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11186 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11187 * grub-core/commands/xnu_uuid.c: Likewise.
11188 * grub-core/loader/efi/appleloader.c: Likewise.
11189 * grub-core/script/execute.c: Likewise.
11190 * grub-core/script/main.c: Likewise.
11191 * util/grub-mkfont.c: Likewise.
11193 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11195 * util/grub-mkfont.c (options): Use more appropriate "select" that
11196 "set" for face index.
11198 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11200 * util/grub-editenv.c (options): Gettextize command summaries.
11202 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11204 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11205 "out of memory" error messagge.
11207 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11209 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11210 of diskfilter for diskfilter on diskfilter support.
11212 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11214 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11216 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11218 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11221 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11223 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11225 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11227 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11229 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11231 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11234 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11236 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11238 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11240 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11242 * util/grub-install.in: Fix and gettextize error message.
11244 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11246 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11248 * util/grub-mount.c (options): Likewise.
11250 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11252 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11254 * grub-core/commands/search_wrap.c (options): Likewise.
11256 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11258 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11260 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11262 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11264 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11267 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11269 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11270 "temporary" since it's used in identifier and is limited in space.
11272 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11274 * po/POTFILES.in: Regenerate. Include *.h since they contain
11275 translatable strings as well.
11277 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11279 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11280 byte-swap on big-endian.
11281 Reported by: Lennart Sorensen
11283 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11285 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11286 (allocate_pages): Improve dprintf.
11287 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11288 code32_start. Fill code32_start and kernel_alignment in params.
11289 (grub_cmd_initrd): Use prot_init_space.
11291 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11293 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11295 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11297 * util/grub-install.in: Add missing dot at the end of sentence.
11299 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11301 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11302 * grub-core/commands/videotest.c: Likewise.
11303 * grub-core/loader/i386/linux.c: Likewise.
11305 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11307 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11309 Reported by: Milo Casagrande.
11311 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11313 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11314 * grub-core/commands/gptsync.c: Likewise.
11315 * grub-core/commands/hashsum.c: Likewise.
11316 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11317 * grub-core/commands/legacycfg.c: Likewise.
11318 * grub-core/io/gzio.c: Likewise.
11319 * grub-core/net/net.c: Likewise.
11320 * grub-core/term/gfxterm.c: Likewise.
11321 * grub-core/term/terminfo.c: Likewise.
11322 * grub-core/tests/test_blockarg.c: Likewise.
11323 * grub-core/video/video.c: Likewise.
11324 * util/grub-install.in: Likewise.
11325 * util/grub-mkfont.c: Likewise.
11327 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11329 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11331 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11333 * grub-core/commands/search_wrap.c (options): Fix a typo.
11334 Reported by: David Prévot.
11336 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11338 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11341 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11343 * util/grub-script-check.c (main): Fix a syntax error message which was
11346 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11348 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11350 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11352 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11355 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11357 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11359 * util/grub-mount.c (options): Likewise.
11361 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11363 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11365 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11367 * grub-core/net/http.c: Add TRANSLATORS comments.
11368 * grub-core/normal/cmdline.c: Likewise.
11369 * grub-core/normal/misc.c: Likewise.
11370 * grub-core/partmap/msdos.c: Likewise.
11371 * grub-core/parttool/msdospart.c: Likewise.
11372 * grub-core/script/execute.c: Likewise.
11373 * grub-core/script/main.c: Likewise.
11374 * grub-core/term/terminfo.c: Likewise.
11375 * grub-core/video/bitmap.c: Likewise.
11376 * util/grub-install.in: Likewise.
11377 * util/grub-mkimage.c: Likewise.
11378 * util/grub-mklayout.c: Likewise.
11379 * util/grub-setup.c: Likewise.
11381 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11383 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11384 with similar messages in grub-fstest.
11386 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11388 * util/grub-install.in: Unify "option requires an argument" message
11389 with similar messages in other files.
11390 * util/grub-mkconfig.in: Likewise.
11392 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11394 * util/grub-set-default.in: Replace printf with gettext_printf (the
11395 string in in question is already translated from grub-reboot)
11397 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11399 * configure.ac: Bump up the version to beta1.
11401 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11403 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11404 case when min_align = 0.
11406 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11408 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11409 and fix a case when line_start overflows.
11411 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11413 * util/grub-reboot.in (usage): Mention id posibility.
11414 * util/grub-set-default.in (usage): Likewise.
11416 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11418 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11419 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11420 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11421 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11422 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11423 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11424 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11426 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11428 * grub-core/commands/menuentry.c (options): Remove
11429 GRUB_ARG_OPTION_REPEATABLE.
11430 Reported by: Andreas Vogel
11432 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11434 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11436 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11438 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11441 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11443 Use sort -V by the idea of Georgi Georgiev.
11445 * util/grub-mkconfig_lib.in (version_sort): New function.
11446 (version_test_numeric): Use version_sort.
11448 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11450 Use submenus in grub-mkconfig.
11452 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11453 * util/grub-mkconfig_lib.in (grub_quote): New function.
11454 (gettext_printf): Use gettext and not gettext_quoted to fix several
11456 * util/grub.d/10_hurd.in: Use submenus.
11457 * util/grub.d/10_kfreebsd.in: Likewise.
11458 * util/grub.d/10_linux.in: Likewise.
11459 * util/grub.d/10_netbsd.in: Likewise.
11460 * util/grub.d/20_linux_xen.in: Likewise.
11461 * util/grub.d/30_os-prober.in: Likewise.
11462 * util/grub.d/10_illumos.in: Add missing quoting.
11463 * util/grub.d/10_windows.in: Likewise.
11465 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11467 Fix menu title instability bug.
11469 * grub-core/commands/menuentry.c (options): New option --id.
11470 (grub_normal_add_menu_entry): New argument id. All users updated.
11471 (grub_cmd_menuentry): Handle --id.
11472 (grub_menu_init): Accept unknown arguments.
11473 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11474 feature_menuentry_options.
11475 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11477 (get_entry_number): Match with id as well.
11478 * include/grub/menu.h (grub_menu_entry): New member id.
11479 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11480 * util/grub.d/00_header.in: Define menuentry_id_option.
11481 * util/grub.d/10_hurd.in: Define id.
11482 * util/grub.d/10_illumos.in: Likewise.
11483 * util/grub.d/10_kfreebsd.in: Likewise.
11484 * util/grub.d/10_linux.in: Likewise.
11485 * util/grub.d/10_netbsd.in: Likewise.
11486 * util/grub.d/10_windows.in: Likewise.
11487 * util/grub.d/20_linux_xen.in: Likewise.
11488 * util/grub.d/30_os-prober.in: Likewise.
11490 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11492 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11493 "scope" with "body".
11495 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11497 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11498 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11499 prot_size and prot_file_size.
11501 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11503 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11504 All users updated. If easily=1 require raid-5/-6 to be full.
11505 (is_node_readable): Likewise.
11506 (scan_devices): Scan incomplete but readable LVs at the end.
11507 (grub_diskfilter_memberlist): Pull missing devices.
11508 (insert_array): Skip scanning until device is complete or scan is
11510 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11512 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11513 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11515 2012-03-03 Matthew Garrett <mjg@redhat.com>
11516 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11518 Avoid EFI boot services when loading Linux.
11520 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11521 avoid_efi_bootservices. All users updated.
11522 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11523 argument avoid_efi_bootservices. All users updated.
11524 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11525 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11526 align, min_align, relocatable, prefered_address. All users updated.
11527 Allocate avoiding boot services if kernel is relocatable.
11528 (grub_cmd_linux): Check if kernel is relocatable.
11529 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11530 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11531 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11532 avoid_efi_boot_services.
11533 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11534 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11535 (linux_kernel_params): Likewise.
11537 2012-03-03 Matthew Garrett <mjg@redhat.com>
11538 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11542 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11544 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11545 modes. Set gop_handle.
11546 (grub_video_gop_get_edid): New function.
11547 (grub_gop_get_preferred_mode): Likewise.
11548 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11549 (grub_video_efi_gop_adapter): Set .get_edid.
11550 * include/grub/efi/edid.h: New file.
11551 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11553 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11555 * util/grub-install.in: Load efivars unconditionally.
11557 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11559 * po/Rules-piglatin: Change suffix from .po-update-en to
11560 .po-update-en-piglatin.
11562 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11566 * po/piglatin.sed: New file.
11567 * po/en@piglatin.header: Likewise.
11568 * po/Rules-piglatin: Likewise.
11569 * po/README: Add en@piglatin to autogenerated languages.
11571 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11573 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11575 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11576 "Check" since we don't check anything.
11577 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11579 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11580 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11581 (grub_md_sha512_real): Likewise.
11583 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11585 * grub-core/commands/gptsync.c: Fix typographic quoting.
11586 * grub-core/commands/ieee1275/suspend.c: Likewise.
11587 * grub-core/commands/parttool.c: Likewise.
11588 * grub-core/commands/search_wrap.c: Likewise.
11589 * grub-core/commands/videoinfo.c: Likewise.
11590 * grub-core/gfxmenu/gui_label.c: Likewise.
11591 * grub-core/hello/hello.c: Likewise.
11592 * grub-core/kern/emu/main.c: Likewise.
11593 * grub-core/net/net.c: Likewise.
11594 * grub-core/normal/menu.c: Likewise.
11595 * grub-core/normal/menu_text.c: Likewise.
11596 * grub-core/normal/misc.c: Likewise.
11597 * util/grub-editenv.c: Likewise.
11598 * util/grub-install.in: Likewise.
11599 * util/grub-kbdcomp.in: Likewise.
11600 * util/grub-mkconfig.in: Likewise.
11601 * util/grub-mknetdir.in: Likewise.
11602 * util/grub-mkrescue.in: Likewise.
11603 * util/grub-mkstandalone.in: Likewise.
11604 * util/grub-reboot.in: Likewise.
11605 * util/grub-set-default.in: Likewise.
11606 * util/grub-setup.c: Likewise.
11607 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11609 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11611 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11612 * grub-core/commands/keystatus.c: Likewise.
11613 * grub-core/commands/loadenv.c: Likewise.
11614 * grub-core/commands/probe.c: Likewise.
11615 * grub-core/commands/regexp.c: Likewise.
11616 * grub-core/commands/true.c: Likewise.
11617 * grub-core/commands/videoinfo.c: Likewise.
11618 * grub-core/disk/cryptodisk.c: Likewise.
11619 * grub-core/disk/ldm.c: Likewise.
11620 * grub-core/disk/loopback.c: Likewise.
11621 * grub-core/disk/luks.c: Likewise.
11622 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11623 * grub-core/kern/disk.c: Likewise.
11624 * grub-core/kern/emu/hostdisk.c: Likewise.
11626 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11628 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11629 * util/grub-install.in: Add missing quote in the comment.
11631 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11633 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11634 * grub-core/commands/lsmmap.c: Likewise.
11635 * grub-core/commands/minicmd.c: Likewise.
11636 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11637 * grub-core/commands/regexp.c: Likewise.
11638 * grub-core/gdb/gdb.c: Likewise.
11639 * grub-core/term/gfxterm.c: Likewise.
11640 * util/grub-mkconfig.in: Likewise.
11641 * util/grub-mkfont.c: Likewise.
11642 * util/grub-mklayout.c: Likewise.
11643 * util/grub-mknetdir.in: Likewise.
11644 * util/grub-mkrescue.in: Likewise.
11645 * util/grub.d/30_os-prober.in: Likewise.
11647 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11649 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11650 with "Direct color" and "Packed" with "Packed pixel".
11651 (grub_cmd_videoinfo): Simplify legend.
11653 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11655 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11656 absolutely unclear error message.
11658 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11660 * util/grub-mkstandalone.in: Remove confusing leftover print.
11662 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11664 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11666 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11667 (GRUB_MOD_INIT): Likewise.
11668 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11670 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11672 * util/grub-install.in (usage): Likewise.
11673 Spell ID in whole letters.
11674 Add missing ending dot.
11676 * util/grub-reboot.in: Fix capitalisation.
11677 * util/grub-set-default.in: Likewise.
11679 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11681 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11682 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11683 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11684 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11685 Disable -Werror for -Wdeprecated-declarations.
11686 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11687 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11688 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11689 (grub_util_get_grub_dev): Make luks handling dependent on
11690 HAVE_DEVICE_MAPPER and not __linux__.
11691 (get_win32_path): Fix format security.
11692 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11693 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11694 Don't try grub_find_zpool_from_dir.
11695 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11696 #ifdef-out paresdir.
11698 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11700 * util/grub-pe2elf.c (usage): Add missing noreturn.
11701 (write_section_data): Rename name to shname to avoid shadowing.
11702 (write_symbol_table): Rename name to symname to avoid shadowing.
11703 Fix write_reloc_section call.
11705 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11707 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11708 to ensure that it's after the last byte of .text.
11710 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11712 * util/ieee1275/ofpath.c (my_isdigit): New function.
11713 (trailing_digits): Use my_isdigit.
11714 (strip_trailing_digits): Likewise.
11716 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11718 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11719 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11721 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11723 * grub-core/kern/i386/pc/startup.S: Define __start.
11725 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11727 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11728 strip already transforms he format.
11730 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11732 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11734 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11736 * util/grub-install.in: Add missing gettext init.
11737 * util/grub-kbdcomp.in: Likewise.
11738 * util/grub-mkconfig.in: Likewise.
11739 * util/grub-mknetdir.in: Likewise.
11740 * util/grub-mkrescue.in: Likewise.
11741 * util/grub-mkstandalone.in: Likewise.
11742 * util/grub-reboot.in: Likewise.
11743 * util/grub-set-default.in: Likewise.
11744 * util/grub.d/00_header.in: Likewise.
11745 * util/grub.d/10_hurd.in: Likewise.
11746 * util/grub.d/10_windows.in: Likewise.
11747 * util/grub.d/30_os-prober.in: Likewise.
11748 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11750 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11752 * po/Rules-swiss: Fix header comment.
11754 2012-02-29 Andreas Vogel <anvoit>
11756 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11757 resulted in leak of arguments.
11759 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11761 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11762 reed_solomon_size const definition instead of computing it since
11763 Apple assembler doesn't support the later.
11765 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11767 * gentpl.py (kernel): Rewrite Apple part.
11769 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11771 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11773 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11775 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11777 (load_image): Likewise.
11779 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11781 * configure.ac: Fix a typo in previous commit.
11783 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11785 Don't add -Wl,-N on Apple platform.
11787 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11788 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11790 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11792 * grub-core/Makefile.core.def (lzma_decompress): Use
11793 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11795 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11797 * grub-core/genmod.sh.in: Rewrite the Apple part.
11799 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11801 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11804 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11806 * acinclude.m4 (grub_CHECK_PIC): New test.
11807 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11809 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11811 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11812 to avoid the warning.
11814 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11816 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11817 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11818 after. All users updated.
11820 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11822 Use the common size routine in hostfs so we can read disks as well.
11824 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11825 (grub_util_get_fd_size): ... this. Return size in bytes.
11827 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11828 grub_util_get_fd_size.
11830 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11832 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11833 Add blocksize retrieval.
11835 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11837 * configure.ac: Restore CFLAGS after efiemu check.
11839 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11841 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11844 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11846 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11848 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11850 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11851 (grub_cmd_halt): Likewise.
11853 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11855 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11856 for local arithmetics.
11857 Break %sp init into 2 instructions.
11858 Add 0 byte at the end.
11860 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11862 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11865 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11867 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11870 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11872 * grub-core/disk/ldm.c (make_vg): Init part.name.
11873 (grub_ldm_detect): Silence spurious warning.
11874 (grub_util_is_ldm): Likewise.
11876 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11878 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11879 sane value to avoid a spurious warning.
11881 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11883 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11884 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11886 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11888 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11889 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11891 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11893 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11894 hardcoding the relevant info.
11896 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11898 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11899 missing const qualifiers.
11900 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11902 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11904 * util/getroot.c [__APPLE__]: Add missing includes.
11905 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11907 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11909 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11911 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11913 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11916 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11918 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11920 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11922 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11923 and grub_file_close call.
11925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11927 Add LZSS Mach-O support (needed for new xnu kernelcache).
11929 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11930 * grub-core/loader/lzss.c: New file.
11931 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11932 on Mach-O open failure.
11933 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11934 Don't free cmdsXX in uncompressedXX is set.
11935 (grub_macho_file): Init new fields.
11936 New argument is_64bit. All users updated.
11937 Handle compressed. Error out if no suitable architecture is found.
11939 (grub_macho_open): New argument is_64bit. All users updated.
11940 * grub-core/loader/macho32.c: Add defines for new fields.
11941 * grub-core/loader/macho64.c: Likewise.
11942 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11943 (grub_macho_parse): Handle compressed.
11944 Defer actual processing if compressed.
11945 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11946 "filename". All users updated.
11947 (grub_macho_size): New argument "filename". All users updated.
11948 (grub_macho_get_entry_point): Likewise.
11949 (grub_macho_load): Handle compressed.
11950 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11951 (GRUB_MACHO_LZSS_OFFSET): New define.
11952 (grub_decompress_lzss): New proto.
11953 * include/grub/machoload.h (grub_macho_file): New fields to handle
11955 (grub_macho_contains_macho64): Remove proto.
11956 (grub_macho_contains_macho32): Likewise.
11957 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11959 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11961 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11963 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11967 * Makefile.am (starfield_theme_files): New var.
11968 (starfield_DATA): Use starfield_theme_files.
11969 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11970 Add bootcheck-related files.
11971 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11972 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11973 and font_char_metrics.txt.
11974 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11975 (setjmp): Add lib/ia64/longjmp.S.
11976 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11977 * po/POTFILES.in: Regenerate.
11978 * po/Rules-swiss: use DISTFILES.common.extra2 and not
11979 DISTFILES.common.extra1.
11980 * util/devicemap.c: Removed.
11981 * grub-core/lib/i386/relocator_backward.S: Likewise.
11982 * util/import_gcry.py: Remove unused files. Add extra_dist for
11985 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11987 * grub-core/gettext/gettext.c (grub_mofile_open): Call
11988 grub_gettext_delete_list before changing grub_gettext_max to avoid
11989 running out of array bounds.
11991 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11993 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
11994 grub_vga_text_init/grub_vga_text_fini.
11996 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11998 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12000 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12002 * configure.ac: Bump to 2.00~beta0.
12004 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12006 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12007 missing initialisation.
12009 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12011 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12013 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12015 Support v2 xnu boot arguments.
12017 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12018 New argument fsbfreq_out.
12019 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12020 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12022 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12024 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12025 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12026 (grub_xnu_boot_params): Rename to ...
12027 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12028 (grub_xnu_boot_params_v2): New struct.
12030 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12032 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12033 zeroing of CRC field before computing CRC.
12035 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12037 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12038 Change order of allocations to decrease fragmentation.
12040 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12042 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12044 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12046 Use write-combining MTRR to speed up video with buggy BIOSes.
12048 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12049 (cpuid): New define.
12052 (mtrr_base): Likewise.
12053 (mtrr_mask): Likewise.
12054 (grub_vbe_enable_mtrr_entry): New function.
12055 (grub_vbe_enable_mtrr): Likewise.
12056 (grub_vbe_disable_mtrr): Likewise.
12057 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12058 control off to BIOS.
12059 (grub_video_vbe_init): Fill mtrr.
12060 (grub_video_vbe_fini): Disable mtrr.
12061 (grub_video_vbe_get_info_and_fini): Likewise.
12062 (grub_video_vbe_setup): Enable mtrr.
12064 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12066 * include/grub/partition.h (grub_partition_map): Change prototype of
12067 embed to take a maximum value for nsectors.
12068 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12069 * include/grub/fs.h (grub_fs): Likewise.
12070 * grub-core/partmap/msdos.c (embed_signatures): New array.
12071 (pc_partition_map_embed): Check for and avoid sectors matching any
12072 of the signatures in embed_signatures, up to max_nsectors.
12073 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12074 returned sector map to max_nsectors.
12075 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12076 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12077 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12078 * util/grub-setup.c (setup): Allow for the embedding area being
12079 split into multiple blocklists. Tell dest_partmap->embed the
12080 maximum number of sectors we care about.
12082 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12084 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12085 Specify blocklist_install and reserver_first_sector for all fs.
12086 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12089 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12091 * util/grub-install.in: Clarify strings.
12092 Fix source dir check.
12094 2012-02-27 Richard Laager <rlaager@wiktel.com>
12096 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12097 "zfs" and "fuse.zfs" as synonyms.
12099 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12101 * configure.ac: Put platform and target_cpu substitutions back since
12102 they are used for directories.
12104 2012-02-27 Richard Laager <rlaager@wiktel.com>
12105 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12107 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12108 * util/grub.d/20_linux_xen.in: Likewise.
12110 2012-02-27 Richard Laager <rlaager@wiktel.com>
12112 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12115 2012-02-27 Richard Laager <rlaager@wiktel.com>
12117 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12120 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12122 Don't use insecure popen in getroot.
12124 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12125 (exec_pipe): ... here.
12126 (find_root_devices_from_poolname): Use exec_pipe.
12128 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12130 Remove platform and target_cpu replacement.
12132 * configure.ac: Remove platform and target_cpu substitutions.
12133 * tests/util/grub-shell.in: Use modinfo.
12134 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12137 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12139 Autodetect platform in grub-install but allow override.
12141 * util/grub-install.in: Autodetect platform. Support --target and
12142 --directory. Read platform from modinfo.sh.
12144 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12146 Support btrfs multi-volume probe.
12148 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12149 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12150 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12151 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12152 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12153 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12154 grub_find_root_devices_from_btrfs if on btrfs.
12156 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12158 Remove any awareness of *.c util files about target.
12160 * Makefile.util.def (grub-setup): Split to ...
12161 (grub-bios-setup): ... and this.
12162 (grub-sparc64-setup): ... and this.
12163 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12164 * docs/man/grub-setup.h2m: Split into ...
12165 * docs/man/grub-sparc64-setup.h2m: ... this.
12166 * docs/man/grub-bios-setup.h2m: ... and this.
12167 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12168 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12169 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12170 (grub_target_addr_t): Remove.
12171 (grub_target_size_t): Remove.
12172 (grub_target_ssize_t): Remove.
12173 * util/grub-install.in: Use new grub-*-setup.
12174 * util/grub-mkimagexx.c (Elf_Word): New define.
12175 (Elf_Half): Likewise.
12176 (Elf_Section): Likewise.
12177 (ELF_ST_TYPE): Likewise.
12178 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12179 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12181 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12183 Replace grub_target_addr with more appropriate types.
12185 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12186 grub_target_addr with grub_addr.
12187 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12188 grub_target_addr with grub_port.
12189 (grub_cmd_write): Likewise.
12190 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12191 grub_target_addr with grub_addr.
12192 (grub_cmd_write): Likewise.
12193 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12195 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12197 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12198 const qualifier for vendor_guid.
12200 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12202 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12204 (efiemu_memequal): Likewise.
12205 (find_variable): Likewise.
12207 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12209 Fix missing console prototype on qemu-mips.
12211 * include/grub/mips/qemu_mips/console.h: New file.
12213 2012-02-27 Matthew Garrett <mjg@redhat.com>
12214 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12216 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12217 * include/grub/efi/efi.h: Likewise.
12218 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12219 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12220 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12221 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12222 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12223 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12225 2012-02-27 Matthew Garrett <mjg@redhat.com>
12227 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12229 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12231 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12234 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12236 * configure.ac: Remove inappropriate use of program_transform_name
12237 on grubdir and bootdir but allow explicit specification of those
12240 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12242 * util/grub-mknetdir.in (grub_prefix): Removed.
12243 (subdir): Use @bootdirname@ and @grubdirname@.
12245 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12247 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12249 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12251 * po/POTFILES.in: Regenerated.
12253 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12255 Remove improper use of program_transform_name on pkglibrootdir.
12257 * configure.ac (pkglibrootdir): Removed.
12258 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12259 * util/grub-mkimage.c: Likewise.
12261 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12263 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12266 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12268 * util/grub-install.in: Use file identifier if no UUID is available
12269 or user explicitly prompted for it.
12271 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12273 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12274 (freebsd_get_zfs): New function.
12275 (grub_freebsd_boot): Pass zfs UUID.
12276 (grub_cmd_freebsd): Set zfs UUID.
12278 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12280 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12283 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12285 Add configure flag to control libzfs integration.
12287 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12289 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12291 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12293 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12296 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12298 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12299 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12300 be used on non-modules.
12302 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12303 Rename to grub_boot_init.
12304 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12305 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12306 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12307 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12308 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12309 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12310 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12311 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12313 (grub_machine_init): Remove empty inits.
12314 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12316 (grub_machine_init): Remove empty inits.
12317 * grub-core/term/arc/console.c: Remove explicit proto.
12318 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12319 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12320 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12321 grub_at_keyboard_fini.
12322 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12323 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12324 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12326 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12327 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12328 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12330 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12331 * grub-core/term/serial.c (GRUB_MOD_INIT)
12332 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12333 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12335 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12336 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12337 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12338 grub_terminfo_fini.
12339 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12340 (GRUB_MOD_FINI): Likewise.
12341 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12342 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12343 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12344 grub_video_radeon_fuloong2e_fini.
12345 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12346 [LOONGSON]: Rename to grub_video_sis315pro_init.
12347 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12348 grub_video_sis315pro_fini.
12349 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12350 [LOONGSON]: Rename to grub_video_sm712_init.
12351 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12352 grub_video_sm712_fini.
12353 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12354 (grub_at_keyboard_fini): Likewise.
12355 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12356 Don't declare grub_{modname}_init.
12357 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12358 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12360 (grub_keylayouts_fini) [!EMU]: Likewise.
12361 * include/grub/serial.h (grub_serial_init) [!EMU]:
12363 (grub_serial_fini) [!EMU]: Likewise.
12364 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12366 (grub_terminfo_fini) [!EMU]: Likewise.
12367 * include/grub/video.h (grub_font_init) [!EMU]:
12369 (grub_font_fini) [!EMU]: Likewise.
12370 (grub_gfxterm_init) [!EMU]: Likewise.
12371 (grub_gfxterm_fini) [!EMU]: Likewise.
12372 (grub_video_sm712_init) [!EMU]: Likewise.
12373 (grub_video_sm712_fini) [!EMU]: Likewise.
12374 (grub_video_sis315pro_init) [!EMU]: Likewise.
12375 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12376 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12377 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12379 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12381 Make nand a prefix for nand devices.
12383 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12385 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12387 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12388 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12390 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12392 * include/grub/env.h (grub_env_find): Remove prototype.
12393 * grub-core/kern/env.c (grub_env_find): Make static.
12394 (grub_env_set): Remove useless set.
12396 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12398 * grub-core/kern/i386/realmode.S: Remove useless align.
12400 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12402 * include/grub/dl.h (grub_dl_load_file): Don't export.
12404 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12406 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12409 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12411 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12413 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12414 not reloading whole superblock but only the part which is really needed.
12415 Remove useless grub_errors.
12416 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12419 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12421 Don't export grub_get_rtc.
12423 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12424 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12426 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12428 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12430 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12432 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12433 argument since it can be deduced from diskfilter. All users updated.
12435 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12439 * include/grub/list.h (grub_prio_list): Removed.
12440 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12441 GRUB_COMMAND_PRIO_MASK.
12442 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12443 GRUB_COMMAND_FLAG_ACTIVE.
12444 (grub_prio_list_insert): Removed.
12445 (grub_prio_list_remove): Likewise.
12446 (GRUB_AS_PRIO_LIST): Likewise.
12447 (GRUB_AS_PRIO_LIST_P): Likewise.
12448 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12449 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12450 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12451 * grub-core/kern/command.c (grub_register_command_prio): Inline
12452 the prio_list code.
12453 (grub_unregister_command): Likewise.
12455 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12457 Fix interrupt mixup from previous commit.
12459 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12460 (grub_realidt): New var.
12461 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12463 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12465 (grub_relocator16_boot): Set grub_relocator16_idt.
12466 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12467 (LOCAL(realidt)): ... this.
12468 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12469 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12470 (grub_realidt): New variable.
12472 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12474 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12475 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12476 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12477 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12479 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12480 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12481 * po/POTFILES.in: Regenerate.
12483 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12485 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12488 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12490 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12492 (add_length): Likewise.
12494 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12495 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12497 GDB serial and backtrace support.
12499 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12500 (prot_to_real): Likewise.
12501 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12502 * grub-core/Makefile.core.def (backtrace): New module.
12504 * grub-core/gdb/cstub.c: New file.
12505 * grub-core/gdb/gdb.c: Likewise.
12506 * grub-core/gdb/i386/idt.c: Likewise.
12507 * grub-core/gdb/i386/machdep.S: Likewise.
12508 * grub-core/gdb/i386/signal.c: Likewise.
12509 * grub-core/lib/i386/backtrace.c: Likewise.
12510 * grub-core/lib/backtrace.c: Likewise.
12511 * include/grub/backtrace.h: Likewise.
12512 * include/grub/gdb.h: Likewise.
12513 * include/grub/i386/gdb.h: Likewise.
12515 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12517 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12519 (add_length): Likewise.
12520 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12521 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12523 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12524 __argp_get_display_len.
12526 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12528 $"..." support in scripts.
12530 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12531 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12532 * grub-core/script/yylex.l: Likewise.
12533 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12536 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12538 * gentpl.py: Remove obsolete pkglib_DATA handling.
12540 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12542 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12545 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12546 * util/grub-kbdcomp.in: Likewise.
12547 * util/grub-mkconfig.in: Likewise.
12548 * util/grub-mkconfig_lib.in: Likewise.
12549 * util/grub-mknetdir.in: Likewise.
12550 * util/grub-mkrescue.in: Likewise.
12551 * util/grub-mkstandalone.in: Likewise.
12552 * util/grub-reboot.in: Likewise.
12553 * util/grub-set-default.in: Likewise.
12554 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12556 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12558 Remove GRUB_PREFIX.
12560 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12561 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12562 used for backward compatibility.
12564 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12566 Add new all_video module.
12568 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12569 * grub-core/Makefile.core.def (all_video): New module.
12570 * grub-core/genmoddep.awk: Generate dependency of all_video from
12572 * grub-core/lib/fake_module.c: New file.
12573 * grub-core/normal/main.c (features): Add feature_all_video_module.
12574 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12575 don't do explicit search again.
12576 insmod all_video in load_video if available.
12578 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12580 Another round of string clarification and adding TRANSLATORS comments.
12582 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12584 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12586 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12588 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12590 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12591 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12593 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12595 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12596 trailing newline implicitly. All users updated.
12598 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12600 Implement serial on IEEE1275 and EFI.
12602 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12603 on emu. Mention arc and emu as the only platforms without serial
12605 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12606 ieee1275 platforms.
12607 * grub-core/term/efi/serial.c: New file.
12608 * grub-core/term/ieee1275/serial.c: Likewise.
12609 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12610 specification if no ns8250 driver is available.
12611 (grub_cmd_serial): Likewise.
12612 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12613 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12614 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12615 (grub_efi_parity_type_t): New type.
12616 (grub_efi_stop_bits_t): Likewise.
12617 (grub_efi_serial_io_interface): New struct.
12618 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12619 available for all interfaces.
12620 Add EFI and IEEE1275 fields.
12621 (grub_ofserial_init): New proto.
12622 (grub_efiserial_init): Likeiwse.
12623 * util/grub.d/00_header.in: Don't check for the presence of serial
12626 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12628 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12629 name as if it was an alias.
12631 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12633 * grub-core/commands/lsacpi.c (options): Fix typo.
12635 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12637 Convert grub-emu to argp.
12639 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12641 * util/argp_common.c: Rename to ...
12642 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12643 Add missing includes.
12644 * grub-core/kern/emu/main.c: Convert to argp.
12645 * po/POTFILES.in: Regenerate.
12646 * util/grub-install.in (usage): Make first letter lowcase in messages
12648 * util/grub-setup.c (options): Likewise.
12650 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12652 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12653 Put back accidently commented-out code.
12655 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12657 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12658 loop check using Brent algorithm.
12659 (grub_hfsplus_btree_search): Likewise.
12661 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12663 * util/grub-install.in: Fix usage of wrong device for PreP install.
12665 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12667 * conf/Makefile.common (CFLAGS_GNULIB): Add
12668 -Wno-unsafe-loop-optimizations.
12669 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12671 * grub-core/commands/legacycfg.c: Add pragma to skip
12672 -Wunsafe-loop-optimizations.
12673 (check_password_md5_real): Fix loop counter type.
12674 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12676 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12677 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12679 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12680 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12681 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12683 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12684 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12685 avoid possible infinite loops.
12686 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12687 and -Wunsafe-loop-optimizations.
12688 * grub-core/script/yylex.l: Likewise.
12689 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12690 (print_glyphs): Avoid infinite loops.
12691 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12693 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12695 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12696 to avoid infinite loop.
12697 (disp_acpi_rsdt_table): Likewise.
12699 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12701 * grub-core/font/font.c (grub_font_load): Add support for default
12702 path for fonts ($prefix/fonts).
12703 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12704 for checking if string is a path.
12705 * grub-core/normal/main.c (features): Add feature_default_font_path.
12706 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12707 * util/grub.d/00_header.in: Use default directory if possible.
12708 * util/grub-install.in: Install unicode.pf2.
12710 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12712 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12713 * po/Rules-swiss: New file.
12714 * po/swiss.sed: Likewise.
12716 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12718 * grub-core/fs/btrfs.c (find_device): Fix typos.
12719 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12720 * util/grub-mkrelpath.c (argp_parser): Likewise.
12721 Reported by: Yuri Chornoivan.
12723 2012-02-23 Dalet Omega <daletomega@gmail.com>
12725 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12726 for usual informative messages.
12728 2012-02-23 Dalet Omega <daletomega@gmail.com>
12732 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12733 * conf/Makefile.common: Define starfielddir.
12734 * configure.ac: Configure starfield.
12735 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12736 * themes/starfield/README: Likewise.
12737 * themes/starfield/blob_w.png: Likewise.
12738 * themes/starfield/boot_menu_c.png: Likewise.
12739 * themes/starfield/boot_menu_e.png: Likewise.
12740 * themes/starfield/boot_menu_n.png: Likewise.
12741 * themes/starfield/boot_menu_ne.png: Likewise.
12742 * themes/starfield/boot_menu_nw.png: Likewise.
12743 * themes/starfield/boot_menu_s.png: Likewise.
12744 * themes/starfield/boot_menu_se.png: Likewise.
12745 * themes/starfield/boot_menu_sw.png: Likewise.
12746 * themes/starfield/boot_menu_w.png: Likewise.
12747 * themes/starfield/slider_c.png: Likewise.
12748 * themes/starfield/slider_n.png: Likewise.
12749 * themes/starfield/slider_s.png: Likewise.
12750 * themes/starfield/src/blob_nw.xcf: Likewise.
12751 * themes/starfield/src/bootmenu/: Likewise.
12752 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12753 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12754 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12755 * themes/starfield/src/slider_c.xcf: Likewise.
12756 * themes/starfield/src/slider_n.xcf: Likewise.
12757 * themes/starfield/src/slider_s.xcf: Likewise.
12758 * themes/starfield/src/terminalbox/: Likewise.
12759 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12760 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12761 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12762 * themes/starfield/starfield.png: Likewise.
12763 * themes/starfield/terminal_box_c.png: Likewise.
12764 * themes/starfield/terminal_box_e.png: Likewise.
12765 * themes/starfield/terminal_box_n.png: Likewise.
12766 * themes/starfield/terminal_box_ne.png: Likewise.
12767 * themes/starfield/terminal_box_nw.png: Likewise.
12768 * themes/starfield/terminal_box_s.png: Likewise.
12769 * themes/starfield/terminal_box_se.png: Likewise.
12770 * themes/starfield/terminal_box_sw.png: Likewise.
12771 * themes/starfield/terminal_box_w.png: Likewise.
12772 * themes/starfield/theme.txt: Likewise.
12774 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12776 * util/grub.d/00_header.in: Add missing export theme.
12778 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12780 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12782 Reported by: Eren D.
12784 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12786 * conf/Makefile.common (grubdatadir): Removed.
12787 (Makefile.am): Move eveything grubdata to pkgdata.
12789 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12791 * grub-core/commands/acpihalt.c (get_sleep_type):
12792 Remove unused variable.
12794 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12796 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12797 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12798 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12799 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12800 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12801 i18n with gettext no-op.
12802 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12803 GRUB_ACPI_OPCODE_STRING_CONST.
12804 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12805 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12807 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12809 * po/POTFILES.in: Regenerate.
12811 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12813 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12814 -Wno-error=missing-noreturn.
12816 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12818 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12819 condition to avoid possibly infinite loops.
12820 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12821 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12823 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12825 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12826 condition to avoid possibly infinite loops.
12828 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12830 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12833 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12835 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12837 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12839 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12841 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12843 * util/bin2h.c (usage): Add missing attribute noreturn.
12845 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12847 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12848 if the size isn't divisible by 512.
12850 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12852 Make list_push and list_remove functions rather than inline functions
12853 to decrease size and avoid aliasing violations.
12855 * include/grub/list.h (grub_list_push): Move to ...
12856 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12857 * include/grub/list.h (grub_list_remove): Move to ...
12858 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12860 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12862 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12863 and -Wunused-result.
12865 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12867 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12868 Reported by: Seth Goldberg
12870 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12872 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12874 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12876 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12877 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12879 * docs/grub.texi (Simple configuration): Document
12880 GRUB_CMDLINE_GNUMACH.
12882 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12884 * conf/Makefile.common (platform_SCRIPTS): New variable.
12885 (platform_PROGRAMS): Likewise.
12886 * gentpl.py: Mark *,module and *.image for install.
12887 * grub-core/gdb_grub.in: Add a notice of expected environment.
12888 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12889 (gmodule.pl): Likewise.
12891 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12893 Replace grub_checkkey with grub_getkey_noblock.
12895 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12896 (grub_getkey_noblock): ... this. All users updated.
12898 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12900 * grub-core/kern/emu/console.c: Move to ...
12901 * grub-core/term/emu/console.c: ...here.
12902 (grub_ncurses_getkey): Fix return value if no key is detected.
12904 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12906 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12907 (grub_unit_test_fini): Likewise.
12908 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12910 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12912 * include/grub/test.h (GRUB_UNIT_TEST)
12914 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12916 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12917 Better error handling.
12918 (grub_script_return): Likewise.
12919 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12921 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12923 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12924 rimplicit redifinition.
12926 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12928 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12931 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12933 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12934 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12937 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12939 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12940 as GRUB_ERR_BUG. Don't malloc if no device is available.
12942 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12944 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12945 Mark calling with invalid term as GRUB_ERR_BUG.
12947 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12949 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12950 packets rather than raising an error.
12952 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12954 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12957 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12959 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12960 diagnostic to dprintf.
12961 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12963 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12965 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12968 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12970 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12971 (grub_ntfs_iterate_dir): Likewise.
12973 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12975 Efiemu stylistic fixes and gettext.
12977 * grub-core/efiemu/i386/loadcore32.c
12978 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
12979 * grub-core/efiemu/i386/loadcore64.c
12980 (grub_arch_efiemu_relocate_symbols64): Likewise.
12981 * grub-core/efiemu/i386/pc/cfgtables.c
12982 (grub_machine_efiemu_init_tables): Likewise.
12983 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
12984 (grub_efiemu_loadcore_initXX): Add a filename argument.
12986 Improved error message.
12987 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
12988 Add a filename argument.
12990 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
12991 Reclassify double relocation as GRUB_ERR_BUG.
12993 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12995 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
12998 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13000 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13003 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13005 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13007 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13009 Improve string. Gettextize.
13011 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13013 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13015 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13017 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13019 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13020 [GRUB_UTIL]: New function.
13021 (insert_array) [GRUB_UTIL]: Store partmaps.
13022 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13024 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13025 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13026 (probe_abstraction): Print diskfilter and not raid.
13027 Reported by: Lennart Sorensen
13029 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13031 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13032 * util/grub-mkimagexx.c (MASK3): New define.
13033 (add_value_to_slot_20b): Use MASK3.
13034 (add_value_to_slot_21): Likewise.
13035 (relocate_addresses): Fix format specification.
13036 (load_image): Explicitly init symtab_section.
13038 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13040 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13041 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13043 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13045 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13047 Reported by: Lennart Sorensen
13049 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13051 * gentpl.py: Add missing license header.
13052 * docs/grub.texi: Update copyright year.
13054 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13056 Source grub-mkconfig_lib from the build directory at build time.
13057 Suggested by: Vladimir Serbinenko.
13059 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13060 * util/grub-install.in: Define pkgdatadir if not already set, and source
13061 grub-mkconfig_lib from there.
13062 * util/grub-kbdcomp.in: Likewise.
13063 * util/grub-mkconfig.in: Likewise.
13064 * util/grub-mknetdir.in: Likewise.
13065 * util/grub-mkrescue.in: Likewise.
13066 * util/grub-mkstandalone.in: Likewise.
13067 * util/grub-reboot.in: Likewise.
13068 * util/grub-set-default.in: Likewise.
13069 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13071 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13073 Increase warning level.
13075 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13076 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13077 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13078 (TARGET_CFLAGS): Likewise.
13079 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13080 * grub-core/Makefile.core.def (decompressor_xz): Add
13081 -Wno-unreachable-code.
13082 (normal): Add -Wno-redundant-decls.
13083 (xzio): Add -Wno-unreachable-code.
13084 (lzopio): Add -Wno-redundant-decls -Wno-error.
13085 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13086 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13087 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13088 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13089 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13090 * grub-core/kern/i386/coreboot/init.c: Add exception to
13091 -Wsuggest-attribute=noreturn.
13092 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13093 * grub-core/kern/ia64/dl_helper.c: Likewise.
13094 * grub-core/kern/mips/dl.c: Likewise.
13095 * grub-core/kern/sparc64/dl.c: Likewise.
13096 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13097 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13098 (memcmp): Likewise.
13099 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13100 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13101 * grub-core/loader/mips/linux.c: Likewise.
13102 * grub-core/loader/multiboot_elfxx.c: Likewise.
13103 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13104 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13105 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13106 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13108 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13109 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13112 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13114 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13117 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13119 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13120 Avoid improper use of strings.
13121 (grub_cmd_legacy_initrdnounzip): Likewise.
13123 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13125 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13127 (grub_util_info): Likewise.
13128 (grub_util_error): Likewise.
13130 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13132 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13133 * util/grub-fstest.c (fstest): Likewise.
13135 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13137 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13138 (grub_md_sha512_real): Likewise.
13139 (grub_util_get_geli_uuid): Likewise.
13140 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13141 (grub_util_biosdisk_open): Fix format specification.
13142 Respect format security.
13143 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13144 (xrealloc): Likewise.
13145 (xasprintf): Likewise.
13147 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13149 * util/import_gcry.py: Include grub/crypto.h in init.c.
13151 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13153 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13154 (generate_image): Make prefix a const char *.
13155 Fix format specifications. Respect format security.
13156 Avoid void * arithmetics.
13158 (argp_parser): Remove unused variable. Respect format security.
13159 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13160 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13161 (count_funcs): Remove unused variable.
13162 (relocate_addresses): Fix format specification.
13163 Disable x86-64 with elf32. Remove unused variables.
13164 (add_fixup_entry): Avoid shadowing.
13165 (make_reloc_section): Fix format specification.
13167 (locate_sections): Fix format specifications.
13168 (load_image): Avoid shadowing.
13170 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13172 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13173 Fix format specifications. Respect format security.
13174 Don't translate already translated grub_errmsg.
13175 (argp_parser): Remove unused variable
13177 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13179 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13181 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13183 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13184 (main): Likewise. Use xmalloc. Respect format security.
13186 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13188 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13190 (argp_parser): Remove unused variable.
13192 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13194 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13195 (add_pixel): Make static.
13196 (add_font): Likewise.
13197 (write_string_section): Make name and str a const char *.
13198 (write_be16_section): Make name a const char *.
13199 (print_glyphs): Make static.
13200 (write_font_ascii_bitmap): Likewise.
13201 (write_font_width_spec): Likewise.
13202 (write_font_pf2): Likewise.
13203 (argp_parser): Remove unused variable.
13204 Respect format security.
13205 (main): Avoid shadowing. Respect format security.
13207 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13209 * util/grub-editenv.c (argp_parser): Make static.
13210 (create_envblk_file): Use xmalloc.
13211 (open_envblk_file): Likewise.
13212 Resepect format security.
13213 (set_variables): Respect format security.
13215 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13217 * util/getroot.c (grub_find_device): Respect format security.
13218 (get_mdadm_uuid): Remove unused variable.
13219 (grub_util_pull_device): Dont call gettext on already translated
13221 (find_system_device): Remove unused variable.
13222 (grub_util_get_grub_dev): Likewise.
13223 (grub_make_system_path_relative_to_its_root): Respect format security.
13225 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13227 * util/grub-fstest.c (execute_command): Make first argument
13229 (read_file): Avoid shadowing.
13230 Reuse underlying error message if device open fails.
13231 (cmd_cmp): Respect format security.
13232 (root): Make const char *.
13233 (fstest): Remove args argument and use global copy.
13234 Respect format security.
13235 (argp_parser): Make static.
13236 (main): Make default_root const char *.
13238 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13240 * util/grub-mount.c (root): Make const char *.
13241 (execute_command): Make first argument a const char *.
13242 (fuse_init): Respect format security.
13243 (argp_parser): Make static. Remove unused variable.
13244 (main): Make default_root a const char *.
13245 Respect format security.
13247 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13249 * util/grub-probe.c (probe): Don't call gettext on already translated
13251 Remove unused variables.
13252 (argp_parser): Remove unused variable.
13254 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13256 * util/grub-script-check.c (argp_parser): Remove unused variable.
13257 (main): Rename read to curread to avoid shadowing.
13259 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13261 * util/misc.c (grub_util_write_image_at): Fix format specification.
13262 (grub_util_write_image): Likewise.
13263 (grub_script_execute_argument_to_string): Removed (unused).
13264 (grub_script_execute_menuentry): Likewise.
13265 (grub_putchar): Likewise.
13267 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13269 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13270 (FUNCTION) [GRUB_UTIL]: Likewise.
13271 (VARIABLE) [GRUB_UTIL]: Likewise.
13273 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13275 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13276 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13278 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13280 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13283 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13285 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13286 (LzmaEnc_SaveState): Removed (unused).
13287 (LzmaEnc_RestoreState): Likewise.
13288 (LzmaEnc_InitPriceTables): Made static.
13289 (LzmaEnc_Construct): Likewise.
13290 (LzmaEnc_FreeLits): Likewise.
13291 (LzmaEnc_Destruct): Likewise.
13292 (LzmaEnc_Init): Likewise.
13293 (LzmaEnc_InitPrices): Likewise.
13294 (LzmaEnc_Finish): Likewise.
13295 (LzmaEnc_PrepareForLzma2): Removed (unused).
13296 (LzmaEnc_MemPrepare): Likewise.
13297 (LzmaEnc_GetNumAvailableBytes): Likewise.
13298 (LzmaEnc_GetCurBuf): Likewise.
13299 (LzmaEnc_CodeOneMemBlock): Likewise.
13301 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13303 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13304 (grub_util_ldm_embed): Likewise.
13306 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13308 * util/grub-editenv.c (print_var): Rename name to varname to
13310 (main): Rename index to curindex to avoid shadowing.
13311 Make filename a const char *.
13313 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13315 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13316 to arg_getline to avoid shadowing.
13318 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13320 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13321 disk_ to avoid shadowing.
13323 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13325 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13326 curindex to avoid shadowing.
13328 (MatchFinder_GetNumAvailableBytes): Make static.
13330 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13332 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13335 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13337 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13338 argument from encrypt to do_encrypt to avoid shadowing.
13340 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13342 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13343 incorrect nesting of #if's.
13345 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13347 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13348 checks which are always false on some platforms.
13349 (grub_cmd_lsacpi): Likewise.
13350 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13351 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13354 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13356 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13357 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13359 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13361 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13362 re_dfa_t to avoid breaking alignment invariants.
13363 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13364 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13366 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13368 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13369 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13371 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13373 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13376 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13378 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13379 conserve alignment invariants.
13380 (grub_ehci_ehcc_read16): Likewise.
13381 (grub_ehci_oper_read32): Likewise.
13382 (grub_ehci_oper_write32): Likewise.
13383 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13384 Conserve alignment invariants.
13386 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13388 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13389 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13392 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13394 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13395 Remove unused variable.
13397 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13399 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13402 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13404 * include/grub/net.h: Remove double declarations.
13406 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13408 Remove "payload" command in ia64 Linux loader since I couldn't
13409 find any evidence of it being used for anything.
13410 Replace "relocate" command with an environment variable
13412 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13414 (ia64_boot_payload): Removed.
13415 (last_payload): Likewise.
13416 (RELOCATE_OFF): Likewise.
13417 (RELOCATE_ON): Likewise.
13418 (RELOCATE_FORCE): Likewise.
13419 (relocate): Likewise.
13420 (free_pages): Don't free payloads.
13421 (grub_load_elf64): Use common error messages.
13422 Use "linux_relocate" variable.
13423 Increase the space after boot_params.
13424 (grub_cmd_payload): Removed.
13425 (grub_cmd_relocate): Likewise.
13426 (grub_cmd_fpswa): Improve messages.
13427 (cmd_payload): Removed.
13428 (cmd_relocate): Likewise.
13429 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13430 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13432 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13434 Convert UHCI to DMA framework.
13436 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13437 (grub_uhci_pci_iter): Fill new members
13438 (grub_alloc_td): Use P2V and V2P functions.
13439 (grub_free_queue): Likewise.
13440 (grub_alloc_qh): Likewise.
13441 (grub_uhci_setup_transfer): Likewise.
13442 (grub_uhci_check_transfer): Likewise.
13444 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13446 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13447 Remove assignment in if while on it.
13449 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13451 * util/grub-mkstandalone.in: Fix modules directory.
13453 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13455 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13457 (argp_parser): Accept "auto" as compression specification.
13459 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13461 Fix `help' with unloaded modules.
13463 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13464 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13465 (grub_dyncmd_dispatcher): Small stylistic fix.
13466 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13467 explicit help is requested.
13469 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13471 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13472 Explicitly init restart while on it.
13474 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13476 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13479 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13481 * util/grub-mknetdir.in: Use . rather than source for POSIX
13484 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13486 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13488 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13490 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13493 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13495 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13498 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13500 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13502 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13504 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13505 iteration of partitions.
13507 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13509 Improve gettext support. Stylistic fixes and error handling fixes while
13512 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13514 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13515 part. Instead setup the correct stack in RM.
13516 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13518 * include/grub/i386/relocator_private.h: New file.
13520 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13522 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13524 * util/grub-fstest.c (options): Add missing DEVICE part.
13526 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13528 Clarify and unify messages.
13530 * grub-core/commands/hashsum.c (options): Unify messages.
13531 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13532 literal-only message as translatable.
13533 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13534 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13535 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13537 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13538 key, not the key used to unlock. Clarify what it's used for.
13539 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13540 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13541 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13542 * util/grub-editenv.c (options): Unify "verbose" message.
13543 * util/grub-fstest.c (read_file): Unify error message.
13544 (fstest): Add quotes around commands.
13545 (options): Unify "verbose" message.
13546 * util/grub-install.in: Add quotes around variable name.
13547 * util/grub-kbdcomp.in: Unify error message.
13548 * util/grub-mkfont.c (main): Likewise.
13549 * util/grub-mkrescue.in: Likewise.
13550 * util/grub-mklayout.c (options): Unify "verbose" message.
13551 * util/grub-mkstandalone.in: Unify help and verbose messages.
13552 * util/grub-mount.c (options): Unify "verbose" message.
13553 * util/grub-probe.c (options): Likewise.
13554 * util/grub-script-check.c (options): Likewise.
13555 * util/grub-setup.c (setup): Unify no-terminator message.
13556 (options): Use DEVICE and not DEV.
13557 Unify "verbose" message.
13558 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13560 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13562 Improve and unify messages.
13564 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13565 name. All users updated.
13566 Print filename in error.
13567 (read_device_map): Print filename in error.
13568 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13569 (grub_util_get_os_disk): Likewise.
13570 (grub_util_biosdisk_get_grub_dev): Likewise.
13571 (grub_util_check_block_device): Likewise.
13572 (grub_util_check_char_device): Likewise.
13573 (grub_make_system_path_relative_to_its_root): Likewise.
13574 * util/grub-editenv.c (create_envblk_file): Likewise.
13575 (open_envblk_file): Likewise.
13576 (write_envblk): Likewise.
13577 * util/grub-fstest.c (cmd_cp): Likewise.
13578 (cmd_cat): Likewise.
13579 (cmd_cmp): Likewise.
13580 * util/grub-menulst2cfg.c (main): Likewise.
13581 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13582 (write_font_width_spec): Likewise.
13583 (write_font_pf2): Likewise.
13584 * util/grub-mkimage.c (generate_image): New argument outname.
13586 Remove unreacheable message.
13587 (options): Unify messages.
13588 (help_filter): Likewise.
13589 * util/grub-mklayout.c (usage): Removed (unused).
13590 (main): Print filename in error.
13591 * util/grub-mkrescue.in: Fix wrong quoting.
13592 * util/grub-setup.c (setup): Print filename in error.
13593 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13594 (check_sas): Likewise.
13595 * util/misc.c (grub_util_get_fp_size): Removed.
13596 (grub_util_get_image_size): Print filename in error.
13597 (grub_util_read_at): Removed.
13598 (grub_util_read_image): Print filename in error.
13599 (grub_util_load_image): Likewise.
13600 (grub_util_write_image_at): New argument filename. All users updated.
13601 Print filename in error.
13602 (grub_util_write_image): New argument filename. All users updated.
13603 Print filename in error.
13604 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13605 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13607 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13609 * grub-core/Makefile.core.def (pxechain): New module.
13610 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13611 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13613 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13614 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13616 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13618 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13619 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13620 * include/grub/err.h (grub_error_saved): New struct.
13621 (grub_errmsg): Make array size explicit.
13622 * include/grub/misc.h (grub_error_save): New function.
13623 (grub_error_load): Likewise.
13624 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13625 (grub_error_push): Update `errno' member name.
13626 (grub_error_pop): Likewise
13627 * grub-core/net/tftp.c (tftp_data): New member save_err.
13628 (tftp_receive): Save error.
13629 (tftp_open): Restore error.
13631 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13633 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13634 to real mode down to execute A20-related code in protected mode as
13637 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13639 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13640 NULL when the argument `level' has an unexpected value.
13642 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13644 Move platform-dependent files from $prefix to $prefix/$platform.
13646 * config.h.in (GRUB_TARGET_CPU): New definition.
13647 (GRUB_PLATFORM): Likewise.
13648 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13649 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13650 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13651 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13652 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13653 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13654 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13655 * grub-core/normal/term.c (read_terminal_list): Likewise.
13656 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13658 (grub_gettext_init_ext): Likewise.
13659 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13661 * util/grub-install.in: Update directories.
13662 * util/grub-mknetdir.in: Likewise.
13663 * util/grub-mkrescue.in: Likewise.
13665 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13667 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13668 grub_error framework. All users updated.
13670 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13672 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13673 lists (by always binsearching), improve caching (cache strings
13674 used for binsearch, not only results), improve
13675 maintainability (by using more structured binary search) and correct
13678 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13680 * grub-core/script/execute.c (grub_script_return): Fix warning.
13682 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13684 * grub-core/script/execute.c (grub_script_return): Fix potential
13686 Reported by: Jim Meyering.
13688 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13690 * po/POTFILES.in: Regenerate.
13691 * util/grub-install.in: Gettextize the strings missed in first pass.
13693 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13695 * Makefile.util.def (grub-mkdevicemap): Removed.
13696 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13697 * include/grub/util/deviceiter.h: Removed.
13698 * util/deviceiter.c: Likewise.
13699 * util/getroot.c (grub_util_get_os_disk): New function.
13700 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13701 replacement for EFI.
13702 * util/grub-mkdevicemap.c: Removed.
13703 * util/grub-probe.c (probe): Handle PRINT_DISK.
13704 (argp_parser): Handle -t disk.
13706 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13708 * util/grub-mkfont.c: Migrate to argp.
13709 * util/grub-mklayout.c: Likewise.
13710 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13711 * util/grub-mkrelpath.c: Likewise.
13712 * util/grub-probe.c: Likewise.
13713 * util/grub-script-check.c: Likewise.
13715 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13717 * util/grub-reboot.in: Add missing datarootdir.
13718 Add missing newline.
13719 * util/grub-set-default.in: Add missing datarootdir.
13720 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13721 * util/grub-mkrescue.in: Likewise.
13723 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13725 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13727 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13729 * util/grub-kbdcomp.in: Add decent help and gettextize.
13730 * docs/man/grub-kbdcomp.h2m: New file.
13732 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13734 Migrate grub-mkimage.c to argp.
13736 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13737 (grub-setup): Likewise.
13738 * util/grub-setup.c (print_version): Move to ...
13739 * util/argp_common.c (print_version): ... here.
13740 * util/grub-setup.c (argp_program_version_hook): Move to ...
13741 * util/argp_common.c (argp_program_version_hook): ... here.
13742 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13744 * util/grub-mkimage.c (main): Migrate to argp.
13746 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13748 * util/grub-mkrescue.in: Use same message as
13749 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13750 for better translations.
13752 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13754 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13755 options with generic grub-mkrescue.in with the goal of future
13758 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13760 * grub-core/kern/mm.c: Add missing include of i18n.h
13761 * grub-core/lib/relocator.c: Likewise.
13763 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13765 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13767 (allocate_pages): Check return value.
13768 Replace fatal with error.
13769 (grub_linux_boot): Replace printf with dprintf.
13770 Check find_mmap_size return value.
13771 Replace fatal with error.
13772 Don't call grub_machine_fini.
13773 (grub_load_elf64): Replace printf with dprintf.
13774 (grub_cmd_linux): Likewise.
13775 (grub_cmd_initrd): Likewise.
13776 (grub_cmd_payload): Likewise.
13778 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13780 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13782 * grub-core/video/radeon_fuloong2e.c
13783 (grub_video_radeon_fuloong2e_setup): Likewise.
13784 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13785 * grub-core/video/video.c (grub_video_set_mode): Don't override
13786 standard out of memory message.
13788 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13790 NetBSD disk wedge support.
13792 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13793 [__NetBSD__]: Handle NetBSD disk wedges.
13794 * util/getroot.c (convert_system_partition_to_system_disk)
13795 [__NetBSD__]: Likewise.
13797 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13799 * util/grub-mkconfig.in: Use umask rather than chmod to create
13800 grub.cfg.new to avoid insecure grub.cfg.
13802 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13804 * grub-core/commands/ls.c: Gettextize.
13805 * grub-core/commands/setpci.c: Likewise.
13806 * grub-core/commands/videotest.c: Likewise.
13807 * grub-core/disk/geli.c: Likewise.
13808 * grub-core/kern/mm.c: Likewise.
13809 * grub-core/lib/relocator.c: Likewise.
13810 * grub-core/loader/efi/appleloader.c: Likewise.
13811 * grub-core/loader/i386/xnu.c: Likewise.
13812 * grub-core/loader/ia64/efi/linux.c: Likewise.
13813 * grub-core/loader/xnu.c: Likewise.
13814 * grub-core/net/dns.c: Likewise.
13815 * grub-core/net/net.c: Likewise.
13816 * grub-core/script/lexer.c: Likewise.
13817 * grub-core/script/parser.y: Likewise.
13818 * grub-core/script/yylex.l: Likewise.
13819 * util/getroot.c: Likewise.
13820 * util/grub-setup.c: Likewise.
13822 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13824 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13827 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13829 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13831 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13833 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13835 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13836 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13838 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13840 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13841 * util/grub-install.in: Gettextize.
13842 * util/grub-mkconfig.in: Likewise.
13843 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13845 (grub_warn): Gettextize.
13846 * util/grub-mknetdir.in: Gettextize.
13847 * util/grub-mkrescue.in: Likewise.
13848 * util/grub-mkstandalone.in: Likewise.
13849 * util/grub-reboot.in: Likewise.
13850 * util/grub-set-default.in: Likewise.
13851 * util/grub.d/00_header.in: Likewise.
13852 * util/grub.d/10_hurd.in: Likewise.
13853 * util/grub.d/10_kfreebsd.in: Likewise.
13854 * util/grub.d/10_linux.in: Likewise.
13855 * util/grub.d/10_netbsd.in: Likewise.
13856 * util/grub.d/10_windows.in: Likewise.
13857 * util/grub.d/20_linux_xen.in: Likewise.
13858 * util/grub.d/30_os-prober.in: Likewise.
13859 * po/POTFILES-shell.in: Regenerate.
13861 2012-02-03 Richard Laager <rlaager@wiktel.com>
13863 * util/grub-mkimage.c (main): Fix format-security warning.
13864 * util/grub-mkrelpath.c (main): Likewise.
13865 * util/grub-probe.c (main): Likewise.
13867 2012-02-03 Richard Laager <rlaager@wiktel.com>
13869 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13871 Put back lost PRINT_DRIVE.
13873 2012-02-03 Richard Laager <rlaager@wiktel.com>
13875 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13876 (grub_guess_root_devices): Replace strlen with sizeof.
13878 (find_root_devices_from_poolname): Remove unused variable.
13881 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13883 Support install on multi-device filesystems.
13885 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13886 (grub_guess_root_devices): ...this. Return char **. All users updated.
13887 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13889 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13890 (find_root_devices_from_poolname): ... here.
13891 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13893 (grub_guess_root_device): Rename to ...
13894 (grub_guess_root_devices): ... this. Return char **. All users updated.
13895 * util/grub-install.in: Handle multi-device filesystems.
13896 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13897 argument. All users updated.
13898 Handle multi-device filesystems.
13899 Use 'delim' as separator.
13900 Remove device check to allow filesystems on file.
13901 (main): Support -0 argument. Handle multi-device.
13902 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13903 Fix a cross-device check while on it.
13904 (arguments): Remove root_dev.
13905 (argp_parser): Remove -r.
13906 (main): Remove root_dev.
13908 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13910 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13912 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13914 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13916 Reported by: NODA, Kai <nodakai>.
13918 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13922 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13924 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13925 (grub_ehci_setup_qh): Likewise.
13926 (grub_ehci_find_qh): Likewise.
13927 (grub_ehci_transaction): Likewise.
13928 (grub_ehci_setup_transfer): Likewise.
13929 (grub_ehci_check_transfer): Likewise.
13930 (grub_ehci_portstatus): Likewise.
13931 (grub_ehci_detect_dev): Likewise.
13932 (grub_ehci_transfer_controller_data): New field td_last_phys.
13933 (grub_ehci_setup_transfer): Fill td_last_phys.
13934 (grub_ehci_check_transfer): Use td_last_phys.
13936 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13938 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13939 if no submenu is present.
13941 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13945 * include/grub/usb.h (grub_usbms_protocol_t): New values
13946 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13947 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13948 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13949 (grub_usbms_dev): Add subclass, protocol and intrpt.
13950 Remove in_maxsz and out_maxsz.
13951 (grub_usbms_reset): Rename to ...
13952 (grub_usbms_bo_reset): .. this.
13953 (grub_usbms_cbi_cmd): New function.
13954 (grub_usbms_cbi_reset): Likewise.
13955 (grub_usbms_reset): Likewise.
13956 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13957 (grub_usbms_transfer): Rename to ...
13958 (grub_usbms_transfer_bo): ... this.
13959 (grub_usbms_transfer_cbi): Likewise.
13960 (grub_usbms_transfer): Likewise.
13962 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13963 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13965 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13966 the support for the CS5536 modification thereos and few bugfixes.
13968 * grub-core/Makefile.core.def (ehci): New module.
13969 * grub-core/bus/usb/ehci.c: New file.
13970 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13971 port and hubaddr. All users updated.
13972 Save port and hubaddr into dev structure.
13973 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13975 * include/grub/pci.h (grub_dma_phys2virt): New function.
13976 (grub_dma_virt2phys): Likewise.
13977 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
13979 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13981 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
13982 check as some mkfs implementations omit it.
13984 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13986 * docs/grub.texi (Unicode): Mention identifier and space limitations.
13988 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13990 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13991 Add new member volname2.
13992 (grub_jfs_label): Use volname2 if available.
13994 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13996 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
13997 over last_mounted as seen in image generated by mkfs.nilfs2.
13998 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14000 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14002 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14003 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14004 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14006 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14008 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14011 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14013 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14014 subvolume name (by removing a bogus and useless check).
14016 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14018 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14019 sizeof while on it.
14021 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14023 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14024 (grub_scsi_read_capacity10): ... this.
14025 (grub_scsi_read_capacity16): New function.
14026 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14028 Fix off-by-one error.
14029 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14031 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14032 (grub_scsi_read_capacity10): ... this.
14033 (grub_scsi_read_capacity_data): Rename to ...
14034 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14035 (grub_scsi_read_capacity16): New struct.
14036 (grub_scsi_read_capacity16_data): Likewise.
14037 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14038 grub_scsi_cmd_read_capacity10.
14039 New command grub_scsi_cmd_read_capacity16.
14041 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14043 SCSI >2TiB support.
14045 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14046 (grub_scsi_write16): Likewise.
14047 (grub_scsi_read): Use read16 when necessary.
14048 (grub_scsi_write): Likewise.
14049 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14050 (grub_scsi_write16): Likewise.
14051 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14053 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14055 SCSI write support (for usbms mainly).
14057 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14059 (grub_scsi_write): Implement.
14060 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14062 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14064 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14067 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14069 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14071 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14073 * po/POTFILES.in: Regenerate.
14075 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14077 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14078 with grub_printf to avoid unnecessary fatal failure.
14080 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14082 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14083 (INT_MAX): Likewise.
14084 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14085 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14086 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14087 (strcpy): Likewise.
14088 (strstr): Likewise.
14089 (strchr): Likewise.
14090 (strncpy): Likewise.
14091 (strcat): Likewise.
14092 (strncat): Likewise.
14093 (strcoll): Likewise.
14094 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14095 (GRUB_INT_MAX): Likewise.
14097 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14099 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14101 (optimize_utf8): Likewise.
14102 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14104 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14106 * grub-core/boot/i386/pc/lnxboot.S: Use
14107 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14108 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14110 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14112 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14114 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14116 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14117 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14118 now to avoid double free.
14119 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14121 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14122 * util/grub-probe.c (escape_of_path): Always return a new copy.
14123 (print_full_name): Escape path.
14124 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14125 Fix hints on abstractions.
14127 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14129 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14130 Don't add "root" line if no compatibility hont is available.
14131 Suggested by: Seth Goldberg.
14133 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14135 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14136 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14137 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14138 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14140 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14142 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14144 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14146 * util/grub-pe2elf.c (ehdr): Make static.
14148 (num_sections): Likewise.
14149 (offset): Likewise.
14151 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14153 Eliminate ofpath limits and possible overflows.
14155 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14156 (OF_PATH_MAX): Removed.
14157 (MAX_DISK_CAT): New const.
14158 (find_obppath): Use allocated rather than preallocated buffer.
14159 Return result. Argument of_path removed. All users updated.
14160 Add missing fdstat.
14161 (xrealpath): New function.
14162 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14163 Allocate rather than use preallocated buffer. All users updated.
14164 (__of_path_common): Use allocated rather than preallocatecd buffer.
14165 Return result. Argument of_path removed. All users updated.
14166 (vendor_is_ATA): Read only needed part form the file.
14167 (check_sas): Allocate depending on contents rather than fixed.
14168 (main) [STANDALONE]: Handle NULL result.
14170 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14172 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14174 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14176 Cryptodisk write support.
14178 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14179 (grub_cryptodisk_decrypt): Moved logic to ...
14180 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14181 (grub_cryptodisk_write): Implement.
14182 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14183 (grub_util_fd_write): ... this. Make global.
14184 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14186 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14188 * include/grub/list.h (grub_list_remove): Don't crash if element is
14191 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14193 Rename ofconsole to console.
14195 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14196 as sysnonym to console.
14197 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14198 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14199 Rename grub_ofconsole_ to grub_console_. All users updated
14200 (grub_console_term_output): Rename "ofconsole" to "console".
14201 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14204 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14206 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14208 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14209 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14210 GRUB_DISK_DEVICE_FILE_ID.
14212 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14214 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14215 and improve performance.
14217 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14219 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14220 missing ieee1275/ prefix on whole disk.
14222 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14224 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14225 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14227 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14229 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14231 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14233 Merge common RAID and LVM logic to an abstract diskfilter.
14234 Add LDM support using the same framework.
14236 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14237 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14238 (libgrubmods): Remove grub-core/disk/raid.c and
14239 grub-core/partmap/gpt.c.
14240 * grub-core/Makefile.core.def (ldm): New module.
14241 (raid): Renamed to diskfilter. All users updated.
14242 * grub-core/disk/raid.c: Moved to ...
14243 * grub-core/disk/diskfilter.c: ... here.
14244 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14246 (find_array): Renamed to ...
14247 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14248 (grub_is_array_readable): Renamed to ...
14249 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14250 (insert_array): New argument id.
14251 (is_node_readable): New function.
14252 (scan_device): Rename to ...
14253 (scan_disk): .. this. Restrict to one disk.
14254 (scan_devices): New function.
14255 (grub_diskfilter_iterate): Support multi-LV.
14256 Skip invisible and nameless LVs.
14257 (grub_diskfilter_memberlist): Support multi-LV.
14258 (grub_diskfilter_read_node): New function.
14259 (grub_raid_read): Most of logic moved to ...
14260 (read_segment): ... here
14261 (read_lv): New function.
14262 (grub_diskfilter_get_vg_by_uuid): New function.
14263 (grub_diskfilter_make_raid): Likewise.
14264 * grub-core/disk/ldm.c: New file.
14265 * grub-core/disk/lvm.c (vg_list): Removed.
14266 (lv_count): Likewise.
14267 (scan_depth): Likewise.
14268 (is_lv_readable): Likewise.
14269 (grub_lvm_getvalue): Advance pointer past the number.
14270 (find_lv): Removed.
14271 (do_lvm_scan): Refactored into ...
14272 (grub_lvm_detect): ... this. Support raid.
14273 (grub_lvm_iterate): Removed.
14274 (grub_lvm_memberlist): Likewise.
14275 (grub_lvm_open): Likewise.
14276 (grub_lvm_close): Likewise.
14277 (read_lv): Likewise.
14278 (read_node): Likewise.
14279 (is_node_readable): Likewise.
14280 (is_lv_readable): Likewise.
14281 (grub_lvm_read): Likewise.
14282 (grub_lvm_write): Likewise.
14283 (grub_lvm_dev): Use diskfilter
14284 (GRUB_MOD_INIT): Likewise.
14285 (GRUB_MOD_FINI): Likewise.
14286 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14288 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14289 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14290 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14291 grub_diskfilter_read_node.
14292 Fix a bug with xor.
14293 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14294 grub_diskfilter_read_node.
14295 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14296 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14297 (grub_disk_dev_iterate): Move from here...
14298 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14299 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14301 (grub_hostdisk_find_partition_start): Likewise.
14302 (grub_hostdisk_os_dev_to_grub_drive): New function.
14303 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14304 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14305 * util/getroot.c (make_device_name): ... here.
14306 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14308 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14309 * grub-core/kern/emu/hostdisk.c
14310 (convert_system_partition_to_system_disk): Move to ...
14311 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14312 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14313 * util/getroot.c (device_is_wholedisk): ... here.
14314 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14315 * util/getroot.c (find_system_device): ... here.
14316 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14318 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14319 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14321 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14323 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14325 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14326 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14327 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14329 * include/grub/raid.h: Renamed to ...
14330 * include/grub/diskfilter.h: ... this.
14331 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14332 (GRUB_RAID_LAYOUT_*): Make into array.
14333 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14334 (grub_diskfilter_vg): New struct.
14335 (grub_diskfilter_pv_id): Likewise.
14336 (grub_raid_member): Removed.
14337 (grub_raid_array): Likewise.
14338 (grub_diskfilter_pv): New struct.
14339 (grub_diskfilter_lv): Likewise.
14340 (grub_diskfilter_segment): Likewise.
14341 (grub_diskfilter_node): Likewise.
14342 (grub_diskfilter_get_vg_by_uuid): New proto.
14343 (grub_raid_register): Inline.
14344 (grub_diskfilter_unregister): Likewise.
14345 (grub_diskfilter_make_raid): New proto.
14346 (grub_diskfilter_vg_register): Likewise.
14347 (grub_diskfilter_read_node): Likewise.
14348 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14349 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14350 (grub_util_is_ldm): Likewise.
14351 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14352 (grub_hostdisk_find_partition_start): Likewise.
14353 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14354 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14356 (grub_gpt_partition_map_iterate): New proto.
14357 * include/grub/lvm.h (grub_lvm_vg): Removed.
14358 (grub_lvm_pv): Likewise.
14359 (grub_lvm_lv): Likewise.
14360 (grub_lvm_segment): Likewise.
14361 (grub_lvm_node): Likewise.
14362 * util/getroot.c [...]
14363 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14364 (probe_abstraction): Likewise.
14365 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14366 (main): Remove dead logic.
14368 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14370 Simplify root device discover and don't fail when trying to open
14373 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14375 (get_diskname_from_path): Likewise.
14376 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14379 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14381 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14383 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14385 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14388 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14390 * util/grub-install.in: Add missing \.
14391 Reported by: gentoofan
14393 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14395 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14396 (direct_read): Use correct compressed size.
14397 (grub_squash_read_data): Likewise.
14399 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14401 * docs/grub.texi (Platform limitations): New section.
14402 (Platform-specific operations): Likewise.
14403 * docs/grub-dev.texi (Porting): Likewise.
14405 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14407 IEEE1275 disk write support.
14409 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14411 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14412 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14413 and seek loginc to ...
14414 (grub_ofdisk_prepare): ... here.
14415 (grub_ofdisk_write): Implement.
14417 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14419 ARC disk write support.
14421 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14422 (reopen): New argument writable. All users updated.
14423 Handle required access mode.
14424 (grub_arcdisk_write): Implement.
14425 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14426 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14428 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14430 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14431 (read_sblock): Don't attempt to read superblocks outside the disk size.
14433 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14435 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14436 first superblock to find the second one when possible.
14438 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14440 * util/grub-install.in: Fix an ARC bug.
14441 Print a warning if no platform-specific setup is available.
14443 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14445 Use static allocation rather than scratch pointer in reed_solomon.
14446 It decreases its size significantly and avoids a variable in .text.
14448 * grub-core/lib/reed_solomon.c (scratch): Removed.
14449 (chosenstat): New const or static array.
14451 (errpot): Likewise.
14452 (errpos): Likewise.
14455 (errvals): Likewise.
14456 (eqstat): Likewise.
14457 (pol_evaluate): Replace x with log_x argument. All users updated.
14458 (syndroms): Removed.
14459 (gauss_solve): Use statically allocated arrays.
14460 (rs_recover): Likewise.
14461 Calculate syndroms directly.
14462 (decode_block): Use statically allocated arrays.
14463 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14464 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14466 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14468 Eliminate fixed limit on reed solomon decoder length.
14470 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14471 rather than hardcoding the address.
14472 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14473 no_reed_solomon_length.
14474 Move gate_a20 to no-reed-solomon part.
14475 Don't force a particular size of no reed-solomon part.
14476 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14478 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14479 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14481 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14483 * grub-core/commands/wildcard.c (match_files): Handle filenames
14484 without explicit device.
14485 (wildcard_expand): Don't add explicit device if not already present.
14486 * tests/grub_script_echo1.in: Add a new expansion test.
14488 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14490 Replace single-linked with double-linked lists. It results in more
14491 compact and more efficient code.
14493 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14494 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14495 (grub_list_remove): Moved from here ...
14496 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14497 (grub_prio_list_insert): Set prev.
14498 * include/grub/list.h (grub_list): Add prev. All users updated.
14500 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14502 Handle newer autotools. Add some missing quotes while on it.
14504 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14505 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14506 (pkgdata_DATA): ... here.
14507 * Makefile.util.def (update-grub_lib): Removed.
14508 * conf/Makefile.common (pkglib_DATA): Removed.
14509 (pkglib_SCRIPTS): Likewise.
14510 (pkgdata_DATA): New variable.
14511 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14513 Add missing quotes.
14514 Remove unused variable while on it.
14515 * tests/util/grub-shell.in: Likewise.
14516 * util/grub-install.in: Likewise.
14517 * util/grub-mkconfig.in: Likewise.
14518 * util/grub-mknetdir.in: Likewise.
14519 * util/grub-mkrescue.in: Likewise.
14520 * util/grub-mkstandalone.in: Likewise.
14521 * util/grub.d/00_header.in: Likewise.
14522 * util/grub.d/10_hurd.in: Likewise.
14523 * util/grub.d/10_illumos.in: Likewise.
14524 * util/grub.d/10_kfreebsd.in: Likewise.
14525 * util/grub.d/10_linux.in: Likewise.
14526 * util/grub.d/10_netbsd.in: Likewise.
14527 * util/grub.d/10_windows.in: Likewise.
14528 * util/grub.d/20_linux_xen.in: Likewise.
14529 * util/grub.d/30_os-prober.in: Likewise.
14530 * util/update-grub_lib.in: Removed.
14532 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14534 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14535 a workaround for intel problem.
14537 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14538 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14539 2012-01-23 pfsmorigo
14541 * util/grub-install.in: Support dd'in into PreP partition.
14542 * util/grub-probe.c (probe): Support discovering partition type.
14543 (main): Support -t msdos_parttype.
14545 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14547 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14548 infinite recursion using counter.
14549 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14550 init to skip it if the magic check fails.
14551 (dec_stream_header): Init s->crc32.
14553 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14554 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14555 2012-01-22 Richard Laager <rlaager@wiktel.com>
14557 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14559 (find_bestub): Determine correct size.
14560 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14561 (scan_disk): Align the size down.
14562 Call check pool before find_bestub to have ashift.
14564 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14566 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14567 dprintf in no-malloc zone.
14569 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14571 * configure.ac: Add back in test for limits.h.
14573 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14575 Support 4K-sector NTFS.
14577 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14578 (grub_ntfs_data): Remove blocksize.
14579 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14580 Remove data argument. All users updated.
14582 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14584 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14585 being in .text to avoid dprel references.
14586 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14587 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14588 (grub_arch_highmemsize): Likewise.
14589 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14590 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14591 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14593 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14595 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14597 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14598 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14600 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14602 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14604 (grub_set_datetime_cmos): Likewise.
14606 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14608 Make XZ compression parameters dependent on target and not host CPU.
14610 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14611 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14613 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14615 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14616 set but not used variable.
14618 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14620 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14621 created when no uuid support is compiled into mkfs.reiser.
14623 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14625 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14626 (utf8_to_macroman): Do the opposite.
14627 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14629 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14631 * configure.ac: Refise build qemu_mips w/o unifont.
14633 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14635 Eliminate grub_min/grub_max prone to overflow usage.
14637 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14638 (poll_nonroot_hub): Likewise.
14639 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14640 (grub_affs_label): Likewise.
14641 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14642 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14643 (grub_hfs_label): Likewise.
14644 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14645 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14646 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14647 (zap_leaf_array_get): Likewise.
14648 (dnode_get_path): Likewise.
14649 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14650 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14651 * grub-core/script/execute.c (grub_script_break): Likewise.
14652 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14654 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14655 * include/grub/misc.h (grub_min): Removed.
14656 (grub_max): Likewise.
14658 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14660 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14663 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14665 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14667 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14669 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14671 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14673 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14674 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14676 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14678 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14679 rather than a hack for grub_strncasemap.
14681 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14683 Support multiple initrds
14684 Note: part of this was accidently committed in r3739.
14686 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14688 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14689 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14690 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14691 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14692 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14694 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14696 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14697 disks with unknown size.
14698 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14700 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14702 Remove defines pertaining to arbitrary limits not affecting GRUB
14705 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14706 (EXT2_MAX_SYMLINKCNT): Likewise.
14707 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14708 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14709 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14710 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14711 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14712 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14713 (DN_MAX_OBJECT_SHIFT): Likewise.
14714 (DN_MAX_OFFSET_SHIFT): Likewise.
14715 (DN_MAX_OBJECT): Likewise.
14716 (DNODES_PER_LEVEL_SHIFT): Likewise.
14717 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14718 (SPA_MAXBLOCKSIZE): Likewise.
14719 (SPA_BLOCKSIZES): Likewise.
14720 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14721 (MZAP_MAX_BLKSZ): Likewise.
14723 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14725 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14726 handle NULL appropriately.
14729 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14733 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14735 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14736 * configure.ac: Fix efiemu check.
14738 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14740 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14742 Reported by: adamwill
14744 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14746 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14748 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14750 Fix handling of wide characters in gfxterm.
14752 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14753 (clear_char): Likewise.
14754 (paint_char): Skip code == NULL chars.
14755 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14757 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14759 * grub-core/normal/charset.c: Move comment to right place.
14761 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14763 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14764 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14765 (grub_affs_mount): Revert the correct version checking.
14767 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14769 * docs/grub.texi (Unicode): Mention several other unsupported features.
14771 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14773 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14774 case statements as compile-time one.
14775 (direct_read): Prevent spurious warnings.
14776 (grub_squash_read_data): Likewise.
14778 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14780 Various squash4 fixes and LZO and XZ support.
14782 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14783 Add xzembed source files.
14784 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14785 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14786 (grub_squash_inode): New subtype long_dir.
14787 (SQUASH_TYPE_LONG_DIR): New inode type.
14788 (COMPRESSION): New enum.
14789 (XZBUFSIZ): New const.
14790 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14791 (read_chunk): Use data->decompress.
14792 (zlib_decompress): New function.
14793 (lzo_decompress): Likewise.
14794 (xz_decompress): Likewise.
14795 (squash_mount): Set new data fields.
14796 (grub_squash_iterate_dir): Handle long dir.
14797 (squash_unmount): Free xzdec and xzbuf.
14798 (grub_squash_open): Check ino type.
14799 (direct_read): Stylistic fixes. Use data->decompress.
14800 (grub_squash_read_data): Likewise.
14801 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14802 (get_byte): Likewise.
14803 (grub_zlib_disk_read): Removed.
14804 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14805 (GRUB_POSIX_BOOL_DEFINED): New define.
14806 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14807 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14808 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14809 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14811 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14813 Don't override more informative errors.
14815 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14816 * grub-core/font/font.c (open_section): Likewise.
14817 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14818 filename. Don't override errors.
14819 (grub_cmd_openbsd_ramdisk): Don't override errors.
14820 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14821 (grub_cmd_initrd): Likewise.
14822 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14823 (grub_cmd_initrd): Likewise.
14824 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14825 (grub_cmd_linux): Likewise.
14826 (grub_cmd_initrd): Likewise.
14827 (grub_cmd_payload): Likewise.
14828 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14829 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14830 (grub_cmd_module): Likewise.
14831 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14832 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14833 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14834 (grub_cmd_xnu_mkext): Likewise.
14835 (grub_cmd_xnu_ramdisk): Likewise.
14836 (grub_xnu_check_os_bundle_required): Likewise.
14837 (grub_xnu_load_kext_from_dir): Likewise.
14838 (grub_cmd_xnu_kextdir): Likewise.
14839 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14841 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14843 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14844 as 1024 in block size field. Found on one of my test images.
14845 Small optimisation while on it.
14847 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14849 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14850 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14851 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14852 performance fixes while on it.
14853 (grub_sfs_close): Fix memory leak while on it.
14854 (grub_sfs_label): Convert Latin1 to UTF-8.
14856 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14858 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14859 space to avoid overflows.
14860 (grub_hfs_label): Convert from macroman to UTF-8.
14862 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14864 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14866 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14868 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14870 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14872 * unicode: Import Unicode 6.0 data.
14874 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14876 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14879 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14881 Avoid cutting in the middle of UTF-8 character.
14883 * include/grub/charset.h (grub_getend): New function.
14884 * grub-core/script/function.c (grub_script_function_find): Use
14886 * grub-core/normal/completion.c (add_completion): Likewise.
14888 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14890 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14891 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14892 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14893 (GRUB_UNICODE_TAG_END): Likewise.
14894 (GRUB_UNICODE_LAST_VALID): Likewise.
14896 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14898 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14899 len and make it smaller. All users updated.
14900 * util/import_unicode.py: Put length and not end character.
14903 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14905 Make better Unicode-compliant and unify some UTF-8 code pathes.
14907 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14909 (grub_is_valid_utf8): Use grub_utf8_process.
14910 Check resulting code range.
14911 (grub_utf8_to_ucs4): Use grub_utf8_process.
14912 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14915 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14917 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14919 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14921 * docs/grub.texi (Filesystems): Mention AFS.
14923 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14925 * docs/grub.texi (Filesystems): Clarify restrictions.
14926 (Regexp): Mention non-Unicode regexp behaviour.
14927 (Other): Mention non-Unicode matching behaviour.
14929 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14931 Make HFS implementation use MacRoman.
14933 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14934 (macroman): New const array.
14935 (macroman_to_utf8): New function.
14936 (utf8_to_macroman): Likewise.
14937 (grub_hfs_find_dir): Use utf8_to_macroman.
14938 (grub_hfs_dir): Use macroman_to_utf8.
14939 Set case_insensitive.
14941 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14943 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14945 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14947 Integrate hints into autogeneration scripts.
14949 * docs/grub.texi (Filesystems): Add a hostdisk example.
14950 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14951 (grub-probe): Add ofpath.
14952 * gentpl.py: Remove group nosparc64.
14953 * grub-core/commands/search.c (cache_entry): New struct.
14955 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14956 * grub-core/commands/search_wrap.c (options): Add platform-specific
14958 (grub_cmd_search): Handle platform-specific hints.
14959 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14960 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14961 (grub_util_biosdisk_data): Likewise.
14962 (grub_util_biosdisk_open): Set device_map.
14963 (read_device_map): Handle "" as indication of no map.
14965 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14966 (grub_util_biosdisk_get_compatibility_hint): New function.
14967 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14968 * include/grub/emu/hostdisk.h
14969 (grub_util_biosdisk_get_compatibility_hint): New proto.
14970 * util/grub-install.in: Don't call grub-mkdevicemap.
14971 Add platform-specific hint to load.cfg.
14972 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14973 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14974 hints. Set root preliminary to compatibility hint, not to OS name.
14975 * util/grub-probe.c (PRINT_*): Add hints.
14976 (print): Make static.
14977 (escape_of_path): New function.
14978 (guess_bios_drive): Likewise.
14979 (guess_efi_drive): Likewise.
14980 (guess_baremetal_drive): Likewise.
14981 (print_full_name): Likewise.
14982 (probe): Handle hints.
14984 * util/ieee1275/devicemap.c: Removed.
14985 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
14987 (grub_util_devname_to_ofpath): Return NULL on failure.
14989 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
14991 * util/getroot.c (grub_util_pull_device): Fix memory leak.
14993 * po/POTFILES.in: Regenerated.
14995 Allow purely long options
14997 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
14998 (SHORT_ARG_USAGE): Likewise.
14999 (grub_arg_show_help): Compare opt with help_options.
15000 (parse_option): Receive opt as argument. If makes big simplificatons.
15003 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15005 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15006 Restructure to avoid warning.
15008 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15010 * util/grub-install.in: Account for possible escaped comma in device
15013 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15015 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15018 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15020 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15021 allocation and zero-setting.
15022 (grub_ieee1275_get_devname): Check that alias is complete.
15024 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15026 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15027 unaligned segments.
15029 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15031 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15033 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15034 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15035 Add ieee1275 prefix.
15037 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15039 * docs/grub.texi (Filesystems): Update.
15041 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15043 Support odc, newc and bigendian cpio formats.
15045 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15046 * grub-core/Makefile.core.def (newc): New module.
15048 (cpio_be): Likewise.
15049 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15051 (MAGIC2): Likewise.
15052 (head) [MODE_ODC]: Adapt for the format.
15053 (head) [MODE_NEWC]: Likewise.
15054 (head) [!MODE_*]: Write fields of interest as arrays.
15055 (MAGIC_USTAR): Removed.
15056 (read_number) [MODE_NEWC]: Change to hex.
15057 (read_number) [!MODE_*]: Parse binary arrays.
15058 (grub_cpio_find_file): Factor out the code for better structure and
15059 always use read_number.
15060 (grub_cpio_mount): Use MAGIC and MAGIC2.
15061 (grub_cpio_dir): Exit on first hook non-0 return.
15062 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15063 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15064 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15065 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15066 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15067 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15068 * grub-core/fs/newc.c: New file.
15069 * grub-core/fs/odc.c: Likewise.
15070 * grub-core/fs/cpio_be.c: Likewise.
15072 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15074 Fix handling of tar numbers occupying the whole field.
15076 * grub-core/fs/cpio.c (read_number): New function.
15077 (grub_cpio_find_file): Use read_number instead of strtoull.
15079 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15081 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15082 occupying the whole field size.
15084 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15086 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15088 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15090 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15092 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15094 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15095 TARGET_IMG_LDFLAGS.
15097 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15099 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15100 (mountinfo_entry): Increase the field size to take escaping into
15102 (find_root_device_from_libzfs): Add one byte to size of strings for
15105 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15107 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15109 * util/grub-setup.c (setup): Likewise.
15111 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15113 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15116 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15118 * docs/grub.texi (Internationalisation): New section.
15120 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15122 * docs/grub.texi (Loopback booting): New section.
15124 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15126 * util/grub-mkstandalone.in: Fix minor typo errors.
15128 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15130 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15132 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15133 net/icmp.c and net/icmp6.c.
15134 (http): New module.
15135 (priority_queue): Likewise.
15136 * grub-core/io/bufio.c: Rewritten.
15137 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15138 TYPE_WITH_CONFIGFILE_OPTION.
15139 (legacy_commands): Add bootp and dhcp.
15140 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15141 (grub_legacy_parse): Likewise.
15142 * grub-core/lib/priority_queue.c: New file.
15143 * grub-core/net/arp.c: Add missing license header.
15144 (arp_find_entry): Removed.
15145 (arp_find_entry): Likewise.
15146 (grub_net_arp_resolve): Rename to ...
15147 (grub_net_arp_send_request): ...this.
15148 (grub_net_arp_receive): New card argument.
15149 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15150 Set router and DNS server.
15151 (grub_net_configure_by_dhcp_ack): Handle routing information.
15152 (grub_cmd_bootp): Set checksum.
15153 (grub_bootp_init): Remove net_dhcp.
15154 * grub-core/net/dns.c: New file.
15155 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15157 (get_card_packet): Handle allocation.
15158 (grub_efinet_findcards): Set mtu.
15159 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15160 (get_card_packet): Handle allocation.
15161 (emucard): Set mtu.
15162 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15163 (GRUB_MOD_INIT): Set mtu.
15164 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15166 (get_card_packet): Handle allocation.
15167 (grub_ofnet_findcards): Set mtu.
15168 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15170 (grub_net_recv_ethernet_packet): Handle IPv6.
15171 * grub-core/net/http.c: New file.
15172 * grub-core/net/icmp.c: Likewise.
15173 * grub-core/net/icmp6.c: Likewise.
15174 * grub-core/net/ip.c (ip6addr): New type.
15175 (ip6hdr): Likewise.
15176 (reassemble): Likewise.
15177 (cmp): New function.
15178 (reassembles): New variable.
15179 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15180 (id): New variable.
15181 (send_fragmented): New function.
15182 (grub_net_send_ip_packet): Rename to ...
15183 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15185 (grub_net_recv_ip_packets): Rename to ...
15186 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15187 (free_rsm): New function.
15188 (free_old_fragments): Likewise.
15189 (grub_net_recv_ip4_packets): New function.
15190 (grub_net_send_ip6_packet): Likewise.
15191 (grub_net_send_ip_packet): Likewise.
15192 (grub_net_recv_ip6_packets): Likewise.
15193 (grub_net_recv_ip_packets): Likewise.
15194 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15195 (LINK_LAYER_CACHE_SIZE): New const.
15196 (link_layer_find_entry): New function.
15197 (grub_net_link_layer_add_address): Likewise.
15198 (grub_net_link_layer_resolve_check): Likewise.
15199 (grub_net_link_layer_resolve): Likewise.
15200 (grub_net_ipv6_get_slaac): Likewise.
15201 (grub_net_ipv6_get_link_local): Likewise.
15202 (grub_cmd_ipv6_autoconf): Likewise.
15203 (parse_ip): Handle one number representation.
15204 (parse_ip6): New functoion.
15205 (match_net): Handle IPv6.
15206 (grub_net_resolve_address): Handle IPv6 and DNS.
15207 (grub_net_resolve_net_address): Handle IPv6.
15208 (route_cmp): New function.
15209 (grub_net_route_address): Find best route.
15210 (grub_net_addr_to_str): Handle IPv6.
15211 (grub_net_addr_cmp): New function.
15212 (grub_net_add_addr): Register local route.
15213 (print_net_address): Handle net address.
15214 (grub_net_poll_cards): Retransmit TCP.
15215 (grub_net_poll_cards_idle_real): Likewise.
15216 (have_ahead): New function.
15217 (grub_net_seek_real): Use underlying seek.
15218 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15219 * grub-core/net/tcp.c: New file.
15220 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15221 (cmp): New function.
15223 (tftp_receive): Handle unordered input.
15224 (destroy_pq): New function.
15225 (tftp_close): Close pq.
15226 * grub-core/net/udp.c: Put missing license header.
15227 (grub_net_udp_socket): New function.
15228 (udp_socket_register): Likewise.
15229 (grub_net_udp_close): Likewise.
15230 (grub_net_recv_udp_packet): Check checksum.
15231 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15232 * include/grub/misc.h (grub_memchr): New function.
15233 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15234 (grub_net_card_driver): Return buf in recv.
15235 (grub_net_slaac_mac_list): New struct.
15236 (grub_network_level_protocol_id): Add ipv6.
15237 (grub_net_network_level_addr): Likewise.
15238 (grub_net_network_level_net_addr): Likewise.
15239 (grub_net_app_protocol): Add seek.
15240 (grub_net_socket): Removed.
15241 (grub_net_sockets): Likewise.
15242 (grub_net_socket_register): Likewise.
15243 (grub_net_socket_unregister): Likewise.
15244 (FOR_NET_SOCKETS): Likewise.
15245 (grub_net_add_addr): Add const.
15246 (GRUB_NET_BOOTP_*): New enum.
15247 (grub_net_addr_cmp): New proto.
15248 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15249 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15250 (grub_net_hwaddr_to_str): NEw proto.
15251 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15252 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15253 (grub_dns_init): New proto.
15254 (grub_dns_fini): Likewise.
15255 (grub_net_tcp_retransmit): Likewise.
15256 (grub_net_link_layer_add_address): Likewise.
15257 (grub_net_link_layer_resolve_check): Likewise.
15258 (grub_net_link_layer_resolve): Likewise.
15259 (grub_net_dns_lookup): Likewise.
15260 (grub_net_add_dns_server): Likewise.
15261 (grub_net_remove_dns_server): Likewise.
15262 (GRUB_NET_TRIES): New const.
15263 (GRUB_NET_INTERVAL): Likewise.
15264 * include/grub/net/arp.h: Mostly rewritten.
15265 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15266 * include/grub/net/ip.h: Mostly rewritten.
15267 * include/grub/net/netbuff.h: Indent.
15268 * include/grub/net/tcp.h: New file.
15269 * include/grub/net/udp.h: Mostly rewritten.
15270 * include/grub/priority_queue.h: New file.
15271 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15272 (grub_swap_bytes64_compile_time): Likewise.
15273 (grub_cpu_to_be16_compile_time): Likewise.
15274 (grub_cpu_to_be32_compile_time): Likewise.
15275 (grub_cpu_to_be64_compile_time): Likewise.
15276 (grub_be_to_cpu64_compile_time): Likewise.
15278 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15280 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15281 UINT_TO_PTR with cast.
15283 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15285 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15288 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15290 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15293 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15295 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15298 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15300 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15301 Add missing const attribute.
15302 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15304 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15307 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15309 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15311 (serpent_setkey): Likewise.
15312 (serpent_encrypt_internal): Likewise.
15313 (serpent_decrypt_internal): Likewise.
15314 (serpent_encrypt): Don't put an alignment-increasing cast.
15315 (serpent_decrypt): Likewise.
15316 (serpent_test): Likewise.
15318 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15320 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15322 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15324 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15326 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15328 (PTR_TO_UINT64): Likewise.
15329 (PTR_TO_UINT32): Likewise.
15331 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15333 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15335 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15338 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15340 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15341 text_width > available width a bit more gracefully.
15343 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15345 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15346 current address calculation.
15348 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15350 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15352 (encode_block): Likewise.
15354 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15356 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15359 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15361 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15362 non-RS part to avoid RS messing with GDT.
15363 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15364 Increase to suit in realmode routines.
15366 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15368 * grub-core/kern/i386/realmode.S: Increase alignment.
15369 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15371 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15373 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15375 (syndroms): Compute 0 syndrom.
15376 (rs_recover): Use 0 syndrom.
15378 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15380 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15382 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15384 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15387 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15389 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15391 (get_top_pad): Likewise.
15392 (get_right_pad): Likewise.
15393 (get_bottom_pad): Likewise.
15395 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15397 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15399 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15401 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15402 attribute as the structure isn't guaranteed to be properly aligned.
15403 (grub_efi_pci_device_path): Likewise.
15404 (grub_efi_pccard_device_path): Likewise.
15405 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15406 specify the size of `memory_type'.
15407 (grub_efi_vendor_device_path): Likewise.
15408 (grub_efi_controller_device_path): Likewise.
15409 (grub_efi_acpi_device_path): Likewise.
15410 (grub_efi_expanded_acpi_device_path): Likewise.
15411 (grub_efi_atapi_device_path): Likewise.
15412 (grub_efi_scsi_device_path): Likewise.
15413 (grub_efi_fibre_channel_device_path): Likewise.
15414 (grub_efi_1394_device_path): Likewise.
15415 (grub_efi_usb_device_path): Likewise.
15416 (grub_efi_usb_class_device_path): Likewise.
15417 (grub_efi_i2o_device_path): Likewise.
15418 (grub_efi_mac_address_device_path): Likewise.
15419 (grub_efi_ipv4_device_path): Likewise.
15420 (grub_efi_ipv6_device_path): Likewise.
15421 (grub_efi_infiniband_device_path): Likewise.
15422 (grub_efi_uart_device_path): Likewise.
15423 (grub_efi_vendor_messaging_device_path): Likewise.
15424 (grub_efi_hard_drive_device_path): Likewise.
15425 (grub_efi_cdrom_device_path): Likewise.
15426 (grub_efi_vendor_media_device_path): Likewise.
15427 (grub_efi_file_path_device_path): Likewise.
15428 (grub_efi_protocol_device_path): Likewise.
15429 (grub_efi_piwg_device_path): Likewise.
15430 (grub_efi_bios_device_path): Likewise.
15432 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15434 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15435 (grub_ucs4_to_utf8_alloc): Likewise.
15436 (grub_ucs4_to_utf8): Likewise.
15437 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15438 (grub_ucs4_to_utf8_alloc): Likewise.
15440 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15442 AFFS never uses unicode.
15444 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15445 (grub_latin1_to_utf8): New inline function.
15446 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15448 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15450 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15453 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15455 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15456 (grub_squash_dirent_header): Likewise.
15457 (read_chunk): Don't double swap.
15458 (grub_squash_iterate_dir): Fix swap sizes.
15460 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15462 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15464 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15466 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15467 (grub_hfs_iterate_dir): Likewise.
15469 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15471 Fix video on platforms where unaligned access is forbidden.
15472 Make several optimisations while on it.
15474 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15475 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15476 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15477 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15479 (grub_video_fbblit_replace_16bit_1bit):
15480 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15481 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15482 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15483 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15484 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15485 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15486 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15487 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15488 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15489 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15490 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15491 (grub_video_fbblit_replace_index_RGB888): Likewise.
15492 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15493 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15494 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15495 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15496 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15497 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15498 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15500 (grub_video_fbblit_blend_XXX565_1bit):
15501 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15502 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15503 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15505 * grub-core/video/fb/video_fb.c (common_blitter)
15506 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15507 (grub_video_fb_create_render_target_from_pointer)
15508 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15509 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15510 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15512 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15514 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15516 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15517 HH22 and HM10 relocations.
15519 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15521 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15523 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15525 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15526 allocation succeeded.
15528 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15530 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15531 argument a u8 pointer. All users updated.
15532 Handle unaligned buffers.
15534 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15536 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15537 add_part to workaround compiler bug.
15539 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15541 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15543 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15545 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15546 Reserve alignment invariants.
15547 (grub_multiboot_load): Likewise.
15548 (retrieve_video_parameters): Likewise.
15549 (grub_multiboot_make_mbi): Likewise.
15551 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15553 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15558 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15559 (grub_pata_pio_write): Likewise.
15561 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15563 Add noreturn attributes and remove unreachable code.
15565 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15567 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15568 code. Mark as noreturn.
15569 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15570 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15571 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15573 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15574 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15575 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15576 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15577 * include/grub/kernel.h (grub_main): Mark as noreturn.
15578 * include/grub/reader.h (grub_rescue_run): Likewise.
15580 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15582 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15583 redundant declaration.
15585 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15587 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15588 redundant declaration.
15589 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15591 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15593 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15594 to ensure alignment.
15595 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15596 alignment. Ensure tmp alignment.
15597 (grub_cmd_hdparm): Ensure buf alignment.
15598 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15599 to ensure alignment.
15600 (grub_ata_dumpinfo): Ensure text alignment.
15601 (grub_atapi_identify): Preserve alignment invariant.
15602 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15604 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15606 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15607 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15608 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15609 * include/grub/misc.h (grub_reboot)
15610 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15611 (grub_halt) [__mips__]: Likewise.
15613 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15615 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15616 Remove redundant declaration.
15617 (grub_mmap_get_post64): Likewise.
15618 (grub_mmap_get_upper): Likewise.
15619 (grub_mmap_get_lower): Likewise.
15621 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15623 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15624 uint32_t * to ensure alignment.
15625 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15627 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15629 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15630 uint16_t * to ensure alignment.
15631 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15634 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15636 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15637 to ensure alignment.
15638 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15640 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15642 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15643 Handle unaligned pointers.
15646 (fixup): Use byte access instead of v16at.
15647 (find_attr): Fix imporper usage of v32at.
15648 (read_data): Likewise.
15649 (list_file): Handle byte-swapping and unaligned strings.
15650 (grub_ntfs_label): Likewise.
15652 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15654 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15655 as it's not necessarily aligned.
15657 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15659 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15660 redundant declaration.
15661 (grub_serial_init): Likewise.
15662 (grub_terminfo_init): Likewise.
15664 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15666 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15668 (ZAP_HASH_IDX): Likewise.
15669 (ZAP_LEAF_HASH_SHIFT): Likewise.
15670 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15671 (LEAF_HASH): Likewise.
15672 (ZAP_LEAF_NUMCHUNKS): Likewise.
15673 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15674 alignment invariants. Return pointer. All users updated.
15675 (ZAP_LEAF_ENTRY): Make into inline function.
15678 (xor_out): Use grub_crypto_xor.
15679 (dnode_get_path): Use grub_get_unaligned.
15680 (nvlist_find_value): Likewise.
15681 (grub_zfs_nvlist_lookup_uint64): Likewise.
15682 (grub_zfs_nvlist_lookup_string): Likewise.
15683 (get_nvlist_size): Likewise.
15684 (grub_zfs_open): Likewise.
15685 (fill_fs_info): Likewise.
15686 (grub_zfs_dir): Likewise.
15687 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15688 alignment invariants.
15689 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15690 necessarily aligned.
15692 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15694 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15696 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15698 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15699 arithmetic to conserve alignment invariants.
15701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15703 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15704 redundant declaration.
15705 (grub_efiemu_mm_obtain_request): Likewise.
15706 (grub_efiemu_prepare): Likewise.
15708 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15710 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15715 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15716 case of aunaligned recptr.
15717 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15719 (grub_hfsplus_btree_search): Handle unaligned index.
15721 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15723 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15724 to get freetag and skip.
15726 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15728 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15730 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15731 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15733 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15735 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15736 name for checksum and fix allocation algorithm.
15738 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15740 * include/grub/types.h (grub_properly_aligned_t): New type.
15741 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15742 (grub_get_unaligned16): Add explicit casts.
15743 (grub_get_unaligned32): Likewise.
15744 (grub_get_unaligned64): Likewise.
15745 (grub_set_unaligned16): New function.
15746 (grub_set_unaligned32): Likewise.
15748 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15750 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15752 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15754 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15755 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15756 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15758 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15760 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15763 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15765 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15766 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15768 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15770 Unify and improve RAID and crypto xor.
15772 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15773 changed to grub_crypto_xor
15774 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15775 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15776 Use bigger types when possible.
15778 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15780 * grub-core/disk/raid.c (scan_devices): Fix condition.
15782 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15784 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15785 Make name a const ptr.
15787 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15789 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15790 first argument a const pointer.
15791 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15792 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15794 (grub_children_iterate): Likewise.
15795 (grub_machine_mmap_iterate): Remove redundant declaration.
15797 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15799 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15800 (grub_cmd_acpi) [!x86]: Disable EBDA.
15802 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15804 Enable UTF8 in gnulib regexp.
15806 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15807 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15808 (isupper): Use grub_isupper.
15809 (isascii): New inline function.
15810 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15811 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15812 * grub-core/normal/charset.c (grub_utf8_process): New function.
15813 (grub_utf8_to_utf16): Use grub_utf8_process.
15814 (grub_encode_utf8_character): New function.
15815 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15816 * include/grub/charset.h (grub_utf8_process): New declaration.
15817 (grub_encode_utf8_character): Likewise.
15818 * include/grub/misc.h (grub_islower): New inline function.
15819 (grub_isupper): Likewise.
15820 (grub_strchrsub): Moved down to fix the definitions.
15822 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15824 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15827 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15829 * include/grub/loader.h (grub_loader_register_preboot_hook):
15830 Use struct preboot * and not void * for handle. All users updated.
15831 (grub_loader_unregister_preboot_hook): Likewise.
15833 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15835 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15836 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15837 UTF-16-BE. All users updated.
15838 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15839 (grub_hfsplus_iterate_dir): Likewise.
15840 (grub_hfsplus_label): Likewise.
15842 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15844 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15846 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15848 Add missing const qualifiers.
15850 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15851 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15852 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15853 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15854 (grub_lvm_check_flag): Likewise.
15855 * grub-core/efiemu/i386/coredetect.c
15856 (grub_efiemu_get_default_core_name): Likewise
15857 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15858 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15859 * grub-core/fs/ntfs.c (fixup): Likewise.
15860 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15861 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15862 (fzap_lookup): Likewise.
15863 (zap_lookup): Likewise.
15864 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15865 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15866 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15867 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15868 (grub_freebsd_add_meta_module): Likewise.
15869 (grub_cmd_freebsd_module): Likewise.
15870 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15871 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15872 (grub_xnu_writetree_get_size): Likewise.
15873 (grub_xnu_writetree_toheap_real): Likewise.
15874 (grub_xnu_find_key): Likewise.
15875 (grub_xnu_create_key): Likewise.
15876 (grub_xnu_create_value): Likewise.
15877 (grub_xnu_register_memory): Likewise.
15878 (grub_xnu_check_os_bundle_required): Likewise.
15879 (grub_xnu_scan_dir_for_kexts): Likewise.
15880 (grub_xnu_load_kext_from_dir): Likewise.
15881 * grub-core/normal/color.c (color_list): Likewise.
15882 * grub-core/normal/completion.c (current_word): Likewise.
15883 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15884 * grub-core/term/serial.c (grub_serial_find): Likewise.
15885 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15886 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15888 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15889 (grub_freebsd_add_meta_module): Likewise.
15890 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15891 * include/grub/net.h (grub_net_card_driver): Likewise.
15892 (grub_net_card): Likewise.
15893 (grub_net_app_protocol): Likewise.
15894 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15895 * include/grub/serial.h (grub_serial_find): Likewise.
15896 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15897 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15898 (grub_xnu_create_value): Likewise.
15899 (grub_xnu_find_key): Likewise.
15900 (grub_xnu_scan_dir_for_kexts): Likewise.
15901 (grub_xnu_load_kext_from_dir): Likewise.
15903 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15904 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15905 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15906 Moved from here ...
15907 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15909 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15911 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15913 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15915 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15916 (read_device): Fix size calculation.
15918 2011-11-25 Robert Millan <rmh@gnu.org>
15920 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15921 (find_root_device_from_libzfs): Add zpool output parser to be used
15922 as fallback when libzfs isn't available.
15924 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15926 * po/Makefile.in.in: Add missing escape-continuation.
15928 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15930 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15932 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15934 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15936 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15938 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15940 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15942 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15944 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15946 * grub-core/lib/adler32.c: Add missing license specification.
15947 * grub-core/lib/crc64.c: Likewise.
15948 * grub-core/loader/i386/pc/plan9.c: Likewise.
15949 * grub-core/partmap/plan.c: Likewise.
15951 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15953 Add facility to debug GRUB with gdb under qemu.
15955 * grub-core/gdb_grub.in: New file.
15956 * grub-core/gmodule.pl.in: Likewise.
15957 * grub-core/Makefile.core.def (gmodule.pl): New script.
15958 (gdb_grub): Likewise.
15960 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15962 * util/grub-mount.c (argp_parser): Accept relative pathes.
15963 * util/grub-fstest.c (argp_parser): Likewise.
15965 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15969 * Makefile.util.def (libgrubmods): Add
15970 grub-core/partmap/plan.c.
15971 * docs/grub.texi: Notice Plan9 support.
15972 * grub-core/Makefile.core.def (plan9): New module.
15973 (part_plan): Likewise.
15974 * grub-core/loader/i386/pc/plan9.c: New file.
15975 * grub-core/partmap/plan.c: Likewise.
15976 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15978 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
15979 * include/grub/mm.h (grub_extend_alloc): New inline function.
15981 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15983 Make Reed-Solomon faster by using power of generator representation of
15986 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
15987 (gf_double_t): Likewise.
15988 (gf_invert): Removed.
15989 (gf_powx): New array.
15990 (gf_powx_inv): Likewise.
15991 (scratch): Move higher.
15992 (gf_reduce): Removed.
15993 (gf_mul): Use powx.
15994 (gf_invert): Likewise.
15995 (init_inverts): Replaced with ...
15996 (init_powx): ...this. All users updated.
15997 (pol_evaluate): Replace multiplications with additions.
15998 (rs_encode): Likewise.
15999 (gauss_eliminate): Call gf_invert.
16000 (grub_reed_solomon_add_redundancy): Call init_powx.
16001 (grub_reed_solomon_recover): Call init_powx unconditionally.
16003 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16005 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16007 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16009 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16010 disk->partiton for safety.
16012 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16014 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16016 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16018 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16020 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16022 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16024 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16026 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16028 Fix spaces handling in proc/self/mountinfo.
16030 * util/getroot.c (unescape): New function.
16031 (grub_find_root_device_from_mountinfo): Use unescape.
16033 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16035 Support ZFS embedding.
16037 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16038 (grub_zfs_fs): Register grub_zfs_embed.
16040 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16042 Fix MIPS compilation.
16044 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16045 * include/grub/offsets.h: Rename decompressor fields from
16046 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16047 * util/grub-mkimage.c (image_targets): Use new names.
16049 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16051 Defer multiboot device parsing until we're in compressed part.
16053 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16054 bsd_part. setdevice has fallen into disuse.
16055 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16056 (bsd_part): Likewise.
16057 (boot_dev): New variable.
16058 (multiboot_trampoline): Don't parse multiboot device.
16059 Pass multiboot device in %edx.
16060 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16062 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16064 * grub-core/kern/i386/pc/startup.S: Save edx.
16065 (grub_boot_drive): Removed.
16066 (grub_install_dos_part): Likewise.
16067 (grub_install_bsd_part): Likewise.
16068 (grub_boot_device): New variable.
16069 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16070 (grub_install_bsd_part): Likewise.
16071 (grub_boot_drive): Likewise.
16072 (grub_boot_device): New variable.
16073 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16075 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16076 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16077 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16078 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16079 * util/grub-install.in: Remove redundant condition.
16081 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16083 Fix bug introduced by previous commit.
16085 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16087 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16089 Use decompressors framework on i386-pc. It increases core size
16090 by 46 bytes but improves compatibility and maintainability.
16092 * grub-core/Makefile.core.def (lzma_decompress): New image.
16093 (kernel): Add i386_pc_ldflags.
16094 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16095 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16096 to real_to_prot, prot_to_real and device info.
16097 * include/grub/offsets.h: Renamed decompressor offsets.
16098 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16099 (image_target_desc): Remove raw_size and rename decompressor fields.
16100 (compress_kernel): Handle lzma.
16101 (generate_image): Handle decompressors on i386-pc.
16103 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16105 * configure.ac: Add -fno-asynchronous-unwind-tables.
16107 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16109 Move assembly code to C by using intwrap. It increases core size
16110 by 88 bytes but improves compatibility and maintainability.
16112 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16113 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16114 ... here. Translated to C.
16115 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16116 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16117 ... here. Translated to C.
16118 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16119 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16120 ... here. Translated to C.
16121 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16122 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16123 ... here. Translated to C.
16124 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16125 * grub-core/term/i386/pc/console.c (grub_console_cls):
16126 ... here. Translated to C.
16127 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16128 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16129 ... here. Translated to C.
16130 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16131 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16133 * grub-core/term/i386/pc/console.c (int10_9): New function.
16134 (grub_console_putchar): Likewise.
16135 * include/grub/i386/pc/console.h: Removed the not anymore shared
16138 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16140 Move grub_chainloader_real_boot out of the kernel.
16142 * grub-core/Makefile.am: Remove machine/loader.h.
16143 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16145 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16147 (grub_relocator16_keep_a20_enabled): Likewise.
16148 (grub_relocator16_boot): Fill new variables.
16149 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16150 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16152 (grub_chainloader_unload): Likewise.
16153 (grub_chainloader_cmd): Likewise.
16154 * include/grub/i386/pc/loader.h: Removed.
16155 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16156 and esi. All initialisers updated.
16158 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16159 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16161 * Makefile.util.def (grub-mount): New util.
16162 * .bzrignore: Add grub-mount.
16163 * configure.ac: Check for fuse and enable grub-mount if available.
16164 * docs/man/grub-mount.h2m: New file.
16165 * util/grub-mount.c: Likewise.
16167 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16169 * grub-core/commands/efi/fixvideo.c: Gettextize.
16170 * grub-core/commands/hashsum.c: Likewise.
16171 * grub-core/commands/i386/cmostest.c: Likewise.
16172 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16173 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16174 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16175 * grub-core/commands/lsmmap.c: Likewise.
16176 * grub-core/commands/menuentry.c: Likewise.
16177 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16178 * grub-core/commands/setpci.c: Likewise.
16179 * grub-core/loader/i386/bsd.c: Likewise.
16180 * grub-core/loader/i386/linux.c: Likewise.
16181 * util/getroot.c: Likewise.
16182 * util/grub-editenv.c: Likewise.
16183 * util/grub-fstest.c: Likewise.
16184 * util/grub-mkfont.c: Likewise.
16185 * util/grub-mkimage.c: Likewise.
16186 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16187 * util/grub-pe2elf.c: Likewise.
16188 * util/grub-probe.c: Likewise.
16189 * util/grub-setup.c: Likewise.
16190 * util/ieee1275/ofpath.c: Likewise.
16191 * util/misc.c: Likewise.
16192 * util/raid.c: Likewise.
16194 2011-11-11 Robert Millan <rmh@gnu.org>
16196 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16197 __attribute__((unused)) from `os_dev', which *is* being used.
16199 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16201 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16203 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16204 GRUB_IA64_DL_GOT_ALIGN.
16205 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16206 GRUB_IA64_DL_TRAMP_ALIGN.
16208 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16210 Replace grub_fatal with normal errors in i386 linux loader.
16212 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16213 (allocate_pages): Check find_efi_mmap_size return value.
16214 (grub_e820_add_region): Return error.
16215 (grub_linux_boot): Check mmap return value.
16217 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16219 * grub-core/commands/acpihalt.c: Gettextized.
16220 * grub-core/commands/cacheinfo.c: Likewise.
16221 * grub-core/commands/cmp.c: Likewise.
16222 * grub-core/commands/efi/loadbios.c: Likewise.
16223 * grub-core/commands/gptsync.c: Likewise.
16224 * grub-core/commands/ieee1275/suspend.c: Likewise.
16225 * grub-core/commands/legacycfg.c: Likewise.
16226 * grub-core/commands/memrw.c: Likewise.
16227 * grub-core/commands/minicmd.c: Likewise.
16228 * grub-core/commands/parttool.c: Likewise.
16229 * grub-core/commands/time.c: Likewise.
16230 * grub-core/commands/videoinfo.c: Likewise.
16231 * grub-core/disk/geli.c: Likewise.
16232 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16233 * grub-core/disk/luks.c: Likewise.
16234 * grub-core/disk/lvm.c: Likewise.
16235 * grub-core/font/font_cmd.c: Likewise.
16236 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16237 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16238 * grub-core/gfxmenu/view.c: Likewise.
16239 * grub-core/kern/emu/hostdisk.c: Likewise.
16240 * grub-core/kern/emu/main.c: Likewise.
16241 * grub-core/kern/emu/misc.c: Likewise.
16242 * grub-core/kern/emu/mm.c: Likewise.
16243 * grub-core/kern/mips/arc/init.c: Likewise.
16244 * grub-core/kern/mips/loongson/init.c: Likewise.
16245 * grub-core/kern/partition.c: Likewise.
16246 * grub-core/lib/i386/halt.c: Likewise.
16247 * grub-core/lib/mips/arc/reboot.c: Likewise.
16248 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16249 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16250 * grub-core/loader/i386/xnu.c: Likewise.
16251 * grub-core/loader/multiboot.c: Likewise.
16252 * grub-core/net/bootp.c: Likewise.
16253 * grub-core/net/net.c: Likewise.
16254 * grub-core/normal/term.c: Likewise.
16255 * grub-core/partmap/bsdlabel.c: Likewise.
16256 * grub-core/parttool/msdospart.c: Likewise.
16257 * grub-core/term/gfxterm.c: Likewise.
16258 * grub-core/term/terminfo.c: Likewise.
16259 * grub-core/video/i386/pc/vbe.c: Likewise.
16260 * util/grub-menulst2cfg.c: Likewise.
16261 * util/grub-mkdevicemap.c: Likewise.
16262 * util/grub-mklayout.c: Likewise.
16263 * util/grub-mkrelpath.c: Likewise.
16264 * util/grub-script-check.c: Likewise.
16265 * util/ieee1275/grub-ofpathname.c: Likewise.
16266 * util/resolve.c: Likewise.
16268 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16270 Support %1$d syntax.
16272 * tests/printf_unit_test.c: New file.
16273 * Makefile.util.def (printf_test): New test.
16274 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16276 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16278 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16281 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16283 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16285 * grub-core/font/font.c (grub_font_load): Likewise.
16287 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16289 * util/grub-macho2img.c: Add comment concerning gettext.
16290 * grub-core/lib/legacy_parse.c: Likewise.
16292 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16294 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16295 (grub_xvasprintf): Likewise.
16297 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16299 Add const keyword to grub_env_get and gettextize week days.
16301 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16302 (grub_read_hook_datetime): Return const char *.
16303 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16305 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16307 (grub_get_weekday_name): Return const char *. Call gettext.
16308 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16309 char * and len as the argument. All users updated.
16310 (grub_script_argv_split_append): Receive const char *.
16311 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16312 * include/grub/env.h (grub_env_get): Likewise.
16313 (grub_env_read_hook_t): Return const char *.
16314 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16315 (grub_script_argv_split_append): Likewise.
16317 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16319 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16321 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16323 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16324 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16326 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16328 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16331 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16333 Fix mips compilation.
16335 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16337 (hashes): Use in embed decoder as well (for sizes).
16338 (dec_stream_header): Fix embed decompressor logic.
16339 (dec_stream_footer): Likewise.
16341 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16343 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16344 an error and not a fatal on unrecognised relocation types.
16346 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16348 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16349 Issue error rather than printf on unknown arguments.
16351 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16353 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16356 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16358 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16361 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16363 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16364 leftover debug printf.
16366 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16368 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16370 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16372 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16375 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16377 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16379 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16381 Allow all modules to perform serial IO
16383 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16384 * include/grub/serial.h (grub_serial_port_configure): New inline
16386 (grub_serial_port_fetch): Likewise.
16387 (grub_serial_port_put): Likewise.
16388 (grub_serial_port_fini): Likewise.
16389 (grub_serial_find): New proto.
16391 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16393 Put symlink at the end of the node and fix a potential
16396 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16397 Make symlink into an array.
16398 (set_rockridge): Set have_symlink and alloc_dirents.
16399 (grub_iso9660_read_symlink): Use new layout.
16400 (grub_iso9660_iterate_dir): Fix memory corruption.
16402 (grub_iso9660_dir): Set have_symlink.
16403 (grub_iso9660_open): Likewise.
16405 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16407 Remove local keyword.
16409 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16410 (version_test_gt): Likewise.
16411 (version_find_latest): Likewise.
16412 (gettext_printf): Likewise.
16413 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16415 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16417 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16419 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16421 Fix ZFS memory and resource leaks.
16423 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16426 (fill_vdev_info): New parameter inserted. All users updated.
16427 (check_pool_label): Likewise.
16428 (scan_disk): Likewise.
16429 (scan_devices): Close non-inserted disks.
16430 (fzap_iterate): Free l.
16431 (unmount_device): Free children descripto memory.
16433 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16435 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16436 argument (access out of bounds).
16438 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16440 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16443 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16445 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16448 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16450 Fix several memory leaks.
16452 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16453 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16454 (grub_cpio_dir): Likewise.
16455 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16456 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16457 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16458 (grub_romfs_label): Likewise.
16459 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16460 (squash_unmount): New function.
16461 (grub_squash_dir): Fix memory leak.
16462 (grub_squash_open): Likewise.
16463 (grub_squash_read): Likewise.
16464 (grub_squash_mtime): Likewise.
16465 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16466 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16467 * util/grub-fstest.c (fstest): Likewise.
16469 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16471 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16472 avoid accessing beyond the array.
16474 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16476 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16478 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16480 Several AFFS fixes.
16482 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16483 (GRUB_AFFS_FLAG_FFS): Removed.
16484 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16485 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16486 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16487 (grub_fshelp_node): Make block 32-bit.
16488 Add block_cache and last_block_cache.
16489 (grub_affs_read_block): Fill and use block cache.
16490 (grub_affs_read_file): Removed.
16491 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16493 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16495 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16497 (grub_affs_close): Free block cache.
16498 (grub_affs_read): Use grub_fshelp_read_file directly.
16500 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16502 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16505 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16507 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16509 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16512 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16514 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16516 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16517 byteswap when needed.
16519 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16521 Fix FreeBSD compilation.
16523 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16524 to avoid circular dependency.
16525 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16526 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16527 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16529 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16531 Fix ZFS crypto error types.
16533 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16534 (grub_gcm_decrypt): Likewise.
16535 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16538 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16542 * Makefile.util.def (10_illumos): New script.
16543 * configure.ac: Set COND_HOST_ILLUMOS.
16544 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16545 Support Illumos calls.
16546 (find_partition_start) [__sun__]: Likewise.
16547 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16548 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16549 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16550 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16552 * util/grub-probe.c (probe) [__sun__]: Do character check.
16553 * util/grub.d/10_illumos.in: New file.
16555 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16557 Support escaped commas in hostdisk.
16559 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16560 (find_grub_drive): Use unescape_cmp.
16561 (make_device_name): Escape commas.
16563 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16565 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16567 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16569 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16572 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16574 Support trampoline jumps on powerpc.
16576 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16578 (grub_dl_load_segments): Set mod->sz.
16579 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16581 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16583 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16585 (trampoline): New struct.
16586 (trampoline_template): New const.
16587 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16588 * include/grub/dl.h (grub_dl): Add sz element.
16589 [__powerpc__]: Follow __ia64__.
16590 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16591 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16592 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16593 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16595 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16597 ZFS crypto support.
16599 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16600 * grub-core/Makefile.core.def (zfscrypt): New module.
16601 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16602 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16603 it. All users updated.
16604 (grub_zfs_decrypt): New var.
16605 (grub_zfs_load_key): Likewise.
16606 (zio_checksum_functions): Add SHA256+MAC.
16607 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16608 (zio_read): Handle encrypted blocks.
16609 (zap_verify): Remove incorrect check.
16610 (fzap_iterate): Handle non-standard fzap.
16611 (zap_iterate): Likewise.
16612 (zap_iterate_u64): New function.
16613 (dnode_get_fullpath): Load keys.
16614 * grub-core/fs/zfs/zfscrypt.c: New file.
16615 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16616 (grub_crypto_ecb_encrypt): Make input const.
16617 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16618 (grub_crypto_ecb_encrypt): Make input const.
16619 (GRUB_CIPHER_AES): New macro.
16620 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16621 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16622 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16623 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16624 prefix. All users updated.
16625 (grub_zfs_add_key): New proto.
16626 (grub_zfs_decrypt): Likewise.
16627 (grub_zfs_load_key): Likewise.
16628 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16629 * util/grub-fstest.c (options): Add -K option.
16630 (argp_parser): Likewise.
16632 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16634 Support zle compression on ZFS.
16636 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16637 (decomp_table): Add zle.
16638 * include/grub/zfs/zio.h (zio_compress): Add zle.
16640 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16642 Support BtrFS embedding.
16644 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16645 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16646 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16647 * util/grub-setup.c (setup): Use fs embedding if available.
16648 Add additional sanity check.
16650 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16652 * util/grub-install.in: Fix condition for config_opt.
16654 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16656 Support third redundancy strip on raidz3.
16658 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16659 Return error on singularity. All users updated.
16660 (read_device): Don't stop on 3rd failure on raidz3.
16662 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16664 Support case-insensitive ZFS subvolumes.
16666 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16668 (zap_hash): Likewise.
16669 (name_cmp): New function.
16670 (zap_leaf_array_equal): New parameter case_insensitive.
16672 (zap_leaf_lookup): Likewise.
16673 (fzap_lookup): Likewise.
16674 (zap_lookup): Likewise.
16675 (dnode_get_path): New parameter case_insensitive. Retrieve case
16676 sensitiviness of a volume. All users updated.
16677 (dnode_get_fullpath): New parameter case_insensitive.
16679 (grub_zfs_dir): Set info.case_insensitiveness.
16681 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16683 Support second redundancy strip on raidz(2,3).
16685 * grub-core/fs/zfs/zfs.c (powx): New array.
16686 (powx_inv): Likewise.
16688 (xor_out): New function.
16689 (gf_mul): Likewise.
16690 (recovery): Likewise.
16691 (read_device): Use second redundancy strip.
16693 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16695 Use a power of generator representation of GF(256) multiplication group
16696 to save space time and complexity.
16698 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16699 (raid6_table2): Likewise.
16701 (powx_inv): Likewise.
16703 (grub_raid_block_mul): Replace with ...
16704 (grub_raid_block_mulx): ...this.
16705 (grub_raid6_init_table): Rewritten.
16706 (grub_raid6_recover): Use power of generator representation.
16708 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16710 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16711 for the right device.
16713 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16715 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16716 expected by grub-mkimage and it's more clear since there is no implicit
16719 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16721 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16723 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16725 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16727 * util/grub-mkrescue.in: Fix handling xorriso option.
16729 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16731 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16734 2011-11-03 crocket <crockabiscuit@gmail.com>
16736 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16738 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16740 XZ CRC64 and SHA256 support.
16742 * Makefile.util.def (libgrubmods): Add crc64.c.
16743 * grub-core/Makefile.core.def (crc64): New module.
16744 * grub-core/lib/crc64.c: New file.
16745 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16746 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16748 (MAX_HASH_SIZE): New define.
16749 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16750 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16751 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16752 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16753 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16754 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16755 Handle non-crc32 hashes.
16756 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16757 (dec_stream_header): Handle non-crc32 hashes.
16758 (dec_stream_footer): Likewise.
16759 (dec_block_header): Likewise.
16760 (dec_main): Likewise.
16761 (xz_dec_init): Likewise.
16762 (xz_dec_reset): Likewise.
16763 (xz_dec_end): Likewise.
16764 * util/import_gcry.py: Add CRC64 line.
16766 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16768 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16771 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16773 Make reiserfs label retrieval similar to other *_label functions.
16775 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16776 (REISERFS_MAX_LABEL_LENGTH): Removed.
16777 (REISERFS_LABEL_OFFSET): Likewise.
16778 (grub_reiserfs_label): Rewritten.
16780 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16782 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16785 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16787 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16789 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16791 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16792 drive failure on both raidz and raidz2.
16794 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16796 Fix RAIDZ(2) for >= 5 devices.
16798 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16799 asize argument. All users updated.
16801 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16805 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16806 (fill_vdev_info_real): Set ashift.
16807 (read_device): Rewrite RAIDZ part based on reverse engineering.
16809 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16811 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16812 don't report potentially unavialiable fields in debug output.
16813 (find_path): Fix double-free and memory leak.
16815 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16817 Read label on UFS1.
16819 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16820 (grub_ufs_fs): Always set .label.
16822 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16826 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16827 (grub_ufs_data): New field log2_blksz.
16828 (grub_ufs_read_file): Use shifts.
16829 (grub_ufs_mount): Check block size and logarithm it.
16831 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16833 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16836 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16838 Handle symlinks and long names on tar and cpio.
16840 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16841 (ATTR_FILE): Likewise.
16842 (ATTR_DIR): Likewise.
16843 (ATTR_LNK): Likewise.
16844 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16845 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16847 (grub_cpio_mount): Zero-fill data.
16848 (handle_symlink): New function.
16849 (grub_cpio_dir): Handle symlinks.
16850 (grub_cpio_open): Likewise.
16851 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16853 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16855 Fix iso9660 filename limitations and fix memory leaks.
16857 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16858 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16860 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16862 Fix JFS file name length limitations.
16864 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16865 (grub_jfs_diropen): Fix maximum filename length.
16866 (grub_jfs_getent): Fix filename length.
16867 (grub_jfs_lookup_symlink): Fix size checks.
16869 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16871 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16874 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16876 Leverage BFS implementation to read AFS.
16878 * Makefile.util.def (libgrubmods): Add afs.c.
16879 * grub-core/Makefile.core.def (afs): New module
16880 * grub-core/fs/afs.c: New file.
16881 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16883 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16885 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16887 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16889 * grub-core/fs/bfs.c: Run indent.
16891 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16893 BFS implementation based on the specification.
16895 * grub-core/fs/bfs.c: New file.
16896 * Makefile.util.def (libgrubmods): Add bfs.c.
16897 * grub-core/Makefile.core.def (bfs): New module.
16899 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16901 * util/grub-fstest.c (cmd_cp): Clarify error message.
16902 (cmd_cmp): Likewise.
16904 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16906 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16909 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16911 Remove afs and befs because of copyright problem.
16913 * grub-core/fs/afs.c: Removed.
16914 * grub-core/fs/afs_be.c: Removed.
16915 * grub-core/fs/befs.c: Removed.
16916 * grub-core/fs/befs_be.c: Removed.
16917 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16918 * grub-core/Makefile.core.def (afs): Removed.
16919 (afs_be): Likewise.
16921 (befs_be): Likewise.
16923 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16925 Prefer rockridge over Joliet.
16927 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16929 (set_rockridge): ... here.
16930 (grub_iso9660_mount): Check rockridge on the primary label when
16931 discovering. Ignore Joliet if Rockridge is present.
16933 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16935 Use shifts in nilfs2.
16937 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16938 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16939 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16940 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16941 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16942 (grub_nilfs2_entries_per_block): Replaced with ...
16943 (grub_nilfs2_log_entries_per_block_log): ... this.
16944 (grub_nilfs2_blocks_per_group): Replaced with ...
16945 (grub_nilfs2_blocks_per_group_log): ... this.
16946 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16947 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16948 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16949 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16950 (grub_nilfs2_palloc_entry_offset): Replaced ...
16951 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16952 (grub_nilfs2_dat_translate): Use shifts.
16953 (grub_nilfs2_read_inode): Likewise.
16954 (GRUB_MOD_INIT): Ensure that logs are correct.
16956 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16958 Use shifts in minix filesystem.
16960 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16961 (GRUB_MINIX_ZONE2SECT): Likewise.
16962 (grub_minix_data): Replace block_size with log_block_size.
16963 (grub_minix_read_file): Use shifts.
16964 (grub_minix_mount): Check block size and take a logarithm.
16966 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16968 Use shifts in squash4.
16970 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16971 (squash_mount): Check block size and take logarithm.
16972 (direct_read): Use shifts.
16974 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16976 Correct befs block counting logic.
16978 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
16979 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
16980 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
16981 (grub_afs_read_inode): Use block_shift.
16982 (RANGE_SHIFT): New definition.
16983 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
16984 unexpected conditions, use shifts and appropriate types.
16985 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
16987 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16989 * grub-core/disk/raid.c (scan_devices): Check partition.
16990 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16992 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16994 Support BFS (befs) UUID.
16996 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
16997 (grub_afs_small_data_element_header): New struct.
16998 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
16999 (grub_afs_read_attribute) [MODE_BFS]: New function.
17000 (grub_afs_iterate_dir): Allocate for complete inode.
17001 (grub_afs_mount): Likewise.
17002 (grub_afs_uuid) [MODE_BFS]: New function.
17003 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17005 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17007 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17008 (zfs_unmount): Fix memory leak.
17010 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17012 Support NTFS reparse points.
17014 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17015 (symlink_descriptor): New struct.
17016 (grub_ntfs_read_symlink): New function.
17017 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17018 (grub_ntfs_open): Likewise.
17020 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17022 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17024 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17026 fstest xnu_uuid subcommand.
17028 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17029 grub-core/commands/xnu_uuid.c.
17030 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17031 (fstest): Handle xnu_uuid.
17032 (options): Document xnu_uuid.
17033 (argp_parser): Parse xnu_uuid.
17035 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17037 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17038 -l argument. Add newline at the end if printing.
17039 (GRUB_MOD_INIT): Document -l.
17041 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17043 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17045 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17047 ZFS multi-device and version 33 support.
17049 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17050 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17051 (grub_zfs_data): Add multidev-ice-related fields.
17052 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17053 (dva_get_offset): Make dva const.
17054 (zfs_fetch_nvlist): New function.
17055 (fill_vdev_info_real): Likewise.
17056 (fill_vdev_info): Likewise.
17057 (check_pool_label): Likewise.
17058 (scan_disk): Likewise.
17059 (scan_devices): Likewise.
17060 (read_device): Likewise.
17061 (read_dva): Likewise.
17062 (zio_read_gang): Use read_dva.
17063 (zio_read_data): Likewise.
17064 (zap_leaf_lookup): Add missing endian conversion.
17065 (zap_verify): Add missing endian conversion. All users updated.
17066 (fzap_lookup): Likewise.
17067 (fzap_iterate): Likewise.
17068 (dnode_get_path): Handle SA bonus.
17069 (nvlist_find_value): Make input const. All users updated.
17070 (unmount_device): New function.
17071 (zfs_unmount): Use unmount_device.
17072 (zfs_mount): Use scan_disk.
17073 (zfs_mtime): New function.
17074 (grub_zfs_open): Handle system attributes.
17075 (fill_fs_info): Likewise.
17076 (grub_zfs_dir): Likewise.
17077 (grub_zfs_fs): Add mtime.
17078 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17079 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17080 (SA_MTIME_OFFSET): Likewise.
17081 (SA_SYMLINK_OFFSET): Likewise.
17082 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17083 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17084 (fstest): Support zfsinfo.
17085 (argp_parser): Likewise.
17087 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17089 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17092 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17096 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17097 sharing the same block. Iterate over correct number of indices.
17098 (dnode_get_path): Handle symlinks correctly.
17100 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17102 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17104 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17106 Read label on HFS+.
17108 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17109 (grub_hfsplus_btree_search): Fix types.
17110 (grub_hfsplus_label): Implement.
17112 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17114 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17116 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17118 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17120 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17122 Fix symlink handling on iso9660.
17124 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17126 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17127 (grub_iso9660_read_symlink): Moved most of code ...
17128 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17130 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17132 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17133 Use union to avoid breaking strict-aliasing rules.
17135 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17137 Support multi-extent iso files.
17139 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17141 (grub_fshelp_node): Revamp. All users updated.
17142 (FLAG_*): New enum.
17143 (read_node): New function.
17144 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17146 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17147 (get_node_size): New function.
17148 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17150 Fix memory leak on . and ..
17151 (grub_iso9660_read): Use read_node.
17152 (grub_iso9660_close): Free node.
17154 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17156 Fix tar 4G limit and handle paths containing dot.
17158 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17159 (canonicalize): New function.
17160 (grub_cpio_find_file): Use canonicalize. Store offs in
17162 (grub_cpio_dir): Use grub_disk_addr_t.
17163 (grub_cpio_open): Likewise.
17165 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17167 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17169 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17171 (grub_squash_inode): Add long_file and block_size.
17172 (grub_squash_cache_inode): New struct.
17173 (grub_squash_dirent): Make types into enum.
17174 (SQUASH_TYPE_LONG_REGULAR): New type.
17175 (grub_squash_frag_desc): Add field size.
17176 (SQUASH_BLOCK_FLAGS): New enum.
17177 (grub_squash_data): Use grub_squash_cache_inode.
17178 (grub_fshelp_node): Make ino_chunk 64-bit.
17179 (read_chunk): Minor argument change. All users updated.
17180 (squash_mount): Use correct le_to_cpu.
17181 (grub_squash_open): Handle LONG_REGULAR.
17182 (direct_read): New function.
17183 (grub_squash_read_data): Handle blocks correctly.
17185 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17187 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17189 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17191 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17193 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17195 Fix 2G limit on ZFS.
17197 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17199 (uberblock_verify): Likewise.
17200 (dmu_read): Likewise.
17201 (grub_zfs_read): Likewise. Remove invalid cast.
17203 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17205 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17206 (grub_jfs_blkno): Fix incorrect shift.
17207 (grub_jfs_read_file): Use more appropriate types.
17209 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17211 Support triple indirect on minix2 and minix3.
17213 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17214 Declare triple_indir_zone.
17215 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17218 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17222 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17223 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17224 Rename ctime to mtime. All users updated.
17225 (grub_minix_get_file_block): Fix types and double indirect computations.
17227 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17229 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17230 if no label is found.
17231 (grub_fat_iterate_dir): Fix file size type.
17232 (grub_fat_iterate_dir): Likewise.
17234 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17236 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17238 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17239 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17241 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17243 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17245 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17247 * util/import_gcry.py: Accept space between # and include.
17249 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17251 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17253 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17255 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17257 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17258 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17260 * grub-core/script/yylex.l: Add fine-grained #pragma.
17262 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17264 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17265 New inline function.
17266 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17268 (memset) [GRUB_UTIL]: Likewise.
17269 (memcmp) [GRUB_UTIL]: Likewise.
17271 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17273 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17274 inline function rather than a define.
17276 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17278 * util/grub-setup.c: Add missing include.
17280 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17282 * util/ieee1275/grub-ofpathname.c: Add missing include.
17284 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17286 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17287 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17290 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17292 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17295 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17297 * util/grub-install.in: Add datarootdir as per automake manual
17299 * util/grub-mknetdir.in: Likewise.
17301 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17303 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17305 * util/grub.d/10_kfreebsd.in: Likewise.
17306 * util/grub.d/10_linux.in: Likewise.
17307 * util/grub.d/10_netbsd.in: Likewise.
17308 * util/grub.d/10_windows.in: Likewise.
17309 * util/grub.d/20_linux_xen.in: Likewise.
17311 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17313 Remove redundant grub_kernel_image_size.
17315 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17317 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17318 the small code. It moves it only by few bytes but simplifies the code.
17319 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17321 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17322 (grub_kernel_image_size): Removed.
17323 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17324 (grub_kernel_image_size): Removed.
17325 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17326 compiled with Apple toolchain.
17327 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17328 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17329 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17330 (grub_total_module_size): Likewise.
17331 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17333 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17334 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17335 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17336 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17337 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17338 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17339 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17340 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17342 (grub_total_module_size): Removed.
17343 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17344 (image_targets): Likewise.
17345 Set .compressed_size to no field on sparc.
17346 (generate_image): Remove kernel_image_size handling.
17348 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17350 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17351 NULL pointer dereference.
17353 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17355 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17356 done with a dedicated section.
17358 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17359 Ensure the correct position of boot_path.
17360 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17361 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17363 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17364 * include/grub/boot.h: Removed. All references removed.
17365 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17367 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17369 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17371 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17374 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17376 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17378 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17380 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17381 Don't add the bogus brackets.
17383 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17387 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17388 * grub-core/Makefile.core.def (exfat): New module.
17389 * grub-core/fs/exfat.c: New file.
17390 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17391 (GRUB_FAT_ATTR_*): Make into an enum.
17392 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17393 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17394 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17395 (GRUB_FAT_MAXFILE): Removed.
17396 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17397 (grub_current_fat_bpb_t): New type.
17398 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17399 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17400 (grub_fat_dir_node_t): New type.
17401 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17402 (fat_log2) [MODE_EXFAT]: Removed.
17403 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17404 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17405 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17406 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17407 (grub_fat_label) [MODE_EXFAT]: New function.
17408 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17409 reserved_first_sector to 0.
17411 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17413 Move grub_reboot out of the kernel.
17415 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17416 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17417 * grub-core/lib/efi/reboot.c: ... here.
17418 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17419 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17420 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17421 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17422 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17423 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17424 * grub-core/lib/ieee1275/reboot.c: ... here.
17425 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17426 * grub-core/lib/mips/arc/reboot.c: ... here.
17427 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17428 * grub-core/lib/mips/loongson/reboot.c: ...here.
17429 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17430 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17431 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17432 * include/grub/i386/reboot.h: New file.
17433 * include/grub/mips/loongson/ec.h: Fix includes.
17434 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17435 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17436 * grub-core/lib/i386/reboot.c: New file.
17438 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17440 Make grub_prefix into module to fix the arbitrary limit and save
17443 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17444 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17445 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17446 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17447 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17448 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17449 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17450 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17451 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17452 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17453 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17454 * include/grub/ia64/efi/kernel.h: Removed.
17455 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17456 (grub_prefix): Removed.
17457 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17458 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17459 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17460 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17461 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17462 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17463 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17464 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17465 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17466 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17467 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17468 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17469 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17470 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17471 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17472 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17473 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17474 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17475 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17476 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17477 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17478 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17479 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17480 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17481 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17482 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17483 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17484 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17485 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17487 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17489 (image_targets): Likewise.
17490 (generate_image): Put prefix as a module.
17492 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17494 Replace grub_module_iterate with FOR_MODULES.
17496 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17497 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17498 (grub_efi_modules_addr): ...this.
17499 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17500 (grub_efi_init): Set grub_modbase.
17501 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17502 (grub_modbase): New variable.
17503 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17504 (grub_modbase): New variable.
17505 (grub_machine_init): Set grub_modbase.
17506 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17507 (grub_modbase): New variable.
17508 (grub_machine_init): Set grub_modbase.
17509 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17510 (grub_modbase): New variable.
17511 (grub_machine_init): Set grub_modbase.
17512 * grub-core/kern/main.c (grub_module_iterate): Remove.
17513 (grub_modules_get_end): Use grub_modbase.
17514 (grub_load_modules): Use FOR_MODULES.
17515 (grub_load_config): Likewise.
17516 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17517 (grub_modbase): New variable.
17518 (grub_machine_init): Set grub_modbase.
17519 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17520 (grub_modbase): New variable.
17521 (grub_machine_init): Set grub_modbase.
17522 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17524 (grub_modbase): New variable.
17525 (grub_machine_init): Set grub_modbase.
17526 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17527 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17528 (grub_module_iterate): Likewise.
17529 (grub_modbase): New variable declaration.
17530 (FOR_MODULES): New macro.
17532 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17534 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17535 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17537 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17539 Fix few obvious type discrepancies.
17541 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17542 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17543 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17545 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17546 and connected types.
17547 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17549 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17550 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17551 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17552 and connected types.
17554 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17556 Fix python 3.x incompatibilities.
17558 * gentpl.py: Put brackets around print strings.
17559 * util/import_gcry.py: Open explicitly as utf-8.
17560 Use in instead of has_key.
17562 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17564 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17565 (GRUB_XFS_INO_AGBITS): Make into inline function.
17566 (GRUB_XFS_INO_INOINAG): Likewise.
17567 (GRUB_XFS_INO_AG): Likewise.
17568 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17569 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17570 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17571 (GRUB_XFS_EXTENT_SIZE): Likewise.
17572 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17573 (GRUB_XFS_NEXT_DIRENT): Likewise.
17574 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17575 (grub_xfs_read_file): Fix offset type.
17577 2011-10-15 Robert Millan <rmh@gnu.org>
17579 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17581 2011-10-15 Robert Millan <rmh@gnu.org>
17583 Fix build problem on FreeBSD and GNU/kFreeBSD.
17585 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17587 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17589 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17591 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17593 (grub_hfsplus_btree_recoffset): Likewise.
17594 (grub_hfsplus_btree_recptr): Likewise.
17595 (grub_hfsplus_find_block): Likewise.
17596 (grub_hfsplus_btree_search): Likewise.
17597 (grub_hfsplus_read_block): Likewise.
17598 (grub_hfsplus_read_file): Likewise.
17599 (grub_hfsplus_mount): Likewise.
17600 (grub_hfsplus_btree_iterate_node): Likewise.
17601 (grub_hfsplus_btree_search): Likewise.
17602 (grub_hfsplus_iterate_dir): Likewise.
17603 (grub_hfsplus_read): A small code simplification.
17605 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17607 * grub-core/kern/emu/hostdisk.c
17608 (convert_system_partition_to_system_disk): Don't assume that children
17609 of mapper nodes are mapper nodes.
17611 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17613 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17614 * include/grub/misc.h (grub_isxdigit): New function.
17615 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17616 switched to grub_isxdigit.
17617 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17618 number starting with a letter.
17620 2011-10-09 Robert Millan <rmh@gnu.org>
17622 LVM support for FreeBSD and GNU/kFreeBSD.
17624 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17626 (LVM_DEV_MAPPER_STRING): Move from here ...
17627 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17628 * util/getroot.c: Include `<grub/util/lvm.h>'.
17629 (grub_util_get_dev_abstraction): Enable
17630 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17631 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17632 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17633 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17635 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17637 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17638 when LVM abstraction is required for ${GRUB_DEVICE}.
17640 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17642 Add support for LZO compression in GRUB:
17643 - import of minilzo library,
17644 - LZO decompression for btrfs,
17645 - lzop files decompression.
17647 * grub-core/io/lzopio.c: New file.
17648 * grub-core/lib/adler32.c: Likewise.
17649 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17650 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17651 * grub-core/lib/minilzo/minilzo.c: Likewise.
17652 * grub-core/lib/minilzo/minilzo.h: Likewise.
17653 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17654 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17655 grub-core/lib/minilzo/minilzo.c to common.
17656 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17657 cflags in cppflags.
17658 * grub-core/Makefile.core.def (btrfs): Likewise.
17659 * grub-core/Makefile.core.def (lzopio): New module.
17660 (adler32): Likewise.
17661 * grub-core/fs/btrfs.c: Include minilzo.h.
17662 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17663 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17664 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17665 (grub_btrfs_lzo_decompress): New function.
17666 (grub_btrfs_extent_read): Add support for LZO compression type.
17667 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17668 (GRUB_USHRT_MAX): Likewise.
17669 (GRUB_UINT_MAX): Likewise.
17670 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17671 (UINT_MAX): Likewise.
17672 (CHAR_BIT): Likewise.
17673 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17674 grub-core/lib/posix_wrap/limits.h
17675 (UCHAR_MAX): Likewise.
17676 * include/grub/file.h (grub_file_filter_id): New compression filter
17677 GRUB_FILE_FILTER_LZOPIO.
17678 * include/grub/file.h (grub_file_filter_id): Set
17679 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17680 * include/grub/types.h (grub_get_unaligned16): New function.
17681 (grub_get_unaligned32): Likewise.
17682 (grub_get_unaligned64): Likewise.
17683 * util/import_gcry.py (cryptolist): Add adler32.
17685 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17687 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17688 in perspective decreases the complexity of build system and fixes
17689 compilation right now.
17691 2011-10-01 Ales Nesrsta <starous@volny.cz>
17693 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17694 (fixed problem related to using UHCI with coreboot).
17696 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17698 * gentpl.py: Use Autogen macros so that the output template file
17699 (Makefile.tpl) size is reduced.
17701 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17703 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17706 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17708 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17709 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17711 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17713 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17716 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17718 Remove extra declaration of sleep for mingw32.
17720 * util/misc.c (sleep) [__MINGW32__]: Removed.
17721 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17723 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17725 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17727 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17729 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17730 (grub_netbsd_btinfo_bootwedge): New struct.
17731 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17733 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17735 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17737 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17740 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17742 Fix incorrect identifiers in bash-completion.
17744 * util/bash-completion.d/grub-completion.bash.in
17745 (_grub_mkpasswd-pbkdf2): Rename to ...
17746 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17747 (_grub_script-check): Rename to ...
17748 (_grub_script_check): ... this. All users updated.
17750 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17752 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17753 Return 0 if disk isn't biosdisk.
17755 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17757 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17759 * Makefile.util.def (grub-fstest): Likewise.
17761 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17763 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17764 Get sector size from disk label.
17766 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17768 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17769 */README* as well as README*.
17770 Reported by: Axel Beckert.
17772 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17774 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17775 case of less than 256 MiB of RAM.
17777 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17779 * grub-core/commands/wildcard.c (make_regex): Handle @.
17781 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17783 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17785 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17787 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17788 AC_LANG_CONFTEST macros.
17790 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17792 Add grub-fstest option to uncompress data for commands.
17794 * util/grub-fstest.c (uncompress): New var.
17795 (options): New option -u.
17797 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17799 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17800 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17802 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17804 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17805 file type was not recognized correctly (not gzip or corrupted).
17807 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17809 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17810 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17812 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17814 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17816 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17817 video_radeon_fuloong2e.
17818 * grub-core/video/radeon_fuloong2e.c: New file.
17819 * include/grub/video.h (grub_video_id_t): Add new ID
17820 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17822 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17824 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17826 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17827 that PRID matches the detected subplatform and reset the subplatform
17830 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17832 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17834 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17836 Fix PCI iterating on functions >= 4.
17838 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17839 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17841 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17842 (grub_pci_read): Fix bitmask.
17843 (grub_pci_read_word): Likewise.
17844 (grub_pci_read_byte): Likewise.
17845 (grub_pci_write): Likewise.
17846 (grub_pci_write_word): Likewise.
17847 (grub_pci_write_byte): Likewise.
17849 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17851 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17852 can still be specified in TARGET_CFLAGS)
17854 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17856 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17858 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17859 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17860 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17861 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17862 (FULOONG): Rename to ...
17863 (FULOONG2F): ... this. All users updated.
17864 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17865 (machtype_fuloong2f_str): ... this.
17866 (machtype_fuloong2e_str): New string.
17867 Check for machtype_fuloong2e_str.
17868 * grub-core/loader/mips/linux.c (loongson_machtypes)
17869 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17870 * grub-core/term/serial.c (loongson_defserial)
17871 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17872 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17873 loongson_defserial.
17874 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17876 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17877 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17878 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17879 to IMAGE_FULOONG2F_FLASH. All users updated.
17880 (image_targets): Rename images.
17881 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17883 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17885 Make enable of disk cache statistics code configurable.
17887 * configure.ac: --enable-cache-stats added.
17888 * config.h.in (DISK_CACHE_STATS): New define.
17889 * grub-core/Makefile.core.def (cacheinfo): New command.
17890 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17891 * grub-core/commands/cacheinfo.c: New file.
17892 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17893 moved to cacheinfo.c.
17894 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17896 * include/grub/disk.h: Likewise.
17898 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17900 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17901 * grub-core/Makefile.am: Likewise.
17903 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17905 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17908 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17910 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17912 (grub_jfs_lookup_symlink): Use correct starting inode.
17914 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17916 * util/grub-setup.c (main): Add missing gcry initialisation.
17918 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17920 Don't accept text modes on EFI when booting Linux.
17922 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17923 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17925 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17926 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17928 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17929 use of "/path/.." as in grub-install for EFI as well as handling
17930 symlinks correctly.
17931 Fixes Debian bug #637768.
17933 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17935 * util/grub-probe.c: Remove duplicate #include.
17937 2011-08-10 Robert Millan <rmh@gnu.org>
17939 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17941 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17943 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17944 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17946 2011-08-03 Robert Millan <rmh@gnu.org>
17948 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17949 la_array as packed.
17950 Reported by: Zachary Bedell
17952 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17954 * configure.ac: The Loongson port requires grub-mkfont due to its
17955 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17958 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17960 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17961 processing arguments (otherwise help2man fails when GRUB has not yet
17964 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17966 New script grub-mkstandalone.
17968 * Makefile.util.def (grub-mkstandalone): New script.
17969 * docs/man/grub-mkstandalone.h2m: New file.
17970 * util/grub-mkstandalone.in: Likewise.
17972 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17974 Support ATA disks with 4K sectors.
17976 * include/grub/ata.h (grub_ata): New member log_sector_size.
17977 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
17978 (grub_ata_identify): Read sector size.
17979 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
17981 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17983 * util/grub-install.in: Don't use uhci outside of x86.
17985 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17987 * util/grub-mkrescue.in: Add missing quotes.
17989 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17991 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
17994 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17996 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
17998 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18000 * include/grub/video.h: add missing EXPORT_FUND on
18001 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18003 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18005 * include/grub/mips/kernel.h: Fix define conflict.
18007 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18009 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18012 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18014 Preferred resolution detection for VBE.
18016 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18017 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18018 the Flat Panel extension, in line with the X.org VESA driver.
18019 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18021 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18022 (grub_vbe_bios_read_edid): Likewise.
18023 (grub_vbe_get_preferred_mode): Likewise.
18024 (grub_video_vbe_setup): When the mode is "auto", try to get the
18025 preferred mode from VBE, and use the largest mode that is no larger
18026 than the preferred mode (some BIOSes expose a preferred mode that is
18027 not in their mode list!). If this fails, fall back to 640x480 as a
18028 safe conservative choice.
18029 (grub_video_vbe_get_edid): New function.
18030 (grub_video_vbe_adapter): Add get_edid.
18031 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18032 (struct grub_video_adapter): Add get_edid.
18033 (grub_video_edid_checksum): Add prototype.
18034 (grub_video_edid_preferred_mode): Likewise.
18035 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18038 * grub-core/commands/videoinfo.c (print_edid): New function.
18039 (grub_cmd_videoinfo): Print EDID if available.
18041 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18042 is more appropriate on a wider range of platforms than 640x480.
18043 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18046 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18048 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18050 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18052 * po/POTFILES.in: Regenerate.
18054 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18056 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18057 incorrect memory usage.
18059 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18061 * util/grub-install.in: Source grub-mkconfig_lib.
18063 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18065 Remove getroot.c from core on emu platform.
18067 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18069 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18071 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18072 * util/getroot.c (get_win32_path): ... here.
18073 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18074 * util/getroot.c (fini_libzfs): ... here.
18075 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18076 * util/getroot.c (grub_get_libzfs_handle): ... here.
18077 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18079 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18080 * grub-core/kern/emu/misc.c
18081 (grub_make_system_path_relative_to_its_root): Moved from here...
18082 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18083 * grub-core/kern/emu/getroot.c: Moved from here ...
18084 * util/getroot.c: ... here. All users updated.
18085 * grub-core/kern/emu/raid.c: Moved from here ...
18086 * util/raid.c: ... here. All users updated.
18088 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18090 * po/POTFILES.in: Regenerate.
18092 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18094 Fix compilation on GNU/Linux.
18096 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18098 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18099 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18100 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18102 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18103 2011-07-07 Michael Gorven <michael@gorven.za.net>
18104 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18106 LUKS and GELI support.
18108 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18109 grub-core/disk/luks.c, grub-core/disk/geli.c,
18110 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18111 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18112 grub-core/lib/arg.c.
18113 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18114 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18115 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18116 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18117 (grub-bin2h): Add libgcry.a.
18118 (grub-mkimage): Likewise.
18119 (grub-mkrelpath): Likewise.
18120 (grub-script-check): Likewise.
18121 (grub-editenv): Likewise.
18122 (grub-mkpasswd-pbkdf2): Likewise.
18123 (grub-pe2elf): Likewise.
18124 (grub-fstest): Likewise.
18125 (grub-mkfont): Likewise.
18126 (grub-mkdevicemap): Likewise.
18127 (grub-probe): Likewise.
18128 (grub-ofpath): Likewise.
18129 (grub-mklayout): Likewise.
18130 (example_unit_test): Likewise.
18131 (grub-menulst2cfg): Likewise.
18132 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18133 * grub-core/Makefile.core.def (cryptodisk): New module.
18136 * grub-core/disk/AFSplitter.c: New file.
18137 * grub-core/disk/cryptodisk.c: Likewise.
18138 * grub-core/disk/geli.c: Likewise.
18139 * grub-core/disk/luks.c: Likewise.
18140 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18142 (grub_util_get_dm_abstraction): New function.
18143 (grub_util_follow_gpart_up): Likewise.
18144 (grub_util_get_geom_abstraction): Likewise.
18145 (grub_util_get_dev_abstraction): Use new functions.
18146 (grub_util_pull_device): Pull GELI and LUKS.
18147 (grub_util_get_grub_dev): Handle LUKS and GELI.
18148 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18149 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18150 (follow_geom_up): Removed.
18151 (grub_util_fd_seek): New function.
18152 (open_device): Use grub_util_fd_seek.
18153 (nread): Rename to ..
18154 (grub_util_fd_read): ... this. All users updated.
18155 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18156 (grub_crypto_cbc_decrypt): Likewise.
18157 (grub_crypto_hmac_write): Likewise.
18158 (grub_crypto_hmac_buffer): Likewise.
18159 (grub_password_get): Extend to util.
18160 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18161 New member modname.
18162 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18163 * include/grub/cryptodisk.h: New file.
18164 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18165 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18167 (grub_util_follow_gpart_up): New proto.
18168 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18169 (grub_util_fd_read): Likewise.
18170 (grub_cryptodisk_cheat_mount): Likewise.
18171 (grub_util_cryptodisk_print_uuid): Likewise.
18172 (grub_util_get_fd_sectors): Likewise.
18173 * util/grub-fstest.c (mount_crypt): New var.
18174 (fstest): Mount crypto if requested.
18175 (options): New option -C.
18176 (argp_parser): Parse -C.
18177 (main): Init and fini gcry.
18178 * util/grub-install.in: Support cryptodisk install.
18179 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18180 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18182 (prepare_grub_to_access_device): Likewise.
18183 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18184 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18185 (probe_cryptodisk_uuid): New function.
18186 (probe_abstraction): Likewise.
18187 (probe): Use new functions.
18188 * util/import_gcry.py: Create Makefile.utilgcry.def.
18189 Add modname member.
18191 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18193 Lazy device scanning.
18195 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18196 (grub-setup): Remove util/raid.c.
18197 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18198 * grub-core/disk/lvm.c (scan_depth): New variable.
18199 (grub_lvm_iterate): Rescan if necessary.
18200 (find_lv): New function based on grub_lvm_open.
18201 (grub_lvm_open): Use find_lv. Rescan on error.
18202 (is_node_readable): New function.
18203 (is_lv_readable): Likewise.
18204 (grub_lvm_scan_device): Skip already found disks.
18205 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18206 Stop if searched device is found and readable.
18207 * grub-core/disk/raid.c (inscnt): New variable.
18208 (scan_depth): Likewise.
18209 (scan_devices): New function based on grub_raid_register. Abort if
18210 looked for device is found.
18211 (grub_raid_iterate): Rescan if needed.
18212 (find_array): NEw function based on -grub_raid_open.
18213 (grub_raid_open): Use find_array and rescan.
18214 (insert_array): Set became_readable_at.
18215 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18216 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18218 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18219 (grub_util_pull_device): New function.
18220 (grub_util_get_grub_dev): Call grub_util_pull_device.
18221 * util/raid.c: Moved to ..
18222 * grub-core/kern/emu/raid.c: ... here.
18223 (grub_util_raid_getmembers): New parameter "bootable".
18224 All users updated. Support 1.x.
18225 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18227 * include/grub/disk.h (grub_disk_pull_t): New enum.
18228 (grub_disk_dev): Change iterate prototype.
18230 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18232 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18233 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18234 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18235 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18237 * include/grub/util/raid.h: Removed.
18239 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18241 * po/POTFILES.in: Regenerate.
18243 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18245 Unify sparc init with other ieee1275.
18247 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18248 instead of kern/sparc64/ieee1275/init.c.
18249 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18250 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18251 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18252 grub/machine/kernel.h.
18253 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18254 (grub_claim_heap) [__sparc__]: Use sparc version.
18255 (grub_machine_init): Moved args parsing to
18256 (grub_parse_cmdline): ...this.
18257 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18258 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18260 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18262 Move BOOTP to separate file.
18264 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18265 * grub-core/net/net.c: Move all BOOTP functions to
18266 * grub-core/net/bootp.c: ... here.
18268 Use frame interface on PXE.
18270 * grub-core/Makefile.core.def (pxecmd): Removed.
18271 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18272 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18273 * grub-core/i386/pc/pxe.c: Moved from here ...
18274 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18275 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18276 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18278 EFI network support.
18280 * grub-core/Makefile.core.def (efinet): New module.
18281 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18283 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18285 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18286 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18287 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18288 * grub-core/net/drivers/efi/efinet.c: New file.
18289 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18290 (grub_efi_net_config): New extern var.
18292 Various cleanups and bugfixes.
18294 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18296 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18297 disk declared as partition.
18298 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18300 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18301 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18302 (grub_debug_zalloc): Likewise.
18303 (grub_debug_realloc): Likewise.
18304 (grub_debug_memalign): Likewise.
18305 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18306 Check that target is IPv4.
18307 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18308 local-mac-address as fallback.
18309 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18311 * grub-core/net/ip.c (ipchksum): Rename to ...
18312 (grub_net_ip_chksum): ... this. All users updated.
18313 (grub_net_recv_ip_packets): Special handling for DHCP.
18314 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18316 Unify prefix handling
18318 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18319 (grub_machine_get_bootlocation): ... this.
18320 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18321 (grub_machine_get_bootlocation): ... this.
18322 (grub_prefix): New variable.
18324 (root_dev): New variable.
18326 (main): Use new variables.
18327 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18329 (grub_machine_get_bootlocation): ... this.
18330 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18331 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18332 (grub_machine_get_bootlocation): ... this.
18333 (grub_machine_set_prefix): Removed.
18334 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18335 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18337 (grub_machine_get_bootlocation): ... this.
18338 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18339 (grub_set_prefix_and_root): ... this. All users updated.
18340 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18342 (grub_machine_get_bootlocation): ... this.
18343 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18344 (grub_machine_get_bootlocation): New proto.
18345 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18347 Less intrusive and more reliable seek on network implementation.
18349 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18350 (grub_file_seek): Don't call grub_file_net_seek.
18351 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18352 (grub_net_fs_read_real): .. this.
18353 (grub_net_seek_real): Use net->offset.
18354 (grub_net_fs_read): Seek if necessary.
18356 Unify IEEE1275 netwotk config with the other platforms.
18358 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18360 (grub_machine_get_bootlocation): Support network.
18361 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18362 Support type and device parsing.
18363 (grub_ieee1275_get_device_type): New function.
18364 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18366 (grub_ieee1275_net_config_real): ... this.
18367 (grub_ofnet_probecards): Removed.
18368 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18369 * include/grub/ieee1275/ofnet.h: Removed.
18370 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18372 (grub_ieee1275_get_device_type): New function.
18374 Unify network device closing across platforms and make more robust.
18376 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18378 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18380 * grub-core/net/net.c (grub_net_network_level_interface_register):
18382 (grub_net_card_unregister): Close all interfaces.
18383 (receive_packets): Don't poll if no iterfaces are registered.
18385 (grub_net_fini_hw): New function.
18386 (grub_net_restore_hw): Likewise.
18387 (fini_hnd): New variable.
18388 (GRUB_MOD_INIT): Register preboot hook.
18389 (GRUB_MOD_FINI): Run and unregister preboot hook.
18391 Poll network cards when idle.
18393 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18394 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18395 * grub-core/net/net.c (receive_packets): Save last poll time.
18396 (grub_net_poll_cards_idle_real): New function.
18397 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18398 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18399 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18401 Rename ofnet interfaces.
18403 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18404 (grub_ofnet_findcards): Use ofnet_%s names.
18406 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18408 Cleanup socket opening.
18410 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18411 (grub_net_fs_close): Likewise.
18412 (grub_net_fs_read_real): Use eof member.
18413 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18414 (+grub_net_udp_close): New inline function.
18416 * include/grub/net/tftp.h: Moved to the top of ...
18417 * grub-core/net/tftp.c: ... here.
18418 * include/grub/net/ip.h: Moved mostly to the top of ...
18419 * grub-core/net/ip.c: ... here.
18420 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18421 * grub-core/net/ethernet.c: ... here.
18423 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18425 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18428 * include/grub/net/ip.h (ipv4_ini): Removed.
18429 (ipv4_fini): Likewise.
18431 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18432 (grub_net_send_ip_packets): Likewise.
18434 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18436 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18437 grub_read_cmos prototype.
18439 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18441 VGA text support in qemu-mips
18443 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18444 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18445 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18447 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18448 * grub-core/kern/vga_init.c: ... this.
18449 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18450 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18451 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18453 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18454 GRUB_MACHINE_PCI_IO_BASE.
18456 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18458 MIPS qemu flash support.
18460 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18462 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18463 (grub_machine_init): Probe memory if its size isn't known.
18464 * util/grub-mkimage.c (image_targets): Add flash targets.
18465 (generate_image): Handle flash targets.
18467 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18469 MIPS qemu at_keyboard support.
18471 * gentpl.py (videoinkernel): Add qemu-mips.
18472 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18473 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18474 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18476 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18477 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18478 * grub-core/term/serial.c (grub_serial_register)
18479 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18481 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18483 CMOS support on sparc.
18485 * gentpl.py (cmos): Add powerpc and sparc.
18486 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18488 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18489 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18490 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18491 grub_set_datetime_cmos.
18492 * grub-core/lib/ieee1275/cmos.c: New file.
18493 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18494 (find_rtc): Set no_ieee1275_rtc on error.
18495 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18496 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18497 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18498 fail. Move value to argument. All users updated
18499 (grub_cmos_write): Likewise.
18500 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18501 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18502 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18503 grub_get_datetime_cmos and grub_set_datetime_cmos.
18505 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18507 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18508 sourcing grub-mkconfig_lib.
18509 * util/update-grub_lib.in: Likewise.
18510 * util/grub.d/00_header.in: Likewise.
18511 * util/grub.d/10_hurd.in: Likewise.
18512 * util/grub.d/10_kfreebsd.in: Likewise.
18513 * util/grub.d/10_linux.in: Likewise.
18514 * util/grub.d/10_netbsd.in: Likewise.
18515 * util/grub.d/10_windows.in: Likewise.
18516 * util/grub.d/20_linux_xen.in: Likewise.
18517 * util/grub.d/30_os-prober.in: Likewise.
18519 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18521 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18522 default_bg_color rather than black.
18523 (grub_gfxterm_fullscreen): Likewise.
18524 (grub_gfxterm_background_color_cmd): Save new background color in
18527 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18529 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18531 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18533 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18536 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18538 Chainloading on coreboot support.
18540 * grub-core/Makefile.core.def (chain): Add coreboot.
18541 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18543 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18545 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18548 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18550 Implement time command.
18552 * grub-core/Makefile.core.def (time): New module.
18553 * grub-core/commands/time.c: New file.
18554 * grub-core/script/parser.y: Remove "time" keyword.
18555 * grub-core/script/yylex.l: Likewise.
18557 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18559 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18561 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18563 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18564 when handling leftovers.
18566 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18568 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18569 so that help2man doesn't fail.
18571 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18573 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18574 type in pointers on sparc64.
18575 (get_card_packet): Likewise.
18577 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18579 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18581 (grub_cmd_videoinfo): Fetch current video mode.
18583 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18585 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18586 because of underlying system restrictions.
18588 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18590 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18593 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18595 Coreboot video support.
18597 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18599 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18600 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18602 * grub-core/kern/i386/int.S: ... here.
18603 * grub-core/video/i386/pc/vbe.c: Updated includes.
18604 * grub-core/video/i386/pc/vga.c: Likewise.
18605 * include/grub/i386/coreboot/memory.h
18606 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18607 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18608 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18609 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18610 Disable interrupts.
18611 * include/grub/i386/pc/vga.h: Removed. All users updated.
18613 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18615 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18616 definitions for dprintf.
18617 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18619 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18621 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18623 (get_card_packet): Likewise.
18625 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18627 Display the path of the file when file is not found
18629 * grub-core/fs/fat.c: Display the filename when file is not found.
18630 * grub-core/fs/fshelp.c: Likewise.
18631 * grub-core/fs/hfs.c: Likewise.
18632 * grub-core/fs/jfs.c: Likewise.
18633 * grub-core/fs/minix.c: Likewise.
18634 * grub-core/fs/ufs.c: Likewise.
18635 * grub-core/fs/btrfs.c: Likewise.
18636 * grub-core/commands/i386/pc/play.c: Likewise.
18638 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18640 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18641 pointer checks before calling grub_free().
18642 * grub-core/commands/wildcard.c (match_devices): Likewise.
18643 * grub-core/commands/wildcard.c (match_files): Likewise.
18644 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18645 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18646 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18647 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18648 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18649 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18650 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18651 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18652 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18654 2011-06-25 Patrick <p55@mailinator.com>
18656 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18658 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18660 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18661 (grub_pxe_send): Likewise.
18662 (GRUB_MOD_INIT): Fix types.
18664 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18666 * grub-core/io/xzio.c: Fix code style issues
18668 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18669 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18671 Network infrastructure.
18672 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18674 * include/grub/net/arp.h: New file.
18675 * include/grub/net/device.h: Likewise.
18676 * include/grub/net/ethernet.h: Likewise.
18677 * include/grub/net/ip.h: Likewise.
18678 * include/grub/net/netbuff.h: Likewise.
18679 * include/grub/net/tftp.h: Likewise.
18680 * include/grub/net/udp.h: Likewise.
18681 * include/grub/ieee1275/ofnet.h: Likewise.
18682 * include/grub/emu/export.h: Likewise.
18683 * include/grub/net.h: Likewise.
18684 * grub-core/net/arp.c: Likewise.
18685 * grub-core/net/ethernet.c: Likewise.
18686 * grub-core/net/ip.c: Likewise.
18687 * grub-core/net/udp.c: Likewise.
18688 * grub-core/net/tftp.c: Likewise.
18689 * grub-core/net/netbuff.c: Likewise.
18690 * grub-core/net/net.c: Likewise.
18691 * grub-core/net/drivers/emu/emunet.c: Likewise.
18692 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18693 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18695 * grub-core/Makefile.core.def (net): New module.
18698 (emunet): Likewise.
18699 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18701 * grub-core/kern/device.c (grub_net_open) : New variable.
18702 (grub_device_open): Handle network device.
18703 (grub_device_close): Likewise.
18704 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18705 (grub_grubnet_fini): Likewise.
18706 (grub_file_seek): Seek in network device.
18707 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18708 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18710 (grub_machine_fini): Call grub_grubnet_fini.
18711 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18713 (grub_ieee1275_get_aliasdevname): New function.
18714 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18715 Add unofficial Solaris network info.
18716 (grub_multiboot_make_mbi): Likewise.
18717 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18718 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18719 * include/grub/device.h (grub_fs): Removed.
18720 * include/grub/err.h (grub_err_t): Add network-related values.
18721 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18722 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18723 (grub_ieee1275_get_aliasdevname): New proto.
18724 * include/grub/net.h: Rewritten.
18726 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18728 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18731 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18733 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18734 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18735 it truncates the output.
18736 Reported by: Ximin Luo.
18738 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18740 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18742 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18744 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18745 partmap before abstraction.
18747 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18749 * util/grub-mkconfig_lib.in: Add missing quotes.
18751 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18753 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18754 old method if mountinfo would return /dev/root and /dev/root doesn't
18757 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18761 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18762 (decomp_table): Add zlib entries.
18763 (zio_read): USe 8 bits for compression function rather than 3.
18764 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18766 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18768 * grub-core/disk/ahci.c: Add missing license statements.
18769 * grub-core/fs/romfs.c: Likewise.
18770 * grub-core/lib/ia64/setjmp.S: Likewise.
18771 * grub-core/loader/i386/pc/freedos.c: Likewise.
18772 * grub-core/loader/ia64/efi/linux.c: Likewise.
18773 * grub-core/video/colors.c: Likewise.
18774 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18776 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18780 * grub-core/Makefile.core.def (ata_pthru): Removed.
18781 (ahci): New module.
18783 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18785 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18787 (grub_hdparm_do_check_powermode_cmd): Likewise.
18788 (grub_hdparm_do_smart_cmd): Likewise.
18789 (grub_hdparm_set_val_cmd): Likewise.
18790 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18791 * grub-core/disk/ahci.c: New file.
18792 * grub-core/disk/ata.c: Factor out the low-level part into ...
18793 * grub-core/disk/pata.c: ... here.
18794 * grub-core/disk/ata_pthru.c: Contents moved to ...
18795 * grub-core/disk/pata.c: ... here.
18796 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18797 (grub_scsi_iterate): Use grub_scsi_names.
18798 (grub_scsi_open): Likewise.
18799 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18800 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18801 (grub_ata_regs_t): New struct.
18802 (grub_disk_ata_pass_through_parms): Likewise.
18803 (grub_ata_device): Renamed to ...
18804 (grub_ata): ... this.
18805 (grub_ata_dev): New struct.
18806 Removed all low-level inline functions.
18807 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18808 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18809 iterate hooks and open. All users updated.
18810 * util/grub-install.in: Handle AHCI disk module.
18812 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18814 Add support for DRI and RSTn markers in JPEG files.
18816 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18817 (JPEG_MARKER_RST0): Likewise.
18818 (JPEG_MARKER_RST1): Likewise.
18819 (JPEG_MARKER_RST2): Likewise.
18820 (JPEG_MARKER_RST3): Likewise.
18821 (JPEG_MARKER_RST4): Likewise.
18822 (JPEG_MARKER_RST5): Likewise.
18823 (JPEG_MARKER_RST6): Likewise.
18824 (JPEG_MARKER_RST7): Likewise.
18825 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18826 (grub_jpeg_decode_dri): New function.
18827 (grub_jpeg_decode_sos): Move image data related part into
18828 grub_jpeg_decode_data function.
18829 (grub_jpeg_decode_data): New function.
18830 (grub_jpeg_reset): New function.
18831 (grub_jpeg_decode_jpeg): Handle new markers.
18833 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18835 * util/ieee1275/ofpath.c (check_sas): Close fd.
18836 (main): Free of_path.
18837 Reported by: David Volgyes <dvolgyes>.
18839 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18841 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18842 Reported by: David Volgyes <dvolgyes>.
18844 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18846 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18848 Reported by: David Volgyes <dvolgyes>.
18850 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18852 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18854 Reported by: David Volgyes <dvolgyes>.
18856 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18858 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18859 Prevent memory leak.
18861 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18863 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18864 (main): Close file.
18865 Reported by: David Volgyes <dvolgyes>.
18867 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18869 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18870 to continue if allocation is failed.
18872 Reported by: David Volgyes <dvolgyes>.
18874 2011-06-23 David Volgyes <dvolgyes>
18876 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18879 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18881 Fix spurious warning.
18883 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18884 (acorn_partition_map_find): Use .bin member.
18886 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18888 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18889 /dev/root as a valid device.
18891 2011-06-23 Jim Meyering <meyering@redhat.com>
18893 Avoid NULL deref in grub_device_open.
18895 * grub-core/kern/device.c (grub_device_open): Don't dereference
18896 a NULL pointer upon failed grub_env_get.
18898 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18900 Support non-512B sectors and agglomerate reads.
18902 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18903 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18904 (disk_io_guid): Removed.
18905 (make_devices): Locate solely by BlockIO.
18906 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18907 (grub_efidisk_read): Use read_blocks.
18908 (grub_efidisk_write): Use write_blocks.
18909 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18911 (get_safe_sectors): Handle non-512B sectors.
18912 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18914 (grub_biosdisk_write): Handle non-512B sectors.
18915 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18916 (grub_scsi_read): Remove special non-512B block handling (now handled
18918 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18919 and do sanity checks.
18920 (grub_disk_adjust_range): Handle non-512B sectors.
18921 (transform_sector): New function.
18922 (grub_disk_read_small): Likewise.
18923 (grub_disk_read): Rewritten.
18924 (grub_disk_write): Handle non-512B sectors.
18925 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18927 (open_device): Use log_sector_size.
18928 (grub_util_biosdisk_read): Likewise.
18929 (grub_util_biosdisk_write): Likewise.
18930 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18932 (pc_partition_map_embed): Likewise.
18933 * include/grub/disk.h (grub_disk): New field log_sector_size.
18934 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18935 (GRUB_DISK_CACHE_BITS): Increased to 6.
18936 * util/grub-fstest.c (fstest): New command testload.
18937 (argp_parser): Likewise.
18939 2011-06-16 Robert Millan <rmh@gnu.org>
18941 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18942 `ata' driver on kernel of FreeBSD 9.
18944 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18945 (get_ataraid_disk_name): New functions.
18946 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18947 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18948 get_ataraid_disk_name() and get_ada_disk_name().
18950 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18952 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18955 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18957 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18958 `ftp.gnu.org' for `alpha.gnu.org'.
18960 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18962 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18963 partitions under /dev/disk/by-id/.
18965 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18967 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18968 after ten consecutive open failures. Scanning all the way up to
18969 10000 is excessive and can cause serious performance problems in
18970 some configurations.
18971 Fixes Ubuntu bug #787461.
18973 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18975 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18978 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
18979 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18981 Don't stat devices unless we have to.
18983 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
18984 dir == /dev/mapper.
18985 (grub_guess_root_device): Use already known os_dev if possible.
18986 * grub-core/kern/emu/hostdisk.c
18987 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
18988 if device is known to be a dm one.
18990 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
18992 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
18993 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
18994 Reported by: Pawel Tecza.
18996 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
18998 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
18999 (lsefisystab): Likewise.
19001 (lsefimmap): Likewise.
19002 (hdparm): Enable on qemu-mips.
19003 (setjmp): Add ia64 nodist.
19004 (serial): Simplify tags.
19006 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19008 * Makefile.util.def (grub-ofpathname): Install manual page.
19010 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19012 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19014 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19016 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19018 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19020 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19023 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19025 Use full 64-bit division.
19027 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19028 (grub_divmod64): ... this.
19029 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19032 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19034 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19037 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19039 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19040 to avoid accidents when debugging with 'sh -x'.
19041 * grub-core/gensyminfo.sh.in: Likewise.
19042 * tests/example_scripted_test.in: Likewise.
19043 * tests/grub_cmd_regexp.in: Likewise.
19044 * tests/grub_script_blanklines.in: Likewise.
19045 * tests/grub_script_dollar.in: Likewise.
19046 * tests/grub_script_expansion.in: Likewise.
19047 * tests/grub_script_final_semicolon.in: Likewise.
19048 * tests/partmap_test.in: Likewise.
19049 * tests/util/grub-shell-tester.in: Likewise.
19050 * tests/util/grub-shell.in: Likewise.
19052 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19054 Move gfxmenu color handling to video, so that gfxterm can use it
19057 * grub-core/gfxmenu/named_colors.c: Move to ...
19058 * grub-core/video/colors.c: ... here. Rename
19059 grub_gui_get_named_color to grub_video_get_named_color.
19060 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19061 * grub-core/video/colors.c (my_isxdigit): ... here.
19062 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19064 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19065 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19067 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19069 * include/grub/gui.h (grub_gui_color_t): Move to ...
19070 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19071 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19072 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19073 * include/grub/gui.h (grub_gui_map_color): Move to ...
19074 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19075 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19077 * include/grub/video.h (grub_video_get_named_color): ... here.
19078 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19079 * include/grub/video.h (grub_video_parse_color): ... here.
19081 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19083 (gfxmenu): Remove gfxmenu/named_colors.c.
19084 (video) [videomodules]: Add video/colors.c.
19086 Add a background_color command.
19088 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19090 (GRUB_MOD_INIT): Register background_color command.
19091 (GRUB_MOD_FINI): Unregister background_color command.
19092 (redraw_screen_rect): Allow blend/replace of text layer to be
19093 controlled independently from whether there is a background bitmap.
19094 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19097 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19099 Patch BPB in ntldr and chainloader --bpb.
19101 * grub-core/fs/fat.c: Include grub/fat.h.
19102 (grub_fat_bpb): Moved to ...
19103 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19104 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19106 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19108 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19110 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19112 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19113 (GRUB_MOD_INIT): Show --bpb.
19114 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19115 * grub-core/normal/main.c (features): New variable.
19116 (GRUB_MOD_INIT): Set feature_* variables.
19117 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19119 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19121 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19123 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19126 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19128 FreeDOS direct loading support.
19130 * docs/grub.texi (Supported OS): Add FreeDOS.
19131 * grub-core/Makefile.core.def (freedos): New module.
19132 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19134 (grub_relocator16_boot): Handle %ebx.
19135 * grub-core/lib/i386/relocator16.S: Likewise.
19136 * grub-core/loader/i386/pc/freedos.c: New file.
19138 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19140 Long Linux command line support.
19142 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19143 (maximal_cmdline_size): New variable.
19144 (allocate_pages): Use maximal_cmdline_size.
19145 (grub_cmd_linux): Set and use maximal_cmdline_size.
19146 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19147 (allocate_pages): Use maximal_cmdline_size.
19148 (grub_cmd_linux): Set and use maximal_cmdline_size.
19149 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19150 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19153 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19154 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19156 Improve devmapper support
19158 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19159 (grub_util_is_lvm): New function.
19160 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19161 than lvm if not dmraid.
19162 Handle mapped md nodes.
19163 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19164 (grub_util_device_is_mapped): ... this. Make always available. All users
19166 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19167 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19169 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19171 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19173 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19175 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19176 * grub-core/modinfo.sh.in: New file.
19177 * grub-core/Makefile.core.def (modinfo.sh): New script.
19178 * util/grub-mknetdir.in: Use modinfo.sh.
19179 * util/grub-mkrescue.in: Likewise.
19181 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19183 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19184 Fix potential usage of Elf32 instead of Elf64 when compiling on
19185 32-bit architecture. Add endianness macros while on it.
19187 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19189 Use mipsel- rather than mips- in directories involving mipsel ports to
19190 allow both endiannesses coexist.
19192 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19193 mips. All conditions adjusted.
19194 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19196 * util/grub-install.in: Adjust conditions to take renaming into account.
19197 * util/grub-mkimage.c (image_targets): Likewise. New target
19198 mips-qemu_mips-elf for bigendian mips.
19200 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19202 Avoid unnecessary copying on MIPS.
19204 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19205 early if src == dest.
19206 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19207 compression is none.
19209 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19211 Reduce memory footprint on SGI by putting modules before the kernel
19212 as opposed to after.
19214 * grub-core/Makefile.core.def (kernel): Increase linking address.
19215 (none_decompress): Likewise.
19216 (xz_decompress): Likewise.
19217 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19219 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19221 (grub_arch_modules_addr): New function.
19222 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19223 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19224 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19226 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19227 (grub_total_modules_size): ... this. Make global.
19228 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19229 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19231 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19232 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19233 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19234 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19235 * util/grub-mkimage.c (image_target_desc): New flag
19236 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19237 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19238 (generate_image): Handle images with modules before kernel.
19240 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19242 Prevent potential loss of memory map by overwrite on qemu-mips.
19244 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19245 Save ram size in $s4.
19246 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19247 All users changed to grub_arch_memsize.
19248 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19250 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19251 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19252 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19255 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19257 * .bzrignore: Remove grub-dumpbios.
19259 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19261 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19262 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19263 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19264 existing options which append).
19265 * docs/grub.texi (Simple configuration): Document new options.
19266 Reported by: Ian Jackson. Fixes Debian bug #617538.
19268 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19270 * util/grub-fstest.c (cmd_cat): New function.
19271 (fstest): Handle CMD_CAT.
19272 (options): Add cat.
19273 (argp_parser): Handle cat.
19275 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19277 * Makefile.util.def (grub-bin2h): Don't install.
19278 * docs/man/grub-bin2h.h2m: Remove.
19280 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19282 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19285 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19287 Reenable qemu-mips port.
19289 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19290 Fix small arc bug while on it.
19291 * gentpl.py: Handle qemu_mips.
19292 * grub-core/Makefile.am: Likewise.
19293 * grub-core/Makefile.core.def: Likewise.
19294 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19295 inappropriate includes.
19296 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19297 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19298 * grub-core/kern/main.c (grub_modules_get_end)
19299 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19300 * grub-core/kern/mips/qemu-mips: Moved to ..
19301 * grub-core/kern/mips/qemu_mips: ... this.
19302 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19303 (grub_machine_init): Call terminfo_init and serial_init.
19304 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19305 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19307 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19309 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19310 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19311 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19312 * include/grub/mips/qemu_mips/cmos.h: New file.
19313 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19314 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19316 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19317 Use correct mips-style address.
19318 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19319 (GRUB_TICKS_PER_SECOND): Removed.
19320 (grub_get_rtc): Likewise.
19321 (grub_cpu_idle): Likewise.
19322 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19324 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19325 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19326 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19327 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19328 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19329 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19330 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19331 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19333 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19337 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19338 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19340 * configure.ac: New target mips-arc.
19341 * gentpl.py: Likewise.
19342 * grub-core/Makefile.am: Likewise.
19343 * grub-core/Makefile.core.def: Likewise.
19344 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19345 (none_decompress): Likewise.
19346 (lsdev): New module.
19347 (datetime): Use lib/arc/datetime.c on ARC.
19348 (part_dvh): New module.
19349 * grub-core/commands/arc/lsdev.c: New file.
19350 * grub-core/disk/arc/arcdisk.c: Likewise.
19351 * grub-core/kern/mips/arc/init.c: Likewise.
19352 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19354 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19356 (grub_arch_dl_relocate_symbols): Likewise.
19357 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19358 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19359 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19361 * grub-core/lib/arc/datetime.c: New file.
19362 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19363 pci.h on non-loongson.
19364 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19365 (grub_linux_boot): Set unused registers to 0.
19366 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19367 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19368 * grub-core/mmap/mips/uppermem.c: ...here.
19369 * grub-core/partmap/dvh.c: New file.
19370 * grub-core/term/arc/console.c: Likewise.
19371 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19372 (grub_terminfo_set_current): Add terminal "arc".
19373 (grub_terminfo_readkey): Support ARC sequences.
19374 * include/grub/arc/arc.h: New file.
19375 * include/grub/arc/console.h: Likewise.
19376 * include/grub/disk.h (grub_disk_dev_id): Add
19377 GRUB_DISK_DEVICE_ARCDISK_ID.
19378 * include/grub/mips/arc/kernel.h: New file.
19379 * include/grub/mips/arc/memory.h: Likewise.
19380 * include/grub/mips/arc/time.h: Likewise.
19381 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19382 * include/grub/mips/kernel.h (grub_halt): ... here.
19383 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19385 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19386 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19387 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19388 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19390 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19392 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19393 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19394 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19395 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19396 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19397 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19398 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19399 (grub_phys_addr_t): Moved from here ...
19400 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19401 (grub_vtop): Moved from here ...
19402 * include/grub/mips/memory.h (grub_vtop): ... here.
19403 (grub_map_memory): Moved from here ...
19404 * include/grub/mips/memory.h (grub_map_memory): ... here.
19405 (grub_unmap_memory): Moved from here ...
19406 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19407 (grub_machine_mmap_iterate): Moved from here ...
19408 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19409 (grub_mmap_get_lower): Moved from here ...
19410 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19411 (grub_mmap_get_upper): Moved from here ...
19412 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19413 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19415 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19416 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19418 * include/grub/mips/time.h (grub_get_rtc): ... here.
19419 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19421 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19422 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19424 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19425 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19427 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19428 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19429 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19430 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19431 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19432 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19433 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19434 (GRUB_MACHINE_LINK_ADDR): Likewise.
19435 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19437 * util/grub-install.in: Run dvhtool on ARC.
19438 * util/grub-mkimage.c (image_targets): Add mips-arc.
19439 (generate_image): Handle ECOFF output for mips-arc.
19441 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19443 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19446 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19448 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19449 after enabling port.
19451 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19453 Skip incorrect USB devices.
19455 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19457 * include/grub/usb.h (grub_usb_err_t): New enum value
19458 GRUB_USB_ERR_BADDEVICE.
19460 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19462 Fuloong video init support.
19464 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19466 (grub_vga_read_arx): New function.
19467 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19469 (framebuffer): New members io, mmioptr and mmiobase.
19470 (read_sis_cmd): New function.
19471 (write_sis_cmd): Likewise.
19472 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19473 rather than 640x400.
19474 * grub-core/video/sis315_init.c: New file.
19476 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19478 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19480 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19481 to grub_dl_register_symbol.
19483 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19485 Fix compilation errors.
19487 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19488 potentially unused.
19489 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19490 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19491 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19492 to loongson machines.
19494 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19496 Several FS mtime support.
19498 * grub-core/fs/affs.c (grub_affs_time): New struct.
19499 (grub_affs_file): New field mtime.
19500 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19501 type. Removed 'size'. New field 'di'. All users updated.
19502 (grub_affs_mount): Simplify checsum checking.
19503 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19504 (grub_affs_dir): Handle mtime.
19505 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19506 (grub_cpio_dir): Likewise.
19507 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19508 (grub_hfs_filerec): New field mtime.
19509 (grub_hfs_dir): Handle mtime.
19510 (grub_hfs_mtime): New function.
19511 (grub_hfs_fs): Register grub_hfs_mtime.
19512 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19513 (grub_iso9660_dir): New field mtime.
19514 (grub_fshelp_node): New field dirent.
19515 (iso9660_to_unixtime): New function.
19516 (iso9660_to_unixtime2): Likewise.
19517 (grub_iso9660_read_symlink): Use node->dirent.
19518 (grub_iso9660_iterate_dir): Likewise.
19519 (grub_iso9660_dir): Set mtime.
19520 (grub_iso9660_mtime): New function.
19521 (grub_iso9660_fs): Register grub_iso9660_mtime.
19522 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19523 (grub_jfs_inode): New fields atime, ctime and mtime.
19524 (grub_jfs_dir): Set mtime.
19525 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19526 * grub-core/fs/ntfs.c (list_file): Set mtime.
19527 (grub_ntfs_dir): Likewise.
19528 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19529 (grub_reiserfs_iterate_dir): Set mtime.
19530 (grub_reiserfs_dir): Likewise.
19531 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19532 (grub_fshelp_node): Likewise.
19533 (grub_sfs_iterate_dir): Set mtime.
19534 (grub_sfs_dir): Likewise.
19535 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19536 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19537 (grub_xfs_inode): New fields atime, mtime, ctime.
19538 (grub_xfs_dir): Set mtime.
19539 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19540 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19541 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19543 Support UDF symlinks.
19545 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19546 (grub_ufs_read_symlink): New function. All users updated.
19548 Check amiga partmap checksum.
19550 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19551 (grub_amiga_partition): Likewise.
19552 (amiga_partition_map_checksum): New function.
19553 (amiga_partition_map_iterate): Check checksum.
19555 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19559 * Makefile.util.def (libgrubmods.a): Add romfs.
19560 * grub-core/Makefile.core.def (romfs): New module.
19561 * grub-core/fs/romfs.c: New file.
19563 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19565 Squashfs v4 support.
19567 * Makefile.util.def (libgrubmods.a): Add squash4.
19568 * grub-core/Makefile.core.def (squash4): New module.
19569 * grub-core/fs/squash4.c: New file.
19570 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19571 disk_input_start, disk_input.
19572 (get_byte): Handle disk_input.
19573 (grub_zlib_disk_read): New function.
19574 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19576 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19577 2011-05-15 Feiran Zheng <famcool@gmail.com>
19579 * Makefile.util.def (libgrubmods.a): Add minix3.
19580 * grub-core/Makefile.core.def (minix3): New module.
19581 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19582 (GRUB_MINIX_BSIZE): Removed.
19583 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19584 (grub_minix_ino_t): New type.
19585 (grub_minix_le_to_cpu_ino): New macro.
19586 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19587 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19588 (grub_minix_data): New field block_size.
19589 (grub_minix_read_file): Handle 64-bit correctly.
19590 * grub-core/fs/minix3.c: New file.
19592 2011-05-15 Tristan Gingold <gingold@free.fr>
19593 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19594 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19598 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19599 * configure.ac: Add ia64-efi target.
19600 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19601 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19602 * gentpl.py: Add ia64_efi platform.
19603 Rename x86_efi to efi and Add ia64-efi. All users updated.
19604 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19605 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19606 Remove kern/generic/rtc_get_time_ms.c on EFI.
19607 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19608 kern/ia64/dl_helper.c on ia64-efi.
19609 Add kern/emu/cache.c on emu.
19610 (linux): Use on loader/ia64/efi/linux.c on ia64.
19611 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19612 whether symbol is a function.
19613 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19614 (grub_symbol): New field 'isfunc'.
19615 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19616 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19617 (grub_dl_load_segments): Place all sections into the same region.
19618 [__ia64__]: Create trampolines and got.
19619 [GRUB_MACHINE_EMU]: Call mprotect.
19620 (grub_dl_resolve_symbols): Resolve symbol type as well.
19621 [__ia64__]: Create function descriptors.
19622 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19623 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19624 (grub_get_rtc): New function.
19625 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19626 * grub-core/kern/emu/cache.S: Renamed to ...
19627 * grub-core/kern/emu/cache_s.S: ... this.
19628 [__ia64__]: Add a nop.
19629 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19630 [__ia64__]: New function.
19631 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19632 * grub-core/kern/ia64/dl.c: New file.
19633 * grub-core/kern/ia64/dl_helper.c: Likewise.
19634 * grub-core/kern/ia64/efi/init.c: New file.
19635 * grub-core/kern/ia64/efi/startup.S: Likewise.
19636 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19637 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19638 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19639 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19640 * grub-core/loader/ia64/efi/linux.c: New file.
19641 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19642 (GRUB_MOD_DEP): Likewise.
19643 (grub_dl) [__ia64__]: New fields got and tramp.
19644 (grub_dl): New field 'base'.
19645 (grub_dl_register_symbol): New argument isfunc. All users updated.
19646 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19647 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19648 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19649 (grub_ia64_dl_get_tramp_got_size): New proto.
19650 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19651 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19652 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19653 * include/grub/efi/api.h: Skip call wrappers on ia64.
19654 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19655 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19656 * include/grub/elf.h (ELF_ST_INFO): New definition.
19657 * include/grub/ia64/efi/kernel.h: New file.
19658 * include/grub/ia64/efi/memory.h: Likewise.
19659 * include/grub/ia64/efi/time.h: Likewise.
19660 * include/grub/ia64/kernel.h: Likewise.
19661 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19662 * include/grub/ia64/time.h: New file.
19663 * include/grub/ia64/types.h: Likewise.
19664 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19665 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19667 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19668 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19669 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19670 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19672 (EFI64_HEADER_SIZE): New definition. All users updated.
19673 (image_targets): Add ia64-efi.
19674 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19675 jumpers_addr. All users updated.
19676 Create function descriptors.
19677 (count_funcs): New function.
19678 (unaligned_uint32): New struct.
19679 (MASK20): New definition.
19680 (MASK19): Likewise.
19681 (MASKF21): Likewise.
19682 (add_value_to_slot_20b): New function.
19683 (add_value_to_slot_21_real): Likewise.
19684 (add_value_to_slot_21): Likewise.
19685 (ia64_kernel_trampoline): New struct.
19686 (nopm): New variable.
19688 (make_trampoline): New function.
19689 (relocate_addresses): Handle ia64.
19690 (make_reloc_section): Likewise.
19691 (load_image): Likewise.
19693 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19695 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19696 warning. Move variables before code while on it.
19698 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19702 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19703 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19704 * grub-core/boot/mips/loongson/fuloong.S: New file.
19705 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19706 Explicitly init CS5536.
19707 [FULOONG]: Don't use serial until CS5536 is available.
19708 Set GPIO based on dumps.
19709 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19710 [FULOONG]: Handle GPIO and memory controller differences.
19711 Parse machine type in $a2.
19712 * grub-core/boot/mips/startup_raw.S: Determine and save the
19714 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19715 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19716 init on architecture type.
19717 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19718 SIS315E. Don't init at_keyboard on fuloong.
19719 (grub_halt): Support Fuloong.
19720 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19721 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19722 (loongson_machtypes): New array.
19723 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19725 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19726 config. All users updated. Handle CS5536 serial.
19727 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19728 default port on machine type. Register serial as inactive.
19729 * grub-core/video/sis315pro.c: New file.
19730 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19732 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19733 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19734 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19735 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19736 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19737 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19739 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19740 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19742 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19743 (grub_arch_machine): New extern var.
19744 * include/grub/mips/loongson/serial.h
19745 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19746 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19747 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19748 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19749 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19750 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19751 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19752 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19753 * include/grub/term.h (grub_term_register_input_inactive): New inline
19755 (grub_term_register_output_inactive): Likewise.
19756 * include/grub/video.h (grub_video_driver_id): New value
19757 GRUB_VIDEO_DRIVER_SIS315PRO.
19758 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19759 New field "names". All users updated.
19760 New field value IMAGE_FULOONG_FLASH.
19761 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19763 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19765 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19766 and add some clarification.
19768 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19770 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19771 platforms if kernel is compressed.
19773 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19775 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19776 unused modules since currently referrence counter isn't reliable and
19777 there isn't much memory to recover there anyway.
19779 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19781 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19782 rather than resetting it to allow modules to reference themselves
19785 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19787 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19788 counter on dependencies since grub_dl_unref already handles this.
19790 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19792 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19793 on error if not already done.
19795 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19797 Fix few potential memory misusage.
19799 * grub-core/font/font.c (load_font_index): Don't free char_index to
19801 (grub_font_load): Zero-fill font at alloc for safety.
19802 Close file on error.
19803 (free_font): Free bmp_idx.
19805 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19807 * docs/grub.texi (Installation): Fix several outdated claims.
19809 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19811 Handle module_license on windows.
19813 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19815 (insert_string): Make argument const char * instead of char *.
19816 (write_section_data): Handle long section names.
19817 Handle module_license.
19819 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19821 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19822 handle class-free menuentries.
19823 (grub_normal_add_menu_entry): Add a check to be sure.
19825 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19827 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19830 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19832 * configure.ac: Bump version to 1.99.
19834 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19836 Give ATA device a bit more time on first try in order to allow disks
19839 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19840 if dev->present is 1. Reset dev->present on failure.
19841 (grub_ata_device_initialize): Set dev->present to 1.
19842 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19843 (grub_ata_device): New member 'present'.
19845 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19847 * util/grub-mkimage.c (generate_image): Update hash.
19849 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19851 Flush caches on DMA memory.
19853 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19854 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19855 (grub_dma_free): Likewise.
19856 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19858 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19860 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19861 to avoid asm treating ld and sd as macros.
19863 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19865 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19868 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19870 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19871 grub_decompress_core since later would fail if grub_decompress_core
19874 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19876 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19877 R_MIPS_JALR since it's used by newer compiler.
19879 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19881 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19883 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19885 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19886 file_path to 0 for surety.
19887 (grub_chainloader_boot): Set exit_data to NULL.
19888 Unset the loader once done.
19889 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19891 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19893 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19894 unknown key into a dprintf.
19896 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19898 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19899 on first non-existant partition.
19901 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19903 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19905 Reported by: Mark Korenberg.
19907 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19909 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19912 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19914 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19915 before closing to ensure that it will be readable by grub-setup.
19917 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19919 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19920 (devpath_1): Use MAKE_PIWG_PATH.
19921 (devpath_2): Likewise.
19922 (devpath_3): Likewise.
19923 (devpath_4): Likewise.
19924 (devpath_5): Likewise.
19925 (devpath_6): Likewise.
19927 The appleldr.mod was checked that to be binary identical to previous
19930 2011-05-05 Zach <mikezackles>
19932 Support 2010 Macbooks.
19934 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19935 (devs): Add devpath_6.
19937 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19939 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19940 /dev/random. /dev/urandom is good enough for our purposes (salting).
19942 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19944 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19946 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19948 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19951 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19953 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19954 and not 0 on failure.
19956 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19958 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19959 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19960 disk; otherwise grub_fs_probe will not fall back to the next
19962 (grub_pxefs_open): Likewise, for consistency.
19963 Reported and tested by: Ezekiel Grave.
19965 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19967 * tests/partmap_test.in: Don't hardcode path to parted.
19968 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19970 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19972 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19973 of `ls' to find out which devices are available.
19975 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19977 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
19978 than source address for efi mmap buffer.
19980 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19982 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
19983 wrong action on non-detecting the magic.
19985 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19987 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
19988 already supplied by another part of the module (fixes compilation on
19991 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19993 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
19994 match the one used by mdadm.
19996 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19998 * po/README: Add instructions for creating po/LINGUAS.
20000 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20002 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20005 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20006 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20007 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20008 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20009 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20010 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20011 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20012 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20013 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20014 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20015 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20016 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20017 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20018 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20019 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20020 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20021 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20022 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20023 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20024 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20025 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20026 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20028 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20030 * grub-core/kern/emu/getroot.c
20031 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20032 test that was incorrectly reintroduced in r3214.
20033 Reported by: Ian Dall. Fixes Savannah bug #33133.
20035 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20037 Fix stack pointer handling in 16-bit relocator.
20039 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20040 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20041 Fixes Ubuntu bug #683904.
20043 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20045 * configure.ac: Bump version to 1.99~rc2.
20047 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20049 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20050 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20051 * grub-core/lib/x86_64/setjmp.S: Likewise.
20052 * grub-core/lib/mips/setjmp.S: Likewise.
20053 * grub-core/lib/powerpc/setjmp.S: Likewise.
20054 * grub-core/lib/sparc64/setjmp.S: Likewise.
20056 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20058 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20059 * grub-core/lib/efi/datetime.c: Likewise.
20061 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20063 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20065 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20066 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20067 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20069 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20071 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20073 (grub_gfxterm_term_init): Likewise.
20075 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20077 Take into account the decorations the computing menu entry width.
20079 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20080 (grub_gfxmenu_create_box): Register get_border_width.
20081 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20083 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20086 2011-04-18 Endres Puschner <code@e7p.de>
20088 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20089 Don't skip first class.
20091 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20093 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20095 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20097 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20099 Complete 64-bit division support.
20101 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20102 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20103 * include/grub/misc.h (grub_divmod64): Rename to ...
20104 (grub_divmod64_full): ... this.
20105 (grub_divmod64): New inline function.
20107 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20109 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20111 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20113 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20114 performing the necessary test.
20116 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20118 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20119 (kfreebsd.elf): Likewise.
20120 (pc-chainloader.elf): Likewise.
20121 (ntldr.elf): Likewise.
20123 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20125 Identify RAID by its UUID rather than (guessed) name.
20127 * grub-core/disk/raid.c (ascii2hex): New function.
20128 (grub_raid_open): Accept mduuid/%s specification.
20129 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20130 (get_mdadm_uuid): ... this.
20131 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20133 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20135 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20138 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20140 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20142 * util/grub.d/20_linux_xen.in: Likewise.
20144 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20146 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20147 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20149 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20150 Build a list of relevant visible mounts using the mnt_id and
20151 parent_mnt_id fields, and then scan that list at the end.
20153 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20155 * docs/grub.texi (normal): New section.
20156 (normal_exit): New section.
20157 (Embedded configuration): Add reference to normal.
20158 (GRUB only offers a rescue shell): Likewise.
20159 * docs/grub-dev.texi (Error Handling): Fix typo.
20161 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20163 * NEWS: Drop obsolete entry about probe-only btrfs support.
20165 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20167 * util/import_gcry.py: Fix typo.
20169 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20171 * NEWS: Add btrfs support.
20173 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20174 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20176 BtrFS support. Written by me (Vladimir) with important bugfixes and
20177 even more important testing by Colin.
20179 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20180 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20181 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20182 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20183 mem_input_off and mem_input. All users updated to accept in-RAM input.
20184 (gzio_seek): New function.
20185 (test_zlib_header): Likewise.
20186 (grub_gzio_read): Likewise.
20187 (grub_zlib_decompress): Likewise.
20188 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20189 Accept partial and non-virtual mounts.
20190 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20191 avoid receiving /dev/dm-X as device.
20192 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20193 Handle bind and partial mounts.
20194 * grub-core/lib/crc.c: New file.
20195 * include/grub/deflate.h: Likewise.
20196 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20198 * include/grub/lib/crc.h: New file.
20200 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20202 Implement automatic module license checking according to new GNU
20205 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20206 (grub_dl_load_core): Use grub_dl_check_license.
20207 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20208 (GRUB_MOD_LICENSE): Likewise.
20209 (GRUB_MOD_DUAL_LICENSE): Likewise.
20210 All modules updated.
20212 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20214 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20215 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20217 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20219 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20221 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20223 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20225 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20228 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20230 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20231 parenthesis in the middle of the filename.
20233 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20235 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20236 rather than trying to put initrd way too high.
20237 Reported by: Ryan Lortie <desrt@desrt.ca>
20239 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20241 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20242 improperly removed string.
20244 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20246 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20248 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20249 (open_device) Likewise.
20250 (grub_util_biosdisk_close): Likewise.
20251 Reported by: Mark Korenberg.
20253 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20255 * util/grub-mkconfig_lib.in: Add missing quotes.
20257 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20259 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20262 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20264 Dynamically count the number of lines for the lower banner.
20266 * grub-core/normal/menu_entry.c (per_term_screen): New member
20268 (print_down): Use num_entries.
20269 (update_screen): Likewise.
20270 (grub_menu_entry_run): Set num_entries.
20271 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20273 (grub_print_message_indented): Move real part to ...
20274 (grub_print_message_indented_real): ... here. Additional argument
20276 (draw_border): Additional argument num_entries.
20277 (print_message): Additional argument dry_run.
20278 (print_entries): Receive menu viewer data.
20279 (grub_menu_init_page): New argment num_entries.
20280 (menu_text_set_chosen_entry): Use num_entries.
20281 (grub_menu_try_text): Likewise.
20282 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20284 (grub_ucs4_count_lines): New function.
20285 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20286 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20287 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20288 (grub_term_border_height): Likewise.
20289 (grub_term_num_entries): Likewise.
20291 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20293 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20294 Remove now unused string.
20296 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20298 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20300 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20302 (Comment): Fix typo.
20303 (Getting started): General copy-editing.
20304 (Typical Development Experience): Likewise.
20305 (Error Handling): Likewise.
20306 (Video API): Likewise.
20308 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20310 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20313 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20315 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20318 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20320 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20321 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20324 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20326 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20327 grub_strcpy since the lines aren't necessarily 0-terminated.
20329 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20331 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20334 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20336 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20337 (GRUB_MOD_INIT): DEVICE isn't optional.
20339 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20341 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20342 word on new line if it's too long anyway. Fixes a hang.
20344 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20346 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20348 * util/grub-setup.c (main): Reuse md device name if available.
20349 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20350 not GRUB name as argument.
20351 Based on patch by: Florian Wagner <fwagner>.
20353 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20355 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20356 Place mbi on low memory for better compatibility.
20358 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20360 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20362 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20363 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20365 * autogen.sh: Ensure that collate and ctype locale is C.
20366 * conf/Makefile.common: Likewise.
20368 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20370 * grub-core/normal/menu.c: Add missing include.
20372 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20374 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20376 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20378 * util/grub-mkconfig.in: Ignore emacsen backup.
20380 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20382 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20384 (grub_util_biosdisk_close): Likewise.
20386 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20388 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20389 const attribute and use grub_isdigit.
20391 2011-04-06 Andrey <dev_null@ukr.net>
20393 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20396 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20398 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20399 useful grub_dprintf's.
20401 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20403 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20405 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20407 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20409 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20411 Output errors if theme loading failed.
20413 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20414 grub_gfxterm_fullscreen on error paths to ...
20415 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20416 theme loading error.
20418 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20420 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20421 space for older compilers.
20422 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20424 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20426 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20427 and report them as not RAID members since they are useless for GRUB.
20428 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20430 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20432 Increase LVM implementation robustness in order not to crash on
20433 configurations like pvmove. Previously code assumed that in some places
20434 only lvs or only pvs are used whereas it seems that they are used
20437 * grub-core/disk/lvm.c (read_node): New function.
20438 (read_lv): Use read_node.
20439 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20440 Match volumes only at the end when all lvs are found. Take both
20441 pvs (first) and lvs (second) into account.
20442 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20443 mirror_* into node_*. All users updated.
20444 (grub_lvm_stripe): Merge this ...
20445 (grub_lvm_mirror): ... and this ...
20446 (grub_lvm_node): ... into this. All users updated.
20448 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20450 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20451 of function to allow further scanning for LVMs.
20453 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20455 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20456 on failed seek as it breaks open fd reusage.
20458 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20460 * util/grub-install.in: Add a recommendation to use --recheck before
20463 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20465 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20468 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20470 GRUB developper manual based on existing Internals section and
20471 contributions by the various authors with active copyright assignment.
20473 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20474 * docs/font_char_metrics.png: New file.
20475 * docs/font_char_metrics.txt: Likewise.
20476 * docs/grub-dev.texi: Likewise.
20477 * docs/grub.texi (Internals): Move from here ...
20478 * docs/grub-dev.texi: ... here.
20480 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20482 Store the loopback device as data on loopback grub_disk structures,
20483 rather than the file it points to. This fixes use of freed memory
20484 if an existing loopback device is replaced.
20486 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20487 disk->data, not dev->file.
20488 (grub_loopback_read): Adjust file assignment to match.
20489 Fixes Ubuntu bug #742967.
20491 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20493 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20494 when replacing an existing device.
20496 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20498 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20499 memory corruptions.
20501 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20503 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20504 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20505 (grub_jfs_read_inode): Likewise.
20506 (grub_jfs_opendir): Likewise. Remove now useless casts.
20507 (grub_jfs_getent): Likewise.
20508 Make ino a grub_uint32_t rather than int.
20509 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20510 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20511 division and module with bit operations.
20512 (grub_jfs_find_file): Make ino a grub_uint32_t.
20513 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20515 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20517 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20518 warning. (This was in fact always initialised before use, but GCC
20519 wasn't smart enough to prove that.)
20520 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20522 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20524 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20526 (efi_wrap_1): Likewise.
20527 (efi_wrap_2): Likewise.
20528 (efi_wrap_3): Likewise.
20529 (efi_wrap_4): Likewise.
20530 (efi_wrap_5): Likewise.
20531 (efi_wrap_6): Likewise.
20532 (efi_wrap_10): Likewise.
20533 Based on information by: Red Hat/Peter Jones.
20535 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20537 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20538 set-but-not-used variable.
20540 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20542 * docs/grub.texi (Simple configuration): Be more explicit about
20543 GRUB_DEFAULT, and add an example.
20544 Reported by: Leslie Rhorer.
20546 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20548 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20551 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20553 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20554 * util/grub.d/20_linux_xen.in: Likewise.
20556 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20558 * util/grub.d/10_linux.in: Try alternative config filenames where
20559 we parse config file.
20560 * util/grub.d/20_linux_xen.in: Likewise.
20562 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20564 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20565 * util/grub.d/20_linux_xen.in: Likewise.
20567 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20569 * grub-core/disk/raid.c (insert_array): Add few potentially
20570 useful grub_util_info.
20571 (grub_raid_register): Likewise.
20573 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20575 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20576 Preserve partition number in mdadm code path.
20578 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20580 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20581 few potentially useful grub_util_info.
20583 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20585 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20587 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20589 * docs/grub.texi (default): Use @example rather than nested
20590 itemized lists to avoid breaking gendocs.
20592 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20594 * docs/grub.texi (Future): Update.
20596 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20598 * docs/grub.texi (Environment): New chapter.
20599 (Changes from GRUB Legacy): Link to "Environment block" section for
20600 details of limitations.
20601 (Simple configuration): Likewise. Link to documentation of gfxmode
20602 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20604 (Shell-like scripting): Note that normal variables are stored in the
20606 (gettext): Link to documentation of lang and locale_dir.
20607 (list_env): New section.
20608 (load_env): New section.
20609 (save_env): New section.
20611 (Reporting bugs): Fix typo.
20613 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20615 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20618 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20620 * grub-core/term/at_keyboard.c (set_scancodes)
20621 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20623 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20625 * docs/grub.texi (Menu-specific commands): Remove some semantics
20626 that were true in GRUB Legacy but not in GRUB 2.
20627 (submenu): New section.
20628 (false): New section.
20629 (read): New section.
20630 (true): New section.
20632 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20634 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20636 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20638 * docs/grub.texi (Simple configuration): Explain some of the
20639 current limitations of grub-mkconfig.
20640 Reported by: Leslie Rhorer.
20642 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20644 Old macs search for boot.efi rather than for bootia32.efi.
20646 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20647 * util/grub-mkrescue.in: Likewise.
20648 Suggested by: Peter Jones.
20650 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20652 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20654 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20656 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20657 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20658 (grub_lvm_mirror): New struct.
20659 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20660 (grub_lvm_iterate): Iterate only visible volumes.
20661 (grub_lvm_read): Factor out to ..
20662 (read_lv): ... this. Support mirrors.
20663 (grub_lvm_read): New wrapper function.
20664 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20665 stripped or mirrored.
20667 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20669 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20671 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20673 * docs/grub.texi (loopback): New section.
20675 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20677 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20680 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20682 * docs/grub.texi (BIOS installation): New section, partly based on
20683 previous text in other sections.
20684 (Installing GRUB using grub-install): Replace BIOS discussion with a
20686 (Images): Likewise.
20688 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20690 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20691 [HAVE_DIOCGDINFO]: Add safety checks.
20693 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20695 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20696 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20698 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20700 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20701 real_sb->size is zero (e.g. RAID-0), get the disk size from
20702 real_sb->data_size instead.
20703 Fixes Ubuntu bug #743136.
20705 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20707 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20708 printf clauses for printing size and start.
20710 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20712 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20713 Reported and tested by: Timothy Nikkel.
20715 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20717 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20718 (dirty_region_add_real): ... this.
20719 (dirty_region_add): Don't discard margin refresh when performing
20722 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20724 * grub-core/lib/relocator.c (allocate_regstart)
20725 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20726 terminals are capabple of malloc-free operation.
20727 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20728 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20730 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20732 * util/grub-setup.c: Copy the partition table zone if floppy support
20733 is disabled, even if no partition table is found.
20735 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20736 during POST if an invalid partition table is contained in the PBR
20737 of the active partition when GRUB is installed to a partition.
20739 2011-03-28 Colin Watson <cjwatson@debian.org>
20741 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20744 2011-03-28 Colin Watson <cjwatson@debian.org>
20746 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20747 to be specific about what kind of RAID device we're scanning for.
20749 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20751 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20752 return freed string.
20754 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20756 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20758 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20760 Use libgeom on FreeBSD to detect partitions.
20762 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20763 (grub-mkrelpath): Likewise.
20764 (grub-script-check): Likewise.
20765 (grub-editenv): Likewise.
20766 (grub-mkpasswd-pbkdf2): Likewise.
20767 (grub-fstest): Likewise.
20768 (grub-mkfont): Likewise.
20769 (grub-mkdevicemap): Likewise.
20770 (grub-probe): Likewise.
20771 (grub-setup): Likewise.
20772 (grub-ofpathname): Likewise.
20773 (grub-mklayout): Likewise.
20774 (example_unit_test): Likewise.
20775 (grub-menulst2cfg): Likewise.
20776 * grub-core/Makefile.core.def (grub-emu): Likewise.
20777 (grub-emu-lite): Likewise.
20778 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20779 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20780 define HAVE_DIOCGDINFO.
20781 (follow_geom_up) [FreeBSD]: New function.
20782 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20783 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20784 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20785 unconditionally of HAVE_DIOCGDINFO.
20787 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20789 Fix FreeBSD compilation problem.
20791 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20792 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20794 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20796 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20797 Switch back to page zero before loading a kernel, since some kernel
20798 drivers expect that.
20799 Thanks to: Felix Kuehling.
20801 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20803 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20804 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20805 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20807 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20809 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20810 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20812 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20814 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20815 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20816 malloc is disabled.
20818 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20820 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20821 for modules headers when counting the needed allocation size.
20823 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20825 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20826 if no ASCII character is found to prevent crash.
20828 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20830 * grub-core/video/bitmap.c (match_extension): Ignore case.
20832 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20834 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20836 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20838 * grub-core/script/parser.y: Declare "time" as valid argument.
20840 2011-03-23 Peter Jones <pjones@redhat.com>
20842 Fix incorrect assert failure reporting.
20844 * grub-core/tests/example_functional_test.c (example_test): Add
20846 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20847 (failure_start): ...this. Check that malloc succeeded.
20848 Don't call xvasprintf. Return failure struct.
20849 (failure_append_vtext): New function.
20850 (failure_append_text): Likewise.
20851 (add_failure): Likewise.
20852 (grub_test_assert_helper): Likewise.
20853 * include/grub/test.h (grub_test_assert_helper): New declaration.
20854 (grub_test_assert): Macro rewritten.
20856 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20858 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20860 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20862 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20864 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20866 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20867 into GRUB-style one.
20869 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20871 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20872 error and not grub_errno.
20873 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20875 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20877 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20878 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20880 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20882 * grub-core/efiemu/i386/pc/cfgtables.c
20883 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20884 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20885 (grub_xnu_unlock): Likewise.
20886 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20888 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20890 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20891 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20892 * grub-core/commands/hashsum.c (aliases): Likewise.
20893 * grub-core/commands/setpci.c (pci_registers): Likewise.
20894 * grub-core/disk/usbms.c (attach_hook): Likewise.
20895 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20896 (zio_checksum_table): Likewise.
20897 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20898 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20899 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20900 * grub-core/lib/relocator.c (leftovers): Likewise.
20901 (extra_blocks): Likewise.
20902 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20903 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20904 (modules_last): Likewise.
20905 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20906 (devices): Likewise.
20907 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20908 (modules_last): Likewise.
20909 * grub-core/normal/auth.c (users): Likewise.
20910 * grub-core/normal/context.c (initial_menu): Likewise.
20911 (current_menu): Likewise.
20912 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20913 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20914 (grub_serial_terminfo_input_template): Likewise.
20915 (grub_serial_terminfo_output_template): Likewise.
20916 (grub_serial_terminfo_input): Likewise.
20917 (grub_serial_terminfo_output): Likewise.
20918 (registered): Likewise.
20919 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20921 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20923 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20924 grub_video_mode_type_t.
20925 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20926 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20927 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20929 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20931 * util/grub-install.in: Correct the x86-64 name as x86_64.
20933 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20935 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20936 initial chunk read from the kernel always includes GRUB's multiboot
20937 header, which is now outside the first sector.
20939 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20941 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20942 cached mmap_size, so that this works correctly when called multiple
20944 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20946 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20948 * docs/grub.texi (Simple configuration): Tidy up formatting.
20950 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20952 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20953 Set-but-not-used variable removed.
20955 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20957 Workaround yet another IEEE1275 bug.
20959 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20960 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20961 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20962 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20964 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20965 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20967 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20969 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20972 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20974 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20975 empty, since in that case we can only generate either nothing or a
20976 syntactically invalid configuration file.
20977 Reported by: Michal Suchanek. Fixes Debian bug #612898.
20979 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20981 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
20982 (Making a GRUB bootable CD-ROM): Likewise.
20983 (Invoking grub-mkrescue): New section.
20984 Reported by: Yann Dirson. Fixes Debian bug #612585.
20986 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20988 * util/grub-install.in: Remove unnecessary brackets from tr
20990 * util/grub.d/10_hurd.in: Likewise.
20991 * util/grub.d/10_kfreebsd.in: Likewise.
20992 * util/grub.d/10_linux.in: Likewise.
20993 * util/grub.d/20_linux_xen.in: Likewise.
20994 Reported by: Jamie Heilman. Fixes Debian bug #612564.
20996 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
20998 * include/grub/file.h (not_easly_seekable): Rename to ...
20999 (not_easily_seekable): ... this. Update all users.
21001 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21003 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21006 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21008 * util/grub-mkimage.c (generate_image): Refuse to create the images
21009 bigger than the actual flash (512K) in Loongson machines. 512K is also
21010 the biggest chip supported by them.
21012 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21014 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21016 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21018 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21019 super_offset field.
21021 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21023 * util/grub-install.in: Ignore install device on platforms
21024 where it doesn't make sense. Always use UUIDs except on pc, efi and
21026 Reported by: Daniel Kahn Gillmor.
21028 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21030 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21032 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21034 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21035 (iterate_real): Don't rely on partition being non-NULL.
21037 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21039 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21040 supported platforms. Put a compile time assert for this rather than
21041 generate a warning with 32-bit shift.
21043 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21045 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21046 logical expression more readable.
21048 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21050 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21051 even if some elements have a name.
21052 Reported by: Alexander GQ Gerasiov.
21054 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21056 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21057 path unreadable if `grub-probe -t abstraction' fails, for example if
21058 memberlist fails on an LVM volume group.
21059 Reported by: Darius Jahandarie.
21061 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21063 * docs/grub.texi (Simple configuration): Document
21064 GRUB_PRELOAD_MODULES.
21066 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21068 * .bzrignore: Remove nonexistent grub-pbkdf2.
21070 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21072 * configure.ac: Bump version to 1.99~rc1.
21074 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21076 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21079 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21081 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21084 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21086 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21088 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21090 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21093 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21095 Fix compilation on cygwin.
21097 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21098 -R .drectve on cygwin.
21099 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21100 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21101 (COND_CYGWIN): New condition.
21102 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21103 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21104 not @TARGET_OBJ2ELF@.
21105 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21106 type to determine whether aux is to be used.
21108 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21110 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21111 realpath'ed device string.
21112 Handle floppy (somewhat).
21113 Issue error in unknown case rather than garbage.
21114 Reported by: Axel Beckert.
21116 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21118 * util/grub.d/00_header.in (load_video): Handle the case when no video
21120 Thanks to: Axel Beckert.
21122 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21124 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21125 variable. Fixes problem on big endian platforms.
21127 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21129 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21130 It doesn't work well there.
21132 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21134 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21136 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21137 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21140 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21142 Use alias->path rather than buggy "canon".
21144 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21145 (ofdisk_hash_add): New argument curcan. All users updated.
21147 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21149 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21151 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21153 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21154 loadmask before doing any calculations. Use correct type for offset.
21155 (grub_linux_load64): Likewise.
21157 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21159 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21161 (console_grub_equivalences_unshift): Likewise.
21162 Reported by: Daniel Dehennin.
21164 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21166 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21167 (set_env_limn_ro): Likewise.
21168 (GRUB_MOD_INIT): Likewise.
21169 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21170 ARRAY_SIZE while on it.
21171 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21172 * grub-core/normal/context.c (grub_env_export): Move from here ...
21173 * grub-core/kern/env.c (grub_env_export): ... here.
21174 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21176 * grub-core/kern/main.c (grub_main): Export root and prefix.
21177 * include/grub/env.h (grub_env_export): Export.
21178 Reported by: Seth Goldberg.
21180 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21182 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21183 Take into account space used by ELF sections and multiboot palette.
21184 Reported by: Grégoire Sutre.
21186 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21190 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21192 Pass more appropriate video id to Linux.
21194 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21195 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21197 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21198 shift params->lfb_size.
21199 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21201 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21203 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21205 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21207 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21208 separator and pass bootpath/devid even if only one of them is available.
21209 Reported by: Seth Goldberg.
21211 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21213 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21214 implementations bug on them.
21216 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21218 (filter_memory_map): Likewise.
21220 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21222 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21223 Reported by: nebuchadnezzar.
21225 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21227 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21228 Reported by: nebuchadnezzar.
21230 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21232 Submenu default support.
21234 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21235 auto_boot. All users updated.
21237 Handle chosen and default with submenus.
21238 (grub_menu_execute_with_fallback): Declared static.
21239 Don't notify failure if autobooted. Upper level does it.
21240 (menuentry_eq): New function.
21241 (get_entry_number): Use menuentry_eq.
21242 (show_menu): New parameter "autobooted". All users updated.
21243 (grub_show_menu): Likewise.
21244 * include/grub/normal.h (grub_show_menu): Likewise.
21245 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21246 (grub_menu_execute_with_fallback): Likewise.
21248 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21250 * util/grub-mklayout.c (usage): Update help text.
21252 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21254 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21256 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21258 * util/grub-menulst2cfg.c (main): Trim the line.
21260 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21262 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21263 (grub_machine_init): Don't check amount of low memory as reportedly
21264 INT 12h can be broken and if low memory is too low we wouldn't have
21265 gotten into grub_machine_init anyway.
21267 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21269 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21270 (grub_machine_mmap_iterate): Take low memory into account
21272 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21274 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21276 Reported by: TiCPU.
21278 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21280 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21283 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21285 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21286 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21288 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21290 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21291 openbsd and netbsd types being in part_bsd module.
21293 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21295 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21296 (_FILE_OFFSET_BITS): Likewise.
21297 Reported by: Seth Goldberg.
21299 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21301 * configure.ac: Check for libdevmapper header.
21303 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21305 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21307 (fzap_lookup): Likewise.
21308 (dnode_get): Likewise.
21309 (make_mdn): Likewise.
21310 (zfs_mount): Likewise.
21311 (fzap_iterate): Use temporary pointer to avoid aliasing.
21312 (grub_zfs_read): Likewise.
21313 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21314 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21315 pointers to avoid aliasing.
21316 (grub_cmd_xnu_kernel64): Likewise.
21317 (grub_xnu_load_driver): Likewise.
21319 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21321 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21323 (grub_cmd_terminal_output): Likewise.
21324 Reported and tested by: Grégoire Sutre.
21326 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21328 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21330 Reported and tested by: Grégoire Sutre.
21332 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21334 * configure.ac: Do CPU substitution even if it's specified explicitly.
21335 Reported and tested by: Alain Greppin.
21337 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21339 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21340 Reported and tested by: Alain Greppin.
21342 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21344 Satisfy some bison versions need for inttypes.h.
21346 * grub-core/lib/posix_wrap/inttypes.h: New file.
21347 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21348 (int16_t): Likewise.
21349 (int32_t): Likewise.
21350 (int64_t): Likewise.
21351 Reported and tested by: Alain Greppin.
21353 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21355 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21356 Silence spurious warning.
21357 Reported and tested by: Alain Greppin.
21359 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21361 * docs/grub.texi (Support automatic decompression): Update with xz
21362 decompression support.
21364 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21366 Improve loaders' kernel command line handling.
21368 * grub-core/lib/cmdline.c: New file.
21369 * include/grub/lib/cmdline.h: Likewise.
21370 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21371 grub_create_loader_cmdline to create kernel command line.
21372 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21373 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21374 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21375 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21376 (linux): Add lib/cmdline.c on common.
21378 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21380 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21381 inopos might be unaligned.
21383 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21385 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21386 endian transformations.
21387 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21388 Based on report by: Doug Nazar.
21390 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21392 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21393 array->members[i].start_sector.
21394 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21396 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21398 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21399 Reported and tested by: Grégoire Sutre.
21401 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21403 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21404 avoid causing test failures by clearing the screen.
21406 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21408 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21409 Fix prefix check to handle the case where dir ends with a slash
21410 (most significantly, "/" itself).
21411 Reported by: Michael Vogt.
21413 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21415 Run terminfo_cls on initing terminfo output to clear the screen and
21416 move the cursor to (0,0).
21418 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21419 Call grub_terminfo_output_init.
21420 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21421 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21422 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21424 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21426 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21429 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21431 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21434 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21436 The E820 type 5 is BADRAM, not EXEC_CODE.
21438 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21439 (GRUB_E820_BADRAM): New define.
21440 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21441 into reserved. Propagate BADRAM.
21442 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21443 (GRUB_E820_BADRAM): New define.
21445 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21447 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21448 Ignore the memory post-4G.
21449 (grub_relocator_firmware_alloc_region): Additional debug statement.
21451 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21453 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21455 Reported by: David Pravec.
21457 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21459 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21462 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21464 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21466 (grub_reed_solomon_recover): Likewise.
21468 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21470 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21472 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21474 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21477 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21479 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21480 descriptions of extract_legacy_entries_source and
21481 extract_legacy_entries_configfile.
21482 Reported by: Seung Soo, Ha.
21484 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21486 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21487 on devices that do not implement function 0.
21489 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21491 * grub-core/fs/hfsplus.c: Make parent unsigned.
21492 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21494 (grub_hfsplus_cmp_extkey): Likewise
21496 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21498 * util/grub-install.in: Correctly use bootloader_id and not
21499 GRUB_DISTRIBUTOR on efibootmgr line.
21501 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21503 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21505 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21507 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21508 Xen and reorder menu item wording to make it clearer that this entry
21509 will launch Xen. Print separate messages when loading Xen and
21512 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21514 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21515 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21516 loop in case of incorrect amiga partmap.
21518 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21520 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21521 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21524 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21526 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21528 Reported by: crocket
21530 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21532 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21534 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21536 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21538 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21540 (grub_cmd_xnu_kextdir): Likewise.
21541 (grub_cmd_xnu_splash): Likewise.
21543 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21545 Avoid using Reed-Solomon with 0 redundancy.
21547 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21548 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21550 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21551 (grub_reed_solomon_recover): Likewise.
21553 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21555 Don't use disk subsystem in freebsd_boot.
21557 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21558 (freebsd_biosdev): Likewise.
21559 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21560 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21562 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21564 Handling of files of unknown size is currently limited. They can't be
21565 used e.g. for initrd or modules. Moreover gzip handling of not
21566 easily seekable files is buggy. Disable unknown file size for now. May
21567 be inefficient but works.
21569 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21570 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21572 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21574 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21577 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21579 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21581 2010-12-25 Shea Levy <shlevy>
21583 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21585 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21587 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21588 Windows Server 2008.
21589 Reported by: Devin Giddings.
21591 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21593 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21594 writing an error message because of async power management.
21595 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21596 (grub_reboot): Likewise.
21598 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21600 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21601 keep unit tests from failing when they shouldn't.
21603 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21605 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21606 previous patch increased the size of the RS code by 20 bytes (at
21607 least with gcc-4.4), so increase this by 20 bytes to match.
21608 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21610 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21612 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21613 scratch area. Make sure to initialise chosen in standalone mode as
21614 well as non-standalone.
21615 Reported by: Robert Hooker and Andy Whitcroft.
21616 Tested by: Andy Whitcroft.
21618 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21620 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21621 constructing a new unescaped string and passing it to grub_xputs in
21622 one go, rather than passing characters to grub_printf one at a time.
21624 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21626 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21627 initialising utf16.
21629 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21631 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21632 comment. Add an extra layer of quotation, requiring the output of
21633 this function to be used in a printf format string.
21634 (gettext_printf): New function.
21635 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21636 Extract translatable strings from here-documents and use a temporary
21637 variable instead, so that xgettext can find them.
21638 * util/grub.d/10_kfreebsd.in: Likewise.
21639 * util/grub.d/10_linux.in: Likewise.
21640 * util/grub.d/20_linux_xen.in: Likewise.
21642 * po/grub.d.sed: New file.
21643 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21644 arguments. Set c-format flags on all strings extracted from
21645 util/grub.d/ (xgettext refuses to include these itself for strings
21646 it extracted from a shell file, but these really are c-format).
21648 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21650 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21651 Avoid next pointing to nowhere.
21653 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21655 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21656 rather than assuming than rootblock is exactly in the middle.
21657 (grub_affs_label): Likewise.
21659 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21661 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21662 reserved_first_sector to 0.
21663 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21664 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21665 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21667 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21669 Fix handling of UTF-16 UDF labels.
21671 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21672 (read_string): .. here.
21673 (grub_udf_label): Use read_string.
21675 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21677 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21678 editor under argument scope.
21679 Reported by: Jordan Uggla
21681 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21683 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21685 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21687 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21688 line, and other keys scroll an entire page (previous handling was
21689 for \r and \n to scroll a page and other keys to scroll two lines).
21691 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21693 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21694 Set ptrdest to correct get_physical_target_address rather than
21695 incorrect get_virtual_current_address.
21697 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21699 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21700 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21702 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21704 * .bzrignore: Ignore grub-core/rs_decoder.S.
21706 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21708 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21709 .mo/.mo.gz opening sequence to ...
21710 (grub_mofile_open_lang): ... here.
21711 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21712 * util/grub.d/00_header.in (grub_lang): Include country part of
21714 Reported by: Mario Limonciello.
21716 2010-12-09 Robert Millan <rmh@gnu.org>
21718 * NEWS: Document addition of ZFS support.
21720 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21722 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21723 rather than `/ 2', as the latter requires -Wa,--divide which would
21724 require bumping our minimum binutils version.
21726 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21728 * util/grub-script-check.c (main): Print script line number on
21731 2010-12-01 Robert Millan <rmh@gnu.org>
21733 * grub-core/fs/zfs/zfs.c: New file.
21734 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21735 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21736 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21737 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21739 * include/grub/zfs/dmu.h: Likewise.
21740 * include/grub/zfs/dmu_objset.h: Likewise.
21741 * include/grub/zfs/dnode.h: Likewise.
21742 * include/grub/zfs/dsl_dataset.h: Likewise.
21743 * include/grub/zfs/dsl_dir.h: Likewise.
21744 * include/grub/zfs/sa_impl.h: Likewise.
21745 * include/grub/zfs/spa.h: Likewise.
21746 * include/grub/zfs/uberblock_impl.h: Likewise.
21747 * include/grub/zfs/vdev_impl.h: Likewise.
21748 * include/grub/zfs/zap_impl.h: Likewise.
21749 * include/grub/zfs/zap_leaf.h: Likewise.
21750 * include/grub/zfs/zfs.h: Likewise.
21751 * include/grub/zfs/zfs_acl.h: Likewise.
21752 * include/grub/zfs/zfs_znode.h: Likewise.
21753 * include/grub/zfs/zil.h: Likewise.
21754 * include/grub/zfs/zio.h: Likewise.
21755 * include/grub/zfs/zio_checksum.h: Likewise.
21757 * Makefile.util.def: Build ZFS into libgrubmods.
21758 * grub-core/Makefile.core.def: Build zfs.mod.
21760 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21762 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21764 * grub-core/commands/wildcard.c (match_files): Likewise.
21766 2010-11-30 Robert Millan <rmh@gnu.org>
21768 * grub-core/loader/i386/bsd.c
21769 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21770 whether kernel is loaded using grub_loader_is_loaded(), rather
21771 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21772 certain error conditions.
21774 2010-11-30 Robert Millan <rmh@gnu.org>
21776 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21777 (grub_cmd_echo): Call grub_refresh() after printing a message.
21779 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21781 Avoid using tricks for initialising endian variables.
21783 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21785 (GRUB_MOD_INIT): Don't byte-swap.
21786 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21787 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21788 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21789 (grub_swap_bytes32_compile_time): Likewise.
21790 (grub_cpu_to_le32_compile_time): Likewise.
21791 (grub_cpu_to_le16_compile_time): Likewise.
21793 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21795 * util/grub-setup.c (setup): Stop recommending --force. People who
21796 understand the dangers of blocklists are able to find this option
21797 anyway and the ones who don't shouldn't use it anyway.
21799 2010-11-26 Robert Millan <rmh@gnu.org>
21801 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21804 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21806 Fix LVM-on-RAID probing.
21808 * util/grub-probe.c (probe): Remember which disk was detected as
21809 RAID (perhaps an LVM physical volume). Use that disk's raidname
21810 rather than that of the top-level disk.
21812 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21814 Fix cmdline argument quotes for setparams command of menuentry
21817 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21818 quotes for arguments.
21819 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21820 grub_strchrsub function instead.
21822 * include/grub/misc.h (grub_strchrsub): New function.
21824 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21826 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21827 effort by skipping "." and ".." entries up-front.
21828 Suggested by: Michael Lazarev.
21830 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21832 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21833 ldflags to ldadd, to fix link line ordering.
21834 (none_decompress): Likewise.
21836 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21838 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21840 (grub-emu-lite): Remove kern/emu/cache.S.
21842 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21844 * util/deviceiter.c (compare_devices): If the by-id link for a
21845 device couldn't be resolved, fall back to sorting by the by-id link
21846 rather than segfaulting.
21847 Reported and tested by: Daniel Mierswa.
21849 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21851 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21852 ldflags, to fix link line ordering.
21854 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21856 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21857 linkers are picky about this.
21859 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21861 * grub-core/Makefile.am (command.lst): Adjust sed expression
21862 ordering so that extended and priority commands aren't treated as
21865 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21867 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21868 Remove byte-swapping function calls, which are not valid in
21869 structure initialisers.
21870 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21872 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21873 grub_gpt_partition_type_bios_boot.
21875 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21877 Fix test program build on GNU/kFreeBSD.
21879 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21880 $(LIBNVPAIR)' library dependencies.
21882 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21884 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21886 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21888 * util/grub-install.in: Remove excessive quoting that broke
21889 installations to RAID devices.
21891 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21893 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21894 bootloader version instead of 0.
21896 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21898 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21901 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21903 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21904 retrieve the metadat sector if size isn't known.
21905 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21907 2010-11-18 Robert Millan <rmh@gnu.org>
21909 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21910 with grub_memcmp().
21912 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21914 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21916 Reported by: Jordan Uggla.
21918 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21920 Make better UTF compliant.
21922 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21923 sequences as incorrect.
21924 (grub_is_valid_utf8): Likewise.
21925 (grub_utf8_to_ucs4): Likewise.
21926 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21927 (grub_ucs4_to_utf8_alloc): Likewise.
21928 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21930 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21932 Make legacy_source behave like source.
21934 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21936 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21938 2010-11-16 Colin Watson <cjwatson@debian.org>
21940 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21941 (-Wunused implies -Wunused-parameter, but not vice versa).
21943 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21945 * configure.ac: Make error messages less confusing by testing for
21946 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21947 accepted, but produces a diagnostic if something else is wrong).
21949 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21951 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21952 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21954 (grub_keyboard_controller_init)
21955 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21956 read the initial state since controller isn't inited yet.
21958 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21960 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21961 allocate_regbeg may need to create new chunk header.
21963 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21965 Fix quoting in legacy parser.
21967 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21969 (grub_legacy_parse): Likewise.
21970 Reported by: Jordan Uggla.
21971 Tested by: Jordan Uggla.
21973 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21975 Don't add -lgcc on i386 and x86_64.
21977 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
21978 * conf/Makefile.common (LDADD_KERNEL): Likewise.
21979 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
21981 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21983 * configure.ac: Add -Wno-trampolines when supported.
21985 2010-11-14 Modestas Vainius <modax@debian.org>
21987 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
21990 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21992 Add generic logical block size support for UDF.
21994 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
21995 (GRUB_UDF_BLKSZ): Removed.
21996 (struct grub_udf_data): New field "lbshift" to hold the logical block
21997 size of the file system in log2 format. All users updated.
21998 (sblocklist): Change type to unsigned.
21999 (grub_udf_mount): Change type of "sblklist" to unsigned.
22000 Move AVDP search before VRS recognition, because the latter requires
22001 knowledge of the logical block size, which is detected during the
22003 Detect and validate logical block size during AVDP search, adding
22004 support for block sizes 512, 1024 and 4096.
22005 Make VRS recognition independent of block size.
22007 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22009 Properly handle deleted files on UDF.
22011 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22012 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22015 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22017 Support reading files larger than 2 GiB.
22019 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22020 "offset" to grub_off_t.
22021 (grub_udf_read_file): Likewise for parameter "pos".
22023 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22025 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22027 (Simple configuration): Refer to Changes from GRUB Legacy about
22028 save_env availability.
22030 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22032 * util/grub-install.in: Ignore empty partition table detection
22033 instead of trying to include part_ module.
22035 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22037 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22038 LVM on RAID support.
22040 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22042 Properly define WORDS_BIGENDIAN in wrapped environments.
22044 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22046 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22048 Reported by: Manoel Rebelo Abranches.
22049 Tested by: Manoel Rebelo Abranches.
22051 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22053 * util/grub-mkconfig.in: Fix quoting.
22055 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22057 Support big ext2 files.
22059 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22060 (grub_ext2_read_block): Support triple indirect blocks.
22061 (grub_ext2_read_file): Use 64-bit types and read size_high.
22062 (grub_ext2_open): Read size_high.
22063 Reported by: Ximin Luo.
22064 Tested by: Manoel Rebelo Abranches.
22066 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22068 * util/grub-install.in: Handle filenames containing spaces.
22069 Reported by: Jordan Uggla.
22070 Tested by: Jordan Uggla.
22072 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22074 * util/grub-mkconfig.in (grub_script_check): New variable.
22075 Use grub_script_check instead of grub-script-check.
22076 Reported by: Barry Jackson.
22078 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22080 * docs/grub.texi (menu): Correct the order.
22081 Reported by: D. Hugh Redelmeier.
22083 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22085 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22088 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22090 * include/grub/elfload.h (grub_elf32_size): New parameter.
22092 Return maximum segments alignment.
22093 (grub_elf64_size): Likewise.
22094 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22095 Return maximum segments alignment.
22096 (grub_elf64_size): Likewise.
22097 * grub-core/loader/powerpc/ieee1275/linux.c:
22098 (grub_linux_claimmap_iterate): New function. Uses the
22099 "available" property in the "memory" node for memory allocation
22100 for kernel in the PowerPC loader.
22101 (grub_linux_load32): Correctly find linux entry point offset.
22102 (grub_linux_load64): Likewise.
22104 2010-11-07 Robert Millan <rmh@gnu.org>
22106 On mips-yeeloong, build with -march=loongson2f when this flag is
22107 available (GCC >= 4.4).
22108 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22110 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22111 or otherwise add -march=mips3.
22113 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22115 Suppress shell expansion on echo '*' and echo "*" like cases.
22116 Reported by: Jordan Uggla.
22118 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22119 string arguments before shell expansion.
22120 * tests/grub_cmd_echo.in: New testcases.
22122 2010-11-07 Robert Millan <rmh@gnu.org>
22124 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22127 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22129 * grub-core/kern/emu/hostdisk.c
22130 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22132 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22134 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22135 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22136 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22138 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22140 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22142 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22144 * util/grub-install.in: Replace useless recomendation to pass
22145 --modules with a recomendation to report a bug.
22147 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22149 Properly register serial terminfo.
22150 Reported by: Jordan Uggla
22152 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22154 (grub_serial_terminfo_output_template): Likewise.
22155 (grub_cmd_serial): Register "serial" with terminfo.
22156 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22157 grub_serial_terminfo_output.
22159 2010-11-05 Robert Millan <rmh@gnu.org>
22161 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22164 2010-11-05 Robert Millan <rmh@gnu.org>
22166 On Yeeloong, pass machine type information to Linux.
22168 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22169 (LOONGSON_MACHTYPE): New macro, set to
22170 "machtype=lemote-yeeloong-2f-8.9inches".
22171 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22172 additional argument to Linux.
22174 2010-11-04 Robert Millan <rmh@gnu.org>
22176 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22177 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22178 (its SATA disks are detected as slaveless IDE master drives on
22180 Reported by Carsten Aulbert.
22182 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22184 * util/bin2h.c (main): Fix spelling error in generated output.
22186 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22188 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22190 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22192 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22193 vga= option is supplied.
22195 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22197 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22198 * util/grub.d/10_kfreebsd.in: Likewise.
22199 * util/grub.d/10_linux.in: Likewise.
22200 * util/grub.d/20_linux_xen.in: Likewise.
22202 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22204 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22205 argument as an argument to no-argument option.
22207 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22209 * util/grub.d/10_linux.in: Add missing load_video with explicit
22210 GRUB_GFXPAYLOAD_LINUX.
22212 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22214 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22216 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22218 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22219 elements with invlid index.
22220 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22221 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22223 * include/grub/raid.h (grub_raid_member): New struct.
22224 (grub_raid_array): Transform devices and start_sector into usage of
22225 grub_raid_member. All users updated
22226 (allocated_devs): New member.
22228 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22230 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22233 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22235 NetBSD build fix for getline function conflict from gnulib.
22237 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22238 components that depend on gnulib headers.
22239 (libgrubmods.a): Renamed from earlier libgrub.a.
22240 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22242 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22244 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22245 install rather than creating a broken install.
22247 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22249 * util/grub-setup.c (argp): Remove misleading example of installing to
22252 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22254 * util/grub-setup.c (setup): Clarify the error message.
22256 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22258 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22260 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22262 * grub-core/kern/emu/misc.c
22263 (grub_make_system_path_relative_to_its_root)
22264 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22266 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22268 * grub-core/kern/emu/misc.c
22269 (grub_make_system_path_relative_to_its_root): Revert r2882.
22271 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22273 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22274 useless field head. All users updated.
22275 (free_subchunk): Correct handling of IN_REGION subchunk.
22277 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22279 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22280 (Supported kernels): Likewise.
22282 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22284 Make mktemp invocations portable.
22286 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22287 exit if mktemp fails.
22288 * tests/grub_script_blockarg.in: Likewise.
22289 * tests/partmap_test.in: Likewise.
22290 * tests/util/grub-shell-tester.in: Likewise.
22291 * tests/util/grub-shell.in: Likewise.
22292 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22293 * Makefile.am: Likewise, and chain shell commands with `&&'
22295 * util/grub-mkrescue.in: Use the same explicit template as above, and
22296 exit if mktemp fails.
22298 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22300 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22301 Linux kernel, reported by Dennis Schridde.
22303 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22305 * grub-core/normal/auth.c (grub_auth_check_authentication):
22306 Set-but-not-used variable removed.
22308 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22310 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22311 32-bit linux protocol.
22313 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22315 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22316 cursor shape for sanity.
22318 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22320 * docs/grub.texi (Installation): Document buggy BIOS install.
22322 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22324 * docs/grub.texi (Installation): Indent.
22326 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22328 * util/grub-setup.c (setup): New parameter allow_floppy.
22329 (arguments): New member allow_floppy.
22330 (argp_parser): Handle --allow-floppy.
22331 (main): Pass allow_floppy.
22332 * util/grub-install.in: New option --allow-floppy passed though to
22335 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22337 * util/grub-install.in: Handle partitionless disks.
22339 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22341 * util/grub-setup.c (setup): Don't clean blocklists before readability
22344 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22346 * docs/grub.texi (Installation): Document embedding zone. Remove
22347 obsolete grub-install example.
22349 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22351 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22352 Set-but-not-used variable ifdef'ed.
22353 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22354 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22356 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22357 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22358 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22359 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22360 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22361 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22362 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22363 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22364 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22365 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22366 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22369 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22371 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22372 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22375 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22377 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22378 synonym to _S5_. Needed for some DSDTs.
22380 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22382 Userspace ACPI parser debugging.
22384 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22385 headers and add relevant defines. Don't include standard headers.
22386 (main) [GRUB_DSDT_TEST]: New function.
22387 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22388 Don't declare functions.
22390 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22392 Remove dead grub_efi_mm_fini.
22394 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22395 (ALLOCATED_PAGES_SIZE): Likewise.
22396 (MAX_ALLOCATED_PAGES): Likewise.
22397 (allocated_pages): Likewise.
22398 (grub_efi_allocate_pages): Don't record allocated pages.
22399 (grub_efi_free_pages): Likewise.
22400 (grub_efi_mm_init): Likewise.
22401 (grub_efi_mm_fini): Removed.
22403 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22405 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22406 (grub_efi_mm_init): Take into account the memory map size increase.
22408 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22410 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22411 (serial_hw_put): Wait based on real time rather than port reads. Don't
22413 * include/grub/serial.h (grub_serial_port): New field broken.
22415 2010-10-16 Robert Millan <rmh@gnu.org>
22417 * grub-core/kern/emu/misc.c
22418 (grub_make_system_path_relative_to_its_root): Fix premature return
22419 when processing non-root ZFS filesystems.
22420 Reported by Sergio Talens-Oliag.
22422 2010-10-15 Robert Millan <rmh@gnu.org>
22424 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22425 guarantee compressed ones are processed first.
22427 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22429 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22430 grub_efiemu_autocore.
22432 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22434 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22436 (grub_console_getkey): Use correct jae opcode rather than ja.
22438 2010-10-12 Robert Millan <rmh@gnu.org>
22440 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22441 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22442 variable. All references updated.
22444 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22446 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22448 Correctly distinguish mdraid flavours.
22450 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22451 (insert_array): New argument raid.
22452 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22453 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22454 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22456 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22458 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22459 handling of special keys.
22461 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22463 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22464 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22466 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22468 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22469 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22471 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22472 Use right endpoint when querying descriptor.
22474 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22476 Clear out 0x80 color bit on EFI.
22478 Reported by: decoder and meta tech.
22480 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22481 (grub_console_setcolorstate): Clear out 0x80 bit.
22482 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22483 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22484 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22486 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22488 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22491 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22493 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22494 mo_file after freeing.
22496 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22498 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22500 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22502 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22505 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22507 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22510 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22512 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22514 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22515 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22516 and terminfo.h when needed.
22517 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22518 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22519 (terminfo): Enable only on terminfokernel.
22520 (extcmd): Likewise.
22521 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22522 * include/grub/lib/arg.h: Likewise.
22523 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22524 incorrect usage of ->.
22526 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22528 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22529 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22531 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22533 Fix coreboot compilation.
22535 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22536 Take VBE info into account even if only text is supported.
22537 (fill_vbe_info): Take into account the case when only VGA text
22539 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22540 on coreboot, multiboot and qemu.
22542 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22544 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22546 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22548 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22550 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22553 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22555 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22556 if they were BSD-style.
22558 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22560 * grub-core/boot/i386/pc/lnxboot.S: Replace
22561 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22562 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22564 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22566 Write embedding zone using Reed-Solomon.
22568 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22569 * grub-core/Makefile.am (rs_decoder.S): New target.
22570 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22571 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22572 (multiboot): Move to RS part.
22573 (post_reed_solomon): New label.
22574 (grub_boot_drive): Move to non-RS part since it's modified in memory
22576 Include rs_decoder.S.
22577 * grub-core/lib/reed_solomon.c: New file.
22578 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22580 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22581 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22582 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22583 * include/grub/partition.h (grub_partition_map): Change prototype of
22584 embed to allow returning additional sectors.
22585 * include/grub/reed_solomon.h: New file.
22586 * util/grub-setup.c (setup): Handle Reed-Solomon.
22588 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22590 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22591 i386 and x86-64 definedness tests.
22593 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22595 Fix generation of kernel_syms.lst
22597 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22600 2010-09-26 Robert Millan <rmh@gnu.org>
22602 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22604 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22605 the pool is an array of devices, iterate through it and return the
22606 first device that passes a stat() test (instead of blindly returning
22609 2010-09-26 Robert Millan <rmh@gnu.org>
22611 Build fixes for GNU/kFreeBSD.
22613 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22614 to programs that require ZFS conversion.
22615 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22616 kernels that don't have FLOPPY_MAJOR.
22618 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22620 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22622 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22624 Fix grub-emu build.
22626 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22627 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22628 mdraid09 and mdraid1x.
22630 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22632 Re-enable grub-extras.
22634 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22635 avoid confusing Automake. Run autogen only twice, once for the top
22636 level and once for grub-core. Add Makefile.util.def and
22637 Makefile.core.def from extra modules to the appropriate autogen
22638 invocations. If Makefile.common exists in an extra module, include
22639 it in both Makefile.util.am and grub-core/Makefile.core.am;
22640 similarly, include any Makefile.util.common file in Makefile.util.am
22641 and any Makefile.core.common file in grub-core/Makefile.core.am.
22642 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22643 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22644 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22645 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22647 * gentpl.py (gvar_add): Turn GVARS into a set.
22648 (global_variable_initializers): Sort global variables on output.
22649 (vars_init): New function.
22650 (first_time): Likewise.
22651 (library): Ensure that non-global variable initialisations are
22652 emitted before the first time we emit code for a library block.
22653 Append to variables rather than setting them. Only emit
22654 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22655 each conditional path.
22656 (program): installdir() emits an Autogen macro, so must be passed to
22657 var_add rather than gvar_add.
22659 (script): Likewise.
22660 (rules): New function, centralising handling for different target
22661 types. Set up Guile association lists for first_time and vars_init,
22662 and send most output to a diversion so that variable initialisations
22663 can be emitted first.
22664 (module_rules): Use new rules function.
22665 (kernel_rules): Likewise.
22666 (image_rules): Likewise.
22667 (library_rules): Likewise.
22668 (program_rules): Likewise.
22669 (script_rules): Likewise.
22670 (data_rules): Likewise.
22672 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22674 * .bzrignore: Add contrib and grub-core/contrib. Remove
22675 grub-core/Makefile.gcry.am.
22677 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22679 * grub-core/lib/LzFind.c: Add missing include.
22680 * grub-core/lib/LzmaEnc.c: Likewise.
22681 * grub-core/script/lexer.c: Likewise.
22682 * grub-core/script/yylex.l: Likewise.
22683 * util/grub-macho2img.c: Likewise.
22684 * util/grub-menulst2cfg.c: Likewise.
22685 * util/grub-mklayout.c: Likewise.
22686 * util/grub-mkpasswd-pbkdf2.c
22687 * util/grub-mkrelpath.c: Likewise.
22688 * util/resolve.c: Likewise.
22690 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22692 * Makefile.util.def (example_unit_test): Add
22693 grub-core/gnulib/libgnu.a.
22695 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22697 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22699 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22701 Support xz compression on yeeloong.
22703 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22704 * configure.ac: Check for LZMA.
22705 * grub-core/Makefile.core.def (xz_decompress): New target.
22706 (none_decompress): Likewise.
22707 * grub-core/boot/decompressor/minilib.c: New file.
22708 * grub-core/boot/decompressor/none.c: Likewise.
22709 * grub-core/boot/decompressor/xz.c: Likewise.
22710 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22711 * grub-core/kern/mips/cache_flush.S: Likewise.
22712 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22713 * grub-core/kern/mips/startup.S: Move first stage to ...
22714 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22716 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22717 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22718 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22719 Allocate statically.
22720 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22721 Allocate statically or use scratch. Don't check CRC32.
22722 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22723 Allocate statically. Don't check CRC32.
22724 * include/grub/decompressor.h: New file.
22725 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22727 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22728 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22729 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22730 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22731 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22732 * util/grub-mkimage.c (grub_compression_t): New type.
22733 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22734 (image_target_desc): New field default_compression.
22735 (image_targets): Adjust yeeloong targets.
22736 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22737 (compress_kernel): New parameter comp.
22738 (generate_image): Likewise. Handle new compression case.
22739 (options): New option --compression
22741 (main): Handle new option.
22743 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22745 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22747 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22749 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22750 typo in __i386__ conditional.
22752 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22754 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22757 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22759 Implement EFI and ACPI multiboot2 extensions.
22761 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22762 new tags as supported.
22763 (acpiv2_size): New function.
22764 (grub_multiboot_get_mbi_size): Take new tags into account.
22765 (grub_multiboot_make_mbi): Add new tags.
22766 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22768 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22770 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22771 Added missing configuration of USB device.
22773 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22775 * grub-core/normal/menu_entry.c (run): Make sure we always return
22778 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22780 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22781 NumberOfPages is UINT64 according to the UEFI specification, not
22782 UINTN. Fix printf format.
22784 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22786 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22787 `err' to grub_usb_err_t.
22788 Reported and tested by: KESHAV P.R.
22790 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22792 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22793 tpart non-const, so that we can assign to it. (Since this is a
22794 typedef, the constness refers to the pointer rather than what it
22797 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22799 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22800 $(top_srcdir)/grub-core/gnulib as well as
22801 $(top_builddir)/grub-core/gnulib.
22802 Reported by: KESHAV P.R.
22804 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22806 * util/grub-install.in: Fix the bootloader ID option to be
22807 consistently --bootloader-id, not --bootloader_id.
22808 Reported by: KESHAV P.R.
22810 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22812 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22813 check hash checksum." consistently translatable.
22815 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22817 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22820 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22822 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22823 (GRUB_MOD_INIT): Register sha1sum command.
22824 (GRUB_MOD_FINI): Unregister sha1sum command.
22826 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22828 Keep boot and grub directory names in sync with utils scripts
22830 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22831 * config.h.in: Add previous macros.
22832 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22833 * util/grub-install.in: Use $bootdir and $grubdir variables.
22835 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22837 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22838 convert partition names to disk names if the new `convert' parameter
22840 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22841 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22842 disk in its own right. This can happen with Xen disk images.
22844 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22846 * util/grub-editenv.c: Update strings to avoid warnings when generating
22848 * util/grub-setup.c: Likewise.
22850 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22852 * configure.ac: Change version to 1.99~beta0.
22854 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22856 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22858 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22860 * include/multiboot.h: Resynced with specification.
22861 * include/multiboot2.h: Likewise.
22863 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22865 Fix po directory handling.
22867 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22868 * grub-core/gnulib/Makefile.am: Import gettext module.
22869 * m4/gnulib-cache.m4: Likewise.
22870 * m4/gnulib-comp.m4: Likewise.
22871 * m4/gettext.m4: New file, from gnulib.
22872 * m4/glibc2.m4: Likewise.
22873 * m4/iconv.m4: Likewise.
22874 * m4/intdiv0.m4: Likewise.
22875 * m4/intl.m4: Likewise.
22876 * m4/intldir.m4: Likewise.
22877 * m4/intlmacosx.m4: Likewise.
22878 * m4/intmax.m4: Likewise.
22879 * m4/inttypes-pri.m4: Likewise.
22880 * m4/lcmessage.m4: Likewise.
22881 * m4/lib-ld.m4: Likewise.
22882 * m4/lib-link.m4: Likewise.
22883 * m4/lib-prefix.m4: Likewise.
22884 * m4/lock.m4: Likewise.
22885 * m4/nls.m4: Likewise.
22886 * m4/po.m4: Likewise.
22887 * m4/printf-posix.m4: Likewise.
22888 * m4/progtest.m4: Likewise.
22889 * m4/threadlib.m4: Likewise.
22890 * m4/uintmax_t.m4: Likewise.
22891 * m4/visibility.m4: Likewise.
22892 * po/Makefile.am: Remove.
22893 * po/Makefile.in.in: New file, from gettext.
22894 ($(DOMAIN).pot-update): Support POTFILES-shell.
22895 * po/Makevars: New file.
22896 * po/POTFILES-shell: Rename to ...
22897 * po/POTFILES-shell.in: ... this. Update.
22898 * po/POTFILES: Rename to ...
22899 * po/POTFILES.in: ... this. Update.
22900 * po/Rules-quot: New file, from gettext.
22901 * po/boldquot.sed: Likewise.
22902 * po/en@boldquot.header: Likewise.
22903 * po/en@quot.header: Likewise.
22904 * po/insert-header.sin: Likewise.
22905 * po/quot.sed: Likewise.
22906 * po/remove-potcdate.sin: Likewise.
22908 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22910 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22912 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22914 * util/grub.d/20_linux_xen.in: Use submenus.
22916 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22920 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22921 parameter submenu. All users updated.
22922 * grub-core/normal/main.c (free_menu): Rename to ...
22923 (grub_normal_free_menu): ... this. Made global.
22924 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22926 * grub-core/normal/menu_entry.c (screen): New field submenu.
22927 (make_screen): Set submenu.
22928 (run): Open new context if requested.
22929 * include/grub/menu.h (grub_menu_entry): New field submenu.
22930 * include/grub/normal.h (grub_normal_free_menu): New proto.
22932 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22934 Menu entries extractor.
22936 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22938 (GRUB_MOD_INIT): Register new variants.
22939 (GRUB_MOD_FINI): Unregister new variants.
22940 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22941 into grub_cmd_legacy_source.
22942 (grub_cmd_legacy_source): Implement extractor variants.
22943 (GRUB_MOD_INIT): Register new variants.
22944 (GRUB_MOD_FINI): Unregister new variants.
22945 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22947 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22948 search as an extractor.
22949 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22950 test as an extractor.
22951 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22953 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22954 (grub_env_new_context): New function.
22955 (grub_env_context_open): Likewise.
22956 (grub_env_extractor_open): Likewise.
22957 (grub_env_extractor_close): Likewise.
22958 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22959 grub_extractor_level.
22960 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22961 * include/grub/env.h (grub_env_extractor_open): New proto.
22962 (grub_env_extractor_close): Likewise.
22963 * include/grub/normal.h (grub_extractor_level): New external variable.
22965 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22967 Make cutmem accept a region specification.
22968 Suggested by: Samuel Thibault
22970 * grub-core/mmap/mmap.c (parsemem): New function.
22971 (grub_cmd_cutmem): Handle new arguments.
22973 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22975 New command cutmem.
22977 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
22978 (GRUB_MOD_INIT): Register new command.
22979 (GRUB_MOD_FINI): Unregister new command.
22981 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22983 Support some annoying BSD and Minix subpartitions.
22985 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
22986 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
22987 Properly handle concatenation.
22988 * grub-core/kern/device.c (grub_device_iterate): Likewise.
22989 * grub-core/normal/completion.c (iterate_partition): Likewise.
22990 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
22991 contain partition. All users updated.
22992 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
22994 (grub_openbsdlabel_partition_map): Likewise.
22995 (bsdlabel_partition_map_iterate): Rename to ..
22996 (iterate_real): ... this. New arguments sector, freebsd and pmap.
22997 (bsdlabel_partition_map_iterate): New function.
22998 (netopenbsdlabel_partition_map_iterate): Likewise.
22999 (netbsdlabel_partition_map_iterate): Likewise.
23000 (openbsdlabel_partition_map_iterate): Likewise.
23001 (GRUB_MOD_INIT): Register new partmaps.
23002 (GRUB_MOD_FINI): Unregister new partmaps.
23003 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23004 (grub_partition_msdos_iterate): ... this. All users updated.
23005 Don't support embedding other than in a minix partition.
23006 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23008 * include/grub/partition.h (grub_partition): New field msdostype.
23009 * util/grub-install.in: Handle openbsd and netbsd types being in
23012 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23014 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23016 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23017 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23018 (mdraid09): ... this.
23019 (mdraid1x): New module.
23020 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23021 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23023 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23025 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23028 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23030 * grub-core/commands/efi/lsefimmap.c: Correct header.
23033 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23035 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23036 as printf format strings; the translations might contain '%' which
23037 could cause a crash.
23039 * util/grub-fstest.c (argp_parser): Likewise.
23040 * util/grub-setup.c (argp_parser): Likewise.
23043 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23045 Use argp in grub-fstest.
23047 * util/grub-fstest.c: Don't include getopt.h.
23049 (root): New variable.
23050 (args_count): Likewise.
23052 (num_disks): Likewise.
23053 (images): Likewise.
23055 (debug_str): Likewise.
23057 (options): Transformed to argp.
23059 (main): Split argument parsing into ...
23060 (argp_parser): ... this. Changed to argp format.
23061 (argp): New variable.
23062 (main): Use argp_parse.
23064 2010-09-20 Tristan Gingold <gingold@free.fr>
23065 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23066 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23068 * grub-core/commands/efi/lsefimmap.c: New file.
23069 * grub-core/Makefile.core.def (lsefimmap): New module.
23070 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23072 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23074 Pause the execution (10s max) if any errors are displayed so the user
23075 has a chance to see them.
23077 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23078 (grub_print_error): Increment grub_err_printed_errors.
23079 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23080 execution if any errors were displayed.
23081 (show_menu): Remove old code for pause.
23082 * grub-core/normal/menu_entry.c (run): Likewise.
23083 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23085 (grub_normal_get_char_counter): Likewise.
23086 * include/grub/err.h (grub_err_printed_errors): New external variable.
23087 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23089 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23091 Support multiboot VBE info.
23093 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23094 Take VBE info into account.
23095 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23096 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23097 Call fill_vbe_info when appropriate.
23098 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23099 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23101 (grub_multiboot_get_mbi_size): Take new tags into account.
23102 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23103 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23104 Call fill_vbe_tag when appropriate.
23105 (grub_multiboot_make_mbi): Properly align tags.
23106 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23108 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23110 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23112 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23114 Suport manual terminal geometry specification.
23116 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23117 Save state in grub_ofconsole_terminfo_output.
23118 (grub_ofconsole_term): Use grub_terminfo_getwh.
23119 (grub_ofconsole_getwh): Removed.
23120 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23121 (grub_serial_term): Use grub_terminfo_getwh.
23122 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23123 (options): New struct.
23124 (OPTION_*): New enum.
23125 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23126 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23128 (grub_terminfo_getwh): New proto.
23129 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23131 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23133 Handle legacy "terminal" command.
23135 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23137 (legacy_commands): Add terminal and title.
23138 (grub_legacy_parse): Handle terminal. Simplify title handling.
23140 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23142 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23143 parameters overflow.
23145 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23147 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23150 * docs/grub.texi (Shell-like scripting): Document `!'.
23151 (Network): Simplify using new i386-pc-pxe format. Mention
23156 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23158 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23159 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23162 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23164 * grub-core/commands/efi/lsefisystab.c: Correct header.
23165 * grub-core/commands/efi/lssal.c: Likewise.
23166 * grub-core/commands/testload.c: Likewise.
23168 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23170 * util/grub-mkrescue.in: Add explicit root argument to --set to
23171 prevent the UUID being interpreted as an argument to --set (matches
23172 previous change to prepare_grub_to_access_device).
23174 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23176 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23177 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23178 the verbosity of later #ifs.
23179 (find_partition_start): Define this function on FreeBSD too.
23180 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23182 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23185 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23187 * util/grub-editenv.c: Use argp instead of getopt.
23189 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23191 * util/grub-setup.c: Use argp instead of getopt.
23193 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23195 Use gnulib-tool to create gnulib source files.
23197 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23198 grub-core/gnulib directories
23199 * .bzignore: Add **/.deps and autogenerated gnulib files
23200 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23201 of gnulib macros, add grub-core/gnulib/Makefile
23202 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23203 include m4 directory to aclocal.
23204 * Makefile.util.def: Remove direct compilation of gnulib source files
23205 and use the new grub-core/gnulib/libgnu.a.
23206 * build-aux/config.rpath: move config.rpath from top directory to
23208 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23210 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23211 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23212 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23214 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23217 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23219 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23220 grub-core/genmod.sh and grub-core/gensyminfo.sh
23222 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23224 Add a test for echo command options.
23226 * tests/grub_cmd_echo.in: New test.
23227 * Makefile.util.def: Rules for new test.
23229 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23231 Remove crc.mod and move crc command to hashsum.mod.
23232 Remove lib/crc.c - users updated to use gcrypt implementation.
23234 * grub-core/commands/crc.c: Removed.
23235 * grub-core/Makefile.core.def (crc): Module removed.
23236 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23237 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23238 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23239 * grub-core/lib/crc.c: Removed.
23240 * include/grub/lib/crc.h: Removed.
23241 * Makefile.util.def (crc): Remove lib/crc.c
23242 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23243 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23244 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23245 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23246 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23247 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23249 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23251 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23253 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23255 Split config.h for util and core.
23257 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23258 (ADDR32): Likewise.
23259 (DATA32): Likewise.
23260 (BSS_START_SYMBOL): Likewise.
23261 (END_SYMBOL): Likewise.
23262 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23263 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23264 * config.h.in: New file.
23265 * configure.ac: Use config-util.h as config define file.
23266 Rename MACHINE into GRUB_MACHINE. All users updated.
23267 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23269 (NESTED_FUNC_ATTR): Likewise.
23270 Substitue new variables.
23271 (COND_HAVE_ASM_USCORE): New conditional.
23272 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23273 (kernel_syms.lst): Use ASM_PREFIX.
23274 * grub-core/kern/emu/console.c: Include config-util.h.
23275 * grub-core/kern/emu/misc.c: Likewise.
23276 * grub-core/kern/emu/mm.c: Likewise.
23277 * include/grub/emu/misc.h: Likewise.
23278 * include/grub/libgcc.h: Likewise.
23280 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23282 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23284 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23285 Fix GRUB_TERM_KEY_* constants usage.
23286 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23288 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23290 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23292 * grub-core/bus/usb/uhci.c: Remove empty define.
23293 (grub_uhci_check_transfer): Add missing cast.
23294 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23296 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23298 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23300 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23302 * grub-core/Makefile.core.def (legacycfg): Add
23303 lib/i386/pc/vesa_modes_table.c on emu.
23305 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23307 Reduce number of temporary files generated by build system.
23309 * grub-core/gencmdlist.sh: Removed.
23310 * grub-core/genfslist.sh: Removed.
23311 * grub-core/genhandlerlist.sh: Removed.
23312 * grub-core/genmodsrc.sh: Removed.
23313 * grub-core/genpartmaplist.sh: Removed.
23314 * grub-core/genparttoollist.sh: Removed.
23315 * grub-core/gentermiinallist.sh: Removed.
23316 * grub-core/genvideolist.sh: Removed.
23318 * grub-core/genmod.sh.in: New file.
23319 * grub-core/gensyminfo.sh.in: New file.
23321 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23322 * conf/Makefile.extra-dist: Update with new files.
23323 * gentpl.py: Remove rules related to unnecessary temporary files.
23324 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23326 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23328 * grub-core/bus/usb/uhci.c: Remove empty #define.
23329 * grub-core/genmoddep.awk: Updated with new syminfo format.
23330 * util/bash-completion.d/Makefile.am: Add config.log to
23333 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23335 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23337 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23339 * util/grub-mkconfig.in: Check the config script for syntax errors
23342 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23343 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23345 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23347 * util/grub-install.in: Add EFI and IEEE1275 support.
23348 * util/i386/efi/grub-install.in: Removed.
23349 * util/ieee1275/grub-install.in: Likewise.
23351 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23353 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23354 (grub_cmd_cmosclean): Likewise.
23355 (GRUB_MOD_INIT): Register command cmosclean.
23356 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23357 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23359 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23360 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23361 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23363 Add keyboard layouts support.
23365 * Makefile.util.def (grub-mklayout): New file.
23366 (grub-kbdcomp): New script.
23367 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23368 Add keyboard_layouts.h.
23369 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23370 commands/boot.c on yeeloong.
23371 (keylayouts): New module.
23372 * grub-core/bus/usb/ohci.c
23373 * grub-core/bus/usb/uhci.c
23374 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23375 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23376 (attach_root_port): Likewise.
23377 (poll_nonroot_hub): Likewise.
23378 (grub_usb_poll_devices): Likewise.
23379 (detach_device): Close transfer.
23380 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23382 (grub_usb_bulk_setup_readwrite): Likewise.
23383 (grub_usb_bulk_finish_readwrite): Likewise.
23384 * grub-core/commands/keylayouts.c: New file.
23385 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23386 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23388 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23389 support scancode 2.
23390 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23391 * include/grub/keyboard_layouts.h: New file.
23392 * util/grub-mklayout.c: New file.
23393 * util/grub-kbdcomp.in: Likewise.
23395 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23397 Unify memory types.
23399 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23400 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23402 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23403 (grub_upper_mem): Likewise.
23404 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23405 * include/grub/memory.h (grub_memory_type_t): New enum.
23408 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23410 * grub-core/Makefile.core.def (lsapm): New module.
23411 * grub-core/commands/i386/pc/lsapm.c: New file.
23412 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23413 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23415 * include/grub/i386/pc/apm.h: New file.
23416 * include/multiboot.h (multiboot_apm_info): New struct.
23418 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23420 GRUB-legacy configuration file support.
23422 * Makefile.util.def (grub-menulst2cfg): New util.
23423 * docs/man/grub-menulst2cfg.h2m: New file.
23424 * grub-core/Makefile.core.def (legacycfg): New module.
23425 * grub-core/commands/legacycfg.c: New file.
23426 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23427 (grub_normal_add_menu_entry): ... this.
23428 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23429 (grub_normal_set_password): ...this.
23430 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23431 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23432 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23433 * grub-core/lib/legacy_parse.c: New file.
23434 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23435 * include/grub/i386/pc/vesa_modes_table.h: New file.
23436 * include/grub/legacy_parse.h: Likewise.
23437 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23438 * util/grub-menulst2cfg.c: New file.
23440 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23442 * grub-core/kern/emu/hostdisk.c
23443 (convert_system_partition_to_system_disk): Initialise node.
23445 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23447 * grub-core/kern/emu/hostdisk.c
23448 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23450 Reported and based on patch by: Modestas Vainius.
23452 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23454 Fix DM-RAID probing with recent versions of device-mapper udev
23457 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23458 canonicalise device paths under /dev/mapper/.
23459 (convert_system_partition_to_system_disk): Compare the
23460 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23461 path, since device nodes under /dev/mapper/ are often symlinks.
23463 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23465 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23467 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23469 * configure.ac: Avoid some annoying error messages if freetype-config
23470 program is not found.
23472 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23474 Support RAID on virtio devices, and others.
23476 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23478 [__MINGW32__] (grub_find_device): ... this.
23479 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23480 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23481 reasonable default if dir is NULL.
23482 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23484 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23485 (grub_guess_root_device): Update callers.
23486 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23488 * util/raid.c (grub_util_getdiskname): Remove.
23489 (grub_util_raid_getmembers): Use grub_find_device rather than
23490 grub_util_getdiskname.
23492 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23494 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23495 needing to be compiled with serial support.
23496 (ls): Indicate that multiple files are accepted.
23497 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23498 indicate that multiple files are accepted.
23500 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23502 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23503 libgrub_a_init.c, and util/bash-completion.d/grub.
23505 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23507 * util/grub-setup.c (setup): Fix incorrect container semantics.
23509 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23511 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23513 Reported by: J. Nick Terry
23515 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23517 Move embedding routines to partmap sources files.
23519 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23520 [GRUB_UTIL]: New variable.
23521 (gpt_partition_map_iterate): Set part.parent.
23522 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23523 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23524 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23526 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23527 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23528 (grub_partition_map) [GRUB_UTIL]: New field embed.
23529 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23530 (setup): Use ->embed.
23532 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23534 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23536 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23537 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23539 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23541 Add function to get completions from usage.
23543 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23544 completions from usage. Use LC_ALL=C to get options properly.
23546 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23548 * grub-core/gnulib/basename-lgpl.c: Imported.
23549 * grub-core/gnulib/basename.c: Likewise.
23550 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23551 * grub-core/gnulib/dirname.c: Likewise.
23552 * grub-core/gnulib/dirname.h: Likewise.
23553 * grub-core/gnulib/stripslash.c: Likewise.
23555 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23557 * grub-core/gnulib/error.c: Resynced.
23558 * grub-core/gnulib/getopt.c: Likewise.
23559 * grub-core/gnulib/getopt_int.h: Likewise.
23560 * grub-core/gnulib/regex.h: Likewise.
23561 * grub-core/gnulib/regex_internal.c: Likewise.
23562 * grub-core/gnulib/regex_internal.h: Likewise.
23564 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23566 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23567 CRC calculations and validity checks.
23568 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23571 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23573 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23575 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23577 Fix incorrect echo options handling.
23578 Reported by: Yves Blusseau.
23580 * include/grub/command.h (grub_command_flags_t): New flags
23581 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23582 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23583 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23585 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23587 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23589 (GRUB_COMMAND_FLAG_MENU): Likewise.
23590 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23591 (GRUB_COMMAND_FLAG_TITLE): Removed.
23592 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23593 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23594 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23595 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23596 (grub_command_flags_t): New enum. All users updated.
23598 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23600 Fix solaris compilation.
23602 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23603 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23604 (grub-emu-list): Likewise.
23606 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23608 Remove deprecated root command.
23610 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23613 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23615 * util/i386/pc/grub-setup.c: Merge this ...
23616 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23617 * util/grub-setup.c: ... into this.
23618 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23621 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23623 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23626 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23628 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23631 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23633 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23634 explicit root argument to set to prevent UUID to be interpreted as
23637 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23639 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23641 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23643 Don't export grub_gate_a20.
23645 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23646 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23648 (grub_gate_a20): ... this. All users updated.
23649 * include/grub/i386/pc/init.h: Removed. All users updated.
23651 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23653 Create euro.pf2 which supports most European languages.
23655 * Makefile.am (grubdata_DATA): Add euro.pf2.
23656 (euro.pf2): New target.
23657 (CLEANFILES): Add euro.pf2.
23659 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23661 * configure.ac: Disable emu-usb by default to prevent inadvertent
23664 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23666 Disable usbserial on grub-emu since our libusb code isn't good enough
23669 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23670 (usbserial_pl2303): Likewise.
23671 (usbserial_ftdi): Likewise.
23673 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23675 * include/grub/disk.h (grub_disk): Remove has_partitions.
23677 * disk/loopback.c (grub_loopback): Remove has_partitions.
23679 (options): Remove partitions. All users updated.
23680 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23681 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23682 actual partition table is found.
23684 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23686 Remove readability checks (too many false negatives).
23688 * util/grub-install.in: Remove readability checks.
23689 * util/grub-mkconfig.in: Likewise.
23690 * util/grub.d/10_hurd.in: Likewise.
23691 * util/grub.d/10_kfreebsd.in: Likewise.
23692 * util/grub.d/10_linux.in: Likewise.
23693 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23696 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23698 Enable acpi shutdown on all ACPI platforms.
23700 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23701 on coreboo, multiboot and EFI.
23702 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23703 (grub_acpi_halt): Likewise.
23704 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23705 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23706 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23707 * grub-core/lib/i386/halt.c (grub_halt)
23708 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23710 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23712 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23715 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23717 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23718 * grub-core/video/efi_uga.c: Likewise.
23720 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23722 Filter devaliases and never open same device twice.
23724 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23725 (last_ihandle): Likewise.
23726 (ofdisk_hash_ent): New member shortest.
23727 (ofdisk_hash_add): Add canonical path too.
23728 (scan): New function.
23729 (grub_ofdisk_iterate): Iterate over hashed entries.
23730 (compute_dev_path): Don't add :0.
23731 (grub_ofdisk_open): Don't really open the disk.
23732 (grub_ofdisk_close): Avoid closing unrelated disk.
23733 (grub_ofdisk_read): Implement reopen logic.
23734 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23736 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23739 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23743 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23744 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23745 right address. Add sparc64_ieee1275_ldflags.
23746 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23747 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23748 to grub_host_to_target_addr
23749 (load_image): Likewise.
23751 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23753 * grub-core/normal/completion.c (complete_file): Handle device
23755 Fix based on patch by Doug Nazar.
23757 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23759 grub-mknetdir script.
23761 * Makefile.util.def (grub-mknetdir): New module.
23762 * tests/util/grub-shell.in: Support boot=net
23763 * util/grub-mknetdir.in: New file.
23765 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23767 videoinfo on non-vbe.
23769 * grub-core/Makefile.core.def (vbeinfo): Removed.
23770 (vbetest): Removed.
23771 (videoinfo): New module.
23772 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23773 * grub-core/commands/i386/pc/vbetest.c: Removed.
23774 * grub-core/commands/videoinfo.c: New file.
23775 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23777 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23779 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23780 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23781 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23782 mode_number. New parameter mode. All users updated.
23783 (grub_video_gop_iterate): New function.
23784 (grub_video_efi_gop): New member iterate.
23785 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23786 (grub_vbe_set_video_mode): Remove setting useless fields.
23787 (vbe2videoinfo): New function.
23788 (grub_video_vbe_iterate): Likewise.
23789 (grub_video_vbe_setup): Use vbe2videoinfo.
23790 (grub_video_vbe_print_adapter_specific_info): New function.
23791 (grub_video_vbe_adapter): New fields iterate and
23792 print_adapter_specific_info.
23793 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23795 (grub_video_mode_info): New field mode_number.
23796 (grub_video_adapter): New fields iterate and
23797 print_adapter_specific_info.
23799 2010-09-13 Tristan Gingold <gingold@free.fr>
23800 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23801 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23803 * grub-core/commands/efi/lsefisystab.c: New file.
23804 * grub-core/commands/efi/lssal.c: Likewise.
23805 * grub-core/Makefile.core.def (lsacpi): New module.
23806 (lsefisystab): Likewise.
23807 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23808 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23809 (grub_efi_sal_system_table): New struct.
23810 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23811 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23812 (grub_efi_sal_system_table_platform_features): Likewise.
23813 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23814 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23815 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23816 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23818 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23820 Support explicit user claim that a device is BIOS-visible.
23822 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23823 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23824 * grub-core/kern/emu/hostdisk.c
23825 (convert_system_partition_to_system_disk): Support mdX.
23826 (find_system_device): New parameter add. All users updated.
23827 (grub_util_biosdisk_is_present): New function.
23828 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23831 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23833 Search hints support.
23835 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23838 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23840 Bash completion script for util commands
23842 * Makefile.am: Add util/bash-completion.d directory
23843 * configure.ac: Likewise.
23844 * util/bash-completion.d/Makefile.am: New file.
23845 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23847 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23849 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23850 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23851 Reported by: Yves Blusseau.
23853 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23855 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23856 partition size and offset.
23858 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23860 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23862 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23864 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23866 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23868 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23869 (grub_xvasprintf): Likewise.
23871 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23873 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23875 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23877 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23878 args ending with NULL.
23880 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23882 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23885 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23887 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23889 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23891 Shutdown using ACPI.
23893 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23894 * grub-core/commands/acpihalt.c: New file.
23895 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23896 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23897 (grub_acpi_halt): New proto.
23898 (GRUB_ACPI_SLP_EN): New const.
23899 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23900 (GRUB_ACPI_OPCODE_*): New enum.
23901 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23903 2010-09-11 Tristan Gingold <gingold@free.fr>
23904 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23905 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23907 * commands/lsacpi.c: New file.
23908 * grub-core/Makefile.core.def (lsacpi): New module.
23909 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23910 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23911 (grub_acpi_madt_entry_header): New struct.
23912 (grub_acpi_madt): Likewise.
23913 (grub_acpi_madt_entry_interrupt_override): Likewise.
23914 (grub_acpi_madt_entry_sapic): Likewise.
23915 (grub_acpi_madt_entry_lsapic): Likewise.
23916 (grub_acpi_madt_entry_platform_int_source): Likewise.
23917 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23918 (PRIuGRUB_UINT32_T): Likewise.
23919 (PRIxGRUB_UINT64_T): Likewise.
23921 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23923 Implement loading palette on ieee1275_fb.
23925 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23926 (have_setcolors): Likewise.
23927 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23928 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23929 (grub_video_ieee1275_set_palette): Implement.
23931 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23932 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23934 * util/grub-install.in (grub_partition): New variable.
23935 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23936 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23937 Fixes a bug reported by Yves Blusseau.
23939 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23943 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23944 =grub_cpu_flush_cache on all mips and not only yeeloong.
23945 * configure.ac (COND_mips): New conditional.
23946 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23948 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23949 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23950 [GRUB_LINKER_HAVE_INIT]: New function.
23951 (grub_emu_post_init): Likewise.
23952 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23953 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23954 * include/grub/cache.h (_mips): Include mips/cache.h.
23955 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23956 LVM and RAID prototypes.
23957 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23958 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23961 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23963 * util/grub-install.in: Don't try to verify core.img until after
23964 running grub-mkimage to create it.
23966 2010-09-10 Robert Millan <rmh@gnu.org>
23968 * util/grub.d/10_hurd.in: Add misc readability checks.
23969 * util/grub.d/10_kfreebsd.in: Likewise.
23970 * util/grub.d/10_linux.in: Likewise.
23972 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23974 * util/grub-install.in: ${imgext} won't be defined here until the
23975 install branch is merged. For the meantime, only verify core.img on
23976 i386-pc and sparc64-ieee1275 platforms.
23978 2010-09-10 Robert Millan <rmh@gnu.org>
23980 Solaris support in grub_find_zpool_from_dir(). Thanks
23981 Seth Goldberg for referring to getextmntent() facility.
23983 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
23985 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
23987 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
23988 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
23989 method for finding zpool name.
23991 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23993 grub-fstest needs the host and hostfs modules while other utilities
23994 actively require those modules to be absent, so grub-fstest needs
23995 its own initialisation and finalisation code.
23997 * Makefile.am (grub_fstest.pp): New target.
23998 (grub_fstest_init.lst): Likewise.
23999 (grub_fstest_init.c): Likewise.
24000 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24002 2010-09-10 Robert Millan <rmh@gnu.org>
24004 * configure.ac: Check for `struct statfs.f_fstypename' and
24005 `struct statfs.f_mntfromname'.
24007 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24008 kFreeBSD-specific code.
24010 2010-09-10 Robert Millan <rmh@gnu.org>
24012 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24013 on ZFS. Now non-main filesystems are supported as / too.
24015 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24017 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24018 and grub-core/disk/host.c to ...
24019 (grub-fstest): ... here. Having the host disk implementation
24020 present confuses grub-probe and other utility programs.
24022 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24023 when writing to a file, not when writing to stdout.
24025 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24027 * tests/partmap_test.in: New test for partitions.
24028 * Makefile.util.def: Rules for new test.
24030 2010-09-09 Robert Millan <rmh@gnu.org>
24032 * util/grub-probe.c (probe): Fix a pair of unhandled error
24035 2010-09-09 Robert Millan <rmh@gnu.org>
24037 Basic Btrfs support (detection and UUID).
24039 * grub-core/fs/btrfs.c: New file.
24040 * Makefile.util.def (library): Register btrfs.c.
24041 * grub-core/Makefile.core.def: Likewise.
24043 2010-09-08 Robert Millan <rmh@gnu.org>
24045 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24046 with (optional) parameters to specify device and relative path.
24047 * util/grub-install.in: Use is_path_readable_by_grub() to
24048 verify readability of a few critical files.
24049 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24050 verify readability of grub.cfg.new.
24052 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24054 Split minix.mod into minix.mod and minix2.mod.
24056 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24057 * grub-core/Makefile.core.def (minix2): New module.
24058 * grub-core/fs/minix.c: Use definitions instead of runtime version
24060 * grub-core/fs/minix2.c: New file.
24062 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24064 Add new --boot-directory option to replace --root-directory
24066 * util/grub-install.in: Add new --boot-directory option
24067 * util/grub-reboot.in: Likewise.
24068 * util/grub-set-default.in: Likewise.
24070 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24072 * util/grub-mkconfig.in: Use new variable.
24074 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24076 * configure.ac: Define some useful variables.
24078 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24080 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24081 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24082 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24083 Use terminfo and don't use cursor-on/cursor-off unless it's known
24085 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24086 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24088 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24090 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24091 starts with "(,", fill the drive containing the loaded image in
24092 between those two characters, but expect that a full partition
24093 specification including partition map names will follow.
24095 2010-09-08 Robert Millan <rmh@gnu.org>
24097 * configure.ac: Remove `--enable-grub-fstest' option.
24098 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24100 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24101 `grub-fstest' instead of `grub-probe' for readability verification.
24102 * util/grub-probe.c (probe): Remove readability verification kludge.
24104 2010-09-08 Robert Millan <rmh@gnu.org>
24106 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24107 initializing `GRUB_FS'.
24109 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24111 Not command (!) support to GRUB script.
24113 * tests/grub_script_not.in: New test.
24114 * Makefile.util.def: Rules for new test.
24116 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24117 ! command as a special case.
24118 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24120 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24122 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24125 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24127 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24129 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24131 * docs/grub.texi (Shell-like scripting): Documentation for break,
24132 continue, shift and return commands.
24134 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24136 Rename CD-ROM to cd on BIOS.
24138 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24140 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24142 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24144 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24145 * util/grub-probe.c (main): Likewise.
24146 * util/i386/pc/grub-setup.c (main): Likewise.
24147 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24148 Reported and debugged by: alexxy
24150 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24152 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24155 2010-09-05 Jo Shields <directhex@apebox.org>
24157 * util/grub.d/30_os-prober.in: Add missing classes.
24159 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24161 * docs/grub.texi (Theme file format): Document new position format.
24163 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24165 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24166 a table. Use @code instead of @verbatim.
24168 2010-09-05 Colin D Bennett <colin@gibibit.com>
24170 Gfxmenu documentation.
24172 * docs/grub.texi (Theme file format): New chapter.
24174 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24176 * grub-core/Makefile.core.def (xzio): New module.
24177 * grub-core/io/xzio.c: New file.
24178 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24179 * grub-core/lib/xzembed/xz_config.h: Likewise.
24180 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24181 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24182 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24183 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24184 * grub-core/lib/xzembed/xz_private.h: Likewise.
24185 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24186 * include/grub/file.h (grub_file_filter_id): New compression filter
24187 GRUB_FILE_FILTER_XZIO.
24189 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24191 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24192 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24195 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24197 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24198 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24200 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24202 Uncompressed checksum support.
24204 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24205 (check_list): New parameter uncompress.
24206 (grub_cmd_hashsum): Handle --uncompress.
24208 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24210 Reintroduce testload.
24212 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24214 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24215 (GRUB_MOD_INIT): New function.
24216 (GRUB_MOD_FINI): Likewise.
24217 * grub-core/Makefile.core.def (testload): New module.
24219 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24221 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24222 (uint8_t): New type.
24223 (uint16_t): Likewise.
24224 (uint32_t): Likewise.
24225 (uint64_t): Likewise.
24227 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24229 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24231 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24233 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24235 (grub_gzfile_open): Removed. All users updated.
24236 (GRUB_MOD_INIT): New function.
24237 (GRUB_MOD_FINI): Likewise.
24238 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24239 (grub_file_filters_enabled): Likewise.
24240 (grub_file_open): Handle filters.
24241 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24242 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24243 * include/grub/file.h (grub_file_filter_id_t): New type.
24244 (grub_file_filter_t): Likewise.
24245 (grub_file_filters_all): New extern variable.
24246 (grub_file_filters_enabled): Likewise.
24247 (grub_file_filter_register): New inline function.
24248 (grub_file_filter_unregister): Likewise.
24249 (grub_file_filter_disable): Likewise.
24250 (grub_file_filter_disable_compression): Likewise.
24251 * include/grub/gzio.h: Removed.
24253 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24255 Filename expansion support for wildcards in GRUB script.
24257 * tests/grub_script_expansion.in: New test.
24258 * Makefile.util.def: Rule for new test.
24260 * grub-core/commands/wildcard.c: New file, implements filename
24261 expansion support for GRUB script.
24262 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24263 * grub-core/script/argv.c: Cosmetic changes.
24264 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24265 Refactored to perform wildcard expansion on arguments.
24266 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24269 * tests/util/grub-shell.in: Fix quoting for read input.
24271 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24273 Support for updating environment variables with matched substrings
24276 * tests/grub_cmd_regexp.in: New test.
24277 * Makefile.util.def: Rule for new test.
24279 * grub-core/commands/regexp.c: New option -s to update environment
24280 variables with regexp matches.
24282 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24284 * include/grub/file.h (grub_file): New member not_easly_seekable.
24285 (grub_file_seekable): New inline function.
24286 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24288 (grub_gzio_open): Set not_easly_seekable.
24289 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24290 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24292 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24294 Support for options to appear multiple times on cmdline.
24296 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24297 * grub-core/commands/extcmd.c: Support for repeatable option.
24298 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24299 repeatable option support.
24301 Refactor menuentry into a regular command.
24303 * grub-core/commands/menuentry.c: New file, menuentry command
24305 * grub-core/Makefile.core.def: Rule update for normal.mod.
24306 * grub-core/normal/main.c: Moved menuentry creation to
24307 grub-core/commands/menuentry.c.
24308 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24309 (grub_menu_execute_entry_real): Removed.
24310 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24312 (grub_script_execute_menuentry): Removed.
24313 * grub-core/script/parser.y (menuentry): Removed.
24314 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24315 * grub-core/script/yylex.l (menuentry): Removed.
24316 * include/grub/menu.h (grub_menu_init): New prototype.
24317 (grub_menu_fini): New prototype.
24318 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24319 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24320 (grub_script_execute_sourcecode): New prototype.
24322 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24324 "return" command for GRUB script functions.
24326 * tests/grub_script_return.in: New test.
24327 * Makefile.util.def: Rules for new test.
24329 * grub-core/script/execute.c (grub_script_return): New function.
24330 * grub-core/script/main.c: Register/unregister return commaond.
24331 * include/grub/script_sh.h (grub_script_return): New prototype.
24333 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24335 "setparams" command to update positional parameters.
24337 * tests/grub_script_setparams.in: New test.
24338 * Makefile.util.def: Rules for new test.
24340 * grub-core/script/argv.c (grub_script_argv_make): New function.
24341 * grub-core/script/execute.c (replace_scope): New function.
24342 (grub_script_setparams): New function.
24343 * grub-core/script/lexer.c: Remove unused variables.
24344 * grub-core/script/main.c: Register/unregister setparams command.
24345 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24346 (grub_script_setparams): New prototype.
24348 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24350 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24353 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24355 Support for passing block of commands as an argument to extcmds.
24357 * Makefile.util.def: Rules for new test.
24358 * tests/grub_script_blockarg.in: New test.
24359 * grub-core/tests/test_blockarg.c: New file, block argument
24360 command used in the test.
24362 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24363 (grub_register_extcmd_prio): New function prototype.
24364 (grub_extcmd_dispatcher): New function prototype.
24365 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24367 * include/grub/script_sh.h (struct grub_script): New members
24368 `children', `next_siblings' and `refcnt' for block arguments and
24369 reference counting.
24370 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24371 (grub_script_arg): New member `script' for block argument.
24372 (grub_script_argv): New member `script' for block argument.
24373 (grub_parser_param): New member `scripts' for block argument.
24374 (grub_script_mem_free): New extern function prototype.
24375 (grub_script_ref): New function prototype.
24376 (grub_script_unref): New function prototype.
24378 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24379 extcmd form to support block arguments.
24380 * grub-core/script/argv.c: Block arguments support.
24381 * grub-core/script/execute.c: Likewise.
24382 * grub-core/script/lexer.c: Likewise.
24383 * grub-core/script/main.c: Likewise.
24384 * grub-core/script/script.c: Likewise.
24385 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24388 * grub-core/commands/acpi.c: Update extcmd implementations with
24389 grub_extcmd_context_t.
24390 * grub-core/commands/cat.c: Likewise.
24391 * grub-core/commands/echo.c: Likewise.
24392 * grub-core/commands/extcmd.c: Likewise.
24393 * grub-core/commands/hashsum.c: Likewise.
24394 * grub-core/commands/hdparm.c: Likewise.
24395 * grub-core/commands/help.c: Likewise.
24396 * grub-core/commands/hexdump.c: Likewise.
24397 * grub-core/commands/i386/cpuid.c: Likewise.
24398 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24399 * grub-core/commands/i386/pc/halt.c: Likewise.
24400 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24401 * grub-core/commands/iorw.c: Likewise.
24402 * grub-core/commands/keystatus.c: Likewise.
24403 * grub-core/commands/loadenv.c: Likewise.
24404 * grub-core/commands/ls.c: Likewise.
24405 * grub-core/commands/lspci.c: Likewise.
24406 * grub-core/commands/memrw.c: Likewise.
24407 * grub-core/commands/probe.c: Likewise.
24408 * grub-core/commands/search_wrap.c: Likewise.
24409 * grub-core/commands/setpci.c: Likewise.
24410 * grub-core/commands/sleep.c: Likewise.
24411 * grub-core/disk/loopback.c: Likewise.
24412 * grub-core/hello/hello.c: Likewise.
24413 * grub-core/loader/i386/bsd.c: Likewise.
24414 * grub-core/loader/xnu.c: Likewise.
24415 * grub-core/term/gfxterm.c: Likewise.
24416 * grub-core/term/serial.c: Likewise.
24417 * grub-core/tests/lib/functional_test.c: Likewise.
24419 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24421 Multi-line quoted strings support.
24423 * grub-core/script/lexer.c (append_newline): Removed.
24424 (grub_script_lexer_yywrap): Refactored.
24425 (grub_script_lexer_init): Refactored.
24426 * grub-core/script/yylex.l (yywrap): New function.
24427 (grub_lexer_resplit): New function.
24428 (grub_lexer_unput): New function.
24429 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24431 * tests/grub_script_echo1.in: Added few more testcases.
24433 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24435 * grub-core/kern/misc.c: Don't add abort alias in utils.
24436 Reported by: echoline.
24438 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24440 Add missing files into "make dist" tarball for other platforms.
24442 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24443 * conf/Makefile.common (dist_noinst_DATA): New variable.
24444 * conf/Makefile.extra-dist: Added missing make dist files.
24445 * grub-core/Makefile.core.def: Likewise.
24447 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24449 Compress grub_prefix.
24451 * grub-core/boot/i386/pc/lnxboot.S: Use
24452 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24453 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24454 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24455 GRUB_MACHINE_PREFIX_END. All users updated.
24456 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24457 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24459 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24460 * util/grub-mkimage.c (image_target_desc): Change data_end to
24461 prefix_end. All users updated.
24463 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24465 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24467 (grub_openbsd_boot): Likewise.
24468 (grub_netbsd_boot): Likewise.
24469 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24470 (grub_xnu_boot): Likewise.
24472 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24474 * configure.ac: Clean LIBS variable after tests.
24476 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24478 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24480 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24482 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24483 echo if libdevmapper will be used.
24485 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24487 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24488 constant for the same file.
24490 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24492 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24494 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24496 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24499 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24501 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24502 required by the boot protocol.
24504 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24505 ebp and edi members.
24506 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24507 state.ebp and state.edi.
24508 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24509 %ebp and %edi according to grub_relocator32_ebp and
24510 grub_relocator32_edi respectively.
24511 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24514 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24516 Add i386-pc-pxe image target.
24518 * util/grub-mkimage.c (image_target_desc): New enum value
24520 (image_targets): New target i386-pc-pxe.
24521 (generate_image): Handle i386-pc-pxe image.
24523 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24527 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24528 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24530 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24531 (grub_pxe_pxenv): Correct type.
24533 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24535 * NEWS: Document most of the important changes since 1.98.
24537 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24539 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24540 generated manual page) a little.
24542 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24544 * docs/grub.texi: Add myself as an author.
24546 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24548 * Makefile.util.def (libgrub.a): Add missing sunpc.
24549 Reported by: Seth Goldberg.
24551 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24553 Interrupt wrapping and code simplifications.
24555 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24556 x86_noieee1275 which are functionaly equivalent in this case.
24557 (grub-install): Make source on each platform explicit. Enable on
24559 * gentpl.py (x86_efi_pc): Removed group.
24560 (x86_noefi): Likewise.
24561 (i386_noefi): Likewise.
24562 (x86_noieee1275): Likewise.
24563 (i386_noieee1275): Likewise.
24564 (i386_noefi_noieee1275): Likewise.
24565 (i386_pc_qemu_coreboot): Likewise.
24566 (i386_coreboot_multiboot): Likewise.
24567 (i386_pc_coreboot_multiboot_qemu): Likewise.
24568 (x86_noefi_mips): Likewise.
24569 (noieee1275): Likewise.
24570 (ieee1275_mips): Likewise.
24571 (noemu_noieee1275): Likewise.
24574 (videoinkernel): Likewise.
24575 (videomodules): Likewise.
24576 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24577 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24578 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24579 include/grub/loader.h, include/grub/msdos_partition.h,
24580 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24581 include/grub/machine/console.h, include/grub/machine/vga.h,
24582 include/grub/machine/vbe.h, include/grub/machine/init.h,
24583 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24584 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24585 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24586 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24587 * grub-core/Makefile.core.def (kernel): Explicit the source for
24588 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24589 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24590 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24591 Use videoinkernel tag.
24592 (usb): Enable on all usb.
24593 (usbserial_common): Likewise.
24594 (usbserial_pl2303): Likewise.
24595 (usbserial_ftdi): Likewise.
24596 (uhci): Enable on all x86.
24597 (ohci): Enable on all pci.
24598 (cmostest): Enable on all CMOS.
24599 (acpi): Include commands/acpi.c on all platforms.
24600 (halt): Add relevant lib/*/halt.c.
24601 (hdparm): Enable on all pci.
24603 (usbtest): Enable on all usb.
24604 (ata): Enable on all pci.
24605 (ata_pthru): Likewise.
24606 (usbms): Enable on all usb.
24607 (usb_keyboard): Likewise.
24608 (font): Use tag videomodules.
24610 (datetime): Use tag cmos. Enable on all noemu.
24611 (mmap): Use tags common and x86.
24612 (gfxterm): Use tag videomodules.
24613 (bitmap): Likewise.
24614 (bitmap_scale): Likewise.
24615 (video_fb): Likewise.
24617 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24618 adjust padding accordingly. All users updated.
24619 (grub_ohci_transaction): Fix bad format specification.
24620 (GRUB_MOD_INIT): Add asserts for struct size.
24621 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24622 (grub_alloc_td): Likewise.
24623 (grub_free_queue): Likewise.
24624 (grub_uhci_transfer): Likewise.
24625 (grub_uhci_transaction): Fix bad format specification.
24626 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24627 (grub_usb_bulk_readwrite): Likewise.
24628 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24629 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24631 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24633 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24634 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24635 Transformed into C.
24636 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24637 Moved from here ...
24638 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24639 ... here. Transformed into C. Made static.
24640 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24641 Moved from here ...
24642 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24643 ... here. Transformed into C. Made static.
24644 * grub-core/kern/i386/pc/startup.S
24645 (grub_biosdisk_check_int13_extensions): Moved from here ...
24646 * grub-core/disk/i386/pc/biosdisk.c
24647 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24649 * grub-core/kern/i386/pc/startup.S
24650 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24651 * grub-core/disk/i386/pc/biosdisk.c
24652 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24653 Transformed into C. Made static.
24654 * grub-core/kern/i386/pc/startup.S
24655 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24656 * grub-core/disk/i386/pc/biosdisk.c
24657 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24658 Transformed into C. Made static.
24659 * grub-core/kern/i386/pc/startup.S
24660 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24661 * grub-core/disk/i386/pc/biosdisk.c
24662 (grub_biosdisk_get_diskinfo_standard): ... here.
24663 Transformed into C. Made static.
24664 * grub-core/kern/i386/pc/startup.S
24665 (grub_biosdisk_get_num_floppies): Moved from here ...
24666 * grub-core/disk/i386/pc/biosdisk.c
24667 (grub_biosdisk_get_num_floppies): ... here.
24668 Transformed into C. Made static.
24669 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24671 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24672 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24673 Transformed into C. Made static.
24674 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24675 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24676 Transformed into C. Made static.
24677 * grub-core/kern/i386/ieee1275/init.c: Removed.
24678 * grub-core/kern/i386/misc.S: Likewise.
24679 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24680 Splitted from here ...
24681 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24682 Transformed into C. Made static. All users updated.
24683 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24684 Transformed into C. Made static. All users updated.
24685 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24687 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24688 Transformed into C. Made static. All users updated.
24689 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24691 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24692 Transformed into C. Made static. All users updated.
24693 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24694 Removed (replaced by C version).
24695 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24697 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24698 Transformed into C. Made static.
24699 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24701 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24702 ... here. Transformed into C.
24703 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24705 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24706 ... here. Transformed into C.
24707 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24709 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24710 ... here. Transformed into C. Made static.
24711 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24713 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24714 ... here. Transformed into C.
24715 * grub-core/kern/i386/pc/startup.S
24716 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24717 * grub-core/video/i386/pc/vbe.c
24718 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24719 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24721 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24722 ... here. Transformed into C.
24723 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24725 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24726 ... here. Transformed into C.
24727 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24729 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24730 ... here. Transformed into C.
24731 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24733 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24734 ... here. Transformed into C.
24735 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24737 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24738 ... here. Transformed into C. Made static.
24739 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24741 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24742 ... here. Transformed into C. Made static.
24743 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24745 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24746 ... here. Transformed into C. Made static.
24747 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24748 pxe_rm_entry as third argument.
24749 (grub_bios_interrupt): New function.
24750 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24751 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24752 of calling grub_stop.
24753 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24754 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24755 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24756 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24757 * grub-core/lib/i386/halt.c: Moved from here ...
24758 * grub-core/lib/i386/halt.c: ... here.
24759 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24760 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24761 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24763 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24764 * include/grub/i386/coreboot/init.h: Removed.
24765 * include/grub/i386/multiboot/init.h: Likewise.
24766 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24767 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24768 * include/grub/i386/pc/int.h: New file.
24769 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24770 (grub_pxe_scan): Removed.
24771 (grub_pxe_call): Update prototype.
24772 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24774 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24775 * include/grub/i386/qemu/init.h: Removed.
24776 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24778 (grub_halt): Likewise.
24779 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24780 (grub_reboot): Likewise.
24781 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24782 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24783 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24785 2010-08-30 Robert Millan <rmh@gnu.org>
24787 * NEWS: Document addition of ZFS support in `grub-install' and
24790 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24792 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24795 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24797 Remove leftover embedding of font objects.
24799 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24800 * util/grub-install.in (font): Removed.
24801 * util/grub-mkimage.c (generate_image): Remove font support. All users
24804 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24806 Remove leftover embedding of font objects.
24808 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24809 * util/grub-install.in (font): Removed.
24810 * util/grub-mkimage.c (generate_image): Remove font support. All users
24813 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24815 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24816 Reported by: Ian Turner
24818 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24820 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24821 timeout to avoid indefinite boot stalling.
24823 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24825 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24826 (grub_env_write_color_highlight): Likewise.
24828 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24830 * grub-core/normal/term.c (print_more): Return to normal and not
24831 to standard state after printing "---MORE---".
24833 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24835 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24836 Mask out the bit 0x80 since it has other meaning that specifiing color.
24838 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24840 New relocator. Allows for more kernel support and more straightforward
24843 * Makefile.am (BOOTTARGET): New variable.
24844 (QEMU32): Likewise.
24845 (linux.init.x86_64): New target.
24846 (linux.init.i386): Likewise.
24847 (multiboot.elf): Likewise.
24848 (kfreebsd.elf): Likewise.
24849 (kfreebsd.aout): Likewise.
24850 (pc-chainloader.elf): Likewise.
24851 (pc-chainloader.bin): Likewise.
24852 (ntldr.elf): Likewise.
24853 (ntldr.bin): Likewise.
24854 (multiboot2.elf): Likewise.
24855 (kfreebsd.init.x86_64): Likewise.
24856 (kfreebsd.init.i386): Likewise.
24857 (knetbsd.init.i386): Likewise.
24858 (kopenbsd.init.i386): Likewise.
24859 (knetbsd.init.x86_64): Likewise.
24860 (kopenbsd.init.x86_64): Likewise.
24861 (linux-initramfs.i386): Likewise.
24862 (linux-initramfs.x86_64): Likewise.
24863 (kfreebsd-mfsroot.i386.img): Likewise.
24864 (knetbsd.image.i386): Likewise.
24865 (kopenbsd.image.i386): Likewise.
24866 (kopenbsd.image.x86_64): Likewise.
24867 (knetbsd.miniroot-image.i386.img): Likewise.
24868 (kfreebsd-mfsroot.x86_64.img): Likewise.
24869 (knetbsd.image.x86_64): Likewise.
24870 (knetbsd.miniroot-image.x86_64.img): Likewise.
24871 (kfreebsd-mfsroot.i386.gz): Likewise.
24872 (bootcheck-kfreebsd-i386): Likewise.
24873 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24874 (bootcheck-kfreebsd-x86_64): Likewise.
24875 (knetbsd.miniroot-image.i386.gz): Likewise.
24876 (bootcheck-knetbsd-i386): Likewise.
24877 (bootcheck-kopenbsd-i386): Likewise.
24878 (bootcheck-kopenbsd-x86_64): Likewise.
24879 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24880 (bootcheck-knetbsd-x86_64): Likewise.
24881 (bootcheck-linux-i386): Likewise.
24882 (bootcheck-linux-x86_64): Likewise.
24883 (bootcheck-linux16-i386): Likewise.
24884 (bootcheck-linux16-x86_64): Likewise.
24885 (bootcheck-multiboot): Likewise.
24886 (bootcheck-multiboot2): Likewise.
24887 (bootcheck-kfreebsd-aout): Likewise.
24888 (bootcheck-pc-chainloader): Likewise.
24889 (bootcheck-ntldr): Likewise.
24890 (CLEANFILES): Add new targets.
24891 (BOOTCHECKS): New variable.
24892 (.PHONY): Add bootchecks.
24893 (SUCCESSFUL_BOOT_STRING): New variable.
24894 (BOOTCHECK_TIMEOUT): Likewise.
24895 (bootcheck): New target
24896 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24897 * configure.ac: Correct efiemu excuse.
24898 * docs/grub.texi (Supported kernels): New chapter.
24899 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24900 include/grub/mm_private.h. Simplify inclusion of
24901 include/grub/boot.h, include/grub/loader.h
24902 and include/grub/msdos_partition.h
24903 (KERNEL_HEADER_FILES) [i386_coreboot]:
24904 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24905 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24906 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24907 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24908 include/grub/machine/loader.h.
24909 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24910 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24912 (pci.mod): Enable on i386-multiboot.
24913 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24914 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24916 (relocator.mod): Rewritten.
24917 (aout.mod): Enable on all x86.
24918 (bsd.mod): Likewise.
24919 (ntldr.mod): New module.
24920 (linux.mod): Use loader/i386/linux.c on all x86.
24921 (xnu.mod): Enable on all x86.
24922 (vga_text.mod): disable on EFI and QEMU.
24923 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24924 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24925 * grub-core/efiemu/loadcore.c: Likewise.
24926 * grub-core/efiemu/main.c: Likewise.
24927 (grub_efiemu_exit_boot_services): Removed.
24928 (grub_efiemu_finish_boot_services): Likewise.
24929 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24931 * grub-core/efiemu/i386/nocfgtables.c: New file.
24932 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24933 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24934 (grub_efi_finish_boot_services): Moved from here ...
24935 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24936 Fille finish memory map and related data.
24937 (finish_mmap_buf): New variable.
24938 (grub_efi_uintn_t finish_mmap_size): Likewise.
24939 (grub_efi_uintn_t finish_key): Likewise.
24940 (grub_efi_uintn_t finish_desc_size): Likewise.
24941 (grub_efi_uint32_t finish_desc_version): Likewise.
24942 (grub_efi_is_finished): Likewise.
24943 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24945 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24946 (grub_elf64_phdr_iterate): Likewise.
24947 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24948 (grub_os_area_size): Likewise.
24949 (grub_machine_init): Don't reserve os area.
24950 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24951 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24952 * grub-core/kern/i386/loader.S: Removed.
24953 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24954 (grub_os_area_size): Likewise.
24955 (grub_machine_init): Don't reserve os area.
24956 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24957 Don't call grub_dl_unload_all.
24958 Don't include loader.S.
24959 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24960 Declare the memory after _end as available.
24961 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24962 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24963 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24964 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24965 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24966 * include/grub/mm_private.h (grub_mm_header): ... here.
24967 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24968 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24969 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24970 (grub_mm_region): ..here. Removed addr. Added pre_size.
24972 * grub-core/kern/mm.c (base): Renamed to ...
24973 (grub_mm_base): ... this. Made global.
24974 (grub_real_malloc): Alloc from end of region.
24975 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24976 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24977 * grub-core/kern/powerpc/cache_flush.S: ... here.
24978 * grub-core/lib/efi/relocator.c: New file.
24979 * grub-core/lib/i386/relocator.c: Rewritten.
24980 * grub-core/lib/i386/relocator16.S: New file.
24981 * grub-core/lib/i386/relocator32.S: Likewise.
24982 * grub-core/lib/i386/relocator64.S: Likewise.
24983 * grub-core/lib/i386/relocator_asm.S: Rewritten.
24984 * grub-core/lib/i386/relocator_common.S: New file.
24985 * grub-core/lib/ieee1275/relocator.c: Likewise.
24986 * grub-core/lib/mips/relocator.c: Rewritten.
24987 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
24988 stylistic adjustments.
24989 * grub-core/lib/powerpc/relocator.c: New file.
24990 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
24991 * grub-core/lib/relocator.c: Rewritten.
24992 * grub-core/lib/x86_64/relocator_asm.S: New file.
24993 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
24994 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
24995 (bsd_tag): New struct.
24996 (tags): New variable.
24997 (tags_last): Likewise.
24998 (netbsd_module): New struct.
24999 (netbsd_mods): New variable.
25000 (netbsd_mods_last): Likewise.
25001 (openbsd_opts): New parameter "serial".
25002 (OPENBSD_SERIAL_ARG): New definition.
25003 (netbsd_opts): New parameter "serial".
25004 (NETBSD_SERIAL_ARG): New definition.
25005 (grub_freebsd_add_meta): Reorganised into ...
25006 (grub_bsd_add_meta): ...this. All users updated.
25007 (grub_freebsd_add_mmap): Reorganised into ...
25008 (generate_e820_mmap): ...this...
25009 (grub_bsd_add_mmap): ...and this. All users updated.
25010 (grub_freebsd_list_modules): Use tags.
25011 (grub_netbsd_add_meta_module): New function.
25012 (grub_netbsd_list_modules): Likewise.
25013 (grub_freebsd_boot): Use relocator and finish EFI.
25014 (grub_openbsd_boot): Likewise.
25015 (grub_netbsd_setup_video): New function.
25016 (grub_netbsd_add_modules): Likewise.
25017 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25019 (grub_bsd_unload): Unload tags.
25020 (grub_bsd_load_aout): Use relocator.
25021 (grub_bsd_elf32_size_hook): New function.
25022 (grub_bsd_elf32_hook): Use relocator.
25023 (grub_bsd_elf64_size_hook): New function.
25024 (grub_bsd_elf64_hook): Use relocator.
25025 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25026 (grub_bsd_load): Zero-out openbsd_ramdisk.
25027 (grub_bsd_load): Use relocator.
25028 (grub_cmd_openbsd): Support serial.
25029 (grub_cmd_netbsd): Support modules.
25030 (grub_cmd_freebsd_module): Use relocator.
25031 (grub_netbsd_module_load): New function.
25032 (grub_cmd_netbsd_module): Likewise.
25033 (grub_cmd_openbsd_ramdisk): Likewise.
25034 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25036 (GRUB_MOD_FINI): Unregister new commands.
25037 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25038 (grub_freebsd_load_elfmodule_obj): Use relocator.
25039 (grub_freebsd_load_elfmodule): Likewise.
25040 (grub_freebsd_load_elf_meta): Likewise.
25041 (grub_netbsd_load_elf_meta): New function.
25042 (grub_openbsd_find_ramdisk): Likewise.
25043 * grub-core/loader/i386/bsd_helper.S: Removed.
25044 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25045 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25046 * grub-core/loader/i386/efi/linux.c: Likewise.
25047 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25048 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25049 (DEFAULT_VIDEO_MODE): Likewise.
25050 (real_mode_target): New variable.
25051 (prot_mode_target): Likewise.
25052 (initrd_mem_target): Likewise.
25053 (relocator): Likewise.
25054 (efi_mmap_buf): Likewise.
25055 (efi_mmap_size): Likewise.
25056 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25057 (free_pages): Use relocator.
25058 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25059 (grub_linux_setup_video): Return error.
25060 (grub_linux_trampoline_start): Removed.
25061 (grub_linux_trampoline_end): Likewise.
25062 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25063 andd video parameters depending on firmware.
25064 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25065 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25066 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25067 (grub_cmd_initrd): Use relocator.
25068 * grub-core/loader/i386/linux_trampoline.S: Removed.
25069 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25070 (elf_sec_entsize): Likewise.
25071 (elf_sec_shstrndx): Likewise.
25072 (elf_sections): Likewise.
25073 (grub_multiboot_load): Use relocator.
25074 (grub_multiboot_get_mbi_size): Account for sections.
25075 (grub_multiboot_make_mbi): Use relocator and support sections.
25076 (grub_multiboot_add_elfsyms): New function.
25077 (grub_multiboot_free_mbi): Free sections.
25078 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25079 (grub_linux_real_target): Likewise.
25080 (grub_linux_real_chunk): Likewise.
25081 (grub_linux16_prot_size): Likewise.
25082 (grub_linux16_boot): Use relocator.
25083 (grub_linux_unload): Unload relocator.
25084 (grub_cmd_linux): Use relocator.
25085 (grub_cmd_initrd): Likewise.
25086 * grub-core/loader/i386/pc/ntldr.c: New file.
25087 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25088 Don't try to guess CPU frequency.
25089 (grub_xnu_set_video): Stretch bitmap.
25090 (grub_xnu_boot): Use relocator.
25091 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25092 (grub_linux_unload): Free relocator.
25093 (grub_linux_load32): Use relocator.
25094 (grub_linux_load64): Likewise.
25095 (grub_cmd_initrd): Likewise.
25096 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25097 (grub_multiboot_unload): Unload relocator.
25098 (grub_cmd_multiboot): Use relocator.
25099 (grub_cmd_module): Likewise.
25100 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25101 Use relocator and support sections.
25102 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25103 (elf_sec_entsize): Likewise.
25104 (elf_sec_shstrndx): Likewise.
25105 (elf_sections): Likewise.
25106 (grub_multiboot_load): Use relocator.
25107 (grub_multiboot_get_mbi_size): Account for sections.
25108 (grub_multiboot_make_mbi): Use relocator and support sections.
25109 (grub_multiboot_add_elfsyms): New function.
25110 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25111 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25112 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25113 Prototype changed. All users updated.
25114 (grub_xnu_align_heap): Simplified.
25115 (grub_xnu_writetree_toheap): Likewise.
25116 (grub_xnu_unload): Unload relocator.
25117 (grub_cmd_xnu_kernel): Use relocator.
25118 (grub_cmd_xnu_kernel64): Likewise.
25119 (grub_xnu_register_memory): Simplified.
25120 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25121 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25123 (grub_console_checkkey): Likewise.
25124 (grub_console_getkey): Likewise.
25125 (grub_console_getwh): Likewise.
25126 (grub_console_getxy): Likewise.
25127 (grub_console_gotoxy): Likewise.
25128 (grub_console_cls): Likewise.
25129 (grub_console_setcolorstate): Likewise.
25130 (grub_console_setcursor): Likewise.
25131 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25132 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25133 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25134 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25135 * grub-core/tests/boot/kernel-8086.S: Likewise.
25136 * grub-core/tests/boot/kernel-i386.S: Likewise.
25137 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25138 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25139 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25140 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25141 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25142 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25143 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25144 * grub-core/tests/boot/linux.cfg: Likewise.
25145 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25146 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25147 * grub-core/tests/boot/linux16.cfg: Likewise.
25148 * grub-core/tests/boot/multiboot.cfg: Likewise.
25149 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25150 * grub-core/tests/boot/ntldr.cfg: Likewise.
25151 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25152 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25153 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25155 * include/grub/dl.h (grub_dl_unload_all): Removed.
25156 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25157 (grub_efi_finish_boot_services): Change prototype.
25158 (grub_efi_is_finished): New variable.
25159 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25161 (grub_efiemu_finish_boot_services): Removed.
25162 (grub_machine_efiemu_init_tables): New prototype.
25163 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25164 (grub_elf64_phdr_iterate): Likewise.
25165 * include/grub/i386/bsd.h: Include relocator.h.
25166 (freebsd_tag_header): New struct.
25167 (grub_openbsd_bios_mmap): Removed.
25168 (grub_unix_real_boot): Removed.
25169 (grub_freebsd_load_elfmodule32): Changed prototype.
25170 (grub_freebsd_load_elfmodule_obj64): Likewise.
25171 (grub_freebsd_load_elf_meta32): Likewise.
25172 (grub_freebsd_load_elf_meta64): Likewise.
25173 (grub_freebsd_add_meta): Removed.
25174 (grub_netbsd_load_elf_meta32): New prototype.
25175 (grub_netbsd_load_elf_meta64): Likewise.
25176 (grub_bsd_add_meta): Likewise.
25177 (grub_openbsd_ramdisk_descriptor): New struct.
25178 (grub_openbsd_find_ramdisk32): New prototype.
25179 (grub_openbsd_find_ramdisk64): Likewise.
25180 * include/grub/i386/coreboot/loader.h: Removed.
25181 * include/grub/i386/efi/loader.h: Likewise.
25182 * include/grub/i386/ieee1275/loader.h: Likewise.
25183 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25185 * include/grub/i386/loader.h: Removed.
25186 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25188 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25189 (grub_phys_addr_t): New type.
25190 (grub_vtop): New inline function.
25191 (grub_map_memory): Likewise.
25192 (grub_unmap_memory): Likewise.
25193 * include/grub/i386/multiboot/loader.h: Removed.
25194 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25195 (NETBSD_BTINFO_CONSOLE): New definition.
25196 (NETBSD_BTINFO_SYMTAB): Likewise.
25197 (NETBSD_BTINFO_MODULES): Likewise.
25198 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25199 (grub_netbsd_bootinfo): New struct.
25200 (grub_netbsd_btinfo_common): Use explicit bitsize.
25201 (grub_netbsd_btinfo_mmap_entry): Removed.
25202 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25203 (grub_netbsd_btinfo_bootdisk): New struct.
25204 (grub_netbsd_btinfo_symtab): Likewise.
25205 (grub_netbsd_btinfo_serial): Likewise.
25206 (grub_netbsd_btinfo_modules): Likewise.
25207 (grub_netbsd_btinfo_framebuf): Likewise.
25208 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25209 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25211 (grub_openbsd_bootargs): Use explicit bitsize.
25212 (grub_openbsd_bootarg_console): New struct.
25213 (GRUB_OPENBSD_COM_MAJOR): New definition.
25214 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25215 * include/grub/i386/pc/efiemu.h: Removed.
25216 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25217 * include/grub/i386/qemu/loader.h: Removed.
25218 * include/grub/i386/relocator.h: Rewritten.
25219 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25220 * include/grub/mips/memory.h: New file.
25221 * include/grub/mips/multiboot.h: Rewritten.
25222 * include/grub/mips/relocator.h: Rewritten.
25223 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25224 (grub_vtop): New function.
25225 (grub_map_memory): Likewise.
25226 (grub_unmap_memory): Likewise.
25227 * include/grub/misc.h (ALIGN_DOWN): New definition.
25228 * include/grub/mm.h (grub_mm_check_real): New proto.
25229 (GRUB_MM_CHECK): New definition.
25230 * include/grub/mm_private.h: New file.
25231 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25232 (grub_multiboot_get_mbi_size): Removed.
25233 (grub_multiboot_make_mbi): Change prottype.
25234 (grub_multiboot_set_accepts_video): New proto.
25235 (grub_multiboot_add_elfsyms): Likewise.
25236 (grub_multiboot_payload_eip): New variable.
25237 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25239 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25241 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25242 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25243 * include/grub/powerpc/ieee1275/loader.h: Removed.
25244 * include/grub/powerpc/memory.h: New file.
25245 * include/grub/powerpc/relocator.h: Likewise.
25246 * include/grub/relocator.h: Likewise.
25247 * include/grub/relocator_private.h: Likewise.
25248 * include/grub/sparc64/ieee1275/loader.h: Removed.
25249 * include/grub/x86_64/memory.h: New file.
25250 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25251 (grub_xnu_heap_malloc): Likewise.
25252 (grub_xnu_heap_real_start): Removed.
25253 (grub_xnu_heap_start): Likewise.
25254 (grub_xnu_relocator): New variable.
25255 (grub_xnu_heap_target_start): Likewise.
25256 * tests/util/grub-shell.in: Support non-pc.
25257 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25259 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25261 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25263 (grub_bidi_logical_to_visual): Check that malloc succeded.
25264 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25266 (grub_xputs_normal): Likewise.
25268 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25270 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25273 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25275 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25277 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25279 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25281 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25283 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25286 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25288 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25290 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25292 * grub-core/normal/term.c (print_more): Fix a memory leak.
25293 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25294 (grub_xputs_normal): Likewise.
25296 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25298 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25299 the begining of the string
25301 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25303 * grub-core/script/script.c (grub_script_parse): Free parsed on
25306 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25308 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25311 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25313 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25316 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25318 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25319 (scroll_up): Fix a memory leak.
25321 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25323 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25326 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25328 Handle USB pendrives exposed as floppies.
25330 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25332 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25333 Check for partitions on all devices.
25335 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25337 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25338 (readkey): Likewise.
25340 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25342 Multiple variable names support to "export" command.
25344 * normal/context.c (grub_cmd_export): "export" command supports
25345 multiple variable names.
25347 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25349 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25350 --target=drive output to Mach device name.
25352 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25354 New Automake based build system for GRUB.
25356 * ABOUT-NLS: New file.
25357 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25358 in Makefile.util.def file.
25359 * Makefile.util.def: New file. Autogen build definitions file for
25361 * conf/Makefile.common: New file. Common variables for GRUB host
25362 utils and target modules.
25363 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25364 * docs/Makefile.am: New file. Automake file for docs.
25365 * gentpl.py: New file. Python script to generate Autogen
25367 * grub-core/Makefile.am: New file. GRUB target modules' rules
25368 that doesn't fit in Makefile.core.def file.
25369 * grub-core/Makefile.core.def: New file. Autogen build
25370 definitions file for GRUB target modules.
25371 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25372 specific setjmp.S file.
25373 * po/Makefile.am: New file.
25375 * .bzrignore: New ignores.
25376 * INSTALL: New requirements, without Ruby.
25377 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25378 * autogen.sh: Updated to invoke autogen as necessary.
25379 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25380 and defines for Automake conditionals.
25381 * geninit.sh: Refactoring.
25383 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25385 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25388 * include/grub/test.h: Fix functional test modules' naming.
25389 * grub-core/tests/example_functional_test.c: Fix test module name.
25391 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25392 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25393 * util/grub-editenv.c: Likewise.
25394 * util/grub-fstest.c: Likewise.
25395 * util/grub-mkdevicemap.c: Likewise.
25396 * util/grub-mkfont.c: Likewise.
25397 * util/grub-mkimage.c: Likewise.
25398 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25399 * util/grub-probe.c: Likewise.
25400 * util/grub-script-check.c: Likewise.
25401 * util/i386/pc/grub-setup.c: Likewise.
25402 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25404 * tests/util/grub-shell.in: Fix override directory path.
25405 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25406 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25408 * util/lvm.c: Update #includes.
25409 * util/raid.c: Likewise.
25410 * util/resolve.c: Likewise.
25411 * grub-core/bus/emu/pci.c: Likewise.
25412 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25413 * grub-core/lib/posix_wrap/string.h: Likewise.
25414 * grub-core/kern/emu/main.c: Likewise.
25416 * grub-core/gensymlist.sh: New file. Script for generating kernel
25418 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25420 * grub-core/gentrigtables.c: Fix unused variable warnings.
25422 * Makefile.in: Removed.
25423 * conf/any-emu.rmk: Removed.
25424 * conf/common.rmk: Removed.
25425 * conf/i386-coreboot.rmk: Removed.
25426 * conf/i386-efi.rmk: Removed.
25427 * conf/i386-ieee1275.rmk: Removed.
25428 * conf/i386-multiboot.rmk: Removed.
25429 * conf/i386-pc.rmk: Removed.
25430 * conf/i386-qemu.rmk: Removed.
25431 * conf/i386.rmk: Removed.
25432 * conf/mips-yeeloong.rmk: Removed.
25433 * conf/mips.rmk: Removed.
25434 * conf/powerpc-ieee1275.rmk: Removed.
25435 * conf/sparc64-ieee1275.rmk: Removed.
25436 * conf/tests.rmk: Removed.
25437 * conf/x86-efi.rmk: Removed.
25438 * conf/x86_64-efi.rmk: Removed.
25439 * gendistlist.sh: Removed.
25440 * geninitheader.sh: Removed.
25441 * genkernsyms.sh.in: Removed.
25442 * genmk.rb: Removed.
25443 * gensymlist.sh.in: Removed.
25444 * mkinstalldirs: Removed.
25446 * grub-core/boot: ... to here.
25448 * grub-core/bus: ... to here.
25449 * commands: Moved ...
25450 * grub-core/commands: ... to here.
25452 * grub-core/disk: ... to here.
25453 * efiemu: Moved ...
25454 * grub-core/efiemu: ... to here.
25456 * grub-core/font: ... to here.
25458 * grub-core/fs: ... to here.
25459 * gencmdlist.sh: Moved ...
25460 * grub-core/gencmdlist.sh: ... to here.
25461 * genemuinit.sh: Moved ...
25462 * grub-core/genemuinit.sh: ... to here.
25463 * genemuinitheader.sh: Moved ...
25464 * grub-core/genemuinitheader.sh: ... to here.
25465 * genfslist.sh: Moved ...
25466 * grub-core/genfslist.sh: ... to here.
25467 * genhandlerlist.sh: Moved ...
25468 * grub-core/genhandlerlist.sh: ... to here.
25469 * genmoddep.awk: Moved ...
25470 * grub-core/genmoddep.awk: ... to here.
25471 * genmodsrc.sh: Moved ...
25472 * grub-core/genmodsrc.sh: ... to here.
25473 * genpartmaplist.sh: Moved ...
25474 * grub-core/genpartmaplist.sh: ... to here.
25475 * genparttoollist.sh: Moved ...
25476 * grub-core/genparttoollist.sh: ... to here.
25477 * genterminallist.sh: Moved ...
25478 * grub-core/genterminallist.sh: ... to here.
25479 * gentrigtables.c: Moved ...
25480 * grub-core/gentrigtables.c: ... to here.
25481 * genvideolist.sh: Moved ...
25482 * grub-core/genvideolist.sh: ... to here.
25483 * gettext: Moved ...
25484 * grub-core/gettext: ... to here.
25485 * gfxmenu: Moved ...
25486 * grub-core/gfxmenu: ... to here.
25487 * gnulib: Moved ...
25488 * grub-core/gnulib: ... to here.
25490 * grub-core/hello: ... to here.
25492 * grub-core/hook: ... to here.
25494 * grub-core/io: ... to here.
25496 * grub-core/kern: ... to here.
25498 * grub-core/lib: ... to here.
25499 * loader: Moved ...
25500 * grub-core/loader: ... to here.
25502 * grub-core/mmap: ... to here.
25503 * normal: Moved ...
25504 * grub-core/normal: ... to here.
25505 * partmap: Moved ...
25506 * grub-core/partmap: ... to here.
25507 * parttool: Moved ...
25508 * grub-core/parttool: ... to here.
25509 * script: Moved ...
25510 * grub-core/script: ... to here.
25512 * grub-core/term: ... to here
25513 * tests/example_functional_test.c: Moved ...
25514 * grub-core/tests/example_functional_test.c: ... to here.
25515 * tests/lib/functional_test.c: Moved ...
25516 * grub-core/tests/lib/functional_test.c: ... to here.
25517 * tests/lib/test.c: Moved ...
25518 * grub-core/tests/lib/test.c: ... to here.
25520 * grub-core/video: ... to here.
25522 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25524 Replace --enable-grub-emu-modules with grub-emu-lite.
25526 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25529 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25530 * kern/emu/full.c: New file. For grub-emu specific initialization.
25531 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25532 * kern/emu/main.c: Call initialization function grub_emu_init.
25534 * Makefile.in: Include grub-emu-lite in install.
25535 * commands/parttool.c: Use grub_no_autoload to differentiate
25536 between grub-emu and grub-emu-lite.
25537 * include/grub/misc.h: New variable grub_no_autoload.
25539 * conf/any-emu.rmk: New rules for grub-emu-lite.
25540 * configure.ac: Remove --enable-grub-emu-modules.
25541 * genmk.rb: Cleanup unnecessary rules.
25542 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25544 * normal/main.c: Don't load list files on grub-emu-lite.
25545 * util/misc.c (grub_arch_sync_caches): Removed.
25547 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25549 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25550 grub-mkimage rather than grub-mkelfimage.
25551 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25553 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25555 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25556 a key after CapsLock or NumLock. It's just a qemu bug.
25558 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25560 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25561 needed by libusb wrapper.
25563 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25565 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25567 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25569 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25570 --nounzip is passed.
25572 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25574 USB hotunplugging and USB serial support.
25576 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25577 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25578 (grub_uhci_transfer): Respect timeout and set *actual.
25579 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25580 non-standard length.
25581 (grub_usb_device_attach): Autoload modules.
25582 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25583 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25584 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25586 (grub_usb_add_hub): Fill nports and children.
25587 (attach_root_port): Receive hub instead of controller.
25588 All users updated. Fill hub->devices.
25589 (grub_usb_root_hub): Allocate hub->devices.
25590 (detach_device): New function.
25591 (poll_nonroot_hub): Fill children and detach devices.
25592 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25593 actual arguments. All users updated.
25594 (grub_usb_bulk_read_extended): New function.
25595 * bus/usb/serial/common.c: New file.
25596 * bus/usb/serial/ftdi.c: Likewise.
25597 * bus/usb/serial/pl2303.c: Likewise.
25598 * commands/terminal.c (handle_command): Support wildcard.
25599 * commands/usbtest.c: Output "Unknown" instead of empty string.
25600 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25601 (usbserial_common_mod_SOURCES): New variable.
25602 (usbserial_common_mod_CFLAGS): Likewise.
25603 (usbserial_common_mod_LDFLAGS): Likewise.
25604 (pkglib_MODULES): Add usbserial_pl2303.mod.
25605 (usbserial_pl2303_mod_SOURCES): New variable.
25606 (usbserial_pl2303_mod_CFLAGS): Likewise.
25607 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25608 (pkglib_MODULES): Add usbserial_ftdi.mod.
25609 (usbserial_ftdi_mod_SOURCES): New variable.
25610 (usbserial_ftdi_mod_CFLAGS): Likewise.
25611 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25612 (pkglib_MODULES): Add serial.mod.
25613 (serial_mod_SOURCES): New variable.
25614 (serial_mod_CFLAGS): Likewise.
25615 (serial_mod_LDFLAGS): Likewise.
25616 * conf/i386-pc.rmk: Likewise.
25617 * conf/mips-yeeloong.rmk: Likewise.
25618 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25619 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25620 * disk/usbms.c (first_available_slot): New variable.
25621 (grub_usbms_attach): Don't reuse free slots due to potential cache
25623 * include/grub/serial.h: Moved to ..
25624 * include/grub/ns8250.h: ...this.
25625 * include/grub/serial.h: New file.
25626 * include/grub/term.h (grub_term_poll_usb): New variable.
25627 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25628 readkey. All users updated.
25629 (grub_terminfo_output_state): Pass term to put.
25630 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25631 (grub_usb_controller_dev): Add timeout and actual arguments to
25632 transfer. All users updated.
25633 (grub_usb_interface): New field detach_data.
25634 (grub_usb_device): New fields children and nports.
25635 (grub_usb_ep_type_t): New type.
25636 (grub_usb_get_ep_type): New function.
25637 (grub_usb_bulk_read_extended): Likewise.
25638 * include/grub/usbdesc.h (grub_usb_desc): New type.
25639 * include/grub/usbserial.h: New file.
25640 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25641 * kern/term.c (grub_term_poll_usb): New variable.
25642 (grub_getkey): Call grub_term_poll_usb if set.
25643 (grub_checkkey): Likewise.
25644 (grub_getkeystatus): Likewise.
25645 * term/serial.c: Moved controller-specific parts to ...
25646 * term/ns8250.c: ... here.
25647 * term/serial.c: Mostly rewritten.
25648 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25651 2010-08-20 Robert Millan <rmh@gnu.org>
25653 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25654 a separate module and maybe other interesting combinations.
25656 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25657 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25658 (kfreebsd_entry): Add generic filesystem module load routine.
25659 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25661 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25663 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25664 "numcenter" (I misunderstood the purpose of this entry).
25665 * docs/grub.texi (sendkey): Likewise.
25667 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25669 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25670 status flag options; simply omitting the option is equivalent and
25671 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25672 (keysym_table): Rename "num5numlock" to "numlock".
25673 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25674 can uniformly say that only the last of multiple `sendkey'
25675 invocations has any effect.
25676 * docs/grub.texi (sendkey): New section.
25678 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25680 * commands/i386/pc/sendkey.c (options): Fix three typos.
25682 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25684 Implement sendkey support.
25686 * commands/i386/pc/sendkey.c: New file.
25687 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25688 (sendkey_mod_SOURCES): New variable.
25689 (sendkey_mod_CFLAGS): Likewise.
25690 (sendkey_mod_LDFLAGS): Likewise.
25692 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25694 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25695 fix warnings from Autoconf.
25697 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25699 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25700 to avoid false positives with some assemblers that output things
25701 like "someprefix_func" as part of their output.
25703 2010-08-15 Robert Millan <rmh@gnu.org>
25705 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25707 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25708 grub_get_libzfs_handle() errors.
25710 2010-08-14 Robert Millan <rmh@gnu.org>
25712 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25713 filesystem is not ZFS.
25715 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25717 Fix for misspelled color names defaulting to black/black (bug
25718 reported by Doug Nazar)
25720 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25721 status to prototype.
25722 * normal/color.c (grub_parse_color_name_pair): Return failure
25724 (grub_env_write_color_normal): Ignore bad color names.
25725 (grub_env_write_color_highlight): Likewise.
25726 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25728 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25730 "shift" command support to GRUB script.
25732 * include/grub/script_sh.h (grub_script_shift): New prototype.
25733 * script/execute.c (grub_script_shift): New function.
25734 * script/main.c (grub_script_init): Register shift command.
25735 (grub_script_fini): Unregister shift command.
25736 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25738 * tests/grub_script_shift.in: New testcase.
25739 * conf/tests.rmk: Rules for new testcase.
25741 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25743 "continue" command support to GRUB script.
25745 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25746 (grub_script_break): Continue support.
25747 * script/main.c (grub_script_init): Register continue command.
25748 (grub_script_fini): Unregister continue command.
25750 * tests/grub_script_continue.in: New testcase.
25751 * conf/tests.rmk: Rules for new testcase.
25753 2010-08-12 BVK Chaitanya <bvk@dbook>
25755 "break" command support to GRUB script.
25757 * conf/common.rmk: Rule updates to grub-script-check.
25758 * include/grub/misc.h (grub_min): New function.
25759 * include/grub/script_sh.h (grub_script_init): New prototype.
25760 (grub_script_fini): New prototype.
25761 (grub_script_break): New prototype.
25762 * script/main.c (grub_script_init): New function.
25763 (grub_script_fini): New function.
25764 * script/execute.c (grub_script_break): New function.
25765 * normal/main.c: Calls to grub_script_{init,fini}.
25766 * util/grub-script-check.c (grub_script_break): New function.
25768 * tests/grub_script_break.in: New testcase.
25769 * conf/tests.rmk: Rules for new test case.
25771 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25773 Function parameters support to GRUB script.
25775 * script/yylex.l (VARIABLE): Regular expression update.
25776 * script/function.c (grub_script_function_call): Moved ...
25777 * script/execute.c (grub_script_function_call): ... to here.
25778 (grub_script_execute_arglist_to_argv): Removed.
25779 (grub_script_arglist_to_argv): New function.
25780 * script/argv.c: New file.
25781 (grub_script_argv_free): New function.
25782 (grub_script_argv_next): Likewise.
25783 (grub_script_argv_append): Likewise.
25784 (grub_script_argv_split_append): Likewise.
25785 * include/grub/script_sh.h (grub_script_argv): New struct.
25786 (grub_script_argv_free): New function.
25787 (grub_script_argv_next): Likewise.
25788 (grub_script_argv_append): Likewise.
25789 (grub_script_argv_split_append): Likewise.
25791 * conf/common.rmk (normal.mod): New source script/argv.c.
25793 * tests/grub_script_echo1.in: More tests.
25794 * tests/grub_script_vars1.in: Likewise.
25795 * tests/grub_script_functions.in: New test case.
25796 * conf/tests.rmk: Rules for new testcase.
25798 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25800 Remove grub_script_cmdblock struct.
25802 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25803 * script/parser.y: Likewise.
25804 * script/execute.c: Rename cmdblock suffix to cmdlist.
25805 * script/script.c: Likewise.
25806 * util/grub-script-check.c: Likewise.
25808 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25810 * .bzrignore: add grub-macho2img
25812 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25814 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25816 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25818 Remove the dump of sm712 initialisation sequence.
25820 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25821 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25822 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25823 (GRUB_VGA_CR_*): Added many registers.
25824 (GRUB_VGA_SR_*): Likewise.
25825 (GRUB_VGA_GR_*): Likewise.
25826 (grub_vga_write_arx): New function.
25827 (grub_video_hw_config): New struct.
25828 (grub_vga_set_geometry): New function.
25829 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25830 GRUB_PCI_CLASS_SUBCLASS_VGA.
25831 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25832 * video/sm712.c (grub_sm712_write_reg): New function
25833 (grub_sm712_read_reg): Likewise.
25834 (grub_sm712_sr_write): Likewise.
25835 (grub_sm712_gr_write): Likewise.
25836 (grub_sm712_cr_write): Likewise.
25837 (grub_sm712_write_arx): Likewise.
25838 (grub_sm712_cr_shadow_write): Likewise.
25839 (grub_sm712_write_dda_lookup): Likewise.
25840 (grub_video_sm712_setup): Initialise the video rather then
25841 blindly replay the dump.
25842 (main) [TEST]: Add a routine to be able to compile as standalone for
25844 * video/sm712_init.c (sm712_init): Removed.
25845 (sm712_sr_seq1): New array.
25846 (sm712_sr_seq2): Likewise.
25848 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25850 * include/grub/vga.h: Add missing grub/pci.h include.
25852 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25854 * util/grub-macho2img.c (main): fix typo
25856 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25858 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25859 (grub_vga_gr_read): Likewise.
25860 (grub_vga_cr_write): Likewise.
25861 (grub_vga_cr_read): Likewise.
25862 (grub_vga_sr_write): Likewise.
25863 (grub_vga_sr_read): Likewise.
25864 (grub_vga_palette_read): Likewise.
25865 (grub_vga_palette_write): Likewise.
25866 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25867 (grub_sm712_sr_read): New function.
25868 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25869 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25871 2010-08-09 Robert Millan <rmh@gnu.org>
25873 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25874 out unused variables on non-ZFS build.
25876 2010-08-08 Robert Millan <rmh@gnu.org>
25878 Fix path generation for sub-filesystems in ZFS.
25880 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25883 2010-08-08 Robert Millan <rmh@gnu.org>
25885 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25887 2010-08-08 Robert Millan <rmh@gnu.org>
25889 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25890 exist, issue a proper error message (rely on `ls' for translated
25893 2010-08-08 Robert Millan <rmh@gnu.org>
25895 Fix grub-probe invocation.
25897 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25899 2010-08-04 Robert Millan <rmh@gnu.org>
25901 * configure.ac: Remove checks for getfsstat() and getmntany().
25902 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25903 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25904 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25905 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25906 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25908 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25909 via find_mount_point_from_dir() and getfsstat() / getmntany().
25911 2010-08-04 Robert Millan <rmh@gnu.org>
25913 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25914 (grub_find_zpool_from_mount_point): Merge into ...
25915 (grub_find_zpool_from_dir): ... this.
25916 * kern/emu/misc.c: Likewise.
25919 (grub_make_system_path_relative_to_its_root): Replace
25920 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25921 with grub_find_zpool_from_dir().
25922 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25924 2010-08-04 Robert Millan <rmh@gnu.org>
25926 Support OpenSolaris in ZFS device resolution.
25928 * configure.ac: Check for getmntany().
25929 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25930 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25933 2010-08-03 Robert Millan <rmh@gnu.org>
25935 Fix grub-emu build.
25937 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25938 * include/grub/emu/misc.h: ... here.
25940 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25941 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25943 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25944 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25945 (grub_get_libzfs_handle): Move to ...
25946 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25947 (grub_get_libzfs_handle): ... here.
25949 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25951 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25952 as command name case.
25954 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25956 * disk/raid.c (insert_array): Select unique numbers for named arrays
25957 as well, for use as keys in the disk cache.
25959 2010-08-01 Robert Millan <rmh@gnu.org>
25961 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25962 kFreeBSD device name, except on ZFS where the filesystem label is
25964 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25965 `/boot/zfs/zpool.cache'.
25966 Set mountfrom kernel variable using ${kfreebsd_device}.
25968 2010-08-01 Robert Millan <rmh@gnu.org>
25970 Make it even harder to use uninitialized `libzfs_handle' (and
25971 make the interface a bit simpler).
25973 * include/grub/util/misc.h (grub_util_init_libzfs)
25974 (libzfs_handle): Remove.
25975 (grub_get_libzfs_handle): New prototype.
25977 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
25979 (grub_util_init_libzfs): Remove.
25980 (grub_get_libzfs_handle): New function.
25982 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
25983 grub_get_libzfs_handle() to obtain a libzfs handle instead of
25984 accessing `libzfs_handle' directly.
25986 2010-08-01 Robert Millan <rmh@gnu.org>
25988 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25989 (grub_find_zpool_from_mount_point): New function prototypes.
25991 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25992 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25994 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25995 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25996 `static' attribute.
25998 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25999 finding zpool from mount point into ...
26000 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26002 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26003 requested path is part of a ZFS pool, use
26004 grub_find_zpool_from_mount_point() to detect its filesystem name,
26005 and generate a path with `/fsname@path' syntax.
26007 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26009 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26010 (void) rather than () so that this is a proper prototype.
26012 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26014 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26016 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26018 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26019 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26021 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26023 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26025 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26027 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26029 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26031 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26032 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26033 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26034 disable gfxpayload.
26035 (Shell-like scripting): Add real content.
26036 (Serial terminal): Suggest `terminal_input serial; terminal_output
26037 serial' rather than putting the two commands on separate lines,
26038 since console input will be inoperative after the first command.
26039 (menuentry): Document --class, --users, and --hotkey options.
26040 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26041 Vladimir Serbinenko).
26043 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26044 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26046 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26048 2010-08-01 Robert Millan <rmh@gnu.org>
26050 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26051 (grub_find_zpool_from_mount_point): New function prototypes.
26053 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26054 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26056 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26057 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26058 `static' attribute.
26060 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26061 finding zpool from mount point into ...
26062 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26064 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26065 requested path is part of a ZFS pool, use
26066 grub_find_zpool_from_mount_point() to detect its filesystem name,
26067 and generate a path with `/fsname@path' syntax.
26069 2010-08-01 Robert Millan <rmh@gnu.org>
26071 Prevent accidental use of uninitialized libzfs_handle.
26073 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26074 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26075 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26077 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26079 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26080 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26082 2010-08-01 Robert Millan <rmh@gnu.org>
26084 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26086 2010-07-31 Robert Millan <rmh@gnu.org>
26088 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26090 2010-07-31 Robert Millan <rmh@gnu.org>
26092 * kern/emu/misc.c: Add missing license header.
26094 2010-07-31 Robert Millan <rmh@gnu.org>
26096 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26098 * include/grub/util/libnvpair.h: Include `<config.h>'.
26099 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26100 declaring libnvpair prototypes ourselves.
26101 * include/grub/util/libzfs.h: Include `<config.h>'.
26102 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26103 declaring libzfs prototypes ourselves.
26105 (libzfs_handle): Moved to ...
26106 * include/grub/util/misc.h (libzfs_handle): ... here.
26107 Include `<grub/util/libzfs.h>'.
26109 2010-07-30 Robert Millan <rmh@gnu.org>
26111 * include/grub/emu/misc.h: Add missing license header.
26113 2010-07-30 Robert Millan <rmh@gnu.org>
26115 Enable `grub-probe -t device' resolution on ZFS.
26117 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26118 * include/grub/util/libnvpair.h: New file.
26119 * include/grub/util/libzfs.h: New file.
26121 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26122 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26123 `<grub/util/libnvpair.h>'.
26124 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26126 (find_mount_point_from_dir): New static function.
26127 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26129 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26130 find_root_device_from_libzfs() before ressorting to find_root_device().
26132 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26134 * util/misc.c: Include `<grub/util/libzfs.h>'.
26135 (grub_util_init_libzfs): New function.
26136 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26137 [HAVE_LIBZFS] (fini_libzfs): New static function.
26138 (grub_util_init_libzfs): New function.
26139 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26141 2010-07-30 Robert Millan <rmh@gnu.org>
26143 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26144 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26145 `warn_unused_result' attribute.
26146 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26147 (grub_xasprintf, grub_xvasprintf): Likewise.
26148 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26150 2010-07-29 Robert Millan <rmh@gnu.org>
26152 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26153 (probe): Handle `PRINT_FS_LABEL'.
26154 (main): Handle `-t fs_label'.
26156 2010-07-29 Robert Millan <rmh@gnu.org>
26158 * configure.ac: Remove grub-mkisofs checks.
26160 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26162 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26163 Reported by: Lennart Sorensen.
26165 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26167 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26168 prior to terminal_input/terminal_output separation. It's been over 1.5
26169 years and those versions weren't widely deployed.
26171 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26173 * disk/raid.c (insert_array): Don't count named arrays when looking
26174 for unused array numbers.
26175 Reported and tested by: Michael Guntsche.
26177 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26179 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26180 implementation of this so that grub-emu links again, with a note
26181 that this should support hotplugging in the future.
26183 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26185 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26187 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26189 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26191 (grub_loopback_close): Remove empty function.
26192 (grub_loopback_dev): Remove close method.
26194 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26196 Disable EFI cursor when the EFI console becomes inactive.
26198 * term/efi/console.c (grub_efi_console_init): New function.
26199 (grub_efi_console_fini): New function.
26200 (grub_console_term_output): Register init and fini methods.
26202 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26204 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26207 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26209 * disk/loopback.c (grub_loopback): Replace filename with file.
26210 (delete_loopback): Handle new semantics.
26211 (grub_cmd_loopback): Likewise.
26212 (grub_loopback_iterate): Likewise.
26213 (grub_loopback_close): Likewise.
26215 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26217 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26219 Reported by: Tito Keitel.
26221 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26223 * docs/grub.texi (Naming convention): Document new naming convention.
26225 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26226 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26228 Generate device.map in something closer to the old ordering.
26230 * util/deviceiter.c (struct device): New declaration.
26231 (compare_file_names): Rename to ...
26232 (compare_devices): ... this. Sort by kernel name in preference to
26233 the stable by-id name, but keep the latter as a fallback comparison.
26234 Update header comment.
26235 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26236 of `struct device' rather than of plain file names.
26238 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26240 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26243 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26245 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26247 (setv1table): Likewise.
26249 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26251 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26252 removing the homehost if present.
26253 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26254 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26255 removing the homehost if present.
26256 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26258 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26260 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26261 parameter. Set its pointer target to 0.
26262 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26263 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26264 `data_offset' value from the superblock for 1.x metadata.
26265 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26266 data on the device.
26267 (insert_array): Record the start sector of data on the device.
26268 (grub_raid_register): Pass start_sector parameters to
26269 grub_raid_list->detect and insert_array.
26270 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26272 (struct grub_raid): Add start_sector parameter to `detect'.
26274 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26275 __attribute__ ((packed)), leaving a comment.
26276 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26277 (grub_mdraid_detect_09): ... here and ...
26278 (grub_mdraid_detect_1x): ... here.
26280 2010-07-20 Peter Henn <peter.henn@web.de>
26282 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26283 chunk size and disk size, which are already given as sector counts
26284 as distinct from the 0.90 units. Fetch the correct device number
26285 from the role table instead of using the table index.
26287 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26289 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26290 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26291 (WriteMostly1): New macro.
26292 Set array->name to NULL for metadata format 0.90. Add support for
26293 metadata 1.x. Fix some comments.
26294 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26296 * util/getroot.c (grub_util_get_grub_dev): Add support for
26297 /dev/md/name style devices.
26299 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26301 * .bzrignore: Ignore 20_linux_xen.
26303 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26305 * util/import_unicode.py: Remove unnecessary imports.
26307 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26309 Hotplugging and USB hub support.
26311 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26312 (grub_ohci): Likewise.
26313 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26314 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26315 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26316 (GRUB_OHCI_CTRL_EDS): Likewise.
26317 (GRUB_OHCI_BULK_EDS): Likewise.
26318 (GRUB_OHCI_TDS): Likewise.
26319 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26320 (grub_ohci_ed_phys2virt): New function.
26321 (grub_ohci_virt_to_phys): Likewise.
26322 (grub_ohci_td_phys2virt): Likewise.
26323 (grub_ohci_td_virt2phys): Likewise.
26324 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26326 (grub_ohci_find_ed): New function.
26327 (grub_ohci_alloc_td): Likewise.
26328 (grub_ohci_free_td): Likewise.
26329 (grub_ohci_free_tds): Likewise.
26330 (grub_ohci_transfer): Use previously allocated memory.
26331 (grub_ohci_portstatus): Reset status changed bit.
26332 (grub_ohci_detect_dev): Supply status changed.
26333 (grub_ohci_fini_hw): Free memory.
26334 (grub_ohci_restore_hw): Reallocate memory.
26335 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26336 Reset status change.
26337 (grub_uhci_detect_dev): Supply status_change.
26338 * bus/usb/usb.c (attach_hooks): New var.
26339 (grub_usb_device_attach): New function.
26340 (grub_usb_register_attach_hook_class): Likewise.
26341 (grub_usb_unregister_attach_hook_class): Likewise.
26342 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26343 (grub_usb_add_hub): Reset connection changed bit.
26344 (attach_root_port): New function.
26345 (grub_usb_root_hub): Likewise.
26346 (poll_nonroot_hub): Likewise.
26347 (grub_usb_poll_devices): Likewise.
26348 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26349 * disk/usbms.c (grub_usbms_open): Use device hooks.
26350 (grub_usbms_iterate) :Poll devices.
26351 (grub_usbms_finddevs): Split into ...
26352 (grub_usbms_attach): ... this ...
26353 (grub_usbms_attach): ... and this.
26354 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26356 (grub_usb_interface): New fields attached and detach_hook.
26357 (grub_usb_attach_hook_class): New type.
26358 (grub_usb_attach_desc): New struct.
26359 (grub_usb_register_attach_hook_class): New function.
26360 (grub_usb_unregister_attach_hook_class): Likewise.
26361 (grub_usb_poll_devices): Likewise.
26362 (grub_usb_device_attach): Likewise.
26363 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26364 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26366 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26368 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26369 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26370 delta determination style. Works with most NetBSD partitions too.
26372 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26374 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26375 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26377 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26379 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26381 2010-07-14 Anton Blanchard <anton@samba.org>
26383 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26386 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26388 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26390 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26392 * kern/partition.c (grub_partition_check_containment): New function to
26393 check that a partition is physically contained in a parent. Since
26394 offsets are relative (and non-negative), this reduces to checking that
26395 the partition ends before its parent.
26396 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26397 (grub_partition_iterate): Likewise.
26398 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26400 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26401 partitions that start before their parent, and add debug printfs.
26403 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26405 * Makefile.in (.SUFFIX): Spell correctly, as ...
26406 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26407 bare module name without `.mod', e.g. `test') tried to invoke a
26410 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26412 * README: Point to the Info manual.
26414 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26416 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26417 2nd superblock position from partition size.
26419 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26421 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26422 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26423 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26426 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26428 Restructure SCSI .id handling.
26429 Reported and tested by: Aleš Nesrsta.
26431 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26432 (grub_atapi_dev): Changed .name to "ata". New field .id.
26433 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26434 (grub_usbms_dev): New field .id.
26435 * disk/scsi.c (grub_scsi_iterate): Generate name.
26436 (grub_scsi_open): Parse name.
26437 * include/grub/scsi.h (grub_make_scsi_id): New function.
26438 (grub_scsi_dev): Change iterate and open to number instead of naming
26439 busses. All users updated.
26440 (grub_scsi): Remove name. Add .bus.
26442 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26444 * commands/help.c (grub_cmd_help): Fix a typo.
26446 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26448 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26449 Reported and tested by: Colin Watson.
26451 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26453 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26456 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26458 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26460 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26462 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26465 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26467 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26468 and disk/raid6_recover.c.
26469 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26470 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26472 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26474 * term/gfxterm.c (repaint_schedulded): Rename to ...
26475 (repaint_scheduled): ... this. Update all callers.
26476 (repaint_was_schedulded): Rename to ...
26477 (repaint_was_scheduled): ... this. Update all callers.
26479 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26481 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26482 which we expect to be handled by upper layers.
26484 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26486 * bus/usb/usbhub.c: #include time.h header.
26488 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26490 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26491 entry_name also for entries without stat blocks (e.g. ".."); fixes
26492 corruption of the first entry in a directory.
26494 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26496 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26497 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26498 doesn't work otherwise.
26500 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26502 * docs/grub.texi (Features): Update list of supported file systems.
26503 (GNU/Linux): Update for GRUB 2.
26504 (Serial terminal): Remove mention of --disable-serial, which was a
26505 GRUB Legacy configure option. Update instructions to use
26506 `terminal_input' and `terminal_output' rather than `terminal'.
26507 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26508 configuration' and `Installing GRUB using grub-install'.
26509 (Menu entry editor): Update for GRUB 2.
26510 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26511 Document new -a, -u, and -v options.
26512 (initrd): New section.
26513 (initrd16): New section.
26514 (linux): New section.
26515 (linux16): New section.
26516 (search): The `var' argument to `--set' is optional.
26517 (GRUB only offers a rescue shell): Go into a little more detail on
26520 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26522 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26524 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26526 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26527 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26529 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26531 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26532 install_prefix, in line with install_dos_part and install_bsd_part.
26533 Add new prefix variable, which is copied to install_prefix after
26534 comparing core.img in memory with the one read from disk in the
26535 no-embedding case, and use that rather than overwriting
26536 install_prefix immediately when installing to a partition.
26537 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26540 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26542 * configure.ac: Avoid == in test command, it's not portable.
26543 * util/grub.d/30_os-prober.in: Likewise.
26545 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26547 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26549 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26551 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26552 multiple (top-level) partmaps.
26554 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26556 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26557 Reported by: Tino Keitel.
26559 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26561 Bidi and diacritics support.
26563 * Makefile.in (widthspec.bin): New target.
26564 (widthspec.h): Likewise.
26565 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26566 * autogen.sh: Generate unidata.c.
26567 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26568 * commands/ls.c (grub_ls_list_devices): Likewise.
26569 (grub_ls_list_files): Likewise.
26570 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26571 (grub_mini_cmd_lsmod): Likewise.
26572 * commands/read.c: Likewise.
26573 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26574 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26575 * lib/arg.c (grub_arg_show_help): Likewise.
26576 * lib/crypto.c (grub_password_get): Likewise.
26577 * normal/auth.c (grub_username_get): Likewise.
26578 * normal/misc.c (grub_normal_print_device_info): Likewise.
26579 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26580 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26581 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26582 (normal/charset.c_DEPENDENCIES): New variable.
26583 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26584 (pkglib_MODULES): Remove charset.mod.
26585 (charset_mod_SOURCES): Removed.
26586 (charset_mod_CFLAGS): Likewise.
26587 (charset_mod_LDFLAGS): Likewise.
26588 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26589 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26591 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26592 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26593 (kernel_img_HEADERS): Add terminfo.h.
26594 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26595 Fill ->font. Reverse ascii bitmaps.
26596 (grub_font_get_xheight): New function.
26597 * font/font.c (grub_font_get_string_width): Moved from here ...
26598 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26599 * font/font.c (grub_font_draw_string): Moved from here ...
26600 * gfxmenu/font.c (grub_font_draw_string): ... here.
26601 * font/font.c (grub_font_dup_glyph): New function.
26602 (grub_font_blit_glyph): Likewise.
26603 (grub_font_blit_glyph_mirror): Likewise.
26604 (blit_comb): Likewise.
26605 (grub_font_construct_dry_run): Likewise.
26606 (grub_font_get_constructed_device_width): Likewise.
26607 (grub_font_construct_glyph): Likewise.
26608 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26609 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26610 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26611 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26612 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26613 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26614 (grub_font_get_xheight): New proto.
26615 (grub_font_get_constructed_device_width): Likewise.
26616 (grub_font_construct_glyph): Likewise.
26617 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26618 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26619 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26620 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26621 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26622 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26623 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26624 (grub_console_getcharwidth): Likewise.
26625 * include/grub/misc.h (grub_xputs): New proto.
26626 (grub_puts): Inlined.
26627 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26628 (grub_normal_get_line_counter): Removed.
26629 (grub_install_newline_hook): Likewise.
26630 (grub_normal_get_char_counter): New proto.
26631 (grub_normal_reset_more): Likewise.
26632 (grub_xputs_normal): Likewise.
26633 * include/grub/powerpc/ieee1275/console.h: Removed.
26634 * include/grub/sparc64/ieee1275/console.h: Likewise.
26635 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26636 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26637 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26638 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26639 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26640 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26641 (grub_term_input): Pass reference to self. All users updated.
26642 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26643 Pass reference to self. New fields normal_color, highlight_color and
26644 data. All users updated.
26645 (grub_putchar): Removed.
26646 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26647 (grub_unicode_estimate_width): New function.
26648 (grub_term_getcharwidth): Add defaults.
26649 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26650 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26651 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26652 (grub_cls): Remove EXPORT_FUNC.
26653 (grub_setcolorstate): Inline.
26654 (grub_newline_hook): Removed.
26655 * include/grub/terminfo.h: Rewritten. All users updated.
26656 * include/grub/unicode.h: New file.
26657 * include/grub/video.h (grub_video_signed_rect): New type.
26658 * kern/emu/console.c (grub_console_highlight_color): Removed.
26659 (grub_console_normal_color): Likewise.
26660 (grub_console_standard_color): Made static.
26661 (grub_ncurses_putchar): Remove mapping.
26662 (grub_ncurses_getcharwidth): Removed.
26663 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26664 (grub_ncurses_setcolor): Removed.
26665 (grub_ncurses_getcolor): Likewise.
26666 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26667 (grub_console_putchar): ... this.
26668 (grub_console_putchar): Handle argument difference.
26669 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26670 console_init_early and console_init_lately.
26671 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26672 * kern/misc.c (grub_puts): Removed.
26673 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26674 (grub_vsnprintf_real): Remove str = NULL support.
26675 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26676 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26677 * kern/term.c (grub_putcode): Renamed to ...
26678 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26679 (grub_putchar): Removed.
26680 (grub_xputs_dumb): New function.
26681 (grub_xputs): New variable.
26682 * lib/charset.c: Move from here ...
26683 * normal/charset.c: ... to here.
26684 (grub_ucs4_to_utf8): New function.
26685 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26686 (join_types): New variable.
26687 (unpack_join): New function.
26688 (bidi_types): New variable.
26689 (unpack_bidi): New function.
26690 (get_bidi_type): Likewise.
26691 (get_join_type): Likewise.
26692 (is_mirrored): Likewise.
26693 (grub_unicode_get_comb_type): Likewise.
26694 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26695 (is_type_after): Likewise.
26696 (grub_unicode_aglomerate_comb): Likewise.
26697 (bidi_line_wrap): Likewise.
26698 (grub_bidi_line_logical_to_visual): Likewise.
26699 (grub_bidi_logical_to_visual): Likewise.
26700 (grub_unicode_mirror_code): Likewise.
26701 (grub_unicode_shape_code): Likewise.
26702 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26703 Don't use grub_putchar.
26704 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26705 (grub_normal_reader_init): Likewise.
26706 (grub_xputs_saved): New variable.
26707 (GRUB_MOD_INIT): Set grub_xputs.
26708 (GRUB_MOD_FINI): Restore grub_xputs.
26709 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26710 (menu_init): Avoid printing gfxmenu error.
26711 (show_menu): Use grub_normal_get_char_counter.
26712 * normal/menu_entry.c (update_screen): Fix out-of-array.
26713 (complete): Avoid NULL dereferencing.
26714 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26715 * normal/menu_text.c (print_spaces): Removed.
26716 (grub_print_ucs4): Likewise.
26717 (grub_print_message_indented): Use grub_print_ucs4.
26718 (print_message): Use grub_putcode.
26719 (print_entry): Hanlde diacritics.
26720 * normal/term.c (term_state): New type.
26721 (grub_more_lines): Removed.
26722 (term_states): New variable.
26723 (grub_normal_line_counter): Renamed to ..
26724 (grub_normal_char_counter): ...this. All users updated.
26725 (grub_normal_get_line_counter): Renamed to ...
26726 (grub_normal_get_char_counter): ... this.
26727 (grub_normal_reset_more): New function.
26728 (process_newline): Removed.
26729 (print_more): New function.
26730 (grub_install_newline_hook): Removed.
26731 (map_code): New function.
26732 (grub_puts_terminal): Use grub_print_ucs4.
26733 (putglyph): New function.
26734 (putcode_real): Likewise.
26735 (grub_putcode): Use putcode_real.
26736 (get_maxwidth): New function.
26737 (get_startwidth): Likewise.
26738 (print_ucs4_terminal): Likewise.
26739 (find_term_state): Likewise.
26740 (put_glyphs_terminal): Likewise.
26741 (print_backlog): Likewise.
26742 (print_ucs4_real): Likewise.
26743 (grub_print_ucs4): Likewise.
26744 (grub_xputs_normal): Likewise.
26745 * term/efi/console.c (grub_console_putchar): Output diacritics.
26746 (grub_console_getcharwidth): Removed.
26747 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26748 * term/gfxterm.c (clear_char): Free chars.
26749 (scroll_up): Avoid leaking memory.
26750 (grub_gfxterm_putchar): Support diacritics.
26751 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26752 * term/i386/pc/console.c (grub_console_term_output): Declare as
26753 GRUB_TERM_CODE_TYPE_VGA.
26754 * term/i386/pc/vga.c (grub_vga_term): Declare as
26755 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26756 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26757 GRUB_TERM_CODE_TYPE_VGA.
26758 * term/i386/vga_common.c (map_char): Removed.
26759 (grub_console_putchar): Likewise.
26760 (grub_console_getcharwidth): Likewise.
26761 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26762 (colors): Reordered to match terminfo.
26763 (grub_ofconsole_normal_color): Removed.
26764 (grub_ofconsole_writeesc): Likewise.
26765 (grub_ofconsole_highlight_color): Likewise.
26766 (grub_ofconsole_getcharwidth): Likewise.
26767 (grub_ofconsole_setcolorstate): Likewise.
26768 (grub_ofconsole_setcolor): Likewise.
26769 (grub_ofconsole_getcolor): Likewise.
26770 (grub_ofconsole_readkey): Renamed to ...
26771 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26773 (grub_ofconsole_checkkey): Removed.
26774 (grub_ofconsole_getkey): Likewise.
26775 (grub_ofconsole_getxy): Likewise.
26776 (grub_ofconsole_gotoxy): Likewise.
26777 (grub_ofconsole_cls): Likewise.
26778 (grub_ofconsole_refresh): Likewise.
26779 (grub_ofconsole_terminfo_input): New struct.
26780 (grub_ofconsole_terminfo_output): Likewise.
26781 (grub_ofconsole_term_input): Use terminfo.
26782 (grub_ofconsole_term_output): Likewise.
26783 (grub_console_init): Split into ...
26784 (grub_console_init_early): ...this and ...
26785 (grub_console_init_lately): ...this. Use terminfo.
26786 (grub_ofconsole_putchar): Renamed to ...
26787 (put): ... this. Remove mapping.
26788 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26789 * term/serial.c: Simplify using terminfo.
26792 (keep_track): Likewise.
26793 (registered): Likewise.
26794 (input_buf): Likewise.
26795 (npending): Likewise.
26796 (serial_translate_key_sequence): Likewise.
26797 (fill_input_buf): Likewise.
26798 (grub_serial_checkkey): Likewise.
26799 (grub_serial_getkey): Likewise.
26800 (grub_serial_getxy): Likewise.
26801 (grub_serial_gotoxy): Likewise.
26802 (grub_serial_putchar): Likewise.
26803 (grub_serial_cls): Likewise.
26804 (grub_serial_setcolorstate): Likewise.
26805 (grub_serial_setcursor): Likewise.
26806 (serial_hw_init): Use serial_hw_fetch.
26807 (grub_serial_terminfo_input): New variable.
26808 (grub_serial_terminfo_output): Likewise.
26809 (grub_serial_term_input): Use terminfo.
26810 (grub_serial_term_output): Likewise.
26811 * term/terminfo.c (putstr): Use put.
26812 (grub_terminfo_all_free): New function
26813 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26814 (grub_terminfo_output_register): New function.
26815 (grub_terminfo_output_unregister): Likewise.
26816 (grub_terminfo_getxy): Likewise.
26817 (grub_terminfo_readkey): Likewise.
26818 (grub_terminfo_checkkey): Likewise.
26819 (grub_terminfo_getkey): Likewise.
26820 (grub_terminfo_input_init): Likewise.
26821 (print_terminfo): Likewise.
26822 (grub_cmd_terminfo): Handle encoding.
26823 (grub_terminfo_gotoxy): Track position.
26824 (grub_terminfo_cls): Likewise.
26825 (grub_terminfo_putchar): Likewise.
26826 (grub_terminfo_setcolorstate): Handle colors
26827 (grub_terminfo_cursor_on): This ...
26828 (grub_terminfo_cursor_off): ... and this merged into ...
26829 (grub_terminfo_setcursor): ... this.
26830 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26831 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26832 * unicode/BidiMirroring.txt: Likewise.
26833 * unicode/UnicodeData.txt: Likewise.
26834 * unicode/COPYING: Likewise.
26835 * util/grub-editenv.c (grub_putchar): Removed.
26836 (grub_xputs_real): New function.
26837 (grub_xputs): New variable.
26838 * util/grub-fstest.c (grub_putchar): Removed.
26839 (grub_xputs_real): New function.
26840 (grub_xputs): New variable.
26841 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26842 (grub_xputs_real): New function.
26843 (grub_xputs): New variable.
26844 * util/grub-probe.c (grub_putchar): Removed.
26845 (grub_xputs_real): New function.
26846 (grub_xputs): New variable.
26847 * util/grub-script-check.c (grub_putchar): Removed.
26848 (grub_xputs_real): New function.
26849 (grub_xputs): New variable.
26850 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26851 (grub_xputs_real): New function.
26852 (grub_xputs): New variable.
26853 * util/import_unicode.py: New file.
26854 * util/grub-mkfont.c (ft_errmsgs): New array.
26855 (grub_glyph_info): Make bitmap a pointer.
26856 (file_formats): New type WIDTH_SPEC.
26857 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26858 (options): Add width-spec.
26860 (add_char): Renamed to ...
26861 (add_glyph): ... this.
26862 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26863 (glyph_replace): New type.
26864 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26865 (add_char): New function.
26866 (add_subst): Likewise.
26867 (process_cursive): Likewise.
26868 (add_font): Handle GSUB.
26869 (write_font_width_spec): New function.
26870 (main): Sort glyphs.
26871 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26872 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26873 * kern/term.c (grub_cls): Moved from here...
26874 * normal/term.c (grub_cls): ... here.
26876 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26878 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26879 suitable for using within the format argument of printf when
26880 converting grub_size_t.
26881 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26882 "x" to convert grub_size_t arguments.
26884 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26886 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26888 (list_get_minimal_size): Take selection box into account.
26890 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26892 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26895 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26897 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26898 devices when iterating over /dev/disk/by-id; they will be handled
26899 later if appropriate, which they aren't always (e.g. LVM).
26901 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26903 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26904 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26906 (grub_halt): Likewise.
26907 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26909 (grub_halt): Don't return, even if all of shut-down, power-off, and
26912 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26914 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26915 arguments, not three.
26917 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26919 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26920 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26921 LVM-on-RAID is handled correctly.
26923 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26925 * docs/grub.texi (Changes from GRUB Legacy): New section.
26926 (Future): Fix typo.
26928 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26930 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26931 grub.d/README accidentally ends up executable for one reason or
26932 another. Ignore it.
26934 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26936 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26937 (gpt_partition_map_iterate): Support non-512B sectors.
26939 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26941 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26942 Tested by: Seth Goldberg.
26944 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26946 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26947 Properly align mbi.
26948 Reported by: Seth Goldberg.
26950 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26952 * util/grub-mkrescue.in: Avoid module duplication.
26954 2010-07-01 Sean Finney <seanius@seanius.net>
26956 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26958 2010-07-01 Sean Finney <seanius@seanius.net>
26960 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26962 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26964 * disk/lvm.c (grub_lvm_checkvalue): New function.
26965 (grub_lvm_check_flag): Likewise.
26967 2010-07-01 Robert Millan <rmh@gnu.org>
26969 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26970 Support 'p' as partition separator on kernel of FreeBSD (used
26972 (grub_util_biosdisk_get_grub_dev): Likewise.
26974 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26976 Yeeloong firmware port.
26978 * boot/mips/yeeloong/fwstart.S: New file.
26979 * bus/cs5536.c (gpiodump): New const.
26980 (set_io_space): New function.
26981 (set_iod): Likewise.
26982 (set_p2d): Likewise.
26983 (grub_cs5536_init_geode): Likewise.
26984 * commands/mips/yeeloong/lsspd.c: New file.
26985 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
26986 (serial_mod_SOURCES): New variable.
26987 (serial_mod_CFLAGS): Likewise.
26988 (serial_mod_LDFLAGS): Likewise.
26989 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
26990 term/terminfo.c and term/tparm.c.
26991 (pkglib_IMAGES): Add fwstart.img.
26992 (fwstart_img_SOURCES): New variable.
26993 (fwstart_img_CFLAGS): Likewise.
26994 (fwstart_img_ASFLAGS): Likewise.
26995 (fwstart_img_LDFLAGS): Likewise.
26996 (fwstart_img_FORMAT): Likewise.
26997 (pkglib_MODULES): Add lsspd.mod.
26998 (lsspd_mod_SOURCES): New variable.
26999 (lsspd_mod_CFLAGS): Likewise.
27000 (lsspd_mod_LDFLAGS): Likewise.
27001 (pkglib_MODULES): Add halt.mod.
27002 (halt_mod_SOURCES): New variable.
27003 (halt_mod_CFLAGS): Likewise.
27004 (halt_mod_LDFLAGS): Likewise.
27005 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27006 (serial_mod_SOURCES): Removed.
27007 (serial_mod_CFLAGS): Likewise.
27008 (serial_mod_LDFLAGS): Likewise.
27009 * disk/ata.c (check_device): New function.
27010 (grub_ata_device_initialize): Use check_device.
27011 (grub_ata_iterate): Recheck devices.
27012 (grub_ata_open): Likewise.
27013 (grub_atapi_iterate): Likewise.
27014 (grub_atapi_open): Likewise.
27015 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27016 (GRUB_ATA_CH1_PORT1): Likewise.
27017 (GRUB_ATA_CH0_PORT2): Likewise.
27018 (GRUB_ATA_CH1_PORT2): Likewise.
27019 * include/grub/mips/loongson.h: New file.
27020 * include/grub/mips/yeeloong/ec.h: Likewise.
27021 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27022 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27023 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27024 * include/grub/misc.h (grub_halt): Declare as noreturn.
27025 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27026 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27027 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27028 (UART_ENABLE_DTRRTS): Likewise.
27029 (UART_ENABLE_MODEM): Removed.
27030 (UART_ENABLE_OUT2): New const.
27031 * include/grub/term.h (grub_term_register_input_active): New function.
27032 (grub_term_register_output_active): Likewise.
27033 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27035 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27036 (init_pci): New function.
27037 (grub_machine_init): Execute platform init when firmware. Init serial.
27038 (grub_halt): Implement.
27039 (grub_exit): Likewise.
27040 (grub_reboot): Likewise.
27041 * term/serial.c (serial_hw_init): Update macros.
27042 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27043 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27044 (image_targets): New target mipsel-yeeloong-flash.
27045 (generate_image): Support IMAGE_YEELOONG_FLASH.
27046 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27047 (grub_video_sm712_setup): Init card.
27048 (grub_video_sm712_set_palette): Removed.
27049 * video/sm712_init.c: New file.
27051 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27053 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27054 PATH when running help2man and then run it on the unadorned
27055 executable names, rather than passing $(builddir)/* paths to
27056 help2man. This avoids the build directory ending up in generated
27059 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27061 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27062 to avoid accidents when debugging with 'sh -x'.
27063 * util/grub-mkrescue.in: Likewise.
27064 * util/grub.d/00_header.in: Likewise.
27065 * util/grub.d/10_hurd.in: Likewise.
27066 * util/grub.d/10_kfreebsd.in: Likewise.
27067 * util/grub.d/10_linux.in: Likewise.
27068 * util/grub.d/10_netbsd.in: Likewise.
27069 * util/grub.d/10_windows.in: Likewise.
27070 * util/grub.d/20_linux_xen.in: Likewise.
27071 * util/grub.d/30_os-prober.in: Likewise.
27072 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27074 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27076 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27077 last character in the buffer.
27078 Reported by: Vladimir Serbinenko.
27080 2010-06-29 Robert Millan <rmh@gnu.org>
27082 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27083 (Command-line and menu entry commands): Document `badram' command.
27085 2010-06-28 Robert Millan <rmh@gnu.org>
27087 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27088 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27089 command using ${GRUB_BADRAM} as parameter.
27091 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27093 * docs/grub.texi (Device map): New section.
27094 (Themes): New section (stub).
27095 * Makefile.in (docs/grub.info): The info documentation now builds
27096 without errors. Make sure it stays that way.
27098 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27100 Use normal parser for menu entries.
27101 Reported by: Thomas Frauendorfer
27103 * include/grub/parser.h (grub_parser_execute): Don't export.
27104 * normal/menu.c (grub_menu_execute_entry_real): New function.
27105 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27107 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27109 * docs/grub.texi (Embedded configuration): New section (replacing
27110 old "Preset Menu" stub).
27111 (Images): New section.
27112 (configfile): Note that any menu entries defined in `file' are shown
27115 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27117 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27119 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27121 * util/grub-install.in: Add --debug-image= option.
27123 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27125 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27128 * util/deviceiter.c (check_device): Rename to ...
27129 (check_device_readable_unique): ... this. Update all callers.
27130 Maintain and check a list of which devices (by canonicalized name)
27131 have already been seen.
27132 (clear_seen_devices): New function.
27133 (compare_file_names) [__linux__]: New function.
27134 (grub_util_iterate_devices): Clear the list of seen devices on exit
27135 and (just in case) on entry.
27136 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27137 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27138 seen-devices list, superseded by general code in check_device.
27140 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27142 * commands/cat.c (options): New variable.
27143 (grub_cmd_cat): Parse options. If the --dos option is given, print
27144 DOS-style "\r\n" line endings as simple newlines (Debian bug
27146 (GRUB_MOD_INIT): Use extcmd.
27147 (GRUB_MOD_FINI): Likewise.
27148 * docs/grub.texi (cat): Document --dos.
27150 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27152 XEN with Linux grub-mkconfig support.
27154 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27155 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27156 GRUB_CMDLINE_XEN_DEFAULT.
27157 * util/grub.d/20_linux_xen.in: New file.
27159 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27161 Initialise VGA video on qemu ourselves.
27163 * boot/i386/qemu/boot.S: Don't call 0xc000.
27164 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27165 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27166 (kernel_img_HEADERS): Add pci.h.
27167 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27168 * configure.ac: Force unifont on qemu and yeeloong.
27169 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27170 (grub_vga_palette_write): Use correct register.
27171 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27172 Call grub_qemu_init_cirrus.
27173 * kern/i386/qemu/init.c: New file.
27174 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27176 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27178 2010-06-26 Pavel Roskin <proski@gnu.org>
27180 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27183 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27185 * docs/grub.texi (Simple configuration): Explain that
27186 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27187 set to `true' to disable their respective recovery entries, not
27190 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27192 Make the `source' command slightly faster.
27194 * normal/main.c (grub_normal_execute): Don't re-read list files when
27197 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27199 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27200 field position and mask size to red fields from mode_info, not
27202 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27203 Remove redundant tag->common.framebuffer_type assignment.
27204 Reported by: Seth Goldberg.
27206 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27208 Sync up other versions of the Linux loader with Robert Millan's
27209 change of 2010-01-09, "Make loader output a bit more user-friendly".
27211 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27213 (grub_cmd_linux): Likewise.
27214 (grub_cmd_initrd): Likewise.
27215 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27216 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27218 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27220 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27221 larger than MEMORY_MAP_SIZE.
27223 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27225 Fix parallel build.
27227 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27229 * script/parser.y: #include grub_script.tab.h header.
27231 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27233 Support >3GiB and <16MiB RAM in i386-qemu.
27235 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27236 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27237 (grub_lower_mem): Removed.
27238 (grub_upper_mem): Likewise.
27239 (mem_size): Made static.
27240 (above_4g): New variable.
27241 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27242 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27245 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27247 Cirrus 5446 and Bochs video cards support.
27249 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27251 (video_cirrus_mod_SOURCES): New variable.
27252 (video_cirrus_mod_CFLAGS): Likewise.
27253 (video_cirrus_mod_LDFLAGS): Likewise.
27254 (video_bochs_mod_SOURCES): Likewise.
27255 (video_bochs_mod_CFLAGS): Likewise.
27256 (video_bochs_mod_LDFLAGS): Likewise.
27257 * include/grub/vga.h: New file.
27258 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27259 (grub_video_fb_set_page_t): New type.
27260 (grub_video_fb_setup): New prototype.
27261 (grub_video_fb_swap_buffers): Likewise.
27262 (grub_video_fb_get_info_and_fini): Likewise.
27263 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27264 (CRTC_DATA_PORT): Likewise.
27265 (CRTC_CURSOR): Likewise.
27266 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27267 (CRTC_CURSOR_ADDR_LOW): Likewise.
27268 (CRTC_CURSOR_DISABLE): Likewise.
27269 (update_cursor): Use grub_vga_cr_write.
27270 (grub_vga_text_setcursor): Likewise.
27271 * video/bochs.c: New file.
27272 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27273 (palette): Likewise.
27274 (palette_size): Likewise.
27275 (framebuffer): New variable.
27276 (grub_video_fb_init): Use 'framebuffer'.
27277 (grub_video_fb_fini): Likewise.
27278 (grub_video_fb_get_info): Likewise.
27279 (grub_video_fb_get_palette): Likewise.
27280 (grub_video_fb_set_palette): Likewise.
27281 (grub_video_fb_set_viewport): Likewise.
27282 (grub_video_fb_get_viewport): Likewise.
27283 (grub_video_fb_map_color): Likewise.
27284 (grub_video_fb_map_rgb): Likewise.
27285 (grub_video_fb_map_rgba): Likewise.
27286 (grub_video_fb_unmap_color): Likewise.
27287 (grub_video_fb_unmap_color_int): Likewise.
27288 (grub_video_fb_fill_rect): Likewise.
27289 (grub_video_fb_blit_bitmap): Likewise.
27290 (grub_video_fb_blit_render_target): Likewise.
27291 (grub_video_fb_scroll): Likewise.
27292 (grub_video_fb_create_render_target): Likewise.
27293 (grub_video_fb_doublebuf_blit_init): Likewise.
27294 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27295 (doublebuf_pageflipping_update_screen): New function.
27296 (doublebuf_pageflipping_init): Likewise.
27297 (grub_video_fb_setup): Likewise.
27298 (grub_video_fb_swap_buffers): Likewise.
27299 (grub_video_fb_get_info_and_fini): Likewise.
27300 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27302 (doublebuf_pageflipping_commit): Restructured into ...
27303 (doublebuf_pageflipping_set_page): ... this.
27304 (doublebuf_pageflipping_update_screen): Removed.
27305 (doublebuf_pageflipping_init): Likewise.
27306 (double_buffering_init): Likewise.
27307 (grub_video_vbe_setup): Use grub_video_fb_setup.
27308 (grub_video_vbe_swap_buffers): Removed.
27309 (grub_video_vbe_set_active_render_target): Likewise.
27310 (grub_video_vbe_get_active_render_target): Likewise.
27311 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27312 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27313 grub_video_fb_set_active_render_target and
27314 grub_video_fb_get_active_render_target.
27315 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27316 (SEQUENCER_DATA_PORT): Likewise.
27317 (MAP_MASK_REGISTER): Likewise.
27318 (CRTC_ADDR_PORT): Likewise.
27319 (CRTC_DATA_PORT): Likewise.
27320 (START_ADDR_HIGH_REGISTER): Likewise.
27321 (START_ADDR_LOW_REGISTER): Likewise.
27322 (GRAPHICS_ADDR_PORT): Likewise.
27323 (GRAPHICS_DATA_PORT): Likewise.
27324 (READ_MAP_REGISTER): Likewise.
27325 (INPUT_STATUS1_REGISTER): Likewise.
27326 (INPUT_STATUS1_VERTR_BIT): Likewise.
27327 (get_map_mask): Use grub_vga_sr_read.
27328 (set_map_mask): Use grub_vga_sr_write.
27329 (set_read_map): Use grub_vga_gr_write.
27330 (set_start_address): Use grub_vga_cr_write.
27331 * video/sm712.c (framebuffer): Remove leftover fields.
27333 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27335 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27336 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27337 instead. Replace the gfxterm backend check with a check that
27338 ${GRUB_PREFIX}/video.lst is non-empty.
27339 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27341 (load_video): New generated function. Call it before loading
27342 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27343 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27344 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27345 * docs/grub.texi (Simple configuration): Document
27346 GRUB_VIDEO_BACKEND.
27348 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27350 Use video functions in linux and xnu loaders.
27352 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27353 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27354 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27355 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27356 loader/i386/pc/linux.c.
27357 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27358 (find_line_len): Removed.
27359 (find_framebuf): Likewise.
27360 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27361 * loader/i386/efi/xnu.c: Removed.
27362 * loader/i386/pc/xnu.c: Moved from here...
27363 * loader/i386/xnu.c: ...here.
27365 Enable priorities in video drivers.
27367 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27368 (grub_video_adapter): New field prio.
27369 (grub_video_register): Respect prio when inserting.
27370 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27371 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27372 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27373 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27374 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27375 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27376 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27380 * include/grub/video.h (grub_video_driver_id_t): New value
27381 GRUB_VIDEO_DRIVER_SDL.
27382 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27384 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27386 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27387 argument to printf.
27388 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27390 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27392 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27393 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27395 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27397 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27398 directly, and recommend grub-install instead.
27399 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27401 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27403 Fix i386-pc prefix handling with nested partitions (Debian bug
27404 #585068). Note that the case where the core image is booted using
27405 multiboot and relocated from its original location still requires
27408 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27409 with "(,", fill the boot drive in between those two characters, but
27410 expect that a full partition specification including partition map
27412 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27413 specified, write a prefix without the drive name but including a
27414 full partition specification.
27416 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27418 * util/grub-mkconfig.in: Ignore non-option arguments, for
27419 compatibility with older versions (before 2010-06-12) which did the
27420 same. In particular, this makes it easier to ship an update-grub
27421 wrapper which is compatible with that used with GRUB Legacy (Debian
27424 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27426 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27427 for manual page generation.
27429 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27431 * po/POTFILES: Remove leftover commands/handler.c.
27433 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27435 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27436 left this script non-functional.
27438 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27440 * docs/man/grub-emu.h2m: New file.
27442 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27444 * docs/grub.texi (Commands): Document reduced command set in rescue
27446 (cpuid): New section.
27448 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27450 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27451 new partition naming style.
27452 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27454 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27456 Add "-o grub.iso" like cmdline options support.
27458 * util/grub-install.in: Improve cmdline option parsing.
27459 * util/grub-mkconfig.in: Likewise.
27460 * util/grub-mkrescue.in: Likewise.
27461 * util/grub-reboot.in: Likewise.
27462 * util/grub-set-default.in: Likewise.
27463 * util/i386/efi/grub-install.in: Likewise.
27464 * util/ieee1275/grub-install.in: Likewise.
27465 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27467 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27469 * .bzrignore: Ignore 41_custom.
27471 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27473 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27475 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27477 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27478 prototype declarations.
27480 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27481 generating fs, partmap, and video lists.
27482 * include/grub/fs.h (grub_fs_register): Omit prototype if
27483 GRUB_LST_GENERATOR is defined.
27484 * include/grub/partition.h (grub_partition_map_register): Likewise.
27485 * include/grub/video.h (grub_video_register): Likewise.
27487 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27489 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27491 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27493 * util/grub-mkrescue.in: Support --xorriso argument.
27495 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27497 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27498 Suggested by: Thomas Schmitt.
27500 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27502 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27503 Suggested by: Thomas Schmitt.
27505 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27507 custom.cfg support.
27509 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27510 * util/grub.d/41_custom.in: New file.
27512 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27514 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27515 been merged back into normal.
27517 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27519 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27520 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27522 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27524 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27525 when generating manual pages.
27526 * docs/man/grub-bin2h.h2m: New file.
27527 * docs/man/grub-editenv.h2m: New file.
27528 * docs/man/grub-fstest.h2m: New file.
27529 * docs/man/grub-install.h2m: New file.
27530 * docs/man/grub-macho2img.h2m: New file.
27531 * docs/man/grub-mkconfig.h2m: New file.
27532 * docs/man/grub-mkdevicemap.h2m: New file.
27533 * docs/man/grub-mkfont.h2m: New file.
27534 * docs/man/grub-mkimage.h2m: New file.
27535 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27536 * docs/man/grub-mkrelpath.h2m: New file.
27537 * docs/man/grub-mkrescue.h2m: New file.
27538 * docs/man/grub-ofpathname.h2m: New file.
27539 * docs/man/grub-pe2elf.h2m: New file.
27540 * docs/man/grub-probe.h2m: New file.
27541 * docs/man/grub-reboot.h2m: New file.
27542 * docs/man/grub-script-check.h2m: New file.
27543 * docs/man/grub-set-default.h2m: New file.
27544 * docs/man/grub-setup.h2m: New file.
27546 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27548 Use FOR_* macros instead of *_iterate whenever possible.
27550 * commands/handler.c: Removed.
27551 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27552 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27553 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27554 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27555 (grub_probe_SOURCES): Remove kern/parser.c.
27556 (util/grub-script-check.c_DEPENDENCIES): Removed.
27557 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27558 and grub_script_check_init.c.
27559 (grub_script_check_init.lst): Removed.
27560 (grub_script_check_init.h): Likewise.
27561 (grub_script_check_init.c): Likewise.
27562 (pkglib_MODULES): Remove handler.mod and sh.mod.
27563 (handler_mod_SOURCES): Removed.
27564 (handler_mod_CFLAGS): Likewise.
27565 (handler_mod_LDFLAGS): Likewise.
27566 (normal_mod_SOURCES): Remove normal/handler.c.
27567 Add script/main.c, script/script.c, script/execute.c,
27568 script/function.c, script/lexer.c, grub_script.tab.c
27569 and grub_script.yy.c.
27570 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27571 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27572 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27573 (grub_setup_SOURCES): Remove kern/parser.c.
27574 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27575 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27576 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27577 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27578 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27579 (grub_setup_SOURCES): Remove kern/parser.c.
27580 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27581 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27582 * include/grub/command.h (grub_command_iterate): Removed.
27583 (FOR_COMMANDS): New macro.
27584 * include/grub/dl.h (grub_dl): New member next.
27585 (grub_dl_iterate): Removed.
27586 (grub_dl_head): New variable declaration.
27587 (FOR_DL_MODULES): New macro.
27588 * include/grub/fs.h: Include list.h.
27589 (grub_fs): Make next first element.
27590 (grub_fs_list): New variable declaration.
27591 (grub_fs_register): Make inline.
27592 (grub_fs_unregister): Likewise.
27593 (grub_fs_iterate): Removed.
27594 (FOR_FILESYSTEMS): New macro.
27595 * include/grub/handler.h: Removed.
27596 * include/grub/list.h (grub_list_hook_t): Removed.
27597 (grub_list_test_t): Likewise.
27598 (grub_list_pop): Likewise.
27599 (grub_list_iterate): Likewise.
27600 (grub_list_insert): Likewise.
27601 (FOR_LIST_ELEMENTS): New macro.
27602 * include/grub/parser.h (grub_parser_class): Removed.
27603 (grub_parser_register): Likewise.
27604 (grub_parser_unregister): Likewise.
27605 (grub_parser_get_current): Likewise.
27606 (grub_parser_set_current): Likewise.
27607 (grub_register_rescue_parser): Likewise.
27608 (grub_rescue_parse_line): New function.
27609 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27610 * include/grub/script_sh.h (grub_script_function_list): New variable
27612 (FOR_SCRIPT_FUNCTIONS): New macro.
27613 (grub_script_function_iterate): Removed.
27614 (grub_normal_parse_line): New prototype.
27615 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27616 (FOR_DISABLED_TERM_INPUTS): Likewise.
27617 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27618 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27619 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27621 (grub_video_register): Inline.
27622 (grub_video_unregister): Likewise.
27623 (grub_video_adapter_list): New variable declaration.
27624 (grub_video_iterate): Removed.
27625 (FOR_VIDEO_ADAPTERS): New macro.
27626 * kern/dl.c (grub_dl_list): Removed. All users updated.
27627 (grub_dl_iterate): Removed.
27628 * kern/fs.c (grub_fs_list): Make global.
27629 (grub_fs_register): Removed.
27630 (grub_fs_unregister): Likewise.
27631 (grub_fs_iterate): Likewise.
27632 * kern/handler.c: Removed.
27633 * kern/list.c (grub_list_pop): Removed.
27634 (grub_list_iterate): Likewise.
27635 (grub_list_insert): Likewise.
27636 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27637 (grub_prio_list_insert): Don't use grub_list_insert.
27638 * kern/main.c (grub_register_rescue_parser): Don't call
27639 grub_register_rescue_parser.
27640 * kern/parser.c (grub_parser_class): Removed.
27641 (grub_parser_execute): Use grub_rescue_parse_line.
27642 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27643 (grub_rescue_parser): Removed.
27644 (grub_register_rescue_parser): Likewise.
27645 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27646 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27647 (grub_auth_check_authentication): Likewise.
27648 * normal/completion.c (iterate_command): Removed.
27649 (grub_normal_do_completion): Use FOR_COMMANDS.
27650 * normal/handler.c: Removed.
27651 * normal/main.c (read_config_file): Remove parser changing.
27652 (grub_normal_execute): Don't call read_handler_list.
27653 (grub_normal_read_line_real): Statically allocate prompt.
27654 (grub_cmdline_run): Use grub_normal_parse_line.
27655 (GRUB_MOD_FINI): Don't call free_handler_list.
27656 * normal/menu_entry.c (run): Likewise.
27657 * script/function.c (grub_script_function_list): Make global.
27658 (grub_script_function_iterate): Removed.
27659 * script/main.c (grub_normal_parse_line): Make global.
27660 (grub_sh_parser): Removed.
27661 (GRUB_MOD_INIT): Likewise.
27662 (GRUB_MOD_FINI): Likewise.
27663 * tests/lib/functional_test.c (grub_functional_test): Use
27665 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27666 (grub_test_run): Use FOR_LIST_ELEMENTS.
27667 * tests/lib/unit_test.c (main): Likewise.
27668 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27670 * util/grub-fstest.c (grub_term_input_class): Removed.
27671 (grub_term_output_class): Likewise.
27672 * util/grub-probe.c: Likewise.
27673 * util/i386/pc/grub-setup.c: Likewise.
27674 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27675 * util/grub-script-check.c (main): Don't call grub_init_all and
27677 * video/video.c (grub_video_adapter_list): Make global.
27678 (grub_video_register): Removed.
27679 (grub_video_unregister): Likewise.
27680 (grub_video_iterate): Likewise.
27682 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27684 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27685 reported by Henrique Ferreiro.
27687 2010-06-09 Robert Millan <rmh@gnu.org>
27689 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27690 ones, when both are available.
27692 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27694 Make --version uniform and avoid hard-coded program name.
27696 * util/grub-mkimage.c (main): Use `program_name' instead of
27698 * util/i386/pc/grub-setup.c (main): Likewise.
27699 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27700 * util/grub-install.in: Save the basename of $0 in $self, and use the
27701 latter in informational messages. Use the same format for --version
27702 as the binary programs.
27703 * util/grub-mkconfig.in: Likewise.
27704 * util/grub-mkrescue.in: Likewise.
27705 * util/grub-reboot.in: Likewise.
27706 * util/grub-set-default.in: Likewise.
27707 * util/i386/efi/grub-install.in: Likewise.
27708 * util/ieee1275/grub-install.in: Likewise.
27709 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27711 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27713 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27714 embedding area. Use <= instead of == when checking for non-emptiness.
27716 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27718 * configure.ac: Add `.' to the directories searched for unifont.
27720 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27722 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27725 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27727 * docs/grub.texi (History): Expand to cover GRUB 2.
27728 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27729 commands, not `terminal'.
27730 (serial): Likewise.
27731 (terminal_input): New section.
27732 (terminal_output): New section.
27733 (uppermem): New section (stub).
27734 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27736 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27738 * docs/grub.texi (Security): Menu entries are unrestricted by
27739 default, not restricted to superusers as I had previously thought.
27740 Reword to account for this.
27742 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27744 * kern/emu/misc.c (device_mapper_null_log): New function.
27745 (grub_device_mapper_supported): New function.
27746 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27748 * kern/emu/hostdisk.c (find_partition_start): Check whether
27749 device-mapper is supported before trying to use it.
27750 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27752 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27754 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27755 (File name syntax): Likewise.
27756 (help): --all is no longer supported in GRUB 2. Be more precise
27757 about pattern matching.
27759 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27761 * normal/completion.c (grub_normal_do_completion): When completing
27762 arguments to "set" and the current word contains an equals sign,
27763 skip to after the equals sign before starting completion.
27765 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27767 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27769 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27771 * docs/grub.texi (Network): New section.
27772 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27773 `(nd)' as in GRUB Legacy.
27774 (pxe_unload): New section.
27776 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27778 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27779 in the rescue shell, so recommend using `set' instead. Thanks,
27782 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27784 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27785 (password): New section.
27786 (password_pbkdf2): New section.
27787 (search): New section.
27788 (Security): New section.
27789 (Troubleshooting): New section, currently very incomplete.
27790 (Invoking grub-mkpasswd-pbkdf2): New section.
27791 (Internals): New section, currently very incomplete.
27793 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27795 * util/grub.d/00_header.in: Add some more quoting (of
27796 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27798 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27800 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27802 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27803 to `count', fixing variable shadowing that broke the -c option.
27805 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27807 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27808 in case they contain spaces.
27810 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27812 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27813 "part_" to partmap module names, in line with grub-install.
27814 Reported by: Jindřich Makovička (Debian bug #584426).
27816 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27818 * util/grub-mkimage.c: Make target-related error messages slightly
27819 more helpful; -O talks about "format". Explicitly point to the use
27820 of -O if no target is specified.
27821 Reported by: Didier Raboud (Debian bug #584415).
27823 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27825 * INSTALL: Document several build requirements for optional features
27826 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27828 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27830 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27831 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27832 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27834 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27836 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27837 Thanks to Jordan Uggla for spotting this.
27839 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27841 Finally make USB usable.
27843 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27844 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27845 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27846 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27847 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27848 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27849 (GRUB_OHCI_FSMPS): Likewise.
27850 (GRUB_OHCI_PERIODIC_START): Likewise.
27851 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27852 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27853 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27854 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27855 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27856 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27857 (grub_ohci_transaction): Likewise.
27858 (grub_ohci_transfer): Improve condition detection algorithms.
27859 Handle toggle property. Program the transactions correctly.
27860 Improve error handling. Various important fixups.
27861 (grub_ohci_portstatus): Put register writes in right order.
27862 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27863 (grub_uhci_transfer): Don't show "failed" message on success.
27864 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27866 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27867 determine its size.
27868 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27869 before initialization is completed. Use IN direction for empty
27870 transfers. Use last_trans and compute toggle.
27871 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27872 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27873 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27874 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27875 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27876 (grub_usb_device): Increase toggle to 256.
27877 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27878 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27879 GRUB_USBMS_SUBCLASS_SFF8070.
27880 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27881 (grub_scsi_inquiry): New member page and alloc_length.
27882 (grub_scsi_request_sense): New structure.
27883 (grub_scsi_request_sense_data): Likewise.
27884 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27886 * disk/scsi.c (grub_scsi_request_sense): New function.
27887 (grub_scsi_test_unit_ready): Likewise.
27888 (grub_scsi_inquiry): Fill new fields.
27889 (grub_scsi_read_capacity): Likewise.
27890 (grub_scsi_read10): Add request sense at the end.
27891 (grub_scsi_read12): Likewise.
27892 (grub_scsi_write10): Likewise.
27893 (grub_scsi_write12): Likewise.
27894 (grub_scsi_open): Add Test Unit Ready.
27895 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27896 Support additional subclasses. Con't clear halt yet. Activate the
27897 proper config. Calculate LUNs correctly.
27898 (grub_usbms_transfer): Various important fixups.
27900 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27902 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27903 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27904 (grub_ohci_fini_hw): New function.
27905 (grub_ohci_restore_hw): Likewise.
27906 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27907 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27908 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27910 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27912 Dedicated DMA allocations.
27914 * bus/pci.c (grub_memalign_dma32): New function
27915 (grub_dma_free): Likewise.
27916 (grub_dma_get_virt): Likewise.
27917 (grub_dma_get_phys): Likewise.
27918 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27919 (grub_ohci_pci_iter): Use dma32_alloc.
27920 (grub_ohci_transfer): Likewise.
27921 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27922 (grub_usb_bulk_readwrite): Likewise.
27923 * include/grub/pci.h: Add declarations.
27925 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27929 * bus/cs5536.c: New file.
27930 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27931 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27932 (cs5536_mod_SOURCES): New variable.
27933 (cs5536_mod_CFLAGS): Likewise.
27934 (cs5536_mod_LDFLAGS): Likewise.
27935 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27937 (kernel_img_SOURCES): Add bus/cs5536.c.
27938 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27940 (usb_mod_SOURCES): New variable.
27941 (usb_mod_CFLAGS): New variable.
27942 (usb_mod_LDFLAGS): New variable.
27943 (usbtest_mod_SOURCES): New variable.
27944 (usbtest_mod_CFLAGS): New variable.
27945 (usbtest_mod_LDFLAGS): New variable.
27946 (ohci_mod_SOURCES): New variable.
27947 (ohci_mod_CFLAGS): New variable.
27948 (ohci_mod_LDFLAGS): New variable.
27949 (usbms_mod_SOURCES): New variable.
27950 (usbms_mod_CFLAGS): New variable.
27951 (usbms_mod_LDFLAGS): New variable.
27952 (usb_keyboard_mod_SOURCES): New variable.
27953 (usb_keyboard_mod_CFLAGS): New variable.
27954 (usb_keyboard_mod_LDFLAGS): New variable.
27955 * include/grub/smbus.h: New file.
27956 * include/grub/cs5536.h: New file.
27958 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27960 * util/grub.d/00_header.in: Add safety check to make sure that
27961 ${locale_dir} exists before trying to probe it.
27963 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27965 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27966 per the GNU Coding Standards; this is now too obscure to be worth
27969 (chainloader): Remove cross-reference to `SCO UnixWare'.
27971 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27973 * docs/grub.texi (Chain-loading): New section.
27974 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27975 adjusted for GRUB 2.
27976 (SCO UnixWare): Likewise.
27978 (chainloader): Add reference to `Block list syntax'.
27979 (drivemap): New section.
27980 (parttool): New section.
27982 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27984 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
27986 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
27987 (Installing GRUB using grub-install): Remove reference to the grub
27988 shell; mention `grub-mkimage' and `grub-setup' instead.
27989 (Invoking grub-install): Likewise.
27990 (Interface): Add reference to `Menu entry editor'.
27991 (serial): Remove `--device' option.
27993 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27995 * docs/grub.texi (Configuration): New section, documenting
27996 configuration file generation using grub-mkconfig. I've left a slot
27997 for documenting the full shell scripting format but have not yet
27998 started on writing that up.
27999 (Invoking grub-mkconfig): New section.
28001 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28003 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28004 (GNU GRUB manual): Likewise.
28005 (General commands): Update description of `terminfo' for GRUB 2.
28007 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28009 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28010 (GRUB_MOD_INIT): Fix capitalisation.
28011 * docs/grub.texi (Command-line and menu entry commands): Document
28012 gettext and gptsync commands.
28014 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28016 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28017 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28019 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28021 Add btrfs probing support, currently only in the single-device case.
28023 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28025 (grub_guess_root_device): Call find_root_device_from_mountinfo
28026 before looking in /dev.
28028 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28030 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28031 GRUB_DISK_SIZE_UNKNOWN.
28032 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28034 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28036 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28037 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28038 corrupted or not synced properly.
28040 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28042 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28043 Reported by: Seth Goldberg.
28045 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28047 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28049 Reported by: Seth Goldberg.
28051 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28053 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28054 Reported by: Seth Goldberg.
28056 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28058 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28059 64-bit address as signed on MIPS.
28061 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28063 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28064 to the empty string.
28066 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28068 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28070 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28071 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28072 * kern/misc.c (__enable_execute_stack): Disable on
28075 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28077 Make grub-probe work with symbolic links under /dev/mapper as well
28078 as with real block devices. The Linux world seems to be (at best)
28079 in transition here, and GRUB shouldn't get caught in the middle.
28081 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28084 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28086 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28087 input files (in which case exit zero).
28089 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28091 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28092 return NULL for various reasons even if it has a maximum-length
28093 buffer: for example, there might be a symlink loop, or the path
28094 might exceed PATH_MAX. If this happens, return NULL.
28096 2010-05-27 Robert Millan <rmh@gnu.org>
28098 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28099 partmap module to handle cross-partmap setups.
28100 Reported by Orestes Mas. Gràcies!
28102 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28104 * util/grub-mkrescue.in: Initialise override_dir rather than
28105 assuming that it's unset or empty in the environment.
28107 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28109 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28110 variable index into p_index to suppress a warning with -Wshadow.
28112 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28114 * INSTALL: Added flex >= 2.5.35 requirement.
28116 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28118 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28120 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28124 * commands/i386/cmostest.c: New file.
28125 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28126 (cmostest_mod_SOURCES): New variable.
28127 (cmostest_mod_CFLAGS): Likewise.
28128 (cmostest_mod_LDFLAGS): Likewise.
28129 * conf/i386-pc.rmk: Likewise.
28130 * docs/grub.texi (Vendor power-on keys): New section.
28131 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28132 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28133 and GRUB_BUTTON_CMOS_ADDRESS.
28134 * util/grub.d/00_header.in: Handle powering-on by separate button.
28136 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28138 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28139 Removed drawing_scrollbar argument. All users updated
28141 Reported by Jo Shields
28143 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28145 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28146 buffer since gfxterm handles double repaint.
28148 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28150 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28151 * term/gfxterm.c (real_scroll): Likewise.
28153 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28155 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28156 before calling BIOS.
28158 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28160 * include/grub/i18n.h: Always enable grub_gettext.
28162 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28164 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28165 partition naming style.
28167 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28169 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28170 not the first option.
28172 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28174 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28176 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28178 * util/misc.c: Move inclusion of <limits.h> to ...
28179 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28181 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28183 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28184 Fix merge error in NetBSD code.
28185 (find_partition_start) [__NetBSD__]: Likewise.
28187 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28189 Fix grub-mkrescue usage unit testing.
28191 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28193 2010-05-18 Christian Franke <franke@computer.org>
28195 * util/grub.d/10_windows.in: Use path names instead of
28196 drive letters to prevent warning from Cygwin 1.7.
28197 Add drivemap command to menuentry if needed.
28199 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28201 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28202 gnumach and gnumach.gz.
28204 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28206 * include/grub/i18n.h (gettext): Inline instead of using #define.
28207 (grub_gettext): Likewise.
28210 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28212 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28213 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28214 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28215 (main): Add a slash after pkglibdirroot.
28217 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28219 * util/grub-install.in: Add missing "in" keyword.
28221 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28223 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28224 Reported by: Seth Goldberg.
28226 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28228 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28230 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28232 * configure.ac: Check for Linux device-mapper support.
28234 * util/hostdisk.c (device_is_mapped): New function.
28235 (find_partition_start): New function, partly broken out from
28236 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28237 device-mapper support added.
28238 (linux_find_partition): Use find_partition_start.
28239 (convert_system_partition_to_system_disk): Add `st' argument.
28240 Support Linux /dev/mapper/* devices if device-mapper support is
28241 available; only DM-RAID devices are understood at present.
28242 (find_system_device): Add `st' argument. Pass it to
28243 convert_system_partition_to_system_disk.
28244 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28245 find_system_device and convert_system_partition_to_system_disk. Use
28246 find_partition_start.
28248 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28249 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28250 * util/deviceiter.c [__linux__]: Define MINOR.
28251 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28252 * util/mkdevicemap.c (grub_putchar): New function.
28253 (grub_getkey): New function.
28254 (grub_refresh): New function.
28255 (main): Set debug=all if -v -v is used.
28257 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28259 Fix build with non-GNU libcs.
28261 * util/misc.c (canonicalize_file_name): Move to ...
28262 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28263 grub_make_system_path_relative_to_its_root.
28265 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28267 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28268 we handle finding grub-mkimage. Default to finding grub-mkimage in
28269 ${bindir} with program_transform_name applied, and provide a
28270 --grub-mkimage option to override this.
28272 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28274 Remove grub-mkisofs.
28276 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28277 (grub_mkisofs_SOURCES): Removed.
28278 (grub_mkisofs_CFLAGS): Removed.
28279 * util/mkisofs/defaults.h: Removed.
28280 * util/mkisofs/eltorito.c: Likewise.
28281 * util/mkisofs/exclude.h: Likewise.
28282 * util/mkisofs/hash.c: Likewise.
28283 * util/mkisofs/include/: Likewise.
28284 * util/mkisofs/include/fctldefs.h: Likewise.
28285 * util/mkisofs/include/mconfig.h: Likewise.
28286 * util/mkisofs/include/prototyp.h: Likewise.
28287 * util/mkisofs/include/statdefs.h: Likewise.
28288 * util/mkisofs/iso9660.h: Likewise.
28289 * util/mkisofs/joliet.c: Likewise.
28290 * util/mkisofs/match.c: Likewise.
28291 * util/mkisofs/match.h: Likewise.
28292 * util/mkisofs/mkisofs.c: Likewise.
28293 * util/mkisofs/mkisofs.h: Likewise.
28294 * util/mkisofs/msdos_partition.h: Likewise.
28295 * util/mkisofs/multi.c: Likewise.
28296 * util/mkisofs/name.c: Likewise.
28297 * util/mkisofs/rock.c: Likewise.
28298 * util/mkisofs/tree.c: Likewise.
28299 * util/mkisofs/write.c: Likewise.
28301 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28303 Unify grub-mkimage accross platforms.
28305 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28306 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28307 (grub_mkelfimage_SOURCES): Removed.
28308 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28309 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28310 (bin_UTILITIES): Add grub-mkimage.
28311 (grub_mkimage_SOURCES): New variable.
28312 (kernel_img_HEADERS): Remove machine/kernel.h.
28313 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28314 (pkglib_PROGRAMS): Add kernel.img.
28315 (kernel_img_HEADERS): Add machine/kernel.h.
28316 (kernel_img_FORMAT): Removed.
28317 (bin_UTILITIES): Remove grub-mkimage.
28318 (grub_mkimage_SOURCES): Removed.
28319 (grub_mkimage_CFLAGS): Likewise.
28320 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28321 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28322 (pkglib_PROGRAMS): Add kernel.img.
28323 (bin_UTILITIES): Remove grub-mkimage.
28324 (grub_mkimage_SOURCES): Removed.
28325 (grub_mkimage_CFLAGS): Likewise.
28326 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28327 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28328 (pkglib_PROGRAMS): Add kernel.img.
28329 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28330 (pkglib_PROGRAMS): Add kernel.img.
28331 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28332 (grub_mkimage_SOURCES): Removed.
28333 (grub_mkimage_CFLAGS): Likewise.
28334 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28335 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28336 (pkglib_PROGRAMS): Add kernel.img.
28337 (bin_UTILITIES): Remove grub-mkimage.
28338 (grub_mkimage_SOURCES): Removed.
28339 (grub_mkimage_CFLAGS): Likewise.
28340 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28341 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28342 (grub_mkimage_SOURCES): Removed.
28343 (grub_mkimage_CFLAGS): Likewise.
28344 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28345 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28346 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28347 (grub_pe32_optional_header): ... this.
28348 (grub_pe64_optional_header): ... and this. All users updated.
28349 (GRUB_PE32_PE32_MAGIC): Split into ..
28350 (GRUB_PE32_PE32_MAGIC): .. this.
28351 (GRUB_PE32_PE64_MAGIC): .. and this.
28352 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28353 * include/grub/elf.h (PT_GNU_STACK): New definition.
28354 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28355 * include/grub/i386/efi/kernel.h: Likewise.
28356 * include/grub/i386/kernel.h: Likewise.
28357 * include/grub/i386/pc/kernel.h: Likewise.
28358 * include/grub/i386/qemu/boot.h: Likewise.
28359 * include/grub/mips/kernel.h: Likewise.
28360 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28361 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28362 * include/grub/powerpc/kernel.h: Likewise.
28363 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28364 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28365 * include/grub/sparc64/kernel.h: Likewise.
28366 * include/grub/x86_64/efi/kernel.h: Likewise.
28367 * include/grub/x86_64/kernel.h: Likewise.
28368 * include/grub/offsets.h: New file.
28369 * include/grub/kernel.h (grub_module_info): Split into ...
28370 (grub_module_info32): ... this.
28371 (grub_module_info64): ... and this.
28372 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28373 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28374 (grub_boot_blocklist): Moved from here ...
28375 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28376 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28377 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28378 * include/grub/types.h (grub_target_to_host16): Removed.
28379 (grub_target_to_host32): Likewise.
28380 (grub_target_to_host64): Likewise.
28381 (grub_host_to_target16): Likewise.
28382 (grub_host_to_target32): Likewise.
28383 (grub_host_to_target64): Likewise.
28384 (grub_host_to_target_addr): Likewise.
28386 Support grub-mkrescue for efi, coreboot and qemu.
28388 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28389 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28390 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28391 * util/grub-mkrawimage.c: Moved from here ...
28392 * util/grub-mkimage.c: ... here. All users updated.
28393 (ALIGN_ADDR): Use image_target.
28394 (TARGET_NO_FIELD): New const.
28395 (image_target_desc): New type.
28396 (image_targets): New array.
28397 (grub_target_to_host64): Use image_target.
28398 (grub_target_to_host32): Likewise.
28399 (grub_target_to_host16): Likewise.
28400 (grub_host_to_target64): Likewise.
28401 (grub_host_to_target32): Likewise.
28402 (grub_host_to_target16): Likewise.
28403 (grub_host_to_target_addr): Likewise.
28404 (generate_image): Handle multiimage.
28405 (main): Require -O parameter. All users updated.
28406 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28407 util/efi/grub-mkimage.c
28408 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28409 New option --rom-directory.
28411 * util/i386/efi/grub-mkimage.c: Removed.
28412 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28413 (grub_target_to_host32): Likewise.
28414 (grub_target_to_host64): Likewise.
28415 (grub_host_to_target16): Likewise.
28416 (grub_host_to_target32): Likewise.
28417 (grub_host_to_target64): Likewise.
28418 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28419 (grub_target_to_host32): Likewise.
28420 (grub_target_to_host64): Likewise.
28421 (grub_host_to_target16): Likewise.
28422 (grub_host_to_target32): Likewise.
28423 (grub_host_to_target64): Likewise.
28425 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28427 Source tree is reorganized for emu build.
28429 * include/grub/util/console.h: Move from here...
28430 * include/grub/emu/console.h: ...to here.
28431 * include/grub/util/getroot.h: Move from here...
28432 * include/grub/emu/getroot.h: ...to here.
28433 * include/grub/util/hostdisk.h: Move from here...
28434 * include/grub/emu/hostdisk.h: ...to here.
28435 * util/console.c: Move from here...
28436 * kern/emu/console.c: ...to here.
28437 * util/getroot.c: Move from here...
28438 * kern/emu/getroot.c: ...to here.
28439 * util/grub-emu.c: Move from here...
28440 * kern/emu/main.c: ...to here.
28441 * util/hostdisk.c: Move from here...
28442 * kern/emu/hostdisk.c: ...to here.
28443 * util/hostfs.c: Move from here...
28444 * kern/emu/hostfs.c: ...to here.
28445 * util/mm.c: Move from here...
28446 * kern/emu/mm.c: ...to here.
28447 * util/pci.c: Move from here...
28448 * bus/emu/pci.c: ...to here.
28449 * util/sdl.c: Move from here...
28450 * video/emu/sdl.c: ...to here.
28451 * util/time.c: Move from here...
28452 * kern/emu/time.c: ...to here.
28453 * util/usb.c: Move from here...
28454 * bus/usb/emu/usb.c: ...to here.
28456 * include/grub/emu/misc.h: New header for grub-emu functions.
28457 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28459 * conf/any-emu.rmk: Rule updates for above renames.
28460 * conf/common.rmk: Likewise.
28461 * conf/i386-pc.rmk: Likewise.
28462 * conf/i386-qemu.rmk: Likewise.
28463 * conf/mips.rmk: Likewise.
28464 * conf/sparc64-ieee1275.rmk: Likewise.
28465 * conf/x86-efi.rmk: Likewise.
28467 * disk/lvm.h: #include updates for above renames.
28468 * util/grub-mkrelpath.c: Likewise.
28469 * util/grub-probe.c: Likewise.
28470 * util/i386/pc/grub-setup.c: Likewise.
28471 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28472 * kern/emu/console.c: Likewise.
28473 * kern/emu/getroot.c: Likewise.
28474 * kern/emu/hostdisk.c: Likewise.
28475 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28477 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28478 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28479 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28480 * util/misc.c: Remove grub-emu functions.
28482 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28485 Reported by: Thorsten Grützmacher.
28487 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28489 (circprog_set_property): Register and unregister timeout hook.
28490 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28491 (label_destroy): Free template. and unregister hook.
28492 (label_set_state): New function.
28493 (label_set_property): Handle templates and hooks.
28494 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28496 (progress_bar_set_property): Register and unregister timeout hook.
28497 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28498 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28499 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28500 (update_timeout_visit): Removed.
28501 (update_timeouts): New function.
28502 (redraw_timeouts): Likewise.
28503 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28504 (grub_gfxmenu_clear_timeout): Likewise.
28505 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28506 (grub_gfxmenu_timeout_notify): Likewise.
28507 (grub_gfxmenu_timeout_notifications): New external variable.
28508 (grub_gfxmenu_timeout_register): New function.
28509 (grub_gfxmenu_timeout_unregister): Likewise.
28511 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28513 Transform (broken) vga terminal into (working) vga video driver.
28515 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28516 video/i386/pc/vga.c.
28517 * include/grub/video.h (grub_video_driver_id):
28518 Add GRUB_VIDEO_DRIVER_VGA.
28519 * term/i386/pc/vga.c: Renamed to ...
28520 * video/i386/pc/vga.c: ...this
28521 (DEBUG_VGA): Removed.
28522 (CHAR_WIDTH): Likewise.
28523 (CHAR_HEIGHT): Likewise.
28524 (TEXT_WIDTH): Likewise.
28525 (TEXT_HEIGHT): Likewise.
28526 (DEFAULT_FG_COLOR): Likewise.
28527 (DEFAULT_BG_COLOR): Likewise.
28528 (colored_char): Likewise.
28531 (cursor_state): Likewise.
28532 (fg_color): Likewise.
28533 (bg_color): Likewise.
28534 (text_buf): Likewise.
28537 (framebuffer): New variable.
28538 (set_read_map): Disabled.
28539 (setup): New variable.
28540 (is_target): Likewise.
28541 (grub_vga_mod_init): Likewise.
28542 (grub_vga_mod_fini): Likewise.
28543 (check_vga_mem): Likewise.
28544 (write_char): Likewise.
28545 (write_cursor): Likewise.
28546 (scroll_up): Likewise.
28547 (grub_vga_putchar): Likewise.
28548 (grub_vga_getcharwidth): Likewise.
28549 (grub_vga_getwh): Likewise.
28550 (grub_vga_getxy): Likewise.
28551 (grub_vga_gotoxy): Likewise.
28552 (grub_vga_cls): Likewise.
28553 (grub_vga_setcolorstate): Likewise.
28554 (grub_vga_setcursor): Likewise.
28555 (grub_video_vga_init): New function.
28556 (grub_video_vga_setup): Likewise.
28557 (grub_video_vga_fini): Likewise.
28558 (update_target): Likewise.
28559 (grub_video_vga_blit_bitmap): Likewise.
28560 (grub_video_vga_blit_render_target): Likewise.
28561 (grub_video_vga_set_active_render_target): Likewise.
28562 (grub_video_vga_get_active_render_target): Likewise.
28563 (grub_video_vga_swap_buffers): Likewise.
28564 (grub_video_vga_set_palette): Likewise.
28565 (grub_video_vga_get_info_and_fini): Likewise.
28566 (grub_vga_term): Removed.
28567 (grub_video_vga_adapter): New variable.
28568 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28569 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28571 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28573 * video/readers/jpeg.c: Indented.
28575 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28577 Various jpeg cleanups.
28579 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28580 (grub_jpeg_decode_quan_table): Use sizeof.
28581 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28583 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28585 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28586 tables. Ignore non-last ac bit.
28587 (grub_jpeg_decode_quan_table): Likewise.
28589 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28591 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28592 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28593 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28594 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28595 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28596 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28598 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28600 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28603 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28605 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28607 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28609 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28612 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28614 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28617 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28619 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28622 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28624 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28626 2010-05-01 Christian Franke <franke@computer.org>
28628 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28629 Remove broken Cygwin path conversion.
28630 * util/misc.c: [__CYGWIN__] Add include and define.
28631 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28633 (make_system_path_relative_to_its_root): Simplify loop, replace early
28635 [__CYGWIN__] Add conversion to win32 path.
28636 Include "/" case in trailing slash removal.
28638 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28640 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28641 Reported by: Seth Goldberg
28643 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28645 * commands/help.c (grub_cmd_help): Fix a typo.
28646 Reported by: Seth Goldberg
28648 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28650 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28652 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28653 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28654 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28655 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28656 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28657 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28658 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28659 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28660 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28661 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28662 * normal/context.c (GRUB_MOD_INIT): Likewise.
28663 * normal/main.c (GRUB_MOD_INIT): Likewise.
28664 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28665 * term/serial.c (GRUB_MOD_INIT): Likewise.
28666 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28668 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28670 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28673 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28675 * commands/iorw.c: New file.
28676 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28677 (iorw_mod_SOURCES): New variable.
28678 (iorw_mod_CFLAGS): Likewise.
28679 (iorw_mod_LDFLAGS): Likewise.
28681 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28685 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28686 * normal/main.c (hotkey_aliases): New variable.
28687 (grub_normal_add_menu_entry): Parse "--hotkey".
28688 * normal/menu_text.c (run_menu): Handle hotkeys.
28690 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28692 * kern/i386/coreboot/init.c (grub_machine_init): Call
28693 grub_machine_mmap_init on qemu.
28695 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28697 * boot/i386/qemu/boot.S: Add a missing .code16.
28699 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28701 Use LBIO on coreboot.
28703 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28704 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28705 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28707 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28708 grub_machine_mmap_init on coreboot.
28709 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28710 GRUB_LINUXBIOS_MEMBER_LINK.
28711 (grub_machine_mmap_iterate): Fix declaration.
28712 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28714 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28716 Split coreboot and multiboot ports.
28718 * conf/i386-multiboot.rmk: New file.
28719 * configure.ac: Add multiboot port.
28720 * include/grub/i386/multiboot/boot.h: New file.
28721 * include/grub/i386/multiboot/console.h: Likewise.
28722 * include/grub/i386/multiboot/init.h: Likewise.
28723 * include/grub/i386/multiboot/kernel.h: Likewise.
28724 * include/grub/i386/multiboot/loader.h: Likewise.
28725 * include/grub/i386/multiboot/memory.h: Likewise.
28726 * include/grub/i386/multiboot/serial.h: Likewise.
28727 * include/grub/i386/multiboot/time.h: Likewise.
28728 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28729 * loader/multiboot.c: Likewise.
28730 * loader/multiboot_mbi2.c: Likewise.
28731 * util/grub-mkrescue.in: Generate multiboot rescue.
28733 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28735 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28737 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28739 Merge handling of input and output terminals. Fix a hang.
28741 * commands/terminal.c (abstract_terminal): New struct.
28742 (handle_command): New function. Based on grub_cmd_terminal_input.
28743 (grub_cmd_terminal_input): Use handle_command.
28744 (grub_cmd_terminal_output): Use handle_command.
28746 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28748 Fix comment handling.
28750 * tests/grub_script_comments.in: New testcase.
28751 * conf/tests.rmk: Rules for new testcase.
28752 * script/yylex.l: Updated flex rules.
28754 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28756 * docs/grub.texi (play): Document that zero pitches produce rests.
28757 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28760 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28762 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28765 2010-04-26 Christian Franke <franke@computer.org>
28767 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28768 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28769 (grub_get_prefix): Remove function.
28770 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28771 make_system_path_relative_to_its_root ().
28772 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28774 2010-04-24 Christian Franke <franke@computer.org>
28776 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28777 (kernel_img_LDFLAGS): Remove -static-libgcc.
28779 2010-04-24 Christian Franke <franke@computer.org>
28781 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28782 and CHECK_END_SYMBOL if grub-emu is built.
28783 Unset TARGET_OBJ2ELF if grub-emu is built
28784 without module support.
28786 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28790 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28791 (grub_fstest_SOURCES): Likewise.
28792 (pkglib_MODULES): Add nilfs2.mod.
28793 (nilfs2_mod_SOURCES): New variable.
28794 (nilfs2_mod_CFLAGS): Likewise.
28795 (nilfs2_mod_LDFLAGS): Likewise.
28796 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28797 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28798 * fs/nilfs2.c: New file.
28800 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28802 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28805 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28807 Add grub-mkconfig support for NetBSD.
28809 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28810 * util/grub-mkconfig.in: export new NetBSD specific variables.
28811 * po/POTFILES-shell: added 10_netbsd.in.
28812 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28814 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28816 Fix emu build with grub-emu-pci and grub-emu-modules.
28818 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28820 * include/grub/libpciaccess.h: New file.
28821 * conf/any-emu.rmk: Update kernel headers for emu build.
28823 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28825 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28827 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28829 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28831 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28833 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28834 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28835 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28836 util/ieee1275/ofpath.c.
28837 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28838 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28839 * include/grub/sparc64/ieee1275/boot.h
28840 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28841 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28842 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28843 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28845 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28846 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28847 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28850 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28852 * util/grub-mkconfig.in: Corrected two == equality tests.
28853 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28854 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28855 expect a number appended to it.
28856 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28857 expects a number appended to it.
28859 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28861 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28863 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28865 * util/hostdisk.c (make_device_name): Change to new partition naming.
28867 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28869 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28871 2010-04-17 Christian Franke <franke@computer.org>
28873 * Makefile.in: Add missing localedir setting.
28875 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28877 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28878 mistake in r2156. Noticed by Anthony Fok.
28880 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28882 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28884 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28886 Fix a spurious, uninitialized variable warning.
28888 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28889 Initialize variable, shdr.
28890 (grub_freebsd_load_elfmodule): Likewise.
28891 (grub_freebsd_load_elf_meta): Likewise.
28893 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28895 Fix for escaped dollar in double quoted strings.
28897 * script/yylex.l: Updated flex rules.
28898 * conf/tests.rmk: Rule for new testcase.
28899 * tests/grub_script_dollar.in: New testcase.
28901 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28902 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28904 Enclose all translated strings in grub.cfg in single quotes, and
28905 escape them appropriately (Ubuntu bug #552921).
28907 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28908 * util/grub.d/10_hurd.in: Use it.
28909 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28910 * util/grub.d/10_linux.in (linux_entry): Likewise.
28912 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28914 Fix cygwin compilation.
28916 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28917 * include/grub/misc.h (__register_frame_info)
28918 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28919 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28920 * kern/misc.c (__register_frame_info)
28921 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28922 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28924 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28926 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28928 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28930 Unify libgcc processing.
28932 * Makefile.in (kernel_img_LDFLAGS): New variable.
28933 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28934 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28936 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28937 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28938 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28939 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28940 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28941 overwriting. Remove -lgcc and -static-libgcc
28942 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28943 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28944 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28945 (kernel_img_LDFLAGS): Append instead of overwriting.
28946 Remove -lgcc and -static-libgcc
28947 * conf/sparc64-ieee1275.rmk: Likewise.
28948 * include/grub/powerpc/libgcc.h: Move to ...
28949 * include/grub/libgcc.h: .. this.
28950 * include/grub/libgcc.h: Don't export most of the function on x86.
28951 (__bswapsi2): New export.
28952 (__bswapdi2): Likewise.
28953 * include/grub/mips/libgcc.h: Removed.
28954 * include/grub/sparc64/libgcc.h: Likewise.
28956 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28958 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28959 disk_info_msg (conflicts with gettexting into languages with cases).
28961 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28963 Add grub-probe support for NetBSD.
28965 * util/getroot.c (find_root_device): Convert block device to
28966 character device on NetBSD.
28967 * util/probe.c (probe): Require character device on NetBSD.
28968 * util/hostdisk.c: NetBSD specific headers.
28969 (configure_device_driver): new function to tune device driver
28970 parameters (currently only for NetBSD floppy driver).
28971 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28972 via disklabel ioctl).
28973 (open_device): call configure_device_driver on NetBSD.
28974 (convert_system_partition_to_system_disk): NetBSD specific code.
28975 (device_is_wholedisk): Likewise.
28976 (grub_util_biosdisk_get_grub_dev): Likewise.
28977 (make_device_name): Fixed a typo in bsd_part_str.
28978 * configure.ac: check for opendisk() and getrawpartition() on
28979 NetBSD and set LIBUTIL.
28980 * Makefile.in: add LIBUTIL to LIBS.
28982 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28986 * util/grub-script-check.c: Better help message.
28988 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28992 * configure.ac: Flex version check.
28993 * conf/common.rmk: Add -Wno-error to sh.mod.
28994 * script/yylex.l: Remove all #pragma.
28996 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28998 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29000 Reported by: Seth Goldberg.
29002 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29004 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29005 Rename "module" to "module2".
29006 Reported by: Seth Goldberg.
29008 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29010 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29012 Reported by: Seth Goldberg.
29014 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29016 * lib/posix_wrap/locale.h: Add missing file.
29017 Reported by: Seth Goldberg.
29019 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29021 grub-emu module load support.
29023 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29024 NO_DYNAMIC_MODULES switched to this.
29025 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29026 (CFLAGS): Likewise.
29027 * conf/any-emu.rmk: Generate symlist.
29028 (kernel_img_HEADERS): Add util/datetime.h.
29029 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29030 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29031 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29032 kern/$(target_cpu)/cache.S.
29033 * configure.ac (grub-emu-modules): New option.
29034 * genmk.rb: Handle multiple source lists.
29035 * include/grub/sdl.h: New file.
29036 * include/grub/libusb.h: Likewise.
29037 * util/grub-emu.c (main): Hanle (host) root.
29038 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29039 GRUB_ERR_UNKNOWN_DEVICE.
29040 * util/misc.c: Move mm functions to ...
29041 * util/mm.c: ... here. All users updated.
29043 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29045 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29046 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29048 (maintainer-clean): Remove libgcrypt-grub.
29050 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29052 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29054 2010-04-09 EFI Coder <eficoder@hotmail.com>
29056 * normal/menu_text.c (print_message): Clean up the message and show
29057 the Fn information when on EFI
29058 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29060 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29062 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29064 * normal/crypto.c (read_crypto_list): Likewise.
29065 * normal/dyncmd.c (read_command_list): Likewise.
29066 * normal/term.c (read_terminal_list): Likewise.
29067 * normal/main.c (read_lists): Use explicit prefix.
29068 (read_lists_hook): Use read_lists.
29069 (grub_normal_execute): Likewise.
29071 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29073 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29074 Reported by: Thomas Schmitt.
29075 Add -no-emul-boot to grub-mkisofs parameters.
29077 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29079 * font/font.c: Indented.
29081 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29083 Elif support to GRUB script (by Deepak Vankadaru).
29085 * tests/grub_script_if.in: New testcase.
29086 * conf/tests.rmk: Rule for new testcase.
29087 * script/parser.y: Grammar rules for elif.
29089 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29091 While and until loops support to GRUB script.
29093 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29094 (grub_script_create_cmdwhile): New function prototype.
29095 (grub_script_execute_cmdwhile): New function prototype.
29096 * script/execute.c (grub_script_execute_cmdwhile): New function.
29097 * script/parser.y (command): New commands.
29098 (whilecmd): New grammar rule.
29099 (untilcmd): New grammar rule.
29100 * script/script.c (grub_script_create_cmdwhile): New function.
29101 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29104 * tests/grub_script_while1.in: New testcase.
29105 * conf/tests.rmk: Rule for new testcase.
29107 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29109 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29112 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29114 GRUB_BACKGROUND support.
29116 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29117 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29119 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29121 Load fonts and modules for gfxmenu in grub-mkconfig.
29122 Idea by: Mario Vazquez
29124 * util/grub.d/00_header.in: Load pf2 and image modules.
29126 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29128 grub-mkconfig multiple terminal support.
29130 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29131 * util/grub.d/00_header.in: Likewise.
29133 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29135 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29136 we use cd $(srcdir).
29138 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29140 * util/grub.d/10_linux.in: Only use the first word of
29141 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29142 spaces in GRUB_DISTRIBUTOR.
29143 * util/grub.d/10_kfreebsd.in: Likewise.
29144 * util/grub.d/10_hurd.in: Likewise.
29146 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29148 Fix unit testing framework for Qemu 0.12.
29150 * tests/util/grub-shell.in: Remove -serial stdio option.
29152 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29154 POSIX header file wrappers.
29156 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29158 * lib/posix_wrap/ctype.h: Likewise.
29159 * lib/posix_wrap/errno.h: Likewise.
29160 * lib/posix_wrap/langinfo.h: Likewise.
29161 * lib/posix_wrap/limits.h: Likewise.
29162 * lib/posix_wrap/localcharset.h: Likewise.
29163 * lib/posix_wrap/stdint.h: Likewise.
29164 * lib/posix_wrap/stdio.h: Likewise.
29165 * lib/posix_wrap/stdlib.h: Likewise.
29166 * lib/posix_wrap/string.h: Likewise.
29167 * lib/posix_wrap/sys/types.h: Likewise.
29168 * lib/posix_wrap/unistd.h: Likewise.
29169 * lib/posix_wrap/wchar.h: Likewise.
29170 * lib/posix_wrap/wctype.h: Likewise.
29171 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29172 (grub_script.yy.h): Likewise.
29173 * script/yylex.l: Remove POSIX emulation #defines.
29174 * Makefile.in (POSIX_CFLAGS): New variable.
29175 (GNULIB_UTIL_CFLAGS): Likewise.
29179 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29180 (regexp_mod_SOURCES): New variable.
29181 (regexp_mod_CFLAGS): Likewise.
29182 (regexp_mod_LDFLAGS): Likewise.
29183 * commands/regexp.c: New file.
29184 * gnulib/regcomp.c: New file. Imported from gnulib.
29185 * gnulib/regex.c: Likewise.
29186 * gnulib/regex_internal.c: Likewise.
29187 * gnulib/regex_internal.h: Likewise.
29188 * gnulib/regexec.c: Likewise.
29189 * gnulib/regex.h: Likewise.
29191 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29193 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29194 unsupported video mode types.
29196 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29198 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29200 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29202 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29203 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29205 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29207 Remove unused grub_vga_get_font.
29209 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29210 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29212 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29214 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29215 * include/grub/misc.h: Likewise.
29217 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29219 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29220 for which failure is fatal.
29222 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29224 * util/grub-install.in: Use mkdir -p to create grub directory.
29225 * util/i386/efi/grub-install.in: Likewise.
29226 * util/ieee1275/grub-install.in: Likewise.
29228 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29230 * Makefile.in (LEX): new variable.
29232 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29234 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29235 `=' and added double quotes on operands of this equality test.
29237 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29239 * Makefile.in (uninstall): Remove a leftover debug echo.
29240 Reported by: Grégoire Sutre
29242 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29244 MIPS multiboot2 support.
29246 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29247 (multiboot2_mod_SOURCES): New variable.
29248 (multiboot2_mod_CFLAGS): Likewise.
29249 (multiboot2_mod_LDFLAGS): Likewise.
29250 (multiboot2_mod_ASFLAGS): Likewise.
29251 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29253 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29254 (MULTIBOOT_MBI_REGISTER): Likewise.
29255 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29256 (MULTIBOOT_ELF32_MACHINE): Likewise.
29257 (MULTIBOOT_ELF64_MACHINE): Likewise.
29258 * include/grub/mips/multiboot.h: New file.
29259 * include/grub/video.h (grub_video_driver_id): New type
29260 GRUB_VIDEO_DRIVER_SM712.
29261 (grub_video_get_info_and_fini): Export.
29262 (grub_video_get_palette): Likewise.
29263 (grub_video_get_driver_id): Likewise.
29264 * include/multiboot2.h: Resynced with spec.
29265 * loader/i386/multiboot.c: Moved from here ...
29266 * loader/multiboot.c: ... here. All users updated.
29267 (grub_multiboot_boot): Use platform-specific macros.
29268 * loader/i386/multiboot_elfxx.c: Moved from here ...
29269 * loader/multiboot_elfxx.c: ... here. All users updated.
29270 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29271 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29272 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29274 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29276 Import gnulib argp module.
29278 * gnulib/argp-ba.c: New file.
29279 * gnulib/argp-eexst.c: Likewise.
29280 * gnulib/argp-fmtstream.c: Likewise.
29281 * gnulib/argp-fmtstream.h: Likewise.
29282 * gnulib/argp-fs-xinl.c: Likewise.
29283 * gnulib/argp-help.c: Likewise.
29284 * gnulib/argp-namefrob.h: Likewise.
29285 * gnulib/argp-parse.c: Likewise.
29286 * gnulib/argp-pin.c: Likewise.
29287 * gnulib/argp-pv.c: Likewise.
29288 * gnulib/argp-pvh.c: Likewise.
29289 * gnulib/argp-version-etc.c: Likewise.
29290 * gnulib/argp-version-etc.h: Likewise.
29291 * gnulib/argp-xinl.c: Likewise.
29292 * gnulib/argp.h: Likewise.
29294 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29296 * kern/device.c (grub_device_iterate): Clear errors after failed
29299 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29301 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29302 returned by firmware.
29304 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29306 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29307 compilation on coreboot and qemu
29309 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29311 * include/multiboot2.h: Resync with spec.
29313 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29315 Multiboot2 tag support
29317 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29318 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29319 Remove loader/multiboot_loader.c.
29320 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29321 (grub_multiboot2_real_boot): Likewise.
29322 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29323 (grub_get_multiboot_mmap_count): New proto.
29324 (grub_fill_multiboot_mmap): Likewise.
29325 (grub_multiboot_set_video_mode): Likewise.
29326 (grub_multiboot_set_console): Likewise.
29327 (grub_multiboot_load): Likewise.
29328 (grub_multiboot_load_elf): Likewise.
29329 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29330 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29331 * include/multiboot.h: Resynced with specification.
29332 * include/multiboot2.h: Resynced with specification.
29333 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29334 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29335 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29336 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29338 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29339 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29340 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29342 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29344 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29345 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29347 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29348 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29349 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29351 * loader/i386/multiboot_mbi2.c: New file.
29353 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29355 Resync with gnulib.
29357 * Makefile.in (GNULIB_CFLAGS): New variable.
29358 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29359 (grub_script_check_CFLAGS): New variable.
29360 * gnulib/alloca.h: Resync with gnulib.
29361 * gnulib/error.c: Likewise.
29362 * gnulib/error.h: Likewise.
29363 * gnulib/fnmatch.c: Likewise.
29364 * gnulib/fnmatch_loop.c: Likewise.
29365 * gnulib/getdelim.c: Likewise.
29366 * gnulib/getline.c: Likewise.
29367 * gnulib/getopt.c: Likewise.
29368 * gnulib/getopt1.c: Likewise.
29369 * gnulib/getopt_int.h: Likewise.
29370 * gnulib/gettext.h: Likewise.
29371 * gnulib/progname.c: Likewise.
29372 * gnulib/progname.h: Likewise.
29374 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29376 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29377 which is the case with --disabled-nls.
29379 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29380 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29381 * util/misc.c: Likewise.
29382 * util/mkisofs/mkisofs.c: Likewise.
29383 * util/mkisofs/mkisofs.h: Likewise.
29385 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29387 Simplify Apple CC support.
29389 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29390 Add 0 byte at the end not to have a symbol with empty target.
29391 * mmap/i386/pc/mmap_helper.S: Likewise.
29392 * genmk.rb: Ignore errors 2030 and 2050.
29393 * kern/i386/pc/startup.S: Use LOCAL when possible.
29395 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29397 Testcase and the fix for final semicolon on cmdline.
29399 * tests/grub_script_final_semicolon.in: New testcase.
29400 * conf/tests.rmk: Rules for the new testcase.
29401 * script/parser.y: Grammar fix.
29403 2010-03-26 BVK Chaitanya <bvk@localhost>
29405 Blank lines testcase for GRUB script.
29407 * tests/grub_script_blanklines.in: New testcase.
29408 * conf/tests.rmk: Rules for the new testcase.
29410 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29412 Don't use __FILE__.
29414 * genmk.rb: Add -DGRUB_FILE to all C targets.
29415 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29416 * include/grub/list.h: Likewise.
29417 * include/grub/misc.h: Likewise.
29418 * include/grub/mm.h: Likewise.
29419 * include/grub/test.h: Likewise.
29420 * kern/mm.c: Likewise.
29421 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29423 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29425 Sunpc partitions support.
29427 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29428 (grub_fstest_SOURCES): Likewise.
29429 (pkglib_MODULES): Add part_sunpc.mod.
29430 (part_sunpc_mod_SOURCES): New variable.
29431 (part_sunpc_mod_CFLAGS): Likewise.
29432 (part_sunpc_mod_LDFLAGS): Likewise.
29433 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29434 * partmap/sunpc.c: New file.
29436 2010-03-26 BVK Chaitanya <bvk@localhost>
29438 For loop support to GRUB script.
29440 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29441 (grub_script_create_cmdfor): New function prototype.
29442 (grub_script_execute_cmdfor): New function prototype.
29443 * script/execute.c (grub_script_execute_cmdfor): New function.
29444 * script/parser.y (command): New for command.
29445 (forcmd): New grammar rule.
29446 * script/script.c (grub_script_create_cmdfor): New function.
29447 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29449 * tests/grub_script_for1.in: New testcase.
29450 * conf/tests.rmk: Rules for new testcase.
29452 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29456 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29457 'partition' is NULL, grub_partition_get_start already does that.
29458 * commands/loadenv.c (check_blocklists): Likewise.
29459 (write_blocklists): Likewise.
29460 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29461 (grub_fstest_SOURCES): Likewise.
29462 (pkglib_MODULES): Add part_bsd.mod.
29463 (part_bsd_mod_SOURCES): New variable.
29464 (part_bsd_mod_CFLAGS): Likewise.
29465 (part_bsd_mod_LDFLAGS): Likewise.
29466 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29467 (grub_emu_SOURCES): Likewise.
29468 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29469 * include/grub/bsdlabel.h: New file.
29470 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29472 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29473 (grub_partition_map_list): New variable.
29474 (grub_partition_map_register): Inline.
29475 (grub_partition_map_unregister): Likewise.
29476 (FOR_PARTITION_MAPS): New macro.
29477 (grub_partition_map_iterate): Removed.
29478 (grub_partition_get_start): Handle nested partitions.
29479 * include/grub/msdos_partition.h: Remove bsd-related entries.
29480 (grub_pc_partition): Remove.
29481 * kern/disk.c (grub_disk_close): Free partition data.
29482 (grub_disk_adjust_range): Handle nested partitions.
29483 * kern/partition.c (grub_partition_map_probe): New function.
29484 (grub_partition_probe): Parse name to number, handle subpartitions.
29485 (get_partmap): New function.
29486 (grub_partition_iterate): Handle subpartitions.
29487 (grub_partition_get_name): Likewise.
29488 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29489 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29490 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29491 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29493 (acorn_partition_map_probe): Remove.
29494 (acorn_partition_map_get_name): Likewise.
29495 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29497 Set 'index' to 0 since there can be only one partition entry per sector.
29498 (amiga_partition_map_probe): Remove.
29499 (amiga_partition_map_get_name): Likewise.
29500 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29502 Set 'offset' and 'index' to real positions of partitions.
29503 (apple_partition_map_probe): Remove.
29504 (apple_partition_map_get_name): Likewise.
29505 * partmap/bsdlabel.c: New file.
29506 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29508 Allocate 'data' so it can be correctly freed.
29509 Set 'index' to offset inside sector.
29510 (gpt_partition_map_probe): Remove.
29511 (gpt_partition_map_get_name): Likewise.
29512 * partmap/msdos.c (grub_partition_parse): Remove.
29513 (pc_partition_map_iterate): Don't force raw access.
29515 Make 'ext_offset' a local variable.
29516 (pc_partition_map_probe): Remove.
29517 (pc_partition_map_get_name): Remove.
29518 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29520 (sun_partition_map_probe): Remove.
29521 (sun_partition_map_get_name): Likewise.
29522 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29523 (grub_pcpart_type): Likewise.
29524 * util/hostdisk.c (open_device): Handle new numbering scheme.
29525 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29526 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29527 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29528 * util/grub-install.in: Insert all subpartition modules.
29529 * util/ieee1275/grub-install.in: Likewise.
29531 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29533 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29536 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29538 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29540 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29542 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29543 match where 'make install' puts them.
29544 * util/i386/efi/grub-install.in: Likewise.
29546 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29548 * .bzrignore: Add gentrigtables, grub-script-check,
29549 grub_script_check_init.c, grub_script_check_init.h, and
29552 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29554 * kern/parser.c: Indented.
29556 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29558 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29560 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29562 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29563 alpha_mask_size == 0 case.
29565 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29567 GRUB shell lexer and parser improvements.
29569 * conf/any-emu.rmk: Build rule updates.
29570 * conf/common.rmk: Likewise.
29571 * conf/i386-coreboot.rmk: Likewise.
29572 * conf/i386-efi.rmk: Likewise.
29573 * conf/i386-ieee1275.rmk: Likewise.
29574 * conf/i386-pc.rmk: Likewise.
29575 * conf/powerpc-ieee1275.rmk: Likewise.
29576 * conf/x86_64-efi.rmk: Likewise.
29578 * configure.ac: Configure check for flex.
29580 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29582 (grub_lexer_param): Struct member updates.
29583 (grub_parser_param): Likewise.
29584 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29585 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29586 (grub_script_lexer_init): Prototype update.
29587 (grub_script_lexer_record_start): Likewise.
29588 (grub_script_lexer_record_stop): Likewise.
29589 (grub_script_lexer_yywrap): New function prototype.
29590 (grub_script_lexer_fini): Likewise.
29591 (grub_script_execute_argument_to_string): Removed by...
29592 (grub_script_execute_argument_to_argv): ...better version.
29594 * script/execute.c (ROUND_UPTO): New macro.
29595 (grub_script_execute_cmdline): Out of memory fixes.
29596 (grub_script_execute_menuentry): Likewise.
29597 (grub_script_execute_argument_to_string): Removed. Update all
29599 (grub_script_execute_argument_to_argv): ...better version.
29600 * script/function.c (grub_script_function_create): Use
29601 grub_script_execute_argument_to_argv instead of
29602 grub_script_execute_argument_to_string.
29604 * script/lexer.c (check_varstate): Removed.
29605 (check_textstate): Removed.
29606 (grub_script_lexer_record_start): Likewise.
29607 (grub_script_lexer_record_stop): Likewise.
29608 (recordchar): Replaced with...
29609 (grub_script_lexer_record): ...new function.
29610 (nextchar): Removed.
29611 (grub_script_lexer_init): Rewritten.
29612 (grub_script_yylex): Rewritten.
29613 (append_newline): New function.
29614 (grub_script_lexer_yywrap): New function.
29615 (grub_script_lexer_fini): New function.
29616 (grub_script_yyerror): Sets error flag.
29618 * script/yylex.l: New file.
29619 (grub_lexer_yyfree): Wrapper for flex yyffre.
29620 (grub_lexer_yyalloc): Likewise.
29621 (grub_lexer_yyrealloc): Likewise.
29622 * script/parser.y: Refactored.
29624 * script/script.c (grub_script_arg_add): Out of memory fixes.
29625 (grub_script_add_arglist): Likewise.
29626 (grub_script_create_cmdline): Likewise.
29627 (grub_script_create_cmdmenu): Likewise.
29628 (grub_script_add_cmd): Likewise.
29629 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29630 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29633 * tests/grub_script_echo1.in: New testcase.
29634 * tests/grub_script_vars1.in: New testcase.
29635 * tests/grub_script_echo_keywords.in: New testcase.
29637 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29639 Remove some redundancy in build system.
29641 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29642 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29643 (TARGET_LDFLAGS): Add -nostdlib.
29644 (TARGET_IMG_LDFLAGS): Likewise.
29645 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29646 anything since mmap isn't available.
29647 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29649 (pkglib_MODULES): Remove reboot.mod.
29650 (reboot_mod_SOURCES): Removed.
29651 (reboot_mod_CFLAGS): Likewise.
29652 (reboot_mod_LDFLAGS): Likewise.
29653 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29654 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29655 (DEFSYMFILES): Add kernel_syms.lst.
29656 (kernel_img_HEADERS): Add common headers.
29657 (symlist.c): New target.
29658 (kernel_syms.lst): Likewise.
29659 (pkglib_MODULES): Add memdisk.mod.
29660 (memdisk_mod_SOURCES): New variable.
29661 (memdisk_mod_CFLAGS): Likewise.
29662 (memdisk_mod_LDFLAGS): Likewise.
29663 (pkglib_MODULES): Add reboot.mod.
29664 (reboot_mod_SOURCES): New variable.
29665 (reboot_mod_CFLAGS): Likewise.
29666 (reboot_mod_LDFLAGS): Likewise.
29667 (pkglib_MODULES): Add date.mod.
29668 (date_mod_SOURCES): New variable.
29669 (date_mod_CFLAGS): Likewise.
29670 (date_mod_LDFLAGS): Likewise.
29671 (pkglib_MODULES): Add datehook.mod.
29672 (datehook_mod_SOURCES): New variable.
29673 (datehook_mod_CFLAGS): Likewise.
29674 (datehook_mod_LDFLAGS): Likewise.
29675 (pkglib_MODULES): Add lsmmap.mod.
29676 (lsmmap_mod_SOURCES): New variable.
29677 (lsmmap_mod_CFLAGS): Likewise.
29678 (lsmmap_mod_LDFLAGS): Likewise.
29679 (pkglib_MODULES): Add boot.mod.
29680 (boot_mod_SOURCES): New variable.
29681 (boot_mod_CFLAGS): Likewise.
29682 (boot_mod_LDFLAGS): Likewise.
29683 * conf/i386-coreboot.rmk: Removed redundant parts.
29684 * conf/i386-ieee1275.rmk: Likewise.
29685 * conf/i386-pc.rmk: Likewise.
29686 * conf/mips-yeeloong.rmk: Likewise.
29687 * conf/mips.rmk: Likewise.
29688 * conf/powerpc-ieee1275.rmk: Likewise.
29689 * conf/sparc64-ieee1275.rmk: Likewise.
29690 * conf/x86_64-efi.rmk: Likewise.
29691 * conf/i386-coreboot.rmk: Moved qemu parts ..
29692 * conf/i386-qemu.rmk: ... here
29693 * conf/i386-efi.rmk: Moved common parts to...
29694 * conf/x86-efi.rmk: ... here.
29695 * conf/i386.rmk: Added modules common to all x86 variants.
29696 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29697 * disk/memdisk.c: Remove grub/machine/kernel.h.
29698 * gensymlist.sh.in: Include symbol.h.
29699 * hook/datehook.c: Correct module name.
29700 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29701 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29702 * include/grub/i386/efi/serial.h: New file.
29703 * include/grub/x86_64/efi/serial.h: Likewise.
29704 * util/time.c: Likewise.
29705 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29707 2010-03-14 Colin King <colin.king@ubuntu.com>
29708 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29710 Shrink the pre-partition-table part of boot.img by eight bytes.
29712 * boot/i386/pc/boot.S (ERR): New macro.
29713 (chs_mode): Use ERR.
29714 (geometry_error): Likewise.
29715 (hd_probe_error): Remove. This is only used once, so we wrwite
29717 (read_error): Instead of printing read_error_string, just set up
29718 %si and fall through to ...
29719 (error_message): ... this new function, also used by ERR.
29721 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29723 Speed up consecutive hostdisk operations on the same device.
29725 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29726 (grub_util_biosdisk_open): Initialise disk->data.
29727 (struct linux_partition_cache): New structure.
29728 (linux_find_partition): Cache partition start positions; these are
29729 expensive to compute on every read and write.
29730 (open_device): Cache open file descriptor in disk->data, so that we
29731 don't have to reopen it and flush the buffer cache for consecutive
29732 operations on the same device.
29733 (grub_util_biosdisk_close): New function.
29734 (grub_util_biosdisk_dev): Set `close' member.
29736 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29737 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29738 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29739 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29740 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29742 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29744 Compile parts of grub-emu as modules.
29746 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29747 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29748 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29749 (all-local): Add $(GRUB_EMU).
29750 (install-local): Install $(GRUB_EMU).
29751 (uninstall): Uninstall $(GRUB_EMU).
29752 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29753 * kern/dl.c: Likewise.
29754 * commands/sleep.c: Not include machine/time.h.
29755 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29756 (COMMON_CFLAGS): Likewise.
29757 (sbin_UTILITIES): Remove grub-emu.
29758 (grub_emu_SOURCES): Removed.
29759 (kernel_img_RELOCATABLE): New variable.
29760 (pkglib_PROGRAMS): Add kernel.img.
29761 (kernel_img_SOURCES): New variable
29762 (kernel_img_CFLAGS): Likewise.
29763 (kernel_img_LDFLAGS): Likewise.
29764 (TARGET_NO_STRIP): Likewise.
29765 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29766 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29767 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29768 (grub-emu): New target.
29769 (GRUB_EMU): New variable.
29770 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29771 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29772 * loader/xnu.c: Likewise.
29773 * include/grub/pci.h: Likewise.
29774 * genemuinit.sh: New file.
29775 * genemuinitheader.sh: Likewise.
29776 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29777 Support TARGET_NO_DYNAMIC_MODULES.
29778 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29779 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29780 * disk/loopback.c: Likewise.
29781 * font/font_cmd.c: Likewise.
29782 * partmap/acorn.c: Likewise.
29783 * partmap/amiga.c: Likewise.
29784 * partmap/apple.c: Likewise.
29785 * partmap/gpt.c: Likewise.
29786 * partmap/msdos.c: Likewise.
29787 * partmap/sun.c: Likewise.
29788 * parttool/msdospart.c: Likewise.
29789 * term/gfxterm.c: Likewise.
29790 * video/bitmap.c: Likewise.
29791 * video/readers/jpeg.c: Likewise.
29792 * video/readers/png.c: Likewise.
29793 * video/readers/tga.c: Likewise.
29794 * video/video.c: Likewise.
29795 * util/grub-emu.c (read_command_list): Removed.
29796 (main): Don't call util_init_nls.
29797 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29798 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29800 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29802 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29803 date.mod, datehook.mod.
29804 (datetime_mod_SOURCES): New variable.
29805 (datetime_mod_CFLAGS): Likewise.
29806 (datetime_mod_LDFLAGS): Likewise.
29807 (date_mod_SOURCES): Likewise.
29808 (date_mod_CFLAGS): Likewise.
29809 (date_mod_LDFLAGS): Likewise.
29810 (datehook_mod_SOURCES): Likewise.
29811 (datehook_mod_CFLAGS): Likewise.
29812 (datehook_mod_LDFLAGS): Likewise.
29813 * conf/sparc64-ieee1275.rmk: Likewise.
29814 * lib/ieee1275/datetime.c: New file.
29816 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29818 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29819 (ieee1275_fb_mod_SOURCES): New variable.
29820 (ieee1275_fb_mod_CFLAGS): Likewise.
29821 (ieee1275_fb_mod_LDFLAGS): Likewise.
29822 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29824 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29825 (HEAP_MAX_ADDR): Likewise.
29826 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29828 Correct stop condition.
29829 (grub_ieee1275_devices_iterate): New function.
29830 * video/ieee1275.c: New file.
29832 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29834 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29836 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29838 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29839 SCRATCH_PAD_DISKBOOT as scratch.
29840 (bootit): Pass Openfirmware pointer in %o4.
29841 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29843 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29844 with util/grub-mkrawimage.c.
29845 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29846 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29847 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29848 (grub_aout_load) [GRUB_UTIL]: Likewise.
29849 * include/grub/kernel.h (grub_modules_get_end): New proto.
29850 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29851 (SCRATCH_PAD_BOOT): New definition.
29852 (SCRATCH_PAD_DISKBOOT): Likewise.
29853 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29854 * include/grub/sparc64/ieee1275/ieee1275.h
29855 (grub_ieee1275_original_stack): New variable
29856 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29858 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29859 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29860 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29861 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29862 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29863 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29864 (grub_platform_image_format_t): New type.
29865 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29866 * kern/main.c (grub_modules_get_end)
29867 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29868 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29869 (codestart): Switch stacks.
29870 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29872 (grub_heap_init): Use grub_modules_get_end.
29873 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29875 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29877 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29879 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29881 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29883 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29885 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29888 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29890 * genmoddep.awk: Output all missing symbols and not only first.
29892 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29894 * NEWS: Put the date of 1.98 release.
29896 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29898 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29901 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29903 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29904 completition in the middle of string.
29906 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29908 * util/grub-mkrescue.in: Use mktemp with explicit template.
29910 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29912 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29914 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29916 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29919 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29921 Fix FreeBSD compilation.
29923 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29924 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29926 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29928 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29930 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29932 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29934 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29936 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29938 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29940 Support relative image path in theme file.
29942 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29943 (image_set_property): Handle theme_dir and relative path.
29945 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29947 * configure.ac: Alias amd64 to x86_64.
29949 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29951 * NEWS: mention multiboot on EFI.
29953 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29955 * kern/main.c (grub_load_modules): Handle errors from init functions of
29958 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29960 * normal/autofs.c (autoload_fs_module): Handle errors.
29962 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29964 Disable linux.mod on qemu-mips since it's not functional and leads
29965 to compilation failure.
29967 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29968 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29969 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29970 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29971 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29972 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29973 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29974 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29975 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29976 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29977 Reported by: BVK Chaitanya
29979 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
29981 * INSTALL: Add gettext as a dependency and add qemu to a new section
29982 "Prerequisites for make-check".
29984 2010-03-04 Christian Franke <franke@computer.org>
29986 * util/grub-pe2elf.c: Add missing include "progname.h".
29988 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29990 * normal/crypto.c (read_crypto_list): Fix a typo.
29991 Reported by: Seth Goldberg.
29993 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29995 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
29996 Reported by: Seth Goldberg.
29998 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30000 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30003 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30005 * genmk.rb: Remove terminal*.lst in make clean.
30006 Reported by: Seth Goldberg.
30008 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30010 * util/i386/efi/grub-install.in: Copy gettext files.
30012 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30014 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30016 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30018 Wait for user entry basing on presence of output rather than on errors.
30020 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30021 (grub_install_newline_hook): Likewise.
30022 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30023 * normal/menu.c (show_menu): Check line_counter to determine presence
30025 * normal/term.c (grub_normal_line_counter): New variable.
30026 (grub_normal_get_line_counter): New function.
30027 (grub_install_newline_hook): Likewise.
30029 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30031 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30033 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30035 * configure.ac: Update version to 1.98.
30037 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30039 * util/grub.d/10_linux.in (linux_entry): Don't default to
30040 gfxpayload=keep if Linux doesn't support video handover.
30042 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30044 Don't compile video modules on yeeloong since video subsystem is part
30047 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30048 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30049 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30050 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30051 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30052 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30053 * include/grub/bitmap_scale.h: Likewise.
30054 * include/grub/bufio.h: Likewise.
30055 * include/grub/font.h: Likewise.
30056 * include/grub/gfxterm.h: Likewise.
30057 * include/grub/video.h: Likewise.
30058 * include/grub/vbe.h: Don't include video_fb.h.
30059 * video/i386/pc/vbe.c: Include video_fb.h.
30060 * commands/i386/pc/vbetest.c: Include video.h.
30062 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30064 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30065 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30066 default entry if GRUB_SAVEDEFAULT=true. This allows using
30067 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30068 saving a new default on every boot.
30070 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30072 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30073 * normal/term.c (read_terminal_list): Likewise.
30074 * normal/main.c (grub_normal_init_page): Likewise.
30075 (grub_normal_read_line_real): Likewise.
30077 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30079 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30081 Reported by: Seth Goldberg.
30083 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30085 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30086 duplicate declaration of `start'.
30088 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30090 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30092 Reported by: Georgy Buranov
30094 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30096 * util/grub-mkrawimage.c (usage): Change string formatting to
30099 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30101 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30104 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30106 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30107 Reported by: Michael Suchanek.
30109 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30111 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30112 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30114 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30116 Remove any reference to non-free fonts.
30118 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30119 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30120 uses non-free components.
30121 * font/font.c (grub_font_get_name): Remove example name.
30122 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30123 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30124 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30125 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30127 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30129 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30131 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30133 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30135 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30137 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30139 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30141 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30143 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30145 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30146 * docs/grub.texi (Command-line and menu entry commands): Document play
30149 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30151 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30152 parse arguments as inline tempo and notes. Move code for playing notes
30154 (play): ... new function.
30156 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30158 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30159 grub_uint16_t instead of short.
30160 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30161 disk from little endian to cpu endianness.
30163 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30165 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30166 GRUB_TICKS_PER_SECOND instead of 120.
30168 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30170 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30171 escape sequence after \e.
30173 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30175 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30176 non-ASCII characters.
30178 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30180 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30181 set root in single quotes to prevent \, from being unescaped.
30183 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30185 Prevent unknown commands from stopping menuentry execution.
30187 * script/execute.c (grub_script_execute_cmdline): Print error after
30190 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30192 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30193 Reported by: Pavel Pisa.
30195 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30197 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30199 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30201 Merge grub_ieee1275_map_physical into grub_map and rename to
30204 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30205 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30207 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30208 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30210 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30212 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30214 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30215 opening and not after.
30217 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30219 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30222 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30224 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30225 (alloc_phys): Use ALIGN_UP instead of align_addr.
30227 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30229 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30231 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30233 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30235 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30237 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30240 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30242 Fix over-4GiB seek on sparc64.
30244 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30245 Replace pos_i and pos_lo with pos. All users updated.
30246 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30248 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30250 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30253 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30255 * util/grub-mkrawimage.c (main): Call set_program_name.
30257 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30259 Properly align 64-bit targets.
30261 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30262 (generate_image): Use ALIGN_ADDR.
30264 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30266 Properly create cross-endian images.
30268 * include/grub/types.h (grub_host_to_target_addr): New macro
30269 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30271 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30273 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30275 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30277 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30279 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30280 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30281 (grub_linux_boot): Divide by 64K when on VESA.
30283 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30285 Support GRUB_GFXPAYLOAD_LINUX.
30287 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30288 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30290 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30292 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30293 to show messages instead of discarding them.
30294 Process errors after executing command and not before. Keep old method
30297 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30299 * configure.ac: Check for ft2build.h.
30301 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30303 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30305 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30307 * genkernsyms.sh.in: Use TARGET_CC.
30309 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30313 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30315 * include/grub/multiboot2.h: Remove leftover file.
30316 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30317 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30319 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30321 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30323 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30325 Fix warnings in grub-emu when compiling with maximum warning options.
30327 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30328 (grub_arch_modules_addr): Return 0 and not NULL.
30329 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30330 (xstrdup): Use newstr instead of dup.
30331 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30332 of disk to dsk to avoid shadowing.
30333 (find_free_slot): Fix prototype.
30334 * util/getroot.c (grub_util_is_dmraid): Make static.
30335 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30336 Add missing prototype.
30337 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30339 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30341 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30344 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30346 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30349 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30351 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30352 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30353 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30354 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30355 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30356 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30358 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30360 * include/grub/err.h (grub_err_printf): Don't export.
30362 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30364 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30366 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30368 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30369 * kern/misc.c (grub_gettext_dummy): Make static.
30371 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30373 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30375 * kern/term.c (grub_putchar): Likewise.
30377 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30379 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30380 buggy hook call and memory leak.
30382 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30384 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30386 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30388 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30390 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30392 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30394 Return grub_errno on allocation error.
30396 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30398 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30400 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30402 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30403 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30405 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30407 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30409 (grub_pxefs_open): Likewise.
30411 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30413 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30414 * util/grub.d/10_kfreebsd.in: Likewise.
30415 * util/grub.d/10_linux.in: Likewise.
30417 2010-02-06 Colin D Bennett <colin@gibibit.com>
30419 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30420 (gfxmenu_mod_SOURCES): New variable.
30421 (gfxmenu_mod_CFLAGS): Likewise.
30422 (gfxmenu_mod_LDFLAGS): Likewise.
30423 * include/grub/term.h (grub_term_set_current_output): Declare
30425 * docs/gfxmenu-theme-example.txt: New file.
30426 * gfxmenu/gfxmenu.c: Likewise.
30427 * gfxmenu/gui_box.c: Likewise.
30428 * gfxmenu/gui_canvas.c: Likewise.
30429 * gfxmenu/gui_circular_progress.c: Likewise.
30430 * gfxmenu/gui_image.c: Likewise.
30431 * gfxmenu/gui_label.c: Likewise.
30432 * gfxmenu/gui_list.c: Likewise.
30433 * gfxmenu/gui_progress_bar.c: Likewise.
30434 * gfxmenu/gui_string_util.c: Likewise.
30435 * gfxmenu/gui_util.c: Likewise.
30436 * gfxmenu/icon_manager.c: Likewise.
30437 * gfxmenu/model.c: Likewise.
30438 * gfxmenu/named_colors.c: Likewise.
30439 * gfxmenu/theme_loader.c: Likewise.
30440 * gfxmenu/view.c: Likewise.
30441 * gfxmenu/widget-box.c: Likewise.
30442 * include/grub/gfxmenu_model.h: Likewise.
30443 * include/grub/gfxmenu_view.h: Likewise.
30444 * include/grub/gfxwidgets.h: Likewise.
30445 * include/grub/gui.h: Likewise.
30446 * include/grub/gui_string_util.h: Likewise.
30447 * include/grub/icon_manager.h: Likewise.
30449 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30451 Agglomerate scrolling in gfxterm.
30453 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30454 (grub_virtual_screen_setup): Initialise 'total_screen'.
30455 (write_char): Split to ...
30456 (paint_char): ... this ...
30457 (write_char): ... and this.
30458 (paint_char): Handle delayed scrolling.
30459 (draw_cursor): Likewise.
30460 (scroll_up): Split to ...
30461 (real_scroll): ... this ...
30462 (scroll_up): ... and this.
30463 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30465 (grub_gfxterm_refresh): Call real_scroll.
30467 2010-02-06 Colin D Bennett <colin@gibibit.com>
30469 * include/grub/misc.h (grub_iscntrl): New inline function.
30470 (grub_isalnum): Likewise.
30471 (grub_strtol): Likewise.
30473 2010-02-06 Colin D Bennett <colin@gibibit.com>
30475 * normal/menu_text.c (get_entry_number): Move from here ...
30476 * normal/menu.c (get_entry_number): ... moved here.
30477 * include/grub/menu.h (grub_menu_get_default_entry_index):
30479 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30480 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30481 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30482 (grub_menu_viewer_should_return): Likewise.
30483 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30484 * normal/menu_text.c (run_menu): Enable menu switching.
30485 * normal/menu_viewer.c (should_return): New variable.
30486 (menu_viewer_changed): Likewise.
30487 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30488 (grub_menu_viewer_should_return): New function.
30489 (menuviewer_write_hook): Likewise.
30490 (grub_menu_viewer_init): Likewise.
30492 2010-02-06 Colin D Bennet <colin@gibibit.com>
30493 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30495 Support for gfxterm in a window.
30497 * include/grub/gfxterm.h: New file.
30498 * include/grub/video.h (struct grub_video_rect): New declaration.
30499 (grub_video_rect_t): Likewise.
30500 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30501 (refcount): New variable.
30502 (render_target): Likewise.
30503 (window): Likewise.
30504 (repaint_callback): Likewise.
30505 (grub_virtual_screen_setup): Use 'render_target'.
30506 (init_window): New function.
30507 (grub_gfxterm_init_window): Likewise.
30508 (grub_gfxterm_init): Check reference counter.
30510 (destroy_window): New function.
30511 (grub_gfxterm_destroy_window): Likewise.
30512 (grub_gfxterm_fini): Check reference counter.
30513 Use destroy_window.
30514 (redraw_screen_rect): Restore viewport.
30515 Use 'render_target' and 'window'.
30516 Call 'repaint_callback'.
30517 (write_char): Use 'render_target'.
30518 (draw_cursor): Likewise.
30519 (scroll_up): Restore viewport.
30520 Use 'render_target' and 'window'.
30521 Call 'repaint_callback'.
30522 (grub_gfxterm_cls): Likewise.
30523 (grub_gfxterm_refresh): Use 'window'.
30524 (grub_gfxterm_set_repaint_callback): New function.
30525 (grub_gfxterm_background_image_cmd): Use 'window'.
30526 (grub_gfxterm_get_term): New function.
30527 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30529 2010-02-06 Colin D Bennett <colin@gibibit.com>
30531 Bitmap scaling support.
30533 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30534 (bitmap_scale_mod_SOURCES): New variable.
30535 (bitmap_scale_mod_CFLAGS): Likewise.
30536 (bitmap_scale_mod_LDFLAGS): Likewise.
30537 * include/grub/bitmap_scale.h: New file.
30538 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30539 (background_image_cmd_options): New variable.
30540 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30541 (cmd): Rename and change type to ...
30542 (background_image_cmd_handle): ... this. All users updated.
30543 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30544 * video/bitmap_scale.c: New file.
30546 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30550 * Makefile.in (LIBSDL): New variable.
30551 (enable_grub_emu_sdl): Likewise.
30552 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30553 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30554 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30555 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30556 * util/sdl.c: New file.
30558 2010-02-06 Colin D Bennett <colin@gibibit.com>
30559 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30561 Double buffering support.
30563 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30564 * include/grub/video.h: Update comment.
30565 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30567 (grub_video_fb_doublebuf_blit_init): New prototype.
30568 * term/gfxterm.c (scroll_up): Support double buffering.
30569 (grub_gfxterm_refresh): Likewise.
30570 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30571 (grub_video_fb_doublebuf_blit_init): Likewise.
30572 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30573 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30574 'displayed_page', 'render_page' and 'update_screen'.
30575 (grub_video_vbe_fini): Free offscreen buffer.
30576 (doublebuf_pageflipping_commit): New function.
30577 (doublebuf_pageflipping_update_screen): Likewise.
30578 (doublebuf_pageflipping_init): Likewise.
30579 (double_buffering_init): Likewise.
30580 (grub_video_vbe_setup): Enable doublebuffering.
30581 (grub_video_vbe_swap_buffers): Implement.
30582 (grub_video_vbe_set_active_render_target): Handle double buffering.
30583 (grub_video_vbe_get_active_render_target): Likewise.
30584 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30585 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30586 (grub_video_vbe_enable_double_buffering): Likewise.
30587 (grub_video_vbe_swap_buffers): Use update_screen.
30588 (grub_video_set_mode): Use double buffering.
30590 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30592 * maintainance/gentrigtables.py: Remove.
30593 * lib/trig.c: Likewise.
30595 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30597 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30599 (trigtables.c): New rule.
30600 (gentrigtables): Likewise.
30601 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30603 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30605 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30608 2010-02-06 Colin D Bennet <colin@gibibit.com>
30610 Trigonometry support.
30612 * include/grub/trig.h: New file.
30613 * lib/trig.c: Likewise.
30614 * maintainance/gentrigtables.py: Likewise.
30615 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30616 (trig_mod_SOURCES): New variable.
30617 (trig_mod_CFLAGS): Likewise.
30618 (trig_mod_LDFLAGS): Likewise.
30620 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30622 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30625 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30627 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30630 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30632 * util/hostdisk.c (open_device): Don't use partition device when reading
30633 before the partition.
30634 (grub_util_biosdisk_read): Don't read from partition and before the
30635 partition in single operation.
30636 (grub_util_biosdisk_write): Don't write to partition and before the
30637 partition in single operation.
30639 2010-02-03 Torsten Landschoff <torsten@debian.org>
30641 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30644 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30646 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30648 (grub_biosdisk_write): Refuse to write to CDROM.
30650 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30652 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30654 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30656 * font/font.c (find_glyph): Check that bmp_idx is available before
30658 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30659 with (font == NULL).
30661 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30663 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30665 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30667 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30668 * util/grub-script-check.c (getline): Fix empty lines case.
30670 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30672 * Makefile.in (check): Exit with fail status when one of the tests
30674 * tests/example_functional_test.c (example_test): Fix reversed assert.
30675 * tests/example_unit_test.c (example_test): Likewise.
30677 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30679 * util/grub.d/10_linux.in: This script does not use any of the
30680 contents of gettext.sh, only the external command `gettext', so stop
30681 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30682 the same prefix as GRUB.)
30683 * util/grub.d/10_kfreebsd.in: Likewise.
30685 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30687 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30690 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30692 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30695 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30697 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30698 having a 4KiB and not 32KiB buffer size.
30700 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30702 * util/hostfs.c: Include `<errno.h>'.
30703 (grub_hostfs_read): Handle errors from fseeko() and fread().
30705 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30707 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30708 loop when using read hooks on files whose size isn't sector-aligned.
30710 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30712 Remove unused parameter.
30714 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30715 (grub_iso9660_open): Remove initialization of `data->length'.
30717 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30719 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30720 memleak conditions.
30722 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30724 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30725 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30727 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30729 * util/bin2h.c (usage): Fix warning (space after backslash).
30731 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30733 * font/font.c: Include `grub/fontformat.h.
30734 Remove font file format constants.
30735 (grub_font_load): Use the new macros.
30736 * include/grub/fontformat.h: New file.
30737 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30738 (write_font_pf2): Use the new macros.
30740 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30742 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30745 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30747 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30749 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30750 (_start): Macroify `0x7F'.
30752 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30753 (make_install_device): Use "(pxe)" as fallback prefix when booting
30756 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30758 * configure.ac: Reset LIBS after check for libgcc symbols.
30760 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30762 * util/hostdisk.c (open_device): Add trailing newline to debug
30765 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30767 * configure.ac: Check for `limits.h'.
30768 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30770 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30772 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30773 capitalize error strings.
30775 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30777 * util/grub.d/10_hurd.in: Add a recovery mode.
30779 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30781 * configure.ac: Check for libgcc symbols with -nostdlib.
30783 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30785 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30787 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30789 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30790 stack since heap may be unavailable at that point.
30791 (grub_ofconsole_gotoxy): Likewise.
30793 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30795 * configure.ac: Check for _restgpr_14_x.
30796 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30797 and _savegpr_* prototypes.
30799 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30801 Use generic grub_reboot() for i386-efi.
30803 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30804 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30805 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30807 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30809 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30810 presence of "prefix" variable as it breaks when normal.mod is
30813 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30815 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30816 stack since heap is unavailable at that point.
30818 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30820 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30821 (grub_freebsd_bootinfo): Rewritten.
30822 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30824 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30826 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30828 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30830 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30833 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30835 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30836 around for handling "/" to the correct fix. Fix a memory leak. Use
30837 xstrdup instead of strdup.
30839 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30841 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30843 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30845 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30847 * font/font.c (struct grub_font): New member 'bmp_idx'.
30848 (font_init): Initialise 'bmp_idx'.
30849 (load_font_index): Fill 'bmp_idx'.
30850 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30852 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30854 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30857 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30859 Move context handling out of the kernel.
30861 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30862 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30863 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30864 * conf/i386-efi.rmk: Likewise.
30865 * conf/i386-ieee1275.rmk: Likewise.
30866 * conf/i386-pc.rmk: Likewise.
30867 * conf/powerpc-ieee1275.rmk: Likewise.
30868 * conf/sparc64-ieee1275.rmk: Likewise.
30869 * conf/x86_64-efi.rmk: Likewise.
30870 * include/grub/env.h: Include grub/menu.h.
30871 (grub_env_var_type): Removed.
30872 (grub_env_var): Replaced field 'type' with 'global'.
30873 (grub_env_find): New prototype.
30874 (grub_env_context_open): Remove EXPORT_FUNC.
30875 (grub_env_context_close): Likewise.
30876 (grub_env_export): Likewise.
30877 (grub_env_set_data_slot): Removed.
30878 (grub_env_get_data_slot): Likewise.
30879 (grub_env_unset_data_slot): Likewise.
30880 (grub_env_unset_menu): New prototype.
30881 (grub_env_set_menu): Likewise.
30882 (grub_env_get_menu): Likewise.
30883 * include/grub/env_private.h: New file.
30884 * include/grub/normal.h (grub_context_init): New prototype.
30885 (grub_context_fini): Likewise.
30886 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30887 * normal/context.c (grub_cmd_export): ... to here.
30888 * kern/env.c: Include env_private.h.
30889 (HASHSZ): Moved to include/grub/env_private.h.
30890 (grub_env_context): Likewise.
30891 (grub_env_sorted_var): Likewise.
30892 (current_context): Renamed from this ...
30893 (grub_current_context): ...to this. 'static' removed. All users updated.
30894 (grub_env_find): Removed 'static'.
30895 (grub_env_context_open): Moved to normal/context.c.
30896 (grub_env_context_close): Likewise.
30897 (grub_env_export): Likewise.
30898 (mangle_data_slot_name): Removed.
30899 (grub_env_set_data_slot): Likewise.
30900 (grub_env_get_data_slot): Likewise.
30901 (grub_env_unset_data_slot): Likewise.
30902 * kern/main.c (grub_set_root_dev): Don't export root.
30903 It will be done later.
30904 (grub_main): Don't export prefix.
30905 It will be done later.
30906 * normal/context.c: New file.
30907 * normal/main.c (free_menu): Use grub_env_unset_menu.
30908 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30909 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30910 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30911 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30913 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30917 * commands/setpci.c: New file.
30918 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30919 (setpci_mod_SOURCES): New variable.
30920 (setpci_mod_CFLAGS): Likewise.
30921 (setpci_mod_LDFLAGS): Likewise.
30923 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30925 Byte-addressable PCI configuration space.
30927 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30929 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30930 GRUB_PCI_REG_CACHELINE.
30931 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30932 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30933 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30934 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30935 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30936 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30937 grub_pci_make_address.
30938 (lock_rom_area): Likewise.
30939 * commands/lspci.c (grub_lspci_iter): Use macroses
30940 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30941 of grub_pci_make_address.
30942 * disk/ata.c (grub_ata_pciinit): Likewise.
30943 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30944 (GRUB_PCI_REG_VENDOR): Likewise.
30945 (GRUB_PCI_REG_DEVICE): Likewise.
30946 (GRUB_PCI_REG_COMMAND): Likewise.
30947 (GRUB_PCI_REG_STATUS): Likewise.
30948 (GRUB_PCI_REG_REVISION): Likewise.
30949 (GRUB_PCI_REG_CLASS): Likewise.
30950 (GRUB_PCI_REG_CACHELINE): Likewise.
30951 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30952 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30953 (GRUB_PCI_REG_BIST): Likewise.
30954 (GRUB_PCI_REG_ADDRESSES): Likewise.
30955 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30956 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30957 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30958 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30959 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30960 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30961 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30962 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30963 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30964 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30965 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30966 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30967 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30968 (GRUB_PCI_REG_MIN_GNT): Likewise.
30969 (GRUB_PCI_REG_MAX_LAT): Likewise.
30970 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30971 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30972 * video/efi_uga.c (find_framebuf): Likewise.
30973 * video/sm712.c (grub_video_sm712_setup): Likewise.
30974 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30977 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30979 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
30980 can be reliably determined to be supported.
30982 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30984 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
30985 that VESA is supported.
30986 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
30989 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30991 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
30993 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30995 * util/misc.c (make_system_path_relative_to_its_root): Work around
30996 special-casing of "/", as previous incarnation of this routine did.
30998 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31000 Fix any-emu compilation.
31002 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31003 * grub_bin2h_SOURCES: New variable.
31005 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31007 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31009 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31011 * util/grub.d/00_header.in: Fix handling of locale_dir.
31013 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31015 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31016 as possible unifont location (Gentoo).
31017 Reported by: Alexander Brüning
31019 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31021 Don't try to generate lists for kernel.img.
31023 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31024 (pkglib_MODULES): Remove kernel.img.
31025 (kernel_img_EXPORTS): Removed.
31026 (kernel_img_RELOCATABLE): New variable.
31027 * conf/x86_64-efi.rmk: Likewise.
31028 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31030 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31032 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31033 grub_xasprintf or grub_snprintf.
31034 (grub_vsprintf): Likewise.
31035 (grub_snprintf): New proto.
31036 (grub_vsnprintf): Likewise.
31037 (grub_xasprintf): Likewise.
31038 (grub_xvasprintf): Likewise.
31039 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31040 (grub_sprintf): Removed.
31041 (grub_vsnprintf): New function.
31042 (grub_snprintf): Likewise.
31043 (grub_xvasprintf): Likewise.
31044 (grub_xasprintf): Likewise.
31045 (grub_vsprintf): Renamed to ...
31046 (grub_vsnprintf_real): ...this. New argument max_len.
31048 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31050 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31051 fix grub-script-check warning.
31053 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31055 * include/grub/font.h (grub_font_load): Fix prototype.
31057 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31059 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31061 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31063 * include/grub/x86_64/at_keyboard.h: New file.
31065 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31067 * loader/mips/linux.c: Include missing grub/i18n.h.
31069 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31071 * normal/menu.c (notify_execution_failure): Clarify error message.
31073 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31075 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31076 return value (and revert all return statements). Update users.
31078 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31080 * kern/device.c (grub_device_iterate): Allocate new part_ent
31081 structure based on sizeof (*p) rather than sizeof (p->next), to
31082 account for structure padding.
31084 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31085 disk is NULL, which might happen for LVM physical volumes with no
31088 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31090 * loader/mips/linux.c (grub_cmd_initrd)
31091 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31093 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31095 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31096 (grub_video_video_init, grub_video_bitmap_init)
31097 (grub_font_manager_init, grub_term_gfxterm_init)
31098 (grub_at_keyboard_init): New extern declarations.
31099 (grub_machine_init): Initialize gfxterm and at_keyboard.
31101 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31103 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31104 `gfxterm.mod' into core image.
31106 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31107 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31108 (kernel_img_FORMAT): Copy to ...
31110 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31111 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31112 (kernel_img_FORMAT): ... here, and ...
31114 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31115 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31116 (kernel_img_FORMAT): ... here.
31118 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31119 and input (at_keyboard) terminals in kernel.
31120 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31122 (pkglib_MODULES): Remove `pci.mod'.
31123 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31124 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31125 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31126 (at_keyboard_mod_LDFLAGS): Remove variables.
31128 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31130 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31132 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31134 * include/grub/mips/libgcc.h: Only export symbols for functions
31135 that libgcc provides.
31137 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31141 * bus/bonito.c: New file.
31142 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31143 GRUB_PCI_NUM_DEVICES.
31144 * term/i386/pc/serial.c: Move to ...
31145 * term/serial.c: ... here. All users updated.
31146 * util/i386/pc/grub-mkimage.c: Move to ...
31147 * util/grub-mkrawimage.c: ... here. All users updated.
31148 * term/i386/pc/at_keyboard.c: Move to ...
31149 * term/at_keyboard.c: ... here. All users updated.
31150 * conf/mips-qemu-mips.rmk: New file.
31151 * conf/mips-yeeloong.rmk: Likewise.
31152 * conf/mips.rmk: Likewise.
31153 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31155 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31157 (grub_ata_pciinit): Support CS5536.
31158 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31159 * font/font_cmd.c (loadfont_command): Open file before passing it to
31161 (pseudo_file_read): New function.
31162 (pseudo_file_close): Likewise.
31163 (pseudo_fs): New structure.
31164 (load_font_module): New function.
31165 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31166 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31167 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31168 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31169 * include/grub/i386/at_keyboard.h: Split into ...
31170 * include/grub/at_keyboard.h: ... this ...
31171 * include/grub/i386/at_keyboard.h: ... and this.
31172 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31174 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31176 (grub_elf64_size): Likewise.
31177 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31179 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31180 * include/grub/i386/coreboot/serial.h: Rewritten.
31181 * include/grub/i386/ieee1275/serial.h: Include
31182 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31183 * include/grub/i386/pc/serial.h: Moved from here ...
31184 * include/grub/serial.h: ... to here. All users updated.
31185 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31186 (GRUB_PCI_NUM_BUS): Likewise.
31187 (GRUB_PCI_NUM_DEVICES): Likewise.
31188 (grub_pci_device_map_range): Add missing volatile keyword.
31189 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31190 * include/grub/mips/at_keyboard.h: New file.
31191 * include/grub/mips/cache.h: Likewise.
31192 * include/grub/mips/io.h: Likewise.
31193 * include/grub/mips/kernel.h: Likewise.
31194 * include/grub/mips/libgcc.h: Likewise.
31195 * include/grub/mips/pci.h: Likewise.
31196 * include/grub/mips/qemu-mips/boot.h: Likewise.
31197 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31198 * include/grub/mips/qemu-mips/loader.h: Likewise.
31199 * include/grub/mips/qemu-mips/memory.h: Likewise.
31200 * include/grub/mips/qemu-mips/serial.h: Likewise.
31201 * include/grub/mips/qemu-mips/time.h: Likewise.
31202 * include/grub/mips/relocator.h: Likewise.
31203 * include/grub/mips/time.h: Likewise.
31204 * include/grub/mips/types.h: Likewise.
31205 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31206 * include/grub/mips/yeeloong/boot.h: Likewise.
31207 * include/grub/mips/yeeloong/kernel.h: Likewise.
31208 * include/grub/mips/yeeloong/loader.h: Likewise.
31209 * include/grub/mips/yeeloong/memory.h: Likewise.
31210 * include/grub/mips/yeeloong/pci.h: Likewise.
31211 * include/grub/mips/yeeloong/serial.h: Likewise.
31212 * include/grub/mips/yeeloong/time.h: Likewise.
31213 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31214 * kern/elf.c (grub_elf32_size): New parameter. All users
31216 (grub_elf64_size): Likewise.
31217 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31218 Load modules before saying "Welcome to GRUB!".
31219 Call grub_refresh after saying "Welcome to GRUB!".
31220 * kern/mips/cache.S: New file.
31221 * kern/mips/cache_flush.S: Likewise.
31222 * kern/mips/dl.c: Likewise.
31223 * kern/mips/init.c: Likewise.
31224 * kern/mips/qemu-mips/init.c: Likewise.
31225 * kern/mips/startup.S: Likewise.
31226 * kern/mips/yeeloong/init.c: Likewise.
31227 * kern/term.c (grub_putcode): Handle NULL terminal.
31228 (grub_getcharwidth): Likewise.
31229 (grub_getkey): Likewise.
31230 (grub_checkkey): Likewise.
31231 (grub_getkeystatus): Likewise.
31232 (grub_getxy): Likewise.
31233 (grub_getwh): Likewise.
31234 (grub_gotoxy): Likewise.
31235 (grub_cls): Likewise.
31236 (grub_setcolorstate): Likewise.
31237 (grub_setcolor): Likewise.
31238 (grub_getcolor): Likewise.
31239 (grub_refresh): Likewise.
31240 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31241 (write_jump): Add hatch nop.
31242 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31243 * lib/mips/setjmp.S: New file.
31244 * loader/mips/linux.c: Likewise.
31245 * term/i386/pc/at_keyboard.c: Move from here ...
31246 * term/at_keyboard.c: ... to here.
31247 * term/i386/pc/serial.c: Moved from here ...
31248 * term/serial.c: ... to here. All users updated.
31249 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31250 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31251 (serial_translate_key_sequence): Avoid deadlock.
31252 (grub_serial_getkey): Handle backspace.
31253 (grub_serial_putchar): Fix newline handling.
31254 * util/i386/pc/grub-mkimage.c: Move from here ...
31255 * util/grub-mkrawimage.c: ... to here. All users updated.
31256 (generate_image): New parameters 'font_path' and 'format'.
31257 Support embedding font.
31258 Use grub_host_to_target* instead of grub_cpu_to_le*.
31259 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31260 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31261 (options): New option "--font".
31263 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31264 (main): Handle "--font".
31265 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31266 (grub_virtual_screen_setup): Set bg_color_display.
31267 (redraw_screen_rect): Use bg_color_display instead of incorrect
31269 (grub_gfxterm_cls): Likewise.
31270 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31271 Support embedding config file.
31272 (add_segments): Likewise.
31273 (options): New option "--config".
31274 (main): Handle "--config".
31275 * video/sm712.c: New file.
31277 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31279 Fix parallel builds.
31281 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31282 font.c depend on ascii.h).
31284 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31286 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31288 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31290 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31291 By default: disabled.
31292 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31295 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31297 * font/font.c: Update copyright years.
31298 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31300 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31302 * font/font.c: Include `ascii.h'.
31303 (ASCII_BITMAP_SIZE): New macro.
31304 (ascii_font_glyph): Define.
31305 (ascii_glyph_lookup): New function.
31306 (grub_font_get_string_width): Change comment. If glyph not found, use
31307 ascii_glyph_lookup.
31308 (grub_font_get_glyph_with_fallback): If glyph not available returns
31309 ascii_glyph_lookup.
31310 * util/grub-mkfont.c (file_formats): New enum.
31311 (options): Add `ascii-bitmaps' new option.
31312 (usage): Add `asii-bitmaps' new option.
31313 (write_font_ascii_bitmap): New function.
31314 (write_font): Rename to ...
31315 (write_font_p2): ... this. Remove print_glyphs call.
31316 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31317 used. Call print_glyphs.
31318 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31320 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31322 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31323 (grub_bin2h_SOURCES): New variable.
31324 * util/bin2h.c: New file.
31326 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31328 * include/multiboot.h: Resynced with spec.
31329 * include/multiboot2.h: Likewise.
31330 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31331 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31333 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31335 * include/grub/term.h (grub_term_register_input,
31336 grub_term_register_output): Check return of terminal init()
31337 routines, and abort if errors are raised.
31339 * commands/terminal.c: Update copyright year.
31341 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31343 * commands/terminal.c (grub_cmd_terminal_input)
31344 (grub_cmd_terminal_output): Check return of terminal init()
31345 routines, and abort if errors are raised.
31347 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31349 * include/grub/i386/bsd.h: Fix include pathes.
31351 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31353 Add missing *BSD copyright headers.
31355 * include/grub/aout.h: Add BSD licence.
31356 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31357 * include/grub/i386/freebsd_linker.h: ... here,
31358 * include/grub/i386/freebsd_reboot.h: ... here,
31359 * include/grub/i386/netbsd_bootinfo.h: ... here,
31360 * include/grub/i386/netbsd_reboot.h: ... here,
31361 * include/grub/i386/openbsd_bootarg.h: ... here,
31362 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31363 licence to each file.
31365 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31367 * acinclude.m4: Remove `nop' assembly instruction; it's not
31368 implemented by all architectures.
31370 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31372 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31373 ELILO. This is no longer necessary.
31375 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31377 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31379 * util/grub-script-check.c: grub-script-check tool.
31380 * conf/common.rmk: Make rules for grub-script-check.
31382 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31384 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31385 spotting it back in 2008. Shame on me for forgetting he did.
31387 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31389 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31391 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31392 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31393 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31394 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31395 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31396 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31398 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31400 * include/grub/test.h: Add license header.
31401 * tests/example_functional_test.c: Likewise.
31402 * tests/example_unit_test.c: Likewise.
31403 * tests/lib/functional_test.c: Likewise.
31404 * tests/lib/test.c: Likewise.
31405 * tests/lib/unit_test.c: Likewise.
31407 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31409 Use flag-based instead of hook-based video mode selection and "auto"
31412 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31413 (grub_video_set_mode): Changed prototype. All users updated.
31414 (grub_video_check_mode_flag): New inline function.
31415 * video/video.c (parse_modespec): New function.
31416 (grub_video_set_mode): Parse flags and keywords.
31418 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31420 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31423 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31425 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31427 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31429 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31431 * util/grub-emu.c (usage): Likewise.
31432 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31433 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31434 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31435 * util/i386/pc/grub-setup.c (usage): Likewise.
31437 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31439 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31441 (grub_util_info): Likewise.
31442 (grub_util_error): Likewise.
31443 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31444 and/or new lines in `grub_util_warna', `grub_util_info',
31445 `grub_util_error' calls.
31446 * util/getroot.c: Likewise.
31447 * util/grub-editenv.c: Likewise.
31448 * util/grub-emu.c: Likewise.
31449 * util/grub-fstest.c: Likewise.
31450 * util/grub-mkdevicemap.c: Likewise.
31451 * util/grub-mkfont.c: Likewise.
31452 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31453 * util/grub-mkrelpath.c: Likewise.
31454 * util/grub-pe2elf.c: Likewise.
31455 * util/grub-probe.c: Likewise.
31456 * util/hostdisk.c: Likewise.
31457 * util/i386/efi/grub-mkimage.c: Likewise.
31458 * util/i386/pc/grub-mkimage.c: Likewise.
31459 * util/i386/pc/grub-setup.c: Likewise.
31460 * util/ieee1275/ofpath.c: Likewise.
31461 * util/mkisofs/eltorito.c: Likewise.
31462 * util/mkisofs/rock.c: Likewise.
31463 * util/mkisofs/write.c: Likewise.
31464 * util/raid.c: Likewise.
31465 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31466 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31468 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31470 Enable multiboot on non-pc.
31472 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31473 multiboot.mod and multiboot2.mod to ...
31474 * conf/i386.rmk (pkglib_MODULES): ... here.
31475 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31477 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31478 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31480 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31481 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31483 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31484 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31486 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31487 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31489 (ata_mod_SOURCES): Removed.
31490 (ata_mod_CFLAGS): Likewise.
31491 (ata_mod_LDFLAGS): Likewise.
31492 (relocator_mod_SOURCES): Removed.
31493 (relocator_mod_CFLAGS): Likewise.
31494 (relocator_mod_ASFLAGS): Likewise.
31495 (relocator_mod_LDFLAGS): Likewise.
31497 * include/grub/x86_64/multiboot.h: New file.
31498 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31501 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31503 Video multiboot support.
31505 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31507 * include/multiboot.h: Resynced with multiboot specification.
31508 * include/multiboot2.h: Likewise.
31509 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31510 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31511 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31512 (HAS_VGA_TEXT): Likewise.
31513 (accepts_video): New variable.
31514 (grub_multiboot_set_accepts_video): New function.
31515 (grub_multiboot_get_mbi_size): Account for video structures.
31516 (set_video_mode): New function.
31517 (retrieve_video_parameters): Likewise.
31518 (grub_multiboot_make_mbi): Fill video fields.
31520 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31524 * include/grub/video.h (grub_video_driver_id): New type.
31525 (grub_video_adapter): New member 'id'. All users updated.
31526 (grub_video_get_driver_id): New proto.
31527 * video/video.c (grub_video_get_driver_id): New function.
31529 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31531 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31534 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31536 * normal/cmdline.c (print_completion): Gettextizze.
31538 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31540 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31542 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31544 * gettext/gettext.c (grub_gettext_translate): Push and pop
31546 (grub_gettext_delete_list): Change comment style.
31547 * kern/err.c (grub_error): Gettextizze.
31548 (grub_fatal): Gettextizze.
31550 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31552 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31553 (grub_linux16_real_boot): ... this.
31554 * kern/i386/loader.S: Likewise.
31555 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31556 (grub_linux16_boot): New function. Switches to text mode and calls
31557 grub_linux16_real_boot().
31559 * loader/i386/bsd.c: Include `<grub/video.h>'.
31560 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31561 text mode before calling grub_unix_real_boot().
31563 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31564 (grub_multiboot_boot): Switch to text mode before calling
31565 grub_relocator32_boot().
31567 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31568 (grub_chainloader_boot): Switch to text mode before calling
31569 grub_chainloader_real_boot().
31571 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31572 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31574 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31577 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31578 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31580 * util/grub.d/00_header.in: Define a "savedefault" function for use
31582 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31584 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31585 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31587 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31588 saved_entry if boot_once is unset.
31589 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31590 previous saved entry (i.e. grub-reboot).
31592 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31594 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31596 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31598 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31600 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31602 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31604 * util/grub-reboot.in: Fix --version output.
31605 * util/grub-set-default.in: Likewise.
31607 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31609 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31612 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31614 * util/grub.d/00_header.in: Quote the value assigned to `default',
31615 in case it contains spaces.
31617 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31619 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31620 `save_default_entry' call from the macosx case to the linux case.
31622 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31623 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31625 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31626 in `chosen' environment variable.
31627 * normal/menu_text.c (get_entry_number): Check if the variable
31628 matches the title of a menu entry.
31629 (run_menu): Pass menu to get_entry_number.
31631 * util/grub-reboot.in: New file.
31632 * util/grub-set-default.in: New file.
31633 * conf/common.rmk (grub-reboot): New utility.
31634 (grub-set-default): New utility.
31636 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31637 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31638 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31639 move it to `saved_entry' for the next boot. Load environment on
31641 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31642 * util/grub.d/10_hurd.in: Likewise.
31643 * util/grub.d/10_linux.in (linux_entry): Likewise.
31644 * util/grub.d/10_windows.in: Likewise.
31645 * util/grub.d/30_os-prober.in: Likewise.
31647 * util/grub-install.in: Create environment block.
31648 * util/i386/efi/grub-install.in: Likewise.
31649 * util/ieee1275/grub-install.in: Likewise.
31650 * util/sparc64/ieee1275/grub-install.in: Likewise.
31652 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31654 Unit testing framework for GRUB.
31656 * Makefile.in: Test framework build rules for 'make check'.
31657 * conf/tests.rmk: Build rules for individual tests and framework.
31659 * include/grub/test.h: Header file for whitebox tests.
31660 * tests/lib/functional_test.c: Framework support for whitebox
31662 * tests/lib/test.c: Common whitebox testing code for unit and
31664 * tests/lib/unit_test.c: Framework support for whitebox unit
31667 * tests/util/grub-shell-tester.in: Support utility for grub-script
31669 * tests/util/grub-shell.in: Utility to execute grub-script
31670 commands in a Qemu instance.
31672 * tests/example_functional_test.c: Example whitebox functional
31674 * tests/example_grub_script_test.in: Example grub-script test.
31675 * tests/example_scripted_test.in: Example scripted test.
31676 * tests/example_unit_test.c: Example whitebox unit test.
31678 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31680 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31681 Add loader/i386/multiboot_mbi.c.
31682 (multiboot2_mod_SOURCES): Likewise.
31683 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31684 (multiboot2_mod_SOURCES): Likewise.
31685 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31686 (grub_multiboot_make_mbi): Likewise.
31687 (grub_multiboot_free_mbi): Likewise.
31688 (grub_multiboot_init_mbi): Likewise.
31689 (grub_multiboot_add_module): Likewise.
31690 (grub_multiboot_set_bootdev): Likewise.
31691 * loader/i386/multiboot.c (mbi): Removed.
31692 (mbi_dest): Likewise.
31693 (alloc_mbi): New variable.
31694 (grub_multiboot_payload_size): Removed. All users updated.
31695 (grub_multiboot_pure_size): New variable.
31696 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31697 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31698 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31699 (grub_fill_multiboot_mmap): Likewise.
31700 (grub_multiboot_get_bootdev): Likewise.
31701 (grub_multiboot): Use multiboot_mbi functions.
31702 * loader/i386/multiboot_mbi.c: New file.
31704 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31706 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31707 it would result in module crash.
31709 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31711 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31712 (grub_ofconsole_getwh): Split to ...
31713 (grub_ofconsole_getwh): ... this.
31714 (grub_ofconsole_dimensions): ...and this.
31715 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31717 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31719 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31721 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31723 * loader/i386/pc/multiboot2.c: Removed stalled file.
31725 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31727 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31728 Reported by: Grégoire Sutre
31730 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31732 * util/misc.c (canonicalize_file_name): New function.
31733 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31734 instead of realpath().
31736 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31738 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31739 and make it clearer that it's optional. Based on confusion
31742 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31744 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31745 in premature implicit newline.
31747 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31749 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31750 which resulted in garbled command line at the end of screen.
31752 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31754 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31755 initialization with similar approach as with other Linux loaders.
31757 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31759 Fix i386-ieee1275 build.
31761 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31762 and grub_term_height() for video_{width,height} initialization.
31764 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31766 Fix grub-emu build.
31768 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31770 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31771 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31773 Support for multiple terminals.
31775 * Makefile.in (pkglib_DATA): terminal.lst.
31776 (terminal.lst): New target.
31777 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31778 (GRUB_MOD_INIT(handler)): Likewise.
31779 (GRUB_MOD_FINI(handler)): Likewise.
31780 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31781 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31782 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31783 (grub_cmd_sleep): Use grub_term_save_pos.
31784 * commands/terminal.c: New file.
31785 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31786 commands/terminal.c and lib/charset.c.
31787 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31788 (pkglib_MODULES): Add terminal.mod.
31789 (terminal_mod_SOURCES): New variable.
31790 (terminal_mod_CFLAGS): Likewise.
31791 (terminal_mod_LDFLAGS): Likewise.
31792 * genhandlerlist.sh: Don't handle terminals.
31793 * genmk.rb: Generate terminal-*.lst.
31794 * genterminallist.sh: New file.
31795 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31796 (grub_is_valid_utf8): Likewise.
31797 (grub_utf8_to_ucs4_alloc): Likewise.
31798 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31799 (grub_menu_register_viewer): Changed argument.
31800 (grub_menu_try_text): New proto.
31801 (grub_gfxmenu_try_hook): New declaration.
31802 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31803 (grub_menu_init_page): Additional argument term.
31804 (grub_normal_init_page): Likewise.
31805 (grub_cmdline_get): Arguments simplified.
31806 (grub_utf8_to_ucs4_alloc): Removed.
31807 (grub_print_ucs4): Additional argument term.
31808 (grub_getstringwidth): Likewise.
31809 (grub_print_message_indented): Likewise.
31810 (grub_menu_text_register_instances): New proto.
31811 (grub_show_menu): Likewise.
31812 (read_terminal_list): Likewise.
31813 (grub_set_more): Likewise.
31814 * include/grub/parser.h: Include handler.h.
31815 * include/grub/reader.h: Rewritten.
31816 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31817 (GRUB_TERM_WIDTH): Changed to function.
31818 (GRUB_TERM_HEIGHT): Likewise.
31819 (GRUB_TERM_BORDER_WIDTH): Likewise.
31820 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31821 (GRUB_TERM_NUM_ENTRIES): Likewise.
31822 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31823 (GRUB_TERM_CURSOR_X): Likewise.
31824 (grub_term_input_class): Likewise.
31825 (grub_term_output_class): Likewise.
31826 (grub_term_outputs_disabled): New declaration.
31827 (grub_term_inputs_disabled): Likewise.
31828 (grub_term_outputs): Likewise.
31829 (grub_term_inputs): Likewise.
31830 (grub_term_register_input): Rewritten.
31831 (grub_term_register_output): Likewise.
31832 (grub_term_unregister_input): Likewise.
31833 (grub_term_unregister_output): Likewise.
31834 (FOR_ACTIVE_TERM_INPUTS): New macro.
31835 (FOR_DISABLED_TERM_INPUTS): Likewise.
31836 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31837 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31838 * include/grub/terminfo.h: Add oterm argument to all protypes.
31839 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31840 Use grub_rescue_run.
31841 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31843 * kern/reader.c: Removed. All users updated.
31844 * kern/rescue_reader.c (grub_rescue_init): Removed.
31845 (grub_rescue_reader): Likewise.
31846 (grub_register_rescue_reader): Likewise.
31847 (grub_rescue_run): New function based on kern/reader.c.
31848 * kern/term.c: Adapted for multiterm.
31849 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31850 (grub_is_valid_utf8): Likewise.
31851 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31852 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31854 * loader/i386/linux.c (grub_linux_boot): Likewise.
31855 * normal/auth.c (grub_username_get): New function.
31856 (grub_auth_check_authentication): Use grub_username_get.
31857 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31858 * normal/color.c: Adapt for multiterm.
31859 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31860 (grub_normal_init_page): Additional argument term.
31861 (read_lists): Call read_terminal_lists.
31862 (grub_enter_normal_mode): Call grub_cmdline_run.
31863 Handle grub_normal_exit_level.
31864 (grub_cmd_normal): Make reentrant.
31865 (grub_cmd_normal_exit): New function.
31866 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31867 * normal/menu.c: Adapt for multiterm.
31868 * normal/menu_entry.c: Likewise.
31869 * normal/menu_text.c: Likewise.
31870 * normal/menu_viewer.c: Removed. All users updated.
31871 * normal/term.c: New file.
31872 * util/console.c: Change order of includes to workaround a bug in
31874 * term/terminfo.c: New argument oterm on all exported functions.
31876 * util/grub-editenv.c (grub_term_input_class): Removed.
31877 (grub_term_output_class): Likewise.
31879 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31881 Make loader output a bit more user-friendly.
31883 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31884 is being loaded. Likewise for the Hurd.
31886 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31887 that kernel of FreeBSD ${version} is being loaded.
31889 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31891 (grub_cmd_initrd): Likewise.
31892 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31893 that Linux ${version} is being loaded. Likewise for initrd.
31895 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31897 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31899 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31901 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31902 (GRUB_MOD_INIT): Gettextizze.
31903 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31904 (GRUB_MOD_INIT): Gettextizze.
31905 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31906 (grub_cmd_linux): Capitalise Linux.
31907 (GRUB_MOD_INIT): Gettextizze.
31908 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31909 (grub_cmd_linux): Capitalise Linux.
31910 (GRUB_MOD_INIT): Gettextizze.
31911 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31912 (grub_cmd_linux): Capitalise Linux.
31913 (GRUB_MOD_INIT): Gettextizze.
31914 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31915 (GRUB_MOD_INIT): Gettextizze.
31916 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31917 (grub_cmd_linux): Capitalise Linux.
31918 (GRUB_MOD_INIT): Gettextizze.
31919 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31920 (grub_cpu_xnu_init): Gettextizze.
31921 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31922 (GRUB_MOD_INIT): Gettextizze.
31923 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31924 (GRUB_MOD_INIT): Gettextizze.
31925 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31926 (grub_linux_load64): Capitalise Linux.
31927 (GRUB_MOD_INIT): Gettextizze.
31928 * loader/xnu.c: Include `<grub/i18n.h>'.
31929 (GRUB_MOD_INIT): Gettextizze.
31930 * po/POTFILES: Add `loader/efi/appleloader.c',
31931 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31932 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31933 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31934 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31935 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31936 and `loader/xnu.c'.
31938 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31940 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31942 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31944 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31945 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31946 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31948 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31950 Reset Multiboot 2 support. New loader implements the draft in
31951 /branches/multiboot2 and shares as much code as possible with the
31952 production Multiboot 1 implementation.
31954 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31955 * loader/multiboot2.c: Likewise.
31956 * loader/i386/multiboot_helper.S: Likewise.
31957 * include/multiboot2.h: Replace with latest version from the draft
31958 in /branches/multiboot2.
31960 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31961 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31962 and `loader/multiboot2.c'.
31963 (pkglib_MODULES): Add `multiboot2.mod'.
31964 (multiboot2_mod_SOURCES): New variable.
31965 (multiboot2_mod_LDFLAGS): Likewise.
31966 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31968 * conf/i386-pc.rmk: Likewise.
31970 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31971 (multiboot_mod_SOURCES): Remove variable.
31972 (multiboot_mod_LDFLAGS): Likewise.
31973 (multiboot_mod_CFLAGS): Likewise.
31975 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31976 `<multiboot2.h>' instead of `<multiboot.h>'.
31977 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
31978 (MULTIBOOT_HEADER_MAGIC): New macros.
31980 * loader/multiboot_loader.c (module_version_status): Remove variable.
31981 (find_multi_boot2_header): Remove function.
31982 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
31983 logic. Always check for the Multiboot version we're compiling for.
31984 (grub_cmd_module_loader): Likewise.
31985 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
31986 command instead of `multiboot'.
31988 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31990 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
31991 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
31994 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31995 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31997 Fix breakage introduced with previous commit.
31999 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32001 * normal/handler.c (read_handler_list): Revert part of previous commit
32002 affecting this file.
32003 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32004 (grub_normal_execute): ... here.
32006 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32008 Merge prefix-redefinition-fix branch.
32010 * normal/autofs.c (read_fs_list): Make function capable of being
32011 run multiple times, gracefuly replacing the previous data
32013 * normal/dyncmd.c (read_command_list): Likewise.
32014 * normal/handler.c (read_handler_list): Likewise.
32015 * normal/main.c (read_lists): New function. Calls all the
32016 list reading functions.
32017 (grub_normal_execute): Use read_lists() instead of calling all
32018 list reading functions explicitly. Register read_lists() as a
32019 variable hook attached to ${prefix}.
32021 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32023 Merge crypto branch.
32025 * Makefile.in (pkglib_DATA): Add crypto.lst.
32026 (crypto.lst): New target.
32027 * commands/hashsum.c: New file.
32028 * commands/password.c (check_password): Use grub_crypto_memcmp.
32029 * commands/password_pbkdf2.c: New file.
32030 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32031 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32032 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32033 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32034 -I$(srcdir)/lib/libgcrypt_wrap.
32035 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32036 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32037 password_pbkdf2.mod.
32038 (crypto_mod_SOURCES): New variable.
32039 (crypto_mod_CFLAGS): Likewise.
32040 (crypto_mod_LDFLAGS): Likewise.
32041 (hashsum_mod_SOURCES): New variable.
32042 (hashsum_mod_CFLAGS): Likewise.
32043 (hashsum_mod_LDFLAGS): Likewise.
32044 (pbkdf2_mod_SOURCES): New variable.
32045 (pbkdf2_mod_CFLAGS): Likewise.
32046 (pbkdf2_mod_LDFLAGS): Likewise.
32047 (password_pbkdf2_mod_SOURCES): New variable.
32048 (password_pbkdf2_mod_CFLAGS): Likewise.
32049 (password_pbkdf2_mod_LDFLAGS): Likewise.
32050 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32051 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32052 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32053 Include conf/gcry.rmk.
32054 * include/grub/auth.h: Rewritten.
32055 * include/grub/crypto.h: New file.
32056 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32057 * include/grub/normal.h (read_crypto_list): New prototype.
32058 * lib/crypto.c: New file.
32059 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32060 * lib/pbkdf2.c: Likewise.
32061 * normal/auth.c (grub_auth_strcmp): Removed.
32062 (grub_iswordseparator): Likewise.
32063 (grub_auth_strword): Likewise.
32064 (is_authenticated): Use grub_strword.
32065 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32066 and grub_strword. Pass entered password to authentication callback.
32067 * normal/crypto.c: New file.
32068 * normal/main.c: Call read_crypto_list.
32069 * util/grub-mkpasswd-pbkdf2.c: New file.
32070 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32072 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32074 Fix descent and ascent calculation.
32076 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32077 (options): New option "asce".
32079 (add_char): Ignore invalid glyphs for descent calculation.
32080 Calculate ascent from actual content.
32081 (print_glyphs): Use 'asce'.
32082 (write_font): Likewise. Allow ascent override.
32083 (main): Handle "asce" option.
32085 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32087 * kern/err.c: Include `<grub/i18n.h>'.
32088 (grub_print_error): Add full stop. Gettextizze.
32089 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32090 (grub_bsd_load_elf): Capitalise ELF.
32091 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32092 (grub_cmd_freebsd_module): Likewise.
32093 (grub_cmd_freebsd_module_elf): Likewise.
32094 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32096 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32098 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32099 * commands/search_file.c (HELP_MESSAGE): New macro.
32100 * commands/search_label.c (HELP_MESSAGE): Likewise.
32101 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32102 * po/POTFILES: Add `commands/search_file.c',
32103 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32104 `commands/search.c'.
32106 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32108 * config.rpath: Update from Gnulib.
32110 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32112 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32114 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32116 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32118 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32120 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32121 arguments to fread so that we get a return value in bytes, rather
32122 than something that will normally be rounded down to 0.
32123 Adjust error handling to avoid producing garbage when size_t is not
32124 the same size as long long.
32126 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32128 * util/mkisofs/write.c (padblock_write): Check return value of
32131 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32133 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32136 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32138 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32140 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32141 instead of manual alignment.
32142 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32143 verbose). Avoid attempts to read past end of the device
32144 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32145 but GRUB_DISK_CACHE_SIZE may exceed that).
32147 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32149 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32150 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32153 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32155 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32157 (grub_efi_piwg_device_path): New structure
32158 (grub_efi_piwg_device_path_t): New type.
32159 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32160 (devpath_1): Transform to a structure. All users updated.
32161 (devpath_2): Likewise.
32162 (devpath_3): Likewise.
32163 (devpath_4): Likewise.
32164 (devpath_5): Likewise.
32166 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32168 * loader/efi/appleloader.c: Restored. Update all users.
32170 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32172 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32174 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32175 (struct boot_blocklist): Move from here ...
32176 * include/grub/i386/pc/boot.h [ASM_FILE]
32177 (struct grub_boot_blocklist): ... to here. Update all users.
32178 (setup): Only initialize `start' member of `first_block'
32179 structure. Add assert() calls to verify the other members.
32181 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32182 (generate_image): Fix broken blocklist length initialization.
32183 Add assert() call to verify blocklist `segment' field.
32185 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32187 * loader/efi/appleloader.c: Remove. Update all users.
32189 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32191 * boot/i386/pc/boot.S: Update copyright year.
32192 * boot/i386/pc/cdboot.S: Likewise.
32193 * boot/i386/pc/diskboot.S: Likewise.
32194 * boot/i386/pc/lnxboot.S: Likewise.
32195 * boot/i386/pc/pxeboot.S: Likewise.
32196 * bus/pci.c: Likewise.
32197 * commands/cmp.c: Likewise.
32198 * commands/help.c: Likewise.
32199 * commands/hexdump.c: Likewise.
32200 * commands/i386/pc/halt.c: Likewise.
32201 * commands/i386/pc/play.c: Likewise.
32202 * commands/i386/pc/vbeinfo.c: Likewise.
32203 * commands/ls.c: Likewise.
32204 * commands/test.c: Likewise.
32205 * disk/dmraid_nvidia.c: Likewise.
32206 * disk/i386/pc/biosdisk.c: Likewise.
32207 * disk/ieee1275/nand.c: Likewise.
32208 * disk/ieee1275/ofdisk.c: Likewise.
32209 * disk/lvm.c: Likewise.
32210 * disk/raid.c: Likewise.
32211 * disk/raid6_recover.c: Likewise.
32212 * disk/scsi.c: Likewise.
32213 * fs/affs.c: Likewise.
32214 * fs/cpio.c: Likewise.
32215 * fs/ext2.c: Likewise.
32216 * fs/hfs.c: Likewise.
32217 * fs/iso9660.c: Likewise.
32218 * fs/ntfs.c: Likewise.
32219 * fs/sfs.c: Likewise.
32220 * fs/udf.c: Likewise.
32221 * fs/ufs.c: Likewise.
32222 * fs/xfs.c: Likewise.
32223 * gencmdlist.sh: Likewise.
32224 * genmk.rb: Likewise.
32225 * include/grub/disk.h: Likewise.
32226 * include/grub/efi/api.h: Likewise.
32227 * include/grub/efi/efi.h: Likewise.
32228 * include/grub/efi/pe32.h: Likewise.
32229 * include/grub/elf.h: Likewise.
32230 * include/grub/fs.h: Likewise.
32231 * include/grub/i386/at_keyboard.h: Likewise.
32232 * include/grub/i386/pc/memory.h: Likewise.
32233 * include/grub/i386/pc/vbe.h: Likewise.
32234 * include/grub/i386/pci.h: Likewise.
32235 * include/grub/i386/tsc.h: Likewise.
32236 * include/grub/ieee1275/ieee1275.h: Likewise.
32237 * include/grub/ntfs.h: Likewise.
32238 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32239 * include/grub/sparc64/libgcc.h: Likewise.
32240 * include/grub/symbol.h: Likewise.
32241 * include/grub/types.h: Likewise.
32242 * include/multiboot2.h: Likewise.
32243 * io/gzio.c: Likewise.
32244 * kern/device.c: Likewise.
32245 * kern/disk.c: Likewise.
32246 * kern/efi/efi.c: Likewise.
32247 * kern/efi/mm.c: Likewise.
32248 * kern/elf.c: Likewise.
32249 * kern/file.c: Likewise.
32250 * kern/i386/dl.c: Likewise.
32251 * kern/i386/pc/init.c: Likewise.
32252 * kern/i386/pc/startup.S: Likewise.
32253 * kern/ieee1275/ieee1275.c: Likewise.
32254 * kern/ieee1275/init.c: Likewise.
32255 * kern/main.c: Likewise.
32256 * kern/mm.c: Likewise.
32257 * kern/powerpc/dl.c: Likewise.
32258 * kern/sparc64/dl.c: Likewise.
32259 * kern/x86_64/dl.c: Likewise.
32260 * lib/hexdump.c: Likewise.
32261 * loader/efi/appleloader.c: Likewise.
32262 * loader/i386/ieee1275/linux.c: Likewise.
32263 * loader/i386/pc/chainloader.c: Likewise.
32264 * loader/i386/pc/linux.c: Likewise.
32265 * loader/i386/pc/multiboot2.c: Likewise.
32266 * loader/ieee1275/multiboot2.c: Likewise.
32267 * loader/multiboot2.c: Likewise.
32268 * loader/multiboot_loader.c: Likewise.
32269 * loader/powerpc/ieee1275/linux.c: Likewise.
32270 * normal/completion.c: Likewise.
32271 * normal/menu_entry.c: Likewise.
32272 * partmap/apple.c: Likewise.
32273 * util/grub.d/10_hurd.in: Likewise.
32274 * util/hostfs.c: Likewise.
32275 * video/readers/png.c: Likewise.
32277 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32279 * include/grub/misc.h (GNUC_PREREQ): New macro.
32280 (ATTRIBUTE_ERROR): New macro.
32281 * include/grub/list.h (grub_bad_type_cast_real): Use
32284 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32286 * normal/menu_text.c (print_message): Change messages.
32288 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32290 * normal/menu_entry.c (store_completion): Gettextizze.
32292 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32294 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32296 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32298 * po/POTFILES: Sort correctly.
32300 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32302 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32303 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32304 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32306 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32307 summary. Gettextizze the strings.
32308 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32309 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32310 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32312 (GRUB_MOD_INIT): Remove command name from summary.
32313 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32315 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32316 * term/i386/pc/serial.c (options): Add full stops.
32317 (GRUB_MOD_INIT): Remove command name from the summary.
32319 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32321 * commands/acpi.c: Gettextizze help strings and/or options. Include
32322 `grub/i18n.h' if needed.
32323 * commands/blocklist.c: Likewise.
32324 * commands/boot.c: Likewise.
32325 * commands/cat.c: Likewise.
32326 * commands/cmp.c: Likewise.
32327 * commands/configfile.c: Likewise.
32328 * commands/crc.c: Likewise.
32329 * commands/date.c: Likewise.
32330 * commands/echo.c: Likewise.
32331 * commands/efi/fixvideo.c: Likewise.
32332 * commands/efi/loadbios.c: Likewise.
32333 * commands/gptsync.c: Likewise.
32334 * commands/halt.c: Likewise.
32335 * commands/handler.c: Likewise.
32336 * commands/hdparm.c: Likewise.
32337 * commands/hexdump.c: Likewise.
32338 * commands/i386/cpuid.c: Likewise.
32339 * commands/i386/pc/drivemap.c: Likewise.
32340 * commands/i386/pc/halt.c: Likewise.
32341 * commands/i386/pc/pxecmd.c: Likewise.
32342 * commands/i386/pc/vbeinfo.c: Likewise.
32343 * commands/i386/pc/vbetest.c: Likewise.
32344 * commands/ieee1275/suspend.c: Likewise.
32345 * commands/keystatus.c: Likewise.
32346 * commands/loadenv.c: Likewise.
32347 * commands/ls.c: Likewise.
32348 * commands/lsmmap.c: Likewise.
32349 * commands/lspci.c: Likewise.
32350 * commands/memrw.c: Likewise.
32351 * commands/minicmd.c: Likewise.
32352 * commands/parttool.c: Likewise.
32353 * commands/password.c: Likewise.
32354 * commands/probe.c: Likewise.
32355 * commands/read.c: Likewise.
32356 * commands/reboot.c: Likewise.
32357 * commands/search.c: Likewise.
32358 * commands/sleep.c: Likewise.
32359 * commands/test.c: Likewise.
32360 * commands/true.c: Likewise.
32361 * commands/usbtest.c: Likewise.
32362 * commands/videotest.c: Likewise.
32363 * commands/xnu_uuid.c: Likewise.
32364 * disk/loopback.c: Likewise.
32365 * hello/hello.c: Likewise.
32366 * loader/i386/bsd.c: Likewise.
32367 * term/i386/pc/serial.c: Likewise.
32368 * po/POTFILES: Add new files.
32370 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32372 * term/i386/pc/at_keyboard.c
32373 (keyboard_controller_wait_untill_ready): Rename to ...
32374 (keyboard_controller_wait_until_ready): ... this. Update all users.
32376 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32378 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32379 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32380 string using string width.
32381 * normal/menu_text.c (grub_print_message_indented): Use
32382 grub_print_spaces and not print_spaces.
32383 (print_timeout): Likewise.
32384 (print_spaces): Move to...
32385 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32387 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32389 Import from Gnulib.
32391 * gnulib/getdelim.c: New file.
32392 * gnulib/getline.c: Likewise.
32394 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32396 * include/grub/list.h (grub_assert_fail): Removed.
32397 (grub_bad_type_cast_real): New function.
32398 (grub_bad_type_cast): New macro.
32399 (GRUB_AS_LIST): Use grub_bad_type_cast.
32400 (GRUB_AS_LIST_P): Likewise.
32401 (GRUB_AS_NAMED_LIST): Likewise.
32402 (GRUB_AS_NAMED_LIST_P): Likewise.
32403 (GRUB_AS_PRIO_LIST): Likewise.
32404 (GRUB_AS_PRIO_LIST_P): Likewise.
32405 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32407 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32409 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32412 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32414 * configure.ac: Check for TARGET_CFLAGS initialization before we
32415 initialize it ourselves (sigh).
32416 Move a few modifications to TARGET_CFLAGS to be unconditional
32417 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32420 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32421 * term/i386/pc/at_keyboard.c
32422 (keyboard_controller_wait_untill_ready): Likewise.
32423 (keyboard_controller_led): Rename `led_status' paramter to avoid
32426 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32428 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32431 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32433 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32435 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32437 * normal/menu_text.c (grub_print_message_indented): Prevent
32438 past-the-end-of-array dereference.
32440 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32442 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32443 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32445 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32447 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32448 * normal/main.c (grub_normal_read_line): Remove a space from the
32451 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32453 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32454 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32455 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32456 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32457 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32458 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32459 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32461 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32463 * video/readers/jpeg.c (cmd): Declare.
32464 (grub_cmd_jpegtest): Use `grub_command_t' type.
32465 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32467 (GRUB_MOD_FINI): Use `cmd' to unregister.
32468 * video/readers/png.c (cmd): Declare.
32469 (grub_cmd_pngtest): Use `grub_command_t' type.
32470 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32472 (GRUB_MOD_FINI): Use `cmd' to unregister.
32473 * video/readers/tga.c (cmd): Declare.
32474 (grub_cmd_tgatest): Use `grub_command_t' type.
32475 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32477 (GRUB_MOD_FINI): Use `cmd' to unregister.
32479 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32481 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32483 * kern/corecmd.c (grub_register_core_commands): Likewise.
32484 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32485 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32486 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32487 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32488 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32489 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32490 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32491 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32492 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32493 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32494 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32495 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32496 * normal/handler.c (insert_handler): Likewise.
32497 * normal/main.c (GRUB_MOD_INIT): Likewise.
32498 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32500 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32502 * commands/help.c (grub_cmd_help): Print the command name before the
32504 (GRUB_MOD_INIT): Remove command name from the summary.
32505 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32507 * lib/arg.c (find_long): Print the command name before the summary.
32508 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32510 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32511 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32512 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32513 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32514 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32515 * commands/date.c (GRUB_MOD_INIT): Likewise.
32516 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32517 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32518 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32519 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32520 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32521 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32522 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32523 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32524 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32525 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32526 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32527 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32528 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32529 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32530 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32531 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32532 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32533 * commands/password.c (GRUB_MOD_INIT): Likewise.
32534 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32535 * commands/read.c (GRUB_MOD_INIT): Likewise.
32536 * commands/search.c (GRUB_MOD_INIT): Likewise.
32537 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32538 * commands/test.c (GRUB_MOD_INIT): Likewise.
32539 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32540 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32541 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32542 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32543 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32544 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32545 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32546 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32547 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32548 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32549 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32550 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32551 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32552 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32554 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32556 Use search command for preliminar UUID search.
32558 * commands/search.c: Split into ...
32559 * commands/search_wrap.c: ...this
32560 * commands/search.c: ...and this.
32561 * commands/search_file.c: New file.
32562 * commands/search_label.c: New file.
32563 * commands/search_uuid.c: New file.
32564 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32565 Add commands/search_wrap.c, commands/search_file.c,
32566 commands/search_label.c and commands/search_uuid.c.
32567 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32568 (search_mod_SOURCES): Set to commands/search_wrap.c.
32569 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32571 (search_fs_file_mod_SOURCES): New variable.
32572 (search_fs_file_mod_CFLAGS): Likewise.
32573 (search_fs_file_mod_LDFLAGS): Likewise.
32574 (search_label_mod_SOURCES): Likewise.
32575 (search_label_mod_CFLAGS): Likewise.
32576 (search_label_mod_LDFLAGS): Likewise.
32577 (search_fs_uuid_mod_SOURCES): New variable.
32578 (search_fs_uuid_mod_CFLAGS): Likewise.
32579 (search_fs_uuid_mod_LDFLAGS): Likewise.
32580 (fs_file_mod_SOURCES): Removed.
32581 (fs_file_mod_CFLAGS): Likewise.
32582 (fs_file_mod_LDFLAGS): Likewise.
32583 (fs_uuid_mod_SOURCES): Removed.
32584 (fs_uuid_mod_CFLAGS): Likewise.
32585 (fs_uuid_mod_LDFLAGS): Likewise.
32586 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32587 Set to util/grub-install.in.
32588 * disk/fs_file.c: Removed.
32589 * disk/fs_uuid.c: Likewise.
32590 * include/grub/search.h: New file.
32591 * util/grub-install.in: Handle sparc64.
32592 Create and use load.cfg.
32593 * util/sparc64/ieee1275/grub-install.in: Removed.
32595 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32597 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32598 Ignore return status if CF is cleared.
32599 (grub_biosdisk_get_diskinfo_standard): Likewise.
32601 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32603 * term/i386/pc/at_keyboard.c
32604 (keyboard_controller_wait_untill_ready): New function.
32605 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32606 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32607 for keyboard polling, rather than duplicate the same loop. This
32608 saves a few bytes in code size.
32610 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32612 Support for (pxe[:server[:gateway]]) syntax and
32613 use environment variable for PXE.
32615 * commands/i386/pc/pxecmd.c (options): Removed.
32616 (print_ip): Removed.
32617 (grub_cmd_pxe): Removed
32618 (grub_cmd_pxe_unload): New function.
32619 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32620 (grub_pxe_your_ip): Made static.
32621 (grub_pxe_default_server_ip): Likewise.
32622 (grub_pxe_default_gateway_ip): Likewise.
32623 (grub_pxe_blksize): Likewise.
32624 (parse_ip): New function.
32625 (grub_pxe_open): Support server and gateway specification.
32626 (grub_pxe_close): Free disk->data.
32627 (grub_pxefs_open): Use disk->data.
32628 (grub_pxefs_read): Likewise.
32629 (grub_env_write_readonly): New function.
32630 (set_mac_env): Likewise.
32631 (set_env_limn_ro): Likewise.
32632 (parse_dhcp_vendor): Likewise.
32633 (grub_pxe_detect): Set the environment variables.
32634 (set_ip_env): New function.
32635 (write_ip_env): Likewise.
32636 (grub_env_write_pxe_default_server): Likewise.
32637 (grub_env_write_pxe_default_gateway): Likewise.
32638 (grub_env_write_pxe_blocksize): Likewise.
32639 (GRUB_MOD_INIT(pxe)): Set environment variables.
32640 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32641 (grub_pxe_mac_addr_t): ... this. All users updated.
32642 (grub_pxe_your_ip): Removed.
32643 (grub_pxe_server_ip): Likewise.
32644 (grub_pxe_gateway_ip): Likewise.
32645 (grub_pxe_blksize): Likewise.
32647 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32649 * commands/help.c: Include `<grub/i18n.h>'.
32650 (grub_cmd_help): Gettextizze.
32651 (GRUB_MOD_INIT): Likewise.
32652 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32653 (GRUB_MOD_INIT): Gettextizze.
32654 * commands/search.c: Include `<grub/i18n.h>'.
32655 (options): Gettextizze.
32656 (GRUB_MOD_INIT): Gettextizze.
32657 * lib/arg.c: Include `<grub/i18n.h>'.
32658 (help_options): Gettextizze.
32659 (find_long): Likewise.
32660 (grub_arg_show_help): Likewise.
32661 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32662 (read_command_list): Gettextizze.
32663 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32664 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32666 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32668 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32669 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32670 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32671 (led_status): New variable.
32672 (keyboard_controller_led): New function.
32673 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32674 update led status for caps lock, num lock and scroll lock.
32676 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32678 * util/hostdisk.c (open_device): Fix a comment.
32680 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32682 * util/grub-install.in (host_os): New variable.
32683 * util/i386/efi/grub-install.in (host_os): Likewise.
32685 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32687 * util/mkisofs/write.c (padblock_write): Abort when given an
32688 excedingly large embed image, instead of silently truncating it.
32690 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32692 * include/multiboot.h: Indentation fixes.
32694 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32696 * include/multiboot.h (struct multiboot_aout_symbol_table)
32697 (struct multiboot_elf_section_header_table): New structure
32698 declarations (stolen from GRUB Legacy).
32699 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32702 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32703 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32706 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32708 * include/multiboot.h: Make comments src2texi-friendly.
32710 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32712 For consistency with [multiboot]/docs/boot.S.
32714 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32715 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32716 (MULTIBOOT_MAGIC2): Rename from this ...
32717 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32719 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32721 * include/multiboot.h: Remove `<grub/types.h>'.
32722 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32723 types. Update all users.
32725 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32727 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32728 `couldn't' and `can not' by `cannot'.
32729 * commands/i386/pc/drivemap.c: Likewise.
32730 * disk/ata.c: Likewise.
32731 * disk/ieee1275/nand.c: Likewise.
32732 * fs/affs.c: Likewise.
32733 * fs/fat.c: Likewise.
32734 * fs/hfs.c: Likewise.
32735 * fs/hfsplus.c: Likewise.
32736 * fs/iso9660.c: Likewise.
32737 * fs/jfs.c: Likewise.
32738 * fs/minix.c: Likewise.
32739 * fs/reiserfs.c: Likewise.
32740 * fs/sfs.c: Likewise.
32741 * fs/udf.c: Likewise.
32742 * fs/ufs.c: Likewise.
32743 * fs/xfs.c: Likewise.
32744 * loader/powerpc/ieee1275/linux.c: Likewise.
32745 * loader/sparc64/ieee1275/linux.c: Likewise.
32746 * util/grub-probe.c: Likewise.
32747 * util/misc.c: Likewise.
32749 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32751 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32753 * commands/acpi.c: Likewise.
32754 * commands/blocklist.c: Likewise.
32755 * commands/efi/loadbios.c: Likewise.
32756 * commands/i386/pc/drivemap.c: Likewise.
32757 * commands/loadenv.c: Likewise.
32758 * commands/memrw.c: Likewise.
32759 * commands/password.c: Likewise.
32760 * commands/videotest.c: Likewise.
32761 * disk/ata.c: Likewise.
32762 * disk/ata_pthru.c: Likewise.
32763 * disk/dmraid_nvidia.c: Likewise.
32764 * disk/ieee1275/nand.c: Likewise.
32765 * disk/ieee1275/ofdisk.c: Likewise.
32766 * disk/loopback.c: Likewise.
32767 * disk/lvm.c: Likewise.
32768 * disk/mdraid_linux.c: Likewise.
32769 * disk/raid.c: Likewise.
32770 * disk/raid6_recover.c: Likewise.
32771 * disk/scsi.c: Likewise.
32772 * efiemu/main.c: Likewise.
32773 * efiemu/mm.c: Likewise.
32774 * efiemu/pnvram.c: Likewise.
32775 * efiemu/symbols.c: Likewise.
32776 * font/font.c: Likewise.
32777 * fs/cpio.c: Likewise.
32778 * fs/hfsplus.c: Likewise.
32779 * fs/iso9660.c: Likewise.
32780 * fs/jfs.c: Likewise.
32781 * fs/minix.c: Likewise.
32782 * fs/ntfs.c: Likewise.
32783 * fs/ntfscomp.c: Likewise.
32784 * fs/reiserfs.c: Likewise.
32785 * fs/ufs.c: Likewise.
32786 * fs/xfs.c: Likewise.
32787 * gettext/gettext.c: Likewise.
32788 * include/grub/auth.h: Likewise.
32789 * kern/elf.c: Likewise.
32790 * kern/file.c: Likewise.
32791 * kern/ieee1275/init.c: Likewise.
32792 * kern/ieee1275/mmap.c: Likewise.
32793 * kern/ieee1275/openfw.c: Likewise.
32794 * kern/powerpc/dl.c: Likewise.
32795 * kern/sparc64/dl.c: Likewise.
32796 * lib/arg.c: Likewise.
32797 * loader/i386/bsd.c: Likewise.
32798 * loader/i386/bsdXX.c: Likewise.
32799 * loader/i386/efi/linux.c: Likewise.
32800 * loader/i386/efi/xnu.c: Likewise.
32801 * loader/i386/ieee1275/linux.c: Likewise.
32802 * loader/i386/linux.c: Likewise.
32803 * loader/i386/multiboot.c: Likewise.
32804 * loader/i386/pc/linux.c: Likewise.
32805 * loader/i386/pc/multiboot2.c: Likewise.
32806 * loader/i386/xnu.c: Likewise.
32807 * loader/ieee1275/multiboot2.c: Likewise.
32808 * loader/macho.c: Likewise.
32809 * loader/machoXX.c: Likewise.
32810 * loader/multiboot2.c: Likewise.
32811 * loader/multiboot_loader.c: Likewise.
32812 * loader/powerpc/ieee1275/linux.c: Likewise.
32813 * loader/sparc64/ieee1275/linux.c: Likewise.
32814 * loader/xnu.c: Likewise.
32815 * loader/xnu_resume.c: Likewise.
32816 * mmap/i386/pc/mmap.c: Likewise.
32817 * normal/menu_viewer.c: Likewise.
32818 * partmap/acorn.c: Likewise.
32819 * partmap/amiga.c: Likewise.
32820 * partmap/apple.c: Likewise.
32821 * script/lexer.c: Likewise.
32822 * term/gfxterm.c: Likewise.
32823 * term/i386/pc/serial.c: Likewise.
32824 * term/i386/pc/vga.c: Likewise.
32825 * term/ieee1275/ofconsole.c: Likewise.
32826 * term/terminfo.c: Likewise.
32827 * video/bitmap.c: Likewise.
32828 * video/efi_gop.c: Likewise.
32829 * video/efi_uga.c: Likewise.
32830 * video/fb/video_fb.c: Likewise.
32831 * video/i386/pc/vbe.c: Likewise.
32832 * video/readers/tga.c: Likewise.
32833 * video/video.c: Likewise.
32835 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32837 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32838 * commands/lspci.c: Likewise.
32839 * commands/probe.c: Likewise.
32840 * commands/xnu_uuid.c: Likewise.
32841 * conf/i386-coreboot.rmk: Likewise.
32842 * conf/i386-efi.rmk: Likewise.
32843 * conf/i386-ieee1275.rmk: Likewise.
32844 * conf/i386-pc.rmk: Likewise.
32845 * conf/powerpc-ieee1275.rmk: Likewise.
32846 * conf/sparc64-ieee1275.rmk: Likewise.
32847 * conf/x86_64-efi.rmk: Likewise.
32848 * fs/i386/pc/pxe.c: Likewise.
32849 * gettext/gettext.c: Likewise.
32850 * include/grub/efi/graphics_output.h: Likewise.
32851 * include/grub/i386/pc/memory.h: Likewise.
32852 * kern/env.c: Likewise.
32853 * kern/i386/qemu/startup.S: Likewise.
32854 * lib/i386/pc/biosnum.c: Likewise.
32855 * lib/i386/relocator.c: Likewise.
32856 * lib/i386/relocator_asm.S: Likewise.
32857 * lib/relocator.c: Likewise.
32858 * loader/i386/bsd.c: Likewise.
32859 * loader/i386/multiboot.c: Likewise.
32860 * loader/i386/pc/chainloader.c: Likewise.
32861 * loader/i386/xnu.c: Likewise.
32862 * loader/xnu.c: Likewise.
32863 * normal/main.c: Likewise.
32864 * normal/menu_text.c: Likewise.
32865 * util/getroot.c: Likewise.
32866 * util/grub-mkconfig_lib.in: Likewise.
32867 * util/grub.d/00_header.in: Likewise.
32868 * util/i386/pc/grub-mkimage.c: Likewise.
32869 * util/mkisofs/eltorito.c: Likewise.
32870 * util/mkisofs/exclude.h: Likewise.
32871 * util/mkisofs/hash.c: Likewise.
32872 * util/mkisofs/iso9660.h: Likewise.
32873 * util/mkisofs/joliet.c: Likewise.
32874 * util/mkisofs/mkisofs.c: Likewise.
32875 * util/mkisofs/mkisofs.h: Likewise.
32876 * util/mkisofs/multi.c: Likewise.
32877 * util/mkisofs/name.c: Likewise.
32878 * util/mkisofs/rock.c: Likewise.
32879 * util/mkisofs/tree.c: Likewise.
32880 * util/mkisofs/write.c: Likewise.
32881 * video/efi_gop.c: Likewise.
32883 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32885 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32888 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32890 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32891 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32893 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32895 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32896 (GRUB_MOD_INIT(memrw)): Update help line.
32898 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32900 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32901 Use grub_extcmd_t. All users updated.
32902 (options): New variable.
32903 (grub_cmd_read): Restructure for readability. Support "-v" option.
32904 (grub_cmd_write): Restructure for readability.
32906 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32908 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32910 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32912 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32913 with the actual contents of the correspondending make variable.
32914 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32915 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32916 specifying `*.lst' and `efiemu??.o'
32918 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32920 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32921 after function name.
32922 Noticed by Rene Engelhard <rene@debian.org>.
32924 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32926 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32927 (options): New variable.
32928 (iospace): Likewise.
32929 (grub_lspci_iter): List IO spaces if "-i" was given.
32930 (grub_cmd_lspci): Parse options.
32931 (GRUB_MOD_INIT(lspci)): Use extcmd.
32932 (GRUB_MOD_FINI(lspci)): Likewise.
32934 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32936 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32937 `function' keyword.
32938 Patch by Tony Mancill <tmancill@debian.org>.
32940 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32942 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32943 (grub_uhci_portstatus): Likewise.
32944 (grub_uhci_portstatus): Add necessary delay.
32945 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32947 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32949 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32950 (GRUB_MOD_INIT): Likewise.
32951 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32952 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32953 * commands/echo.c (options): Fix capitalizations and/or full stops.
32954 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32955 (enable_rom_area): Likewise.
32956 (GRUB_MOD_INIT): Likewise.
32957 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32958 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32959 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32960 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32961 * commands/hexdump.c (options): Likewise.
32962 * commands/i386/cpuid.c (options): Likewise.
32963 (GRUB_MOD_INIT): Likewise.
32964 * commands/i386/pc/drivemap.c (options): Likewise.
32965 (GRUB_MOD_INIT): Likewise.
32966 * commands/i386/pc/halt (options): Likewise.
32967 (GRUB_MOD_INIT): Likewise.
32968 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32969 * commands/i386/pc/pxecmd.c (options): Likewise.
32970 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32971 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32972 * commands/keystatus.c (options): Likewise.
32973 (GRUB_MOD_INIT): Likewise.
32974 * commands/loadenv.c (options): Likewise.
32975 * commands/ls.c (options): Likewise.
32976 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32977 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32978 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32979 * commands/parttool.c (helpmsg): Likewise.
32980 * commands/probe.c (options): Likewise.
32981 * commands/read.c (GRUB_MOD_INIT): Likewise.
32982 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
32983 * commands/search.c (options): Likewise.
32984 * commands/sleep.c (options): Likewise.
32985 * commands/test.c (GRUB_MOD_INIT): Likewise.
32986 * commands/true.c (GRUB_MOD_INIT): Likewise.
32987 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
32988 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
32989 * lib/arg.c (help_options): Likewise.
32990 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
32992 * po/POTFILES: Add `commands/loadenv.c'.
32994 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
32996 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
32997 instead of specifying them explicit.
32999 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33001 * NEWS: Add grub-probe support for GNU/Hurd.
33003 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33005 * NEWS: gettext was added after 1.97.
33007 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33009 * util/mkisofs/msdos_partition.h: New file (based on
33010 include/grub/msdos_partition.h).
33011 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33012 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33013 (ld_options, main): Recognize --protective-msdos-label.
33014 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33015 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33016 (padblock_write): If `use_protective_msdos_label' is set, patch a
33017 protective DOS-style label in the output image.
33019 * util/grub-mkrescue.in: Use --protective-msdos-label.
33021 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33023 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33026 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33028 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33030 (ld_options, main): Recognize `--embedded-boot'.
33031 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33033 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33034 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33035 (padblock_write): Likewise. Rewrite to support embedded boot image.
33037 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33038 for BIOS-based disk boot instead of only ElTorito.
33040 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33042 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33043 build (not needed for bootstrap).
33045 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33047 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33048 from i386-pc build (not needed for bootstrap).
33049 Rewrite a pair of strings.
33051 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33053 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33055 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33057 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33059 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33061 * kern/env.c (grub_env_context_open): Mark exported variable for
33064 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33066 * kern/env.c (grub_env_export): Create nonexistent variables before
33069 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33071 * include/grub/auth.h: Include `<grub/i18n.h>'.
33072 (GRUB_GET_PASSWORD): Gettextizze string.
33073 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33075 (grub_utf8_to_ucs4_alloc): Fix indentation.
33076 (grub_print_ucs4): Likewise.
33077 (grub_getstringwidth): Likewise.
33078 (print_message_indented): New declaration.
33079 * normal/auth.c: Include `<grub/i18n.h>'.
33080 (grub_auth_check_authentication): Gettexttize string.
33081 * normal/cmdline.c: Include `<grub/i18n.h>'.
33082 (grub_cmdline_get): Gettextizze.
33083 * normal/color.c: Include `<grub/i18n.h>'.
33084 (grub_parse_color_name_pair): Gettexttize strings.
33085 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33086 string (use `print_message_indented').
33087 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33088 `include/grub/normal.h'.
33089 (print_message_indented): Renamed to ...
33090 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33091 used in normal/main.c).
33092 (print_message): Use `grub_print_message_indented' instead of
33093 `print_message_indented'.
33094 (print_timeout): Likewise.
33095 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33096 (grub_normal_print_device_info): Gettexttize strings.
33097 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33099 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33101 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33102 of arguments. Return number of tokens and not arguments. All users
33105 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33107 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33108 non-MSDOS paritions.
33110 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33112 * include/grub/types.h (UNUSED): Removed since it conflicts with
33113 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33114 Reported by Grégoire Sutre.
33116 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33118 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33119 (grub_print_ucs4_alloc): Likewise.
33120 (grub_getstringwidth): Likewise.
33121 * normal/main.c (grub_normal_init_page): Gettextize version string.
33122 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33123 (getstringwidth): Renamed to ...
33124 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33125 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33126 (grub_print_ucs4): Remove `static' qualifer (now used in
33128 * po/POTFILES: Add normal/main.c.
33130 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33132 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33133 (print_message_indented): Add `margin_left' and `margin_right'
33135 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33137 (print_timeout): Use `print_message_indented' to print the message.
33138 Deletes `second_stage' parameter.
33139 (run_menu): Update `print_timeout' calls.
33141 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33143 Fix console palette on OpenFirmware.
33145 * term/ieee1275/ofconsole.c (MAX): Removed.
33146 (colors): Redone based on VGA palette.
33147 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33148 colors are supported.
33149 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33151 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33153 Fix potential EfiEmu double prepare.
33155 * efiemu/main.c (prepared): New variable
33156 (grub_efiemu_unload): Set prepare to '0'.
33157 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33159 set_virtual_address_map support.
33161 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33163 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33165 (grub_efiemu_crc32): Likewise.
33166 (grub_efiemu_crc64): Likewise.
33167 (grub_efiemu_set_virtual_address_map): Likewise.
33168 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33170 (grub_autoefi_set_virtual_address_map): Likewise.
33171 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33172 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33173 Restructure flow to accomodate it.
33174 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33175 (grub_efiemu_crc): Recompute CRC32.
33176 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33177 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33178 * efiemu/symbols.c (relocated_handle): New variable.
33179 (grub_efiemu_free_syms): Free relocated_handle.
33180 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33181 (grub_efiemu_write_sym_markers): New function.
33182 (grub_efiemu_set_virtual_address_map): Likewise.
33184 Newer XNU parameters.
33186 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33187 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33188 (grub_xnu_fill_devicetree): New prototype.
33189 (grub_xnu_heap_real_start): New variable.
33190 * loader/xnu.c (get_name_ptr): New function.
33191 (grub_xnu_load_driver): Fill namelen and name.
33193 64-bit xnu support.
33195 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33196 and 'loader/macho64.c'.
33197 * conf/i386-pc.rmk: Likewise.
33198 * conf/x86_64-efi.rmk: Likewise.
33199 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33200 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33201 * include/grub/macho.h (grub_macho_segment64): New structure.
33202 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33203 (grub_macho_size32): ... to this.
33204 (grub_macho32_get_entry_point): Renamed from ...
33205 (grub_macho_get_entry_point32): ... to this.
33206 (grub_macho_contains_macho64): New prototype.
33207 (grub_macho_size64): Likewise.
33208 (grub_macho_get_entry_point64): Likewise.
33209 (grub_macho32_load): Renamed from ...
33210 (grub_macho_load32): ... to this.
33211 (grub_macho32_filesize): Renamed from ...
33212 (grub_macho_filesize32): ... to this.
33213 (grub_macho32_readfile): Renamed from ...
33214 (grub_macho_readfile32): ... to this.
33215 (grub_macho_filesize64): New prototype.
33216 (grub_macho_readfile64): Likewise.
33217 (grub_macho_parse32): Likewise.
33218 (grub_macho_parse64): Likewise.
33219 * loader/macho.c: Split into ...
33220 * loader/machoXX.c: ... and this. Replace 32 with XX.
33221 * loader/macho32.c: New file.
33222 * loader/macho64.c: Likewise.
33223 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33224 (grub_cmd_xnu_kernel): Make 32-bit only.
33225 (grub_cmd_xnu_kernel64): New function.
33226 (grub_xnu_load_driver): Support Mach-O 64.
33227 (grub_cmd_xnu_mkext): Likewise.
33228 * util/grub.d/30_os-prober.in (osx_entry): New function.
33229 Generate entries for 64-bit boot too.
33231 Eliminate ad-hoc tree format in XNU and EfiEmu.
33233 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33234 * efiemu/pnvram.c: Rewritten to use environment variables.
33237 Inline utf16_to_utf8.
33239 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33240 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33242 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33244 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33245 * commands/usbtest.c (grub_usb_get_string): ... move here.
33246 (usb_print_str): Fix error handling.
33247 * include/grub/usb.h (grub_usb_get_string): Remove.
33249 UTF-8 to UTF-16 transformation.
33251 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33252 (charset_mod_SOURCES): New variable.
33253 (charset_mod_CFLAGS): Likewise.
33254 (charset_mod_LDFLAGS): Likewise.
33255 * include/grub/utf.h: New file.
33256 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33258 Support for device properties.
33260 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33261 (grub_xnu_devprop_device_header): Likewise.
33262 (grub_xnu_devprop_device_descriptor): Likewise.
33263 (grub_xnu_devprop_add_device): New prototype.
33264 (grub_xnu_devprop_remove_device): Likewise.
33265 (grub_xnu_devprop_remove_property): Likewise.
33266 (grub_xnu_devprop_add_property_utf8): Likewise.
33267 (grub_xnu_devprop_add_property_utf16): Likewise.
33268 (grub_cpu_xnu_init): Likewise.
33269 (grub_cpu_xnu_fini): Likewise.
33270 (grub_cpu_xnu_unload): Likewise.
33271 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33272 (property_descriptor): Likewise.
33273 (devices): New variable.
33274 (grub_xnu_devprop_remove_property): New function.
33275 (grub_xnu_devprop_add_device): Likewise.
33276 (grub_xnu_devprop_remove_device): Likewise.
33277 (grub_xnu_devprop_add_property): Likewise.
33278 (grub_xnu_devprop_add_property_utf8): Likewise.
33279 (grub_xnu_devprop_add_property_utf16): Likewise.
33280 (hextoval): Likewise.
33281 (grub_cpu_xnu_fill_devprop): Likewise.
33282 (grub_cmd_devprop_load): Likewise.
33283 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33284 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33285 (cmd_devprop_load): New variable.
33286 (grub_cpu_xnu_init): New function.
33287 (grub_cpu_xnu_fini): Likewise.
33288 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33289 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33290 (grub_cmd_xnu_devtree): Likewise.
33291 (hextoval): New function.
33292 (unescape): Likewise.
33293 (grub_xnu_fill_devicetree): Likewise.
33295 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33296 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33298 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33300 Workaround for broken ATI VBE.
33302 * video/i386/pc/vbe.c (last_set_mode): New variable.
33303 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33304 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33305 (grub_video_vbe_setup): Don't check for reserved flag.
33307 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33309 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33310 the `find' command.
33312 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33314 UUID support for HFS.
33316 * fs/hfs.c (grub_hfs_uuid): New function.
33317 (grub_hfs_fs): New value .uuid.
33318 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33320 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33322 Fix a segfault with parsing unknown long options.
33324 * util/grub-mkrelpath.c (options): Zero terminate it.
33326 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33328 * include/grub/misc.h (grub_puts): New declaration.
33329 (grub_puts_): Likewise.
33330 * kern/misc.c (grub_puts): New definition.
33331 (grub_puts_): Likewise.
33333 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33335 * util/grub-probe.c (probe): Improve error message.
33337 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33339 * loader/i386/multiboot_elfxx.c
33340 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33343 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33345 Relocator framework
33347 * loader/i386/xnu_helper.S: Removed. All users updated.
33348 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33349 (relocator_mod_SOURCES): New variable.
33350 (relocator_mod_CFLAGS): Likewise.
33351 (relocator_mod_LDFLAGS): Likewise.
33352 (relocator_mod_ASFLAGS): Likewise.
33353 * conf/x86_64.rmk: Likewise.
33354 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33355 (grub_multiboot_payload_entry_offset): Likewise.
33356 (grub_multiboot_forward_relocator): Likewise.
33357 (grub_multiboot_forward_relocator_end): Likewise.
33358 (grub_multiboot_backward_relocator): Likewise.
33359 (grub_multiboot_backward_relocator_end): Likewise.
33360 (grub_multiboot_payload_eip): New variable.
33361 (grub_multiboot_payload_orig): Likewise.
33362 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33363 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33364 * include/grub/i386/memory.h
33365 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33366 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33367 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33368 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33369 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33370 * include/grub/i386/relocator.h: New file.
33371 * include/grub/x86_64/relocator.h: Likewise.
33372 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33373 (XNU_RELOCATOR): New macro.
33374 (grub_xnu_launcher_start): Remove.
33375 (grub_xnu_launcher_end): Likewise.
33376 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33377 (grub_xnu_heap_real_start): Remove.
33378 (grub_xnu_heap_start): Change to void *. All users updated.
33379 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33380 * lib/i386/relocator.c: New file.
33381 * lib/i386/relocator_asm.S: Likewise.
33382 * lib/i386/relocator_backward.S: Likewise.
33383 * lib/mips/relocator.c: Likewise.
33384 * lib/mips/relocator_asm.S: Likewise.
33385 * lib/relocator.c: Likewise.
33386 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33388 (playground): Likewise.
33389 (grub_multiboot_payload_orig): New variable.
33390 (grub_multiboot_payload_dest): Likewise.
33391 (grub_multiboot_payload_size): Likewise.
33392 (grub_multiboot_payload_eip): Likewise.
33393 (grub_multiboot_payload_esp): Likewise.
33394 (grub_multiboot_boot): Use grub_relocator32_boot.
33395 (grub_multiboot_unload): Free relocators.
33396 (grub_multiboot): Setup stack. Use relocators.
33397 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33398 (grub_multiboot_load_elfXX): Use relocators.
33399 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33400 (grub_multiboot_payload_size): Likewise.
33401 (grub_multiboot_payload_dest): Likewise.
33402 (grub_multiboot_payload_entry_offset): Likewise.
33403 (grub_multiboot_forward_relocator): Likewise.
33404 (grub_multiboot_backward_relocator): Likewise.
33405 (grub_multiboot_real_boot): Likewise.
33406 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33407 (grub_xnu_entry_point): Likewise.
33408 (grub_xnu_arg1): Likewise.
33409 (grub_xnu_stack): Likewise.
33410 (grub_xnu_launch): Removed.
33411 (grub_xnu_boot_resume): New function.
33412 (grub_xnu_boot): Use relocators.
33413 * loader/i386/xnu_helper.S: Removed.
33414 * loader/xnu.c (grub_xnu_heap_start): New variable.
33415 (grub_xnu_heap_size): Likewise.
33416 (grub_xnu_heap_malloc): Use relocators.
33417 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33419 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33421 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33424 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33426 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33427 GRUB_ERR_NONE before calling grub_env_set.
33429 2009-12-12 Robert Millan <rmh@aybabtu.com>
33431 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33432 * genmk.rb (video): New variable.
33433 (CLEANFILES, VIDEOFILES): Add #{video}.
33434 (#{video}): New target rule.
33435 * genvideolist.sh: New file.
33436 * Makefile.in (pkglib_DATA): Add video.lst.
33437 (video.lst): New target rule.
33438 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33440 * util/grub.d/30_os-prober.in: Replace `vbe' with
33441 ${GRUB_VIDEO_BACKEND}.
33443 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33445 * THANKS: Add David Miller.
33447 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33449 libpciaccess support.
33451 * Makefile.in (LIBPCIACCESS): New variable.
33452 (enable_grub_emu_pci): Likewise.
33453 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33454 util/pci.c and commands/lspci.c.
33455 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33456 * configure.ac (grub-emu-pci): New option.
33457 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33458 (grub_pci_device_unmap_range): Likewise.
33459 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33460 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33461 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33462 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33463 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33464 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33465 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33466 * include/grub/pciutils.h: New file.
33467 * util/pci.c: Likewise.
33469 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33471 * util/misc.c: Don't include <errno.h> twice.
33473 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33475 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33476 name in an error message.
33477 (grub_biosdisk_rw): Likewise.
33479 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33481 Eliminate NTFS 4Gib barrier.
33483 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33484 (read_run_data): Likewise.
33485 (grub_ntfs_read_run_list): Likewise.
33486 (grub_ntfs_read_block): Likewise.
33487 (grub_ntfs_iterate_dir): Likewise.
33488 (read_mft): Likewise.
33489 (read_data): Likewise.
33491 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33492 to avoid 64-bit division
33493 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33494 (grub_ntfs_rlst): Use grub_disk_addr_t.
33496 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33498 Eliminate grub-fstest 4Gib barrier.
33500 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33501 (read_file): Fix error reporting.
33503 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33505 Eliminate hexdump 4Gib barrier.
33507 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33508 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33510 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33512 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33515 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33517 Remove miscellaneous files in distclean target.
33519 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33521 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33523 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33524 if they're already set. This resolves the conflict between my
33525 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33526 fixing the --grub-probe option again.
33527 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33528 change on 2009-10-06, so that we now once again source
33529 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33531 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33533 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33534 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33535 `util/devicemap.c'.
33537 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33539 * include/grub/misc.h (grub_printf_): New declaration.
33540 * kern/misc.c (grub_printf_): New definition.
33541 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33542 instead of `grub_printf' and `_'.
33543 * normal/menu_entry.c (store_completion): Likewise.
33545 (grub_menu_entry_run): Likewise.
33546 * normal/menu_text.c (grub_wait_after_message): Likewise.
33547 (notify_booting): Likewise.
33548 (notify_fallback): Likewise.
33549 (notify_execution_failure): Likewise.
33551 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33553 * configure.ac: Check for vasprintf.
33554 * util/misc.c (asprintf): Move allocation from here ...
33555 (vasprintf): ... to here. New function.
33556 (xasprintf): New function.
33557 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33559 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33560 * util/grub-mkfont.c (write_font): Likewise.
33561 * util/grub-probe.c (probe): Likewise.
33562 * util/hostdisk.c (make_device_name): Likewise.
33564 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33566 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33567 anything even prefixed with 'cdrom' as a cdrom.
33569 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33571 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33574 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33576 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33577 grub_gettext_msg_list.
33578 (grub_gettext_gettranslation_from_position): Return const char *
33580 (grub_gettext_translate): Add the translated strings into a list,
33581 returns from the list if existing there.
33582 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33583 (grub_gettext_delete_list): Delete the list.
33584 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33585 lang environment variable is changed.
33586 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33588 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33590 Rename kernel.mod to kernel.img.
33592 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33593 (kernel_mod_EXPORTS): Rename to ...
33594 (kernel_img_EXPORTS): ... this.
33595 (kernel_mod_SOURCES): Rename to ...
33596 (kernel_img_SOURCES): ... this.
33597 (kernel_mod_HEADERS): Rename to ...
33598 (kernel_img_HEADERS): ... this. All users updated.
33599 (kernel_mod_CFLAGS): Rename to ...
33600 (kernel_img_CFLAGS): ... this.
33601 (kernel_mod_ASFLAGS): Rename to ...
33602 (kernel_img_ASFLAGS): ... this.
33603 (kernel_mod_LDFLAGS): Rename to ...
33604 (kernel_img_LDFLAGS): ... this.
33605 * conf/x86_64-efi.rmk: Likewise.
33606 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33607 (read_kernel_image): ... this. All users updated.
33608 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33610 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33612 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33613 (print_spaces): New function.
33614 (grub_print_ucs4): New function.
33615 (getstringwidth): New function.
33616 (print_message_indented): New function.
33617 (print_message): Gettexttize strings using print_message_indented.
33618 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33620 (get_entry_number): Gettextize and uses dynamic terminal width.
33621 (notify_booting, notify_fallback, notify_execution_failure):
33623 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33626 (grub_menu_entry_run): Likewise.
33627 * PO/POTFILES: Add normal/menu_entry.c.
33629 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33631 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33633 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33635 * util/grub-install.in: Install gettext .mo files.
33636 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33638 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33640 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33643 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33645 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33646 non-firmware-dependant one in realmode.S takes precedence.
33648 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33650 * commands/halt.c: Replace misc arch-specific headers with
33652 * commands/reboot.c: Likewise.
33653 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33655 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33656 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33657 (kernel_img_SOURCES): ... to here.
33659 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33660 * include/grub/i386/pc/init.h: Likewise.
33661 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33662 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33664 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33666 * include/grub/i386/halt.h: Remove.
33667 * include/grub/i386/reboot.h: Likewise.
33669 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33671 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33673 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33674 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33675 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33677 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33678 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33679 (usage): Add missing comma in printf.
33681 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33683 Use the same reboot approach on i386 coreboot and qemu as we do on
33686 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33687 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33688 * kern/i386/reboot.c: Remove.
33689 * include/grub/i386/reboot.h (grub_reboot): Export function.
33690 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33691 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33692 0xf000:0xfff0 instead of 0xffff:0x0000.
33693 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33694 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33696 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33698 Fix $srcdir != $objdir build.
33700 * Makefile.in (po/%.po): Rewrite as ...
33701 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33703 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33705 Fix GNU/Hurd grub-install crash.
33706 * util/grub-probe.c (probe): Try to access `path' only when it is not
33709 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33711 Correct module naming.
33713 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33714 (GRUB_MOD_INIT(efi_uga)): ... to this
33715 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33716 (GRUB_MOD_FINI(efi_uga)): ... to this
33717 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33718 (GRUB_MOD_INIT(efi_gop)): ... to this
33719 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33720 (GRUB_MOD_FINI(efi_gop)): ... to this
33722 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33724 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33726 (usage): Translate `arg' strings using gettext().
33727 Thanks to Jordi Mallach for the suggestion.
33729 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33731 GOP support. Based on patch from Bean
33732 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33734 * video/efi_gop.c: New file.
33735 * include/grub/efi/graphics_output.h: Likewise.
33736 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33737 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33739 * conf/x86_64-efi.rmk: Likewise.
33741 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33743 Rename efi_fb to efi_uga.
33745 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33747 (efi_fb_mod_SOURCES): Rename this ...
33748 (efi_uga_mod_SOURCES): ... to this.
33749 (efi_fb_mod_CFLAGS): Rename this ...
33750 (efi_uga_mod_CFLAGS): ... to this.
33751 (efi_fb_mod_LDFLAGS): Rename this ...
33752 (efi_uga_mod_LDFLAGS): ... to this.
33753 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33755 (efi_fb_mod_SOURCES): Rename this ...
33756 (efi_uga_mod_SOURCES): ... to this.
33757 (efi_fb_mod_CFLAGS): Rename this ...
33758 (efi_uga_mod_CFLAGS): ... to this.
33759 (efi_fb_mod_LDFLAGS): Rename this ...
33760 (efi_uga_mod_LDFLAGS): ... to this.
33761 * video/efi_fb.c: Move this ...
33762 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33764 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33766 * po/README: New file. Explain our PO file workflow.
33768 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33770 * po/ChangeLog: Remove. Move relevant entries back to ...
33771 * ChangeLog: ... here.
33772 * po/ca.po: Remove (now handled by TLP).
33773 * po/id.po: Likewise.
33774 * po/zh_CN.po: Likewise.
33775 * Makefile.in (LINGUAS): Initialize in a way that supports
33778 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33780 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33781 reliing on po/LINGUAS.
33782 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33783 (po/%.po): ... this.
33785 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33787 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33788 (main): Use `program_name' instead of nonexistent `progname'.
33790 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33792 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33793 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33795 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33797 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33799 * conf/i386-efi.rmk: Likewise.
33800 * conf/i386-ieee1275.rmk: Likewise.
33801 * conf/powerpc-ieee1275.rmk: Likewise.
33802 * conf/sparc64-ieee1275.rmk: Likewise.
33803 * conf/x86_64-efi.rmk: Likewise.
33805 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33807 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33809 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33811 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33813 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33815 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33816 (grub_mkdevicemap_SOURCES): New variable.
33817 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33818 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33819 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33820 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33821 (grub_mkdevicemap_SOURCES): Remove.
33822 * conf/i386-efi.rmk: Likewise.
33823 * conf/i386-ieee1275.rmk: Likewise.
33824 * conf/i386-pc.rmk: Likewise.
33825 * conf/powerpc-ieee1275.rmk: Likewise.
33826 * conf/sparc64-ieee1275.rmk: Likewise.
33827 * conf/x86_64-efi.rmk: Likewise.
33828 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33829 (usage): Fix strings to use `program_name'.
33830 (main): Initialize gettext.
33831 * util/grub-editenv.c: Likewise.
33832 * util/grub-emu.c: Likewise.
33833 * util/grub-fstest.c: Likewise.
33834 * util/grub-mkdevicemap.c: Likewise.
33835 * util/grub-mkfont.c: Likewise.
33836 * util/grub-mkrelpath.c: Likewise.
33837 * util/grub-pe2elf.c: Likewise.
33838 * util/grub-probe.c: Likewise.
33839 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33840 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33841 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33843 * util/misc.c: Include `"progname.h"'.
33844 (progname): Remove variable.
33845 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33847 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33849 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33850 printf and print a newline after the menuentry header line.
33851 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33853 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33855 autoconf >= 2.60 support $(localedir).
33857 * INSTALL: Note that autoconf 2.60 is required.
33858 * configure.ac (AC_PREREQ): Bump to 2.60.
33859 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33860 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33862 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33864 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33867 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33869 * normal/main.c (grub_normal_read_line): Fix off-by-one
33872 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33874 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33875 "parser.grub" in grub_command_execute() call.
33877 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33879 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33880 * conf/i386-efi.rmk: Likewise.
33881 * conf/i386-ieee1275.rmk: Likewise.
33882 * conf/i386-pc.rmk: Likewise.
33883 * conf/powerpc-ieee1275.rmk: Likewise.
33884 * conf/sparc64-ieee1275.rmk: Likewise.
33885 * conf/x86_64-efi.rmk: Likewise.
33886 * gettext/gettex.c: Include <grub/i18n.h>.
33887 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33889 * include/grub/i18n.h: ... to here
33890 * include/grub/i18n.h: ... to here.
33891 * kern/misc.c: Include <grub/i18n.h>
33892 (grub_gettext_dummy): Move above user.
33894 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33896 * util/Makefile.in (install-local): Convert a `for' into a normal
33899 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33901 * autogen.sh: Add automake call.
33902 * config.guess: Remove.
33903 * config.sub: Likewise.
33904 * install-sh: Likewise.
33906 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33908 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33910 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33912 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33913 function to a normal shell `for'.
33915 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33917 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33919 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33921 * util/grub-mkrelpath.c: New file.
33922 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33923 (grub_mkrelpath_SOURCES): New variable.
33924 * include/grub/util/misc.h: New function prototype.
33925 * util/misc.c (make_system_path_relative_to_its_root): New function.
33927 * util/grub-mkconfig_lib.in (bindir): New variable.
33928 (grub_mkrelpath): Likewise.
33929 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33931 * util/probe.c (probe): Make the file path relative to its root.
33932 Change a info message to use the GRUB path. Enable again the
33933 check if we can read the file with GRUB facilities.
33935 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33938 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33940 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33943 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33945 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33948 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33950 * util/getroot.c (grub_util_is_dmraid): New function.
33951 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33952 devices as normal ones, not as LVM.
33954 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33956 * conf/common.rmk: Add grub-gettext_lib target and updates
33957 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33959 * gettext/gettext.c: New file. (Reads mo files).
33960 * include/grub/file.h (grub_file_pread): New prototype.
33961 * include/grub/i18n.h (_): New prototype.
33962 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33964 * kern/misc.c (grub_gettext_dummy): New function.
33965 * normal/menu_text.c: Include <grub/i18n.h>.
33966 * normal/menu_text.c (print_timeout): Gettexttize string.
33967 * normal/menu_text.c (print_message): Gettexttize string.
33968 * po/POTFILES: Add `normal/menu_text.c'.
33969 * po/ca.po: Add new translations.
33970 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33971 gettext module and defines locale_dir and lang in grub.cfg.
33972 * NEWS: Add gettext support.
33974 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33976 * util/hostdisk.c: Include `<grub/i18n.h>'.
33977 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
33978 (make_device_name): Rewrite using asprintf.
33979 (convert_system_partition_to_system_disk): Replace 0 with NULL.
33980 (find_system_device): If a device is not found, generate one just
33981 by reusing the OS path name.
33982 (read_device_map): Make it permissible for device.map not to exist.
33984 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33986 * script/sh/execute.c: Move from here ...
33987 * script/execute.c: ... to here. Update all users.
33988 * script/sh/function.c: Move from here ...
33989 * script/function.c: ... to here. Update all users.
33990 * script/sh/lexer.c: Move from here ...
33991 * script/lexer.c: ... to here. Update all users.
33992 * script/sh/main.c: Move from here ...
33993 * script/main.c: ... to here. Update all users.
33994 * script/sh/parser.y: Move from here ...
33995 * script/parser.y: ... to here. Update all users.
33996 * script/sh/script.c: Move from here ...
33997 * script/script.c: ... to here. Update all users.
33999 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34001 * configure.ac: Detect all `emu' platforms. Define
34002 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34003 --enable-grub-emu logic. Disable include/grub/machine
34004 symlink on `emu' platforms.
34006 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34007 * gensymlist.sh.in: Likewise.
34009 * include/grub/i386/coreboot/machine.h: Remove file.
34010 * include/grub/i386/efi/machine.h: Likewise.
34011 * include/grub/i386/ieee1275/machine.h: Likewise.
34012 * include/grub/i386/pc/machine.h: Likewise.
34013 * include/grub/i386/qemu/machine.h: Likewise.
34014 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34015 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34016 * include/grub/x86_64/efi/machine.h: Likewise.
34018 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34019 * commands/halt.c: Likewise.
34020 * commands/reboot.c: Likewise.
34021 * include/grub/autoefi.h: Likewise.
34022 * include/grub/i386/at_keyboard.h: Likewise.
34023 * include/grub/i386/kernel.h: Likewise.
34024 * include/grub/i386/loader.h: Likewise.
34025 * include/grub/i386/pc/memory.h: Likewise.
34026 * kern/dl.c: Likewise.
34027 * kern/i386/coreboot/init.c: Likewise.
34028 * loader/i386/bsd.c: Likewise.
34029 * loader/i386/linux.c: Likewise.
34030 * loader/multiboot_loader.c: Likewise.
34031 * term/i386/pc/serial.c: Likewise.
34032 * term/usb_keyboard.c: Likewise.
34034 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34035 `<grub/machine/machine.h>'
34036 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34037 * util/misc.c: Remove `<grub/machine/machine.h>' and
34038 `<grub/machine/time.h>'.
34040 * Makefile.in (enable_grub_emu): Remove variable.
34041 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34043 * conf/any-emu.rmk: New file.
34044 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34045 (grub_emu_init.c): Move from here ...
34046 * conf/any-emu.rmk: ... to here.
34048 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34049 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34050 * conf/any-emu.rmk: ... to here.
34052 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34054 * include/grub/parser.h (grub_parser_register): Document need
34055 of `name' parameter.
34056 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34057 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34060 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34062 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34064 * include/grub/i18n.h (N_): New macro.
34065 * util/mkisofs/mkisofs.h: Likewise.
34066 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34068 (usage): Use gettext() to translate help strings when printing them.
34070 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34072 Based on patch from Bean
34073 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34075 * video/efi_fb.c: New file.
34076 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34077 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34079 * conf/x86_64-efi.rmk: Likewise.
34081 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34083 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34084 * util/i386/pc/grub-setup.c: Likewise.
34086 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34088 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34090 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34091 file_get_storage_info to implement grub_guess_root_device.
34093 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34095 * Makefile.in (target): Use make's builtin $(shell) function
34096 instead of calling directly $(SHELL) to create the locale directories,
34097 inside the $(foreach) function.
34099 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34101 * util/grub-mkrescue.in: Print an error and usage if output option
34102 has not been given.
34104 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34106 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34107 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34108 root and /boot are on different devices.
34110 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34112 Fix build for srcdir != objdir.
34114 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34115 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34117 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34118 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34119 reference for input.
34121 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34123 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34124 or hardlinking it). Remove -J option, Joliet is not compatible with
34125 multiple source directories.
34127 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34128 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34130 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34131 (process_input_dir): New function. Process an arbitrary input
34133 Misc adjustments to support both "override mode" and system-wide mode.
34135 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34137 * configure.ac (UNIFONT_BDF): Rename to ...
34138 (FONT_SOURCE): ... this. Update all users.
34140 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34142 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34143 to the list of unifont files to look for.
34145 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34147 Patch from Joe Auricchio <jauricchio@gmail.com>
34148 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34149 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34150 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34152 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34154 * Makefile.in (install-local): Add a missing backslash.
34156 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34158 * include/grub/x86_64/io.h: New file.
34160 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34162 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34163 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34164 Include `"progname.h"'.
34165 (main): Initialize gettext.
34166 * util/i386/pc/grub-setup.c: Gettexttize.
34167 * util/i386/pc/grub-mkimage.c: Likewise.
34169 * Makefile.in (po/*.po): Redefine as ...
34170 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34172 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34174 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34176 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34177 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34178 (program_name): Remove.
34179 (main): Initialize gettext support.
34180 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34181 Include `<libintl.h>'.
34184 * util/mkisofs/eltorito.c: Gettexttize.
34185 * util/mkisofs/joliet.c: Likewise.
34186 * util/mkisofs/mkisofs.c: Likewise.
34187 * util/mkisofs/multi.c: Likewise.
34188 * util/mkisofs/rock.c: Likewise.
34189 * util/mkisofs/tree.c: Likewise.
34190 * util/mkisofs/write.c: Likewise.
34192 * po/POTFILES: Update with new files.
34194 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34196 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34197 * util/mkisofs/iso9660.h: Likewise.
34198 * util/mkisofs/joliet.c: Likewise.
34199 * util/mkisofs/mkisofs.c: Likewise.
34200 * util/mkisofs/mkisofs.h: Likewise.
34201 * util/mkisofs/rock.c: Likewise.
34202 * util/mkisofs/tree.c: Likewise.
34203 * util/mkisofs/write.c: Likewise.
34205 * util/mkisofs/eltorito.c (rcsid): Remove.
34206 * util/mkisofs/hash.c: Likewise.
34207 * util/mkisofs/joliet.c: Likewise.
34208 * util/mkisofs/name.c: Likewise.
34209 * util/mkisofs/rock.c: Likewise.
34210 * util/mkisofs/tree.c: Likewise.
34211 * util/mkisofs/write.c: Likewise.
34213 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34215 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34216 instead of static allocation.
34217 * util/mkisofs/match.h: Likewise.
34219 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34221 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34222 and `util/grub.d/10_linux.in'.
34223 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34224 translatable Shell files.
34226 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34228 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34230 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34232 * INSTALL: Document Automake is needed for bootstrap.
34233 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34234 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34235 Add gettext initialization.
34236 (kfreebsd_entry): Make menuentry output translatable.
34238 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34240 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34241 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34242 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34243 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34244 (LINGUAS): Auto-generate using `po/LINGUAS'.
34245 * po/LINGUAS: New file.
34247 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34249 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34251 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34252 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34253 bindtextdomain() calls for gettext initialization.
34255 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34257 * gnulib/progname.c: New file (imported from Gnulib).
34258 * gnulib/progname.h: Likewise.
34259 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34260 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34261 (usage): Replace `progname' with `program_name'.
34262 (main): Use set_program_name() for program name initialization.
34264 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34266 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34268 * Makefile.in (CPPFLAGS): ... to here.
34270 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34272 * aclocal.m4: Move from here ...
34273 * acinclude.m4: ... to here.
34274 * autogen.sh: Add call to `aclocal'.
34275 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34277 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34279 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34280 (LINGUAS): New variable.
34281 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34282 (install-local): Install MO files.
34283 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34284 * include/grub/i18n.h: New file.
34285 * po/POTFILES: New file.
34286 * po/ca.po: New file.
34287 * util/grub.d/10_linux.in (bindir): New variable.
34288 Add gettext initialization.
34289 (linux_entry): Make menuentry output translatable.
34290 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34291 (usage): Make --help output translatable.
34292 (main): Initialize gettext.
34294 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34296 * import_gcry.py: New file (written by Vladimir with minor
34298 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34300 * INSTALL: Document that Python is required for bootstrap.
34302 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34304 Import ciphers from libgcrypt 1.4.4.
34306 * lib/libgcrypt/cipher/ChangeLog
34307 * lib/libgcrypt/cipher/ac.c
34308 * lib/libgcrypt/cipher/arcfour.c
34309 * lib/libgcrypt/cipher/bithelp.h
34310 * lib/libgcrypt/cipher/blowfish.c
34311 * lib/libgcrypt/cipher/camellia-glue.c
34312 * lib/libgcrypt/cipher/camellia.c
34313 * lib/libgcrypt/cipher/camellia.h
34314 * lib/libgcrypt/cipher/cast5.c
34315 * lib/libgcrypt/cipher/cipher.c
34316 * lib/libgcrypt/cipher/crc.c
34317 * lib/libgcrypt/cipher/des.c
34318 * lib/libgcrypt/cipher/dsa.c
34319 * lib/libgcrypt/cipher/ecc.c
34320 * lib/libgcrypt/cipher/elgamal.c
34321 * lib/libgcrypt/cipher/hash-common.c
34322 * lib/libgcrypt/cipher/hash-common.h
34323 * lib/libgcrypt/cipher/hmac-tests.c
34324 * lib/libgcrypt/cipher/md.c
34325 * lib/libgcrypt/cipher/md4.c
34326 * lib/libgcrypt/cipher/md5.c
34327 * lib/libgcrypt/cipher/primegen.c
34328 * lib/libgcrypt/cipher/pubkey.c
34329 * lib/libgcrypt/cipher/rfc2268.c
34330 * lib/libgcrypt/cipher/rijndael-tables.h
34331 * lib/libgcrypt/cipher/rijndael.c
34332 * lib/libgcrypt/cipher/rmd.h
34333 * lib/libgcrypt/cipher/rmd160.c
34334 * lib/libgcrypt/cipher/rsa.c
34335 * lib/libgcrypt/cipher/seed.c
34336 * lib/libgcrypt/cipher/serpent.c
34337 * lib/libgcrypt/cipher/sha1.c
34338 * lib/libgcrypt/cipher/sha256.c
34339 * lib/libgcrypt/cipher/sha512.c
34340 * lib/libgcrypt/cipher/tiger.c
34341 * lib/libgcrypt/cipher/twofish.c
34342 * lib/libgcrypt/cipher/whirlpool.c
34344 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34346 Fix build for systems without error().
34348 * gnulib/error.c: New file (imported from Gnulib).
34349 * gnulib/error.h: Likewise.
34350 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34351 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34352 (this variable is now used by error()).
34354 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34356 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34357 instead of relying that char is signed.
34359 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34361 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34362 blocksize different from specified.
34363 (grub_pxefs_read): Likewise.
34365 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34367 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34369 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34370 (grub_ata_readwrite): Likewise. Update 2 format strings.
34371 (grub_atapi_read): Likewise.
34373 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34374 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34375 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34376 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34377 (ata_mod_LDFLAGS): Move from here ...
34378 * conf/i386.rmk: ... to here ...
34379 * conf/x86_64-efi.rmk: ... and here.
34380 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34381 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34383 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34385 Relicense multiboot.h, with RMS' blessing.
34387 * include/multiboot.h: Change to X11 license.
34389 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34391 Support --version in grub-mkisofs.
34393 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34394 (OPTION_VERSION): New macro.
34395 (ld_options): Recognize --version.
34396 (usage): Move `program_name' from here ...
34397 (program_name): ... to here. Add `static' qualifier.
34398 (main): Recognize `OPTION_VERSION'.
34400 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34402 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34403 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34405 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34407 Fix help2man generation for mkisofs.
34409 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34410 (usage): Send output to stdout (rather than stderr).
34412 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34414 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34415 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34416 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34417 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34418 (bin_SCRIPTS): Add `grub-mkfloppy'.
34419 (grub_mkfloppy_SOURCES): New variable.
34421 * util/grub-mkrescue.in: New file.
34422 * util/i386/pc/grub-mkfloppy.in: New file.
34424 * util/i386/coreboot/grub-mkrescue.in: Remove.
34425 * util/i386/pc/grub-mkrescue.in: Remove.
34427 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34429 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34431 * include/multiboot.h (struct multiboot_header): ... to here. Update
34433 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34435 * include/multiboot.h (struct multiboot_info): ... to here. Update
34437 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34439 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34441 * include/grub/multiboot.h (struct grub_mod_list): Move
34443 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34446 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34448 * include/multiboot2.h (multiboot_word): Rename from this ...
34449 (multiboot2_word): ... to this. Update all users.
34450 (multiboot_header): Rename from this ...
34451 (multiboot2_header): ... to this. Update all users.
34452 (multiboot_tag_header): Rename from this ...
34453 (multiboot2_tag_header): ... to this. Update all users.
34454 (multiboot_tag_start): Rename from this ...
34455 (multiboot2_tag_start): ... to this. Update all users.
34456 (multiboot_tag_name): Rename from this ...
34457 (multiboot2_tag_name): ... to this. Update all users.
34458 (multiboot_tag_module): Rename from this ...
34459 (multiboot2_tag_module): ... to this. Update all users.
34460 (multiboot_tag_memory): Rename from this ...
34461 (multiboot2_tag_memory): ... to this. Update all users.
34462 (multiboot_tag_unused): Rename from this ...
34463 (multiboot2_tag_unused): ... to this. Update all users.
34464 (multiboot_tag_end): Rename from this ...
34465 (multiboot2_tag_end): ... to this. Update all users.
34467 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34469 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34470 this platform we should support Multiboot1 first.
34472 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34473 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34474 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34476 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34478 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34479 of write calls (converting them to fwrite() if they aren't already).
34480 (get_torito_desc): Likewise.
34481 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34483 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34485 * util/i386/pc/grub-install.in: Move from here ...
34486 * util/grub-install.in: ... to here. Update all users.
34488 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34490 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34492 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34494 Support for El Torito without floppy emulation.
34496 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34497 (init_boot_catalog): Improve error handling.
34498 (get_torito_desc): Don't use floppy emulation unless requested by
34499 user. Patch boot information table when requested via
34500 `-boot-info-table'.
34501 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34502 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34503 (use_boot_info_table): New variables.
34504 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34505 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34506 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34507 `--eltorito-emul-floppy'.
34508 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34509 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34510 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34511 (use_boot_info_table, get_731): New prototypes.
34512 * util/mkisofs/write.c (get_731): New function.
34514 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34516 Fix the generation of the man page.
34518 * util/pc/i386/grub-install.in: Source
34519 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34521 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34523 Large file support for grub-mkisofs.
34525 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34526 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34527 (session_start): Upgrade type to `uint64_t'. Update all users.
34528 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34529 (struct directory_entry): Upgrade type of `starting_block' and
34530 `size' to `uint64_t'. Update all users.
34531 (struct deferred): Remove unused structure.
34532 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34534 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34535 file is larger than `UINT32_MAX'.
34536 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34537 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34539 (struct deferred_write): Upgrade type of `extent' and `size' to
34540 `uint64_t'. Update all users.
34541 (last_extent_written): Upgrade type to `uint64_t'. Update all
34543 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34544 Update all users. Upgrade type of `remain' to `int64_t' and
34545 `use' to `size_t'. Use error() to handle fread() errors.
34546 (write_files): Rely on write_one_file() rather than calling
34547 xfwrite() directly.
34549 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34551 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34553 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34555 * util/mkisofs/fnmatch.c: Remove.
34556 * util/mkisofs/getopt1.c: Likewise.
34557 * util/mkisofs/getopt.c: Likewise.
34558 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34559 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34560 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34561 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34562 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34564 * configure.ac: Detect `mingw32msvc' host_os.
34565 Check for lstat(), getuid() and getgid().
34567 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34568 instances of `u_char' with `uint8_t'.
34570 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34571 [!HAVE_GETUID] (getuid): New function (stub).
34572 [!HAVE_GETGID] (getgid): Likewise.
34573 [!HAVE_LSTAT] (lstat): Likewise.
34574 [!S_IROTH] (S_IROTH): New macro (dummy).
34575 [!S_IRGRP] (S_IRGRP): Likewise.
34577 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34579 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34580 conditional expression).
34582 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34584 Import from Gnulib.
34586 * gnulib/fnmatch.c: New file.
34587 * gnulib/fnmatch.h: Likewise.
34588 * gnulib/fnmatch_loop.c: Likewise.
34589 * gnulib/getopt.c: Likewise.
34590 * gnulib/getopt.h: Likewise.
34591 * gnulib/getopt1.c: Likewise.
34592 * gnulib/getopt_int.h: Likewise.
34593 * gnulib/gettext.h: Likewise.
34595 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34597 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34598 * normal/handler.c (read_handler_list): Likewise.
34600 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34604 * kern/command.c (grub_register_command_prio): Use
34605 grub_zalloc() instead of explicitly zeroing data.
34606 * kern/list.c: Include `<grub/mm.h>'.
34607 (grub_named_list_find): Replace `0' with `NULL'.
34608 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34609 (fs_module_list): Change type to `grub_named_list_t'. Update all
34611 * normal/dyncmd.c (read_command_list): Add space between function
34612 call and parenthesis.
34613 * normal/handler.c (read_handler_list): Likewise.
34615 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34617 * normal/auth.c (punishment_delay): Moved from here ...
34618 (grub_auth_strcmp): ... to here (inside function).
34620 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34622 * include/grub/list.h (struct grub_named_list): Remove `const'
34623 qualifier from `name'.
34624 (struct grub_prio_list): Likewise.
34626 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34628 * normal/auth.c: Include `<grub/time.h>'.
34629 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34631 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34633 * normal/auth.c (punishment_delay): New variable.
34634 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34635 (grub_auth_check_authentication): Punish failed login attempts with
34636 an incremental (2^N) delay.
34638 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34640 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34641 path with $(srcdir).
34643 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34645 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34647 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34649 * util/i386/coreboot/grub-mkrescue.in: New file.
34650 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34653 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34654 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34655 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34657 * util/mkisofs/defaults.h: New file.
34658 * util/mkisofs/eltorito.c: Likewise.
34659 * util/mkisofs/exclude.h: Likewise.
34660 * util/mkisofs/fnmatch.c: Likewise.
34661 * util/mkisofs/getopt.c: Likewise.
34662 * util/mkisofs/getopt1.c: Likewise.
34663 * util/mkisofs/hash.c: Likewise.
34664 * util/mkisofs/include/fctldefs.h: Likewise.
34665 * util/mkisofs/include/mconfig.h: Likewise.
34666 * util/mkisofs/include/prototyp.h: Likewise.
34667 * util/mkisofs/include/statdefs.h: Likewise.
34668 * util/mkisofs/iso9660.h: Likewise.
34669 * util/mkisofs/joliet.c: Likewise.
34670 * util/mkisofs/match.c: Likewise.
34671 * util/mkisofs/match.h: Likewise.
34672 * util/mkisofs/mkisofs.c: Likewise.
34673 * util/mkisofs/mkisofs.h: Likewise.
34674 * util/mkisofs/multi.c: Likewise.
34675 * util/mkisofs/name.c: Likewise.
34676 * util/mkisofs/rock.c: Likewise.
34677 * util/mkisofs/tree.c: Likewise.
34678 * util/mkisofs/write.c: Likewise.
34680 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34682 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34685 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34687 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34688 `grub-mkimage' (and use $0 when possible).
34690 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34692 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34693 error message for excessively large memory map.
34695 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34697 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34700 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34702 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34703 message for coreboot users.
34705 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34707 Fix build with GNU gold.
34709 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34710 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34711 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34713 * aclocal.m4: Likewise.
34715 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34717 * configure.ac (AC_PREREQ): Bump to 2.59d.
34718 * INSTALL: Make it more clear when Autoconf and Ruby are
34719 needed and when to run `./autogen.sh'.
34721 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34723 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34726 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34728 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34730 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34732 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34733 giving it to GNU Mach.
34735 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34737 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34738 GNU partition number to get internal GRUB partition number.
34740 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34742 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34743 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34745 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34747 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34748 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34751 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34753 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34755 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34759 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34760 `-isystem=$(srcdir)/include'.
34762 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34764 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34765 checked (grub-install doesn't currently rely on it).
34767 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34771 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34772 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34773 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34774 * conf/i386-ieee1275.rmk: Likewise.
34775 * conf/i386-pc.rmk: Likewise.
34776 * conf/powerpc-ieee1275.rmk: Likewise.
34777 * conf/sparc64-ieee1275.rmk: Likewise.
34778 * conf/x86_64-efi.rmk: Likewise.
34780 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34782 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34784 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34786 * include/grub/misc.h: Stop checking for APPLE_CC.
34788 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34790 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34791 doesn't cause an infinite call loop.
34793 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34795 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34798 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34800 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34802 * Makefile.in: Likewise.
34804 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34806 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34808 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34810 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34812 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34814 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34816 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34818 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34820 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34822 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34824 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34825 in $(MAKEINFO) invocation. This makes it clear in output that
34826 errors are being ignored.
34828 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34830 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34832 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34833 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34834 * conf/i386-ieee1275.rmk: Likewise.
34835 * conf/i386-pc.rmk: Likewise.
34836 * conf/powerpc-ieee1275.rmk: Likewise.
34837 * conf/sparc64-ieee1275.rmk: Likewise.
34838 * conf/x86_64-efi.rmk: Likewise.
34840 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34842 * util/grub-editenv.c (main): If only a command is given, use
34843 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34844 (usage): FILENAME is now optional and has a default.
34846 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34848 Improve grub-mkconfig performance when there are several menu
34849 entries on a single filesystem.
34851 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34852 prepare_grub_to_access_device.
34853 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34854 * util/grub.d/30_os-prober.in: Likewise.
34856 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34858 * util/grub.d/10_freebsd.in: Remove.
34859 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34860 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34862 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34864 * docs/grub.cfg: Fix example usage of *BSD loaders.
34866 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34868 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34869 grub_util_error() call.
34871 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34873 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34874 `reserved_first_sector' member.
34875 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34876 `reserved_first_sector' to 1.
34877 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34878 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34879 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34880 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34881 filesystems which begin at first sector.
34882 (options): New option --skip-fs-probe.
34883 (main): Handle --skip-fs-probe and pass it to setup().
34885 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34887 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34888 (memset): Fix function prototype.
34890 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34891 2009-10-25 Vasily Averin <vvs@parallels.com>
34893 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34894 `dirent.direntlen == 0'.
34896 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34898 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34900 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34902 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34904 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34905 `__trampoline_setup' and `__ucmpdi2'.
34906 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34907 that libgcc provides.
34909 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34911 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34912 * include/grub/sparc64/libgcc.h (memset): Likewise.
34913 * include/grub/misc.h (memset, memcmp): New function prototypes.
34915 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34917 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34919 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34921 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34923 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34924 * docs/grub.cfg: Compensate for recent change in multiboot
34925 loader (since 2009-08-14 it won't pass filename to payload).
34926 * util/grub.d/10_hurd.in: Likewise.
34928 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34930 * config.guess: Update to latest version from config git
34932 * config.sub: Likewise.
34934 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34936 Fix build on sparc64.
34938 * configure.ac: Perform checks for libgcc symbols before
34939 adding `-nostdlib' to LDFLAGS.
34941 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34943 Let user specify OpenBSD root device.
34945 * loader/i386/bsd.c (openbsd_root): New variable.
34946 (openbsd_opts): New option 'root'.
34947 (OPENBSD_ROOT_ARG): New macro.
34948 (grub_openbsd_boot): Use 'openbsd_root'.
34949 (grub_cmd_openbsd): Fill 'openbsd_root'.
34951 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34953 * NEWS: Misc adjustments.
34955 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34957 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34959 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34961 * configure.ac: Bump version to 1.97.
34963 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34965 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34966 -mno-3dnow on x86 architectures. Some toolchains enable these
34967 features by default, but they rely on registers that aren't enabled
34968 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34970 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34972 Make entry text a bit more readable.
34974 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34976 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34978 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
34980 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34982 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
34985 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34987 * configure.ac: Add missing dollar.
34989 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34991 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
34993 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
34994 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
34996 * include/grub/sparc64/libgcc.h: Likewise. Use
34997 preprocessor conditionals.
34999 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35001 * conf/common.rmk (grub-dumpbios): Remove rule.
35002 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35003 * util/grub-dumpbios.in: Remove file.
35005 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35007 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35008 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35010 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35011 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35014 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35015 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35016 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35017 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35020 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35022 * term/tparm.c: Switch to GPLv3.
35024 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35026 * include/grub/i386/cpuid.h: Add header protection.
35028 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35030 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35032 * include/grub/i386/cpuid.h: New file.
35033 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35034 (has_longmode): Rename to ...
35035 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35036 `static' attribute.
35037 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35038 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35039 on a CPU that doesn't implement AMD64 instruction set.
35041 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35043 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35044 that version.texi is rebuilt on version number changes.
35046 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35048 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35051 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35053 * util/i386/pc/grub-install.in: Source
35054 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35055 that the --grub-probe option will work.
35056 * util/sparc64/ieee1275/grub-install.in: Likewise.
35058 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35060 * configure.ac: Bump version to 1.97~beta4.
35062 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35064 Resync grub-mkdevicemap in x86_64-efi.
35066 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35067 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35068 `util/devicemap.c'.
35070 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35072 * util/grub-editenv.c (create_envblk_file): Write new block with a
35073 .new suffix and then rename it into place, to ensure atomic
35076 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35078 Do not automatically install headers.
35080 * Makefile.in (include_DATA): Remove. Update all users.
35082 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35084 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35085 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35087 * util/osdetect.lua: Remove.
35088 * script/lua/lauxlib.c: Likewise.
35089 * script/lua/ldebug.c: Likewise.
35090 * script/lua/grub_main.c: Likewise.
35091 * script/lua/lauxlib.h: Likewise.
35092 * script/lua/ldebug.h: Likewise.
35093 * script/lua/ltablib.c: Likewise.
35094 * script/lua/liolib.c: Likewise.
35095 * script/lua/lstrlib.c: Likewise.
35096 * script/lua/lualib.h: Likewise.
35097 * script/lua/ldo.c: Likewise.
35098 * script/lua/ldump.c: Likewise.
35099 * script/lua/ldo.h: Likewise.
35100 * script/lua/loslib.c: Likewise.
35101 * script/lua/lundump.c: Likewise.
35102 * script/lua/grub_lib.c: Likewise.
35103 * script/lua/ldblib.c: Likewise.
35104 * script/lua/lundump.h: Likewise.
35105 * script/lua/lmem.c: Likewise.
35106 * script/lua/grub_lib.h: Likewise.
35107 * script/lua/lmathlib.c: Likewise.
35108 * script/lua/lstate.c: Likewise.
35109 * script/lua/ltm.c: Likewise.
35110 * script/lua/lvm.c: Likewise.
35111 * script/lua/lmem.h: Likewise.
35112 * script/lua/lstate.h: Likewise.
35113 * script/lua/ltm.h: Likewise.
35114 * script/lua/ltable.c: Likewise.
35115 * script/lua/lvm.h: Likewise.
35116 * script/lua/llex.c: Likewise.
35117 * script/lua/lgc.c: Likewise.
35118 * script/lua/grub_lua.h: Likewise.
35119 * script/lua/loadlib.c: Likewise.
35120 * script/lua/lfunc.c: Likewise.
35121 * script/lua/lopcodes.c: Likewise.
35122 * script/lua/lparser.c: Likewise.
35123 * script/lua/ltable.h: Likewise.
35124 * script/lua/llex.h: Likewise.
35125 * script/lua/lgc.h: Likewise.
35126 * script/lua/lfunc.h: Likewise.
35127 * script/lua/lbaselib.c: Likewise.
35128 * script/lua/lopcodes.h: Likewise.
35129 * script/lua/lparser.h: Likewise.
35130 * script/lua/lzio.c: Likewise.
35131 * script/lua/linit.c: Likewise.
35132 * script/lua/lobject.c: Likewise.
35133 * script/lua/llimits.h: Likewise.
35134 * script/lua/lstring.c: Likewise.
35135 * script/lua/lzio.h: Likewise.
35136 * script/lua/lapi.c: Likewise.
35137 * script/lua/lcode.c: Likewise.
35138 * script/lua/lua.h: Likewise.
35139 * script/lua/lobject.h: Likewise.
35140 * script/lua/lstring.h: Likewise.
35141 * script/lua/lapi.h: Likewise.
35142 * script/lua/lcode.h: Likewise.
35143 * script/lua/luaconf.h: Likewise.
35145 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35147 * docs/grub.texi (Command-line and menu entry commands): Document
35148 date and echo commands.
35150 2009-09-24 Pavel Roskin <proski@gnu.org>
35152 * include/grub/kernel.h (struct grub_module_header): Remove
35153 `grub_module_header_types'. Make `type' unsigned. Make `size'
35154 32-bit on all platforms.
35155 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35156 8-bit field. Use grub_host_to_target32() for `size'.
35157 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35158 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35159 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35161 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35163 Fix "lost keypress" bug in at_keyboard.
35165 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35166 Checks for readyness of input buffer (without flushing it).
35167 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35168 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35170 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35172 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35173 size check within GRUB_MACHINE_PCBIOS section.
35175 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35177 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35179 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35180 KEYBOARD_ISREADY check.
35181 (grub_at_keyboard_checkkey): Rename to ...
35182 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35183 Remove gratuitous cast.
35185 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35187 * configure.ac: Call AC_PROG_MKDIR_P.
35188 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35189 version.texi in $(builddir) rather than $(srcdir).
35190 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35191 to makeinfo's @include search path.
35193 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35195 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35197 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35199 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35202 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35204 Build info documentation. Some code borrowed from Automake.
35206 * configure.ac: Check for makeinfo.
35207 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35208 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35210 (MOSTLYCLEANFILES): Add vti.tmp.
35211 (docs/version.texi, docs/stamp-vti): Update automatically.
35212 (docs/grub.info): Build info documentation. Use --force and ignore
35214 (all-local): Add $(INFOS).
35215 (install-local): Install info files.
35216 (uninstall): Uninstall info files.
35217 * docs/version.texi: Remove from revision control. This file is
35218 automatically generated on build now.
35219 * gendistlist.sh: Add `*.info'.
35221 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35223 * kern/term.c: Fix indentation.
35225 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35227 * util/hostdisk.c: Fix a comment.
35229 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35231 Fix regression introduced in r2539.
35233 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35236 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35238 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35239 os-prober. Under normal operation, it does not print anything to
35240 stderr; if it does, we need to debug it, and throwing away stderr
35241 makes that excessively difficult.
35243 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35245 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35247 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35249 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35250 AC_LANG_PROGRAM from autoconf.
35251 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35252 prototypes (fixes warning).
35254 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35255 `--disable-werror' was used.
35257 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35259 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35260 uninitialized `lastaddr'.
35262 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35264 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35266 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35268 * commands/test.c (get_fileinfo): Return immediately if
35269 grub_fs_probe fails.
35271 2009-09-14 José Martínez <xosemp@gmail.com>
35273 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35275 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35277 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35280 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35282 * configure.ac: Remove --enable-grub-pe2elf. Only build
35283 grub-pe2elf when needed by the build system itself.
35284 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35286 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35288 * configure.ac: Bump version to 1.97~beta3.
35289 * docs/version.texi: Likewise.
35291 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35293 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35294 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35296 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35297 (grub_linux_setup_video): ... to here (with some adjustments).
35299 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35301 Fix memory corruption issue (spotted by Colin Watson).
35303 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35304 causing returned size to be stored in an incorrect memory location.
35305 Fix use of uninitialized value when storing the returned size.
35307 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35309 Change clean rules to properly remove files
35311 * genmk.rb: add new clean rules
35312 * Makefile.in (clean): add the new targets
35313 (mostlyclean): likewise
35315 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35317 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35319 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35320 non-resident files.
35322 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35324 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35325 part of bug #27349.
35327 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35329 * util/grub-mkconfig.in: Make the created config mode 400 and
35330 print a warning if it fails.
35332 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35334 * util/grub.d/40_custom.in: Ask user to type custom entries below
35335 comment, rather than below 'exec tail' line.
35337 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35339 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35340 visible in grub.cfg.
35342 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35344 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35347 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35349 * docs/grub.cfg: Add an example menu entry for memtest86+.
35351 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35353 * config.guess: Update to latest version from config git.
35354 * config.sub: Likewise.
35356 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35358 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35359 unknown-command case. Fixes bug #27320.
35361 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35363 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35364 `help' if the command exists.
35366 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35368 * INSTALL: Require GCC 4.1.3 or later.
35370 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35372 * Makefile.in (RMKFILES): add i386-qemu.rmk
35373 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35374 $(srcdir)/stamp-h.in
35376 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35378 * util/grub-probe.c (probe): Comment out buggy codepath, which
35379 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35380 should be re-enabled after 1.97.
35382 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35384 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35387 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35389 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35390 unnecessary calls to grub_error.
35392 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35394 * NEWS: Mention `keystatus' and Unicode fonts.
35396 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35398 * configure.ac: Bump version to 1.97~beta2.
35399 * docs/version.texi: Likewise.
35401 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35403 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35404 containing unwind information in some cases where it previously did
35405 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35406 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35409 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35411 Embedding loadenv module into grub-emu
35413 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35415 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35416 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35417 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35418 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35419 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35420 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35422 2009-09-03 Magnus Granberg <zorry@ume.nu>
35424 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35425 include -fPIE in the default specs.
35426 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35429 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35431 * INSTALL: Note that GNU Bison 2.3 or later is required.
35433 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35435 * kern/i386/pc/startup.S: Fix typo.
35437 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35439 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35442 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35444 * docs/grub.texi (Naming convention): Describe one-based partition
35446 (Device syntax): Likewise.
35447 (File name syntax): Likewise.
35448 (Block list syntax): Likewise.
35449 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35451 (File name syntax): Likewise.
35452 (Command-line and menu entry commands): Document acpi, blocklist,
35453 crc, export, insmod, keystatus, ls, set, and unset commands.
35455 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35457 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35458 to avoid implying that only one of --shift, --ctrl, or --alt may be
35461 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35463 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35464 rather than comparing against S_IFREG, which will almost never work.
35466 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35468 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35469 (write_blocklists): Likewise.
35471 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35473 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35474 argument to grub_printf.
35476 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35478 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35481 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35483 * kern/file.c (grub_file_read): Spelling fix
35485 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35487 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35488 loading of headers in some cases.
35490 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35492 * configure.ac: Bump version to 1.97~beta1.
35493 * docs/version.texi: Likewise.
35495 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35497 * include/grub/i386/xnu.h: Add license header.
35498 include grub/err.h explicitly.
35500 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35502 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35503 to `ufs' in the vfs.root.mountfrom kernel parameter.
35505 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35507 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35509 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35510 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35512 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35513 `ARRAY_SIZE' macro.
35515 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35517 * kern/file.c (grub_file_read): Check offset.
35518 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35519 * fs/jfs.c (grub_jfs_read_file): Likewise.
35520 * fs/ntfs.c (grub_ntfs_read): Likewise.
35521 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35522 * fs/minix.c (grub_minix_read_file): Correct offset check.
35523 * fs/ufs.c (grub_ufs_read_file): Likewise.
35525 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35527 * term/i386/pc/console.c (bios_data_area): Cast
35528 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35530 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35532 1-bit optimised blitters.
35534 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35536 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35537 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35538 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35539 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35540 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35541 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35542 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35544 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35545 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35546 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35547 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35548 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35549 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35550 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35552 * video/video.c (grub_video_get_blit_format): Return
35553 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35555 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35557 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35558 the first argument to grub_printf.
35560 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35561 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35563 Add `getkeystatus' terminal method. Add a new `keystatus' command
35566 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35567 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35568 modifier key bitmasks.
35569 (struct grub_term_input): Add `getkeystatus' member.
35570 (grub_getkeystatus): Add prototype.
35571 * kern/term.c (grub_getkeystatus): New function.
35573 * include/grub/i386/pc/memory.h
35574 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35575 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35577 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35578 (grub_console_term_input): Set `getkeystatus' member.
35579 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35581 (grub_usb_keyboard_getreport): Likewise.
35582 (grub_usb_keyboard_checkkey): Likewise.
35583 (grub_usb_keyboard_getkeystatus): New function.
35584 (grub_usb_keyboard_term): Set `getkeystatus' member.
35586 * commands/keystatus.c: New file.
35587 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35588 (keystatus_mod_SOURCES): New variable.
35589 (keystatus_mod_CFLAGS): Likewise.
35590 (keystatus_mod_LDFLAGS): Likewise.
35591 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35592 commands/keystatus.c.
35593 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35595 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35597 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35598 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35600 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35602 Split befs.mod and afs.mod into *_be.mod and *.mod
35604 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35605 (grub_fstest_SOURCES): Likewise.
35606 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35607 (afs_be_mod_SOURCES): New variable.
35608 (afs_be_mod_CFLAGS): Likewise.
35609 (afs_be_mod_LDFLAGS): Likewise.
35610 (befs_be_mod_SOURCES): Likewise.
35611 (befs_be_mod_CFLAGS): Likewise.
35612 (befs_be_mod_LDFLAGS): Likewise.
35613 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35614 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35615 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35616 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35617 (grub_emu_SOURCES): Likewise.
35618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35620 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35621 * fs/afs_be.c: New file.
35622 * fs/befs_be.c: New file.
35623 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35624 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35625 (U16): Replaced with ...
35626 (grub_afs_to_cpu16): ...this. All users updated.
35627 (U32): Replaced with ...
35628 (grub_afs_to_cpu32): ...this. All users updated.
35629 (U64): Replaced with ...
35630 (grub_afs_to_cpu64): ...this. All users updated.
35631 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35632 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35633 (grub_afs_validate_sblock): Check only one endianness.
35634 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35635 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35636 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35637 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35638 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35639 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35640 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35641 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35643 2009-08-26 Bean <bean123ch@gmail.com>
35645 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35647 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35648 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35649 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35651 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35653 NetBSD memory map support.
35655 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35656 (grub_netbsd_btinfo_mmap_header): New structure.
35657 (grub_netbsd_btinfo_mmap_entry): Likewise.
35658 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35660 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35662 Enable bsd.mod on coreboot.
35664 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35665 (bsd_mod_SOURCES): New variable.
35666 (bsd_mod_CFLAGS): Likewise.
35667 (bsd_mod_LDFLAGS): Likewise.
35668 (bsd_mod_ASFLAGS): Likewise.
35669 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35670 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35672 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35674 Cleanup NetBSD root support.
35676 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35677 grub_bsd_get_device.
35680 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35682 * util/grub.d/00_header.in: Move check for the video backend of
35683 gfxterm from here ...
35684 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35685 a suitable video backend.
35687 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35689 Fix breakage in grub-setup.
35691 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35692 "msdos_partition_map".
35694 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35696 Fix breakage in normal/auth.c.
35698 * normal/auth.c (grub_iswordseparator): New function.
35700 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35702 Authentication support.
35704 * commands/password.c: New file.
35705 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35706 (password_mod_SOURCES): New variable.
35707 (password_mod_CFLAGS): Likewise.
35708 (password_mod_LDFLAGS): Likewise.
35709 (normal_mod_SOURCES): Add normal/auth.c.
35710 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35712 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35713 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35714 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35716 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35717 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35718 * include/grub/auth.h: New file.
35719 * include/grub/err.h (grub_err_t): New enum value
35720 GRUB_ERR_ACCESS_DENIED.
35721 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35723 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35724 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35726 * normal/auth.c: New file.
35727 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35728 (grub_cmdline_run): Don't allow to go to command line without
35730 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35731 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35732 menuentry without superuser rights.
35733 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35734 user isn't a superuser.
35736 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35738 Save space by inlining misc.c functions.
35740 * kern/misc.c (grub_iswordseparator): Made static.
35741 * kern/misc.c (grub_strcat): Moved from here ...
35742 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35743 * kern/misc.c (grub_strncat): Moved from here ...
35744 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35745 * kern/misc.c (grub_strcasecmp): Moved from here ...
35746 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35747 * kern/misc.c (grub_strncasecmp): Moved from here ...
35748 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35749 * kern/misc.c (grub_isalpha): Moved from here ...
35750 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35751 * kern/misc.c (grub_isdigit): Moved from here ...
35752 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35753 * kern/misc.c (grub_isgraph): Moved from here ...
35754 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35755 * kern/misc.c (grub_tolower): Moved from here ...
35756 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35758 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35760 * script/sh/function.c (grub_script_function_find): Cut error message
35761 not to flood terminal.
35762 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35764 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35766 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35768 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35769 `report' grub_uint8_t *.
35770 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35771 Use a 50-millisecond timeout rather than just repeating
35772 grub_usb_keyboard_getreport 50 times.
35773 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35775 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35777 Rename *_partition_map to part_*
35779 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35780 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35781 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35782 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35784 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35786 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35787 * util/grub-probe.c (probe_partmap): Don't transform partition name
35788 to get module name.
35790 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35792 Fix OpenBSD and NetBSD support.
35794 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35795 memory address conflict.
35796 (OPENBSD_MMAP_ACPI): New definition.
35797 (OPENBSD_MMAP_NVS): Likewise.
35798 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35799 and OPENBSD_MMAP_NVS.
35800 Add memory map terminator
35801 Explicit cast when calling grub_unix_real_boot.
35802 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35804 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35806 Let user specify NetBSD root device.
35808 * loader/i386/bsd.c (netbsd_root): New variable.
35809 (netbsd_opts): New option 'root'.
35810 (NETBSD_ROOT_ARG): New macro.
35811 (grub_netbsd_boot): Use 'netbsd_root'.
35812 (grub_bsd_unload): Free 'netbsd_root'.
35813 (grub_cmd_netbsd): Fill 'netbsd_root'.
35815 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35817 Support for 64-bit NetBSD.
35819 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35820 point when booting non-FreeBSD.
35822 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35824 Support --no-smp and --no-acpi for NetBSD.
35826 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35827 (NETBSD_AB_NOACPI): Likewise.
35828 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35829 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35831 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35833 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35835 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35836 errors. Call grub_error when needed.
35838 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35840 * commands/search.c (search_fs): Try searching without autoload first.
35841 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35842 filesystem module explicitly for faster booting.
35844 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35846 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35848 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35850 * util/grub.d/30_os-prober.in: Disable os-prober if
35851 `GRUB_DISABLE_OS_PROBER' was set to true.
35853 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35855 * partmap/pc.c: Rename to ...
35856 * partmap/msdos.c: ... this. Update all users.
35857 (grub_pc_partition_map): Rename to ...
35858 (grub_msdos_partition_map): ... this. Update all users.
35860 * parttool/pcpart.c: Rename to ...
35861 * parttool/msdospart.c: ... this. Update all users.
35863 * include/grub/pc_partition.h: Rename to ...
35864 * include/grub/msdos_partition.h: ... this. Update all users.
35865 (grub_pc_partition_bsd_entry): Rename to ...
35866 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35867 (grub_pc_partition_disk_label): Rename to ...
35868 (grub_msdos_partition_disk_label): ... this. Update all users.
35869 (grub_pc_partition_entry): Rename to ...
35870 (grub_msdos_partition_entry): ... this. Update all users.
35871 (grub_pc_partition_mbr): Rename to ...
35872 (grub_msdos_partition_mbr): ... this. Update all users.
35873 (grub_pc_partition): Rename to ...
35874 (grub_msdos_partition): ... this. Update all users.
35875 (grub_pc_partition_is_empty): Rename to ...
35876 (grub_msdos_partition_is_empty): ... this. Update all users.
35877 (grub_pc_partition_is_extended): Rename to ...
35878 (grub_msdos_partition_is_extended): ... this. Update all users.
35879 (grub_pc_partition_is_bsd): Rename to ...
35880 (grub_msdos_partition_is_bsd): ... this. Update all users.
35882 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35883 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35884 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35885 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35886 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35887 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35888 (gpt_mod_LDFLAGS): Rename to ...
35889 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35890 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35891 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35892 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35893 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35894 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35895 (part_gpt_mod_LDFLAGS): ... this.
35896 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35897 `pcpart.mod' to `msdospart.mod'.
35898 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35900 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35901 (msdospart_mod_LDFLAGS): ... this.
35903 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35905 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35906 (openbsd_opts): Likewise.
35907 (netbsd_opts): Likewise.
35908 (freebsd_flags): Added 0 terminator.
35909 (openbsd_flags): Likewise.
35910 (netbsd_flags): Likewise.
35911 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35912 (grub_cmd_freebsd): Transformed into extended command.
35913 (grub_cmd_openbsd): Likewise.
35914 (grub_cmd_netbsd): Likewise.
35915 (cmd_freebsd): Changed type to grub_extcmd_t.
35916 (cmd_openbsd): Likewise.
35917 (cmd_netbsd): Likewise.
35918 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35919 grub_cmd_openbsd as extended commands.
35920 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35921 cmd_netbsd and cmd_openbsd
35923 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35925 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35927 2009-08-21 Pavel Roskin <proski@gnu.org>
35929 * Makefile.in (install-local): When checking if a file is in the
35930 build directory, use "test -e" to detect symlinks.
35932 * Makefile.in (install-local): Remove all files in
35933 $(DESTDIR)$(pkglibdir) before installing new files there.
35935 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35937 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35940 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35942 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35943 explicitly specified by the user.
35945 2009-08-18 Pavel Roskin <proski@gnu.org>
35947 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35948 grub_uint8_t pointer for data.
35949 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35951 * video/fb/fbutil.c: Remove unnecessary casts.
35953 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35957 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35958 (grub_vbe_set_video_mode): Save active mode info
35959 only after setting the mode.
35960 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35963 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35965 Rename variables for clarity.
35967 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35968 (active_vbe_mode_info): ... this. All users updated.
35969 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35971 (initial_mode): Rename to ...
35972 (initial_vbe_mode): ... this. All users updated.
35973 (mode_in_use): Rename to ..
35974 (vbe_mode_in_use): ... this. All users updated.
35975 (mode_list): Rename to ..
35976 (vbe_mode_list): ... this. All users updated.
35977 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
35978 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
35979 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
35980 'mode_list_size' to 'vbe_mode_list_size'.
35981 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
35982 'best_mode_info' to 'best_vbe_mode_info' and
35983 'best_mode' to 'best_vbe_mode'
35985 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35987 Remove duplicate grub_video_fb_get_video_ptr.
35989 * include/grub/fbutil.h (get_data_ptr): Rename to ...
35990 (grub_video_fb_get_video_ptr): ... this.
35991 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
35992 * video/fb/fbutil.c: Add comment about addressing.
35993 (get_data_ptr): Rename to ...
35994 (grub_video_fb_get_video_ptr): ... this. All users updated.
35995 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
35997 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35999 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36000 grub_dprintf() that was just added.
36002 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36004 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36005 (DEFAULT_VIDEO_MODE): Remove macros.
36006 (grub_linux_boot): Remove assumption that Linux has FB support,
36007 and use "text" as default video mode.
36009 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36011 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36013 * fs/fat.c (grub_fat_read_data): Likewise.
36015 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36017 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36019 (grub_module): Likewise.
36021 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36023 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36024 mbi->cmdline but free playground.
36026 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36028 Handle group offset on UFS1.
36030 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36031 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36033 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36035 Split ufs.mod into ufs1.mod and ufs2.mod.
36037 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36038 (grub_fstest_SOURCES): Likewise.
36039 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36040 (ufs_mod_SOURCES): Remove.
36041 (ufs_mod_CFLAGS): Likewise.
36042 (ufs_mod_LDFLAGS): Likewise.
36043 (ufs1_mod_SOURCES): New variable.
36044 (ufs1_mod_CFLAGS): Likewise.
36045 (ufs1_mod_LDFLAGS): Likewise.
36046 (ufs2_mod_SOURCES): New variable.
36047 (ufs2_mod_CFLAGS): Likewise.
36048 (ufs2_mod_LDFLAGS): Likewise.
36049 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36050 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36052 (grub_emu_SOURCES): Likewise.
36053 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36054 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36055 (grub_setup_SOURCES): Likewise.
36056 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36057 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36058 (grub_setup_SOURCES): Likewise.
36059 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36061 * fs/ufs2.c: New file.
36062 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36064 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36068 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36069 subsystem at the end.
36070 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36071 (video_fb_mod_SOURCES): New variable.
36072 (video_fb_mod_CFLAGS): Likewise.
36073 (video_fb_mod_LDFLAGS): Likewise.
36074 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36075 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36076 * video/i386/pc/vbeblit.c: Moved from here ...
36077 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36078 * video/i386/pc/vbefill.c: Moved from here ...
36079 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36080 * video/i386/pc/vbeutil.c: Moved from here ...
36081 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36082 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36083 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36084 * include/grub/i386/pc/vbefill.h: Moved from here ...
36085 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36086 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36087 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36088 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36089 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36090 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36091 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36092 (grub_video_adapter): Added 'get_info_and_fini'.
36093 (grub_video_get_info_and_fini): New prototype.
36094 (grub_video_set_mode): make modestring const char *.
36095 * loader/i386/linux.c (grub_linux_setup_video): Use
36096 grub_video_get_info_and_fini.
36097 (grub_linux_boot): Move modesetting just before booting.
36098 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36099 grub_video_get_info_and_fini.
36100 * video/i386/pc/vbe.c: Moved framebuffer part ...
36101 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36102 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36103 grub_video_fbstd_colors and grub_video_fb_set_palette.
36104 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36105 grub_video_fb_init.
36106 (grub_video_vbe_fini): Use grub_video_fb_fini.
36107 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36108 render_target and use grub_video_fb_set_active_render_target and
36109 grub_video_fb_set_palette.
36110 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36111 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36112 (grub_video_vbe_adapter): Use framebuffer.
36113 * video/video.c (grub_video_get_info_and_fini): New function.
36114 (grub_video_set_mode): Make modestring const char *.
36115 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36116 values are already initialised.
36118 2009-08-14 Pavel Roskin <proski@gnu.org>
36120 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36122 * boot/i386/pc/diskboot.S: Likewise.
36123 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36124 sectors allow compilation on MacOSX.
36125 * conf/i386-pc.rmk: Enable unconditional compilation of
36128 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36130 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36131 * util/grub.d/00_header.in: Enter interruptible sleep if
36132 GRUB_HIDDEN_TIMEOUT is set.
36134 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36136 * include/grub/symbol.h: Add the LOCAL macro.
36137 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36138 starting with "L_".
36140 2009-08-13 Pavel Roskin <proski@gnu.org>
36142 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36143 any modern compilers we support.
36145 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36146 Use local labels starting with "L_" so that Apple assembler
36147 knows they are local.
36149 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36151 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36152 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36153 (bsd_kernel_types): ... this enum.
36155 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36156 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36157 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36159 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36160 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36161 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36164 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36166 * util/grub-dumpdevtree: Moved from here ...
36167 * util/i386/efi/grub-dumpdevtree: ... to here.
36168 (hexify): New function. Converts a string to its hex version.
36169 Generate hex versions of "efi" and "device-properties" by calling
36170 hexify() on the ASCII strings rather than by hardcoding numbers.
36172 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36174 * fs/jfs.c: Update copyright year.
36176 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36178 * util/grub.d/00_header.in: Fix a comment.
36179 * util/grub.d/10_linux.in: Likewise.
36180 * util/grub.d/10_windows.in: Likewise.
36181 * util/grub.d/10_hurd.in: Likewise.
36183 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36185 * util/grub-mkconfig.in: Allow the user to specify the used font
36188 2009-08-08 Pavel Roskin <proski@gnu.org>
36190 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36191 available, xfs.mod needs it now.
36193 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36194 the "g" modifier in sed when the intention is to strip something
36195 once. This fixes comparison of kernels with multiple dashes.
36197 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36198 on it. Add missing space before closing bracket. Fix
36199 misleading formatting.
36201 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36203 * docs/grub.texi: Major overhaul. Remove all sections that are
36204 specific to GRUB Legacy, or mostly composed of Legacy-specific
36207 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36209 * docs/version.texi: New file. Provides version information for
36212 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36214 * docs/grub.texi: Update CVS information to SVN.
36215 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36217 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36219 * util/grub-mkconfig.in: Remove a wrong `fi'.
36221 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36223 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36224 (grub_jfs_uuid): New function.
36225 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36227 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36229 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36231 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36232 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36234 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36236 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36237 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36240 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36241 not just "vmlinu[zx]".
36242 Moved from here ...
36243 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36246 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36247 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36250 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36252 * util/grub.d/10_freebsd.in: Use an absolute device path for
36253 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36255 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36257 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36258 handling of multiple abstraction modules.
36260 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36262 Fix a bug resulting in black screen when loading Linux using a
36265 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36268 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36269 (grub_vbe_bios_getset_dac_palette_width): New function.
36270 (grub_vbe_bios_get_dac_palette_width)
36271 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36272 grub_vbe_bios_getset_dac_palette_width()).
36274 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36275 check for return status.
36276 (grub_vbe_get_video_mode_info): When getting information for a packed
36277 mode (<= 8 bpp), obtain DAC palette width using
36278 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36279 {red,green,blue}_mark_size.
36281 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36283 * commands/search.c (options): Fix help output to match actual code.
36285 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36287 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36290 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36292 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36293 on XFS or ReiserFS.
36295 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36297 Support Apple partition map with sector size different from 512 bytes.
36299 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36300 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36301 and 'apart.partmap_size'.
36303 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36304 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36308 * commands/i386/cpuid.c (options): New variable.
36309 (grub_cmd_cpuid): Return real error.
36310 (GRUB_MOD_INIT(cpuid)): Declare options.
36312 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36314 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36317 2009-07-31 Bean <bean123ch@gmail.com>
36319 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36321 (grub_fshelp_node): Move inode field to the end.
36322 (grub_xfs_data): Remove inode field.
36323 (grub_xfs_inode_block): Calculate inode size using sblock.
36324 (grub_xfs_inode_offset): Likewise.
36325 (grub_xfs_read_inode): Calculate inode size using sblock.
36326 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36327 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36328 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36329 to match inode size.
36330 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36331 not accessible when data is null.
36332 (grub_xfs_open): Likewise.
36334 2009-07-31 Bean <bean123ch@gmail.com>
36336 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36337 Don't change pv->disk if it's already set.
36339 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36340 (grub_raid_register): ... here.
36341 (grub_raid_rescan): Removed.
36343 * include/grub/raid.h (grub_raid_rescan): Removed.
36345 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36346 (fstest): Replace grub_raid_rescan with module fini function followed
36349 * util/grub-probe.c: Add include file <grub/raid.h>.
36350 (probe_raid_level): New function.
36351 (probe): Detect abstraction by walking the disk device, support two
36352 level of abstraction (LVM on RAID) when detecting partition map.
36354 2009-07-31 Pavel Roskin <proski@gnu.org>
36356 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36357 to grub_zalloc(), it was erroneous.
36358 Reported by Bean <bean123ch@gmail.com>
36360 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36362 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36363 embedding zone, not only the first one.
36365 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36367 * term/gfxterm.c (clear_char): New function.
36368 (grub_virtual_screen_setup): Use clear_char.
36369 (scroll_up): Likewise.
36370 (grub_virtual_screen_cls): Likewise.
36372 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36374 * util/deviceiter.c (get_acceleraid_disk_name): New static
36376 (grub_util_iterate_devices): Handle Accelraid devices.
36377 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36379 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36381 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36382 separator for the suggested gfxpayload string (';' collides with the
36383 parser and needs escaping).
36385 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36387 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36388 Clear direction flag before jumping to OS.
36389 (grub_multiboot2_real_boot): Likewise.
36391 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36393 * util/i386/pc/grub-install: Fix parsing of --disk-module
36396 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36398 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36401 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36403 * util/grub-mkconfig.in (package_version): New variable.
36404 Use it do display the version.
36406 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36408 * kern/file.c (grub_file_open): Revert to previous check with
36411 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36413 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36414 from help line. It's out of sync with code.
36416 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36418 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36419 entries on failed boot.
36421 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36423 * kern/file.c (grub_file_open): Fix an error check.
36425 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36427 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36428 partition map couldn't be identified.
36430 2009-07-23 Pavel Roskin <proski@gnu.org>
36432 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36433 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36434 case of little endian words becomes just an optimization.
36435 Respect const modifier.
36436 (md5_final): Use code that doesn't depend on endianness.
36438 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36439 to avoid loss of upper bits if align is unsigned and shorter
36442 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36444 UUID support for UFS
36446 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36447 (grub_ufs_uuid): New function.
36448 (grub_ufs_fs): add .uuid
36450 2009-07-21 Pavel Roskin <proski@gnu.org>
36452 * kern/dl.c (grub_dl_check_header): Make static.
36454 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36456 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36457 add drivemap for Vista. It breaks Windows 7.
36459 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36461 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36464 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36468 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36469 (grub_fstest_SOURCES): Likewise.
36470 (pkglib_MODULES): Add befs.mod.
36471 (befs_mod_SOURCES): New variable.
36472 (befs_mod_CFLAGS): Likewise.
36473 (befs_mod_LDFLAGS): Likewise.
36474 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36475 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36476 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36477 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36478 (grub_setup_SOURCES): Likewise.
36479 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36480 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36481 (grub_setup_SOURCES): Likewise.
36482 * fs/befs.c: New file.
36483 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36484 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36485 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36486 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36487 (B_KEY_INDEX_ALIGN): New declaration.
36488 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36489 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36490 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36491 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36492 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36493 (grub_afs_mount) [MODE_BFS]: Likewise.
36494 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36495 (grub_afs_fs): Use GRUB_AFS_FSNAME
36496 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36497 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36498 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36499 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36501 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36503 * util/getroot.c (find_root_device): Add support for MacOSX.
36504 * util/hostdisk.c: Likewise.
36506 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36508 * font/font.c (find_glyph): Check whether a font is present to avoid
36509 segmentation fault.
36511 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36513 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36515 2009-07-20 Pavel Roskin <proski@gnu.org>
36517 * configure.ac: Trim excessively wordy excuses.
36519 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36521 Add symlink, mtime and label support to AtheFS.
36523 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36524 (grub_afs_iterate_dir): Handle symlinks.
36525 (grub_afs_open): Use grub_afs_read_symlink.
36526 (grub_afs_dir): Likewise.
36528 (grub_afs_label): New function.
36529 (grub_afs_fs): Add grub_afs_label.
36530 (grub_afs_read_symlink): New function.
36532 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36534 Fix AtheFS support.
36536 * fs/afs.c: Fix comments style.
36537 (grub_afs_blockrun): Declare as packed.
36538 (grub_afs_datastream): Likewise.
36539 (grub_afs_bnode): Likewise.
36540 (grub_afs_btree): Likewise.
36541 (grub_afs_sblock): Likewise.
36542 Declare `name' as char.
36543 (grub_afs_inode): Declare as packed.
36544 Change void *vnode to grub_uint32_t unused.
36545 (grub_afs_iterate_dir): Check that key_size is positive.
36546 (grub_afs_mount): Don't read superblock twice.
36547 (grub_afs_dir): Don't free node in case of error,
36548 grub_fshelp_find_file already handles this.
36549 (grub_afs_open): Likewise.
36551 2009-07-19 Pavel Roskin <proski@gnu.org>
36553 * Makefile.in: Remove LIBLZO and enable_lzo.
36554 * conf/i386-pc.rmk: Remove lzo support.
36555 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36556 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36558 * kern/i386/pc/lzo1x.S: Remove.
36559 * kern/i386/pc/startup.S: Remove lzo support.
36560 * util/i386/pc/grub-mkimage.c: Likewise.
36562 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36564 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36565 * fs/xfs.c (grub_xfs_dir): Likewise.
36566 * fs/afs.c (grub_afs_dir): Likewise.
36567 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36568 (grub_iso9660_open): Likewise.
36569 * fs/jfs.c (grub_jfs_open): Likewise.
36570 * fs/ext2.c (grub_ext2_dir): Likewise.
36571 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36572 * script/sh/lexer.c (grub_script_yylex): Likewise.
36574 2009-07-16 Pavel Roskin <proski@gnu.org>
36576 * configure.ac: Never add "-c" to CFLAGS.
36578 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36580 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36581 grub_cv_cc_efiemu should be used.
36583 * configure.ac: Typo fixes.
36585 * kern/mm.c (grub_zalloc): New function.
36586 (grub_debug_zalloc): Likewise.
36587 * include/grub/mm.h: Declare grub_zalloc() and
36588 grub_debug_zalloc().
36589 * util/misc.c (grub_zalloc): New function.
36590 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36591 instead of grub_malloc(), remove unneeded initializations.
36592 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36593 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36594 * commands/parttool.c (grub_cmd_parttool): Likewise.
36595 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36596 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36597 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36598 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36599 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36600 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36601 (grub_cmd_efiemu_pnvram): Likewise.
36602 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36603 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36604 (grub_iso9660_iterate_dir): Likewise.
36605 * fs/jfs.c (grub_jfs_opendir): Likewise.
36606 * fs/ntfs.c (list_file): Likewise.
36607 (grub_ntfs_mount): Likewise.
36608 * kern/disk.c (grub_disk_open): Likewise.
36609 * kern/dl.c (grub_dl_load_core): Likewise.
36610 * kern/elf.c (grub_elf_file): Likewise.
36611 * kern/env.c (grub_env_context_open): Likewise.
36612 (grub_env_set): Likewise.
36613 (grub_env_set_data_slot): Likewise.
36614 * kern/file.c (grub_file_open): Likewise.
36615 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36616 * loader/i386/multiboot.c (grub_module): Likewise.
36617 * loader/xnu.c (grub_xnu_create_key): Likewise.
36618 (grub_xnu_create_value): Likewise.
36619 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36620 (read_config_file): Likewise.
36621 * normal/menu_entry.c (make_screen): Likewise.
36622 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36623 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36624 * script/sh/script.c (grub_script_parse): Likewise.
36625 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36626 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36627 * video/readers/png.c (grub_png_output_byte): Likewise.
36628 (grub_video_reader_png): Likewise.
36630 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36632 Enable all targets that can be built by default
36634 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36635 grub-mkfont and grub-fstest if they can be built
36637 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36639 Fix hang and segmentation fault in grub-emu-usb
36641 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36642 * util/usb.c (grub_libusb_devices): likewise
36643 (grub_libusb_init): rename to ...
36644 (GRUB_MOD_INIT (libusb)):...this
36645 (grub_libusb_fini): rename to ..
36646 (GRUB_MOD_FINI (libusb)):...this
36647 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36648 * include/grub/disk.h (grub_raid_init): removed, it's useless
36649 (grub_raid_fini): likewise
36650 (grub_lvm_init): likewise
36651 (grub_lvm_fini): likewise
36652 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36655 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36659 * Makefile.in (LIBUSB): new macro
36660 * genmk.rb (Utility/print_tail): new method
36661 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36662 (top level): call util.print_tail at the end.
36664 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36666 Make FreeBSD accept zpool.cache
36668 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36669 type is /boot/zfs/zpool.cache
36671 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36675 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36676 correct wrong typedef
36677 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36679 2009-07-15 Pavel Roskin <proski@gnu.org>
36681 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36682 * kern/disk.c (struct grub_disk_cache): Likewise.
36684 * commands/probe.c (options): Typo fix.
36686 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36687 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36689 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36691 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36692 the end of "Error" to make the message more readable.
36694 * boot/i386/pc/boot.S (kernel_segment): Remove.
36695 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36698 * boot/i386/pc/boot.S (boot_version): Remove.
36699 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36702 * include/grub/i386/pc/boot.h: Sort all offsets.
36703 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36704 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36705 * boot/i386/pc/boot.S: Assert location of every offset listed in
36706 include/grub/i386/pc/boot.h.
36708 2009-07-13 Pavel Roskin <proski@gnu.org>
36710 * include/grub/i386/coreboot/machine.h: Rename
36711 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36712 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36713 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36715 * kern/dl.c: Force native word size to suppress warnings when
36716 compiling grub-emu.
36718 * kern/device.c (grub_device_iterate): Change struct part_ent to
36719 hold the name, not a pointer to it. Use one grub_malloc() per
36720 partition, not two. Free partition_name if grub_malloc() fails.
36721 Set ents to NULL only before grub_partition_iterate() is called.
36723 2009-07-11 Bean <bean123ch@gmail.com>
36725 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36728 2009-07-10 Bean <bean123ch@gmail.com>
36729 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36731 * kern/ieee1275/openfw.c (grub_children_iterate)
36732 (grub_devalias_iterate): Fix size evaluation for property or path
36733 strings, which was broken since r2132.
36735 2009-07-07 Pavel Roskin <proski@gnu.org>
36737 * commands/search.c (search_file): Merge into ...
36738 (search_fs): ... this. Accept search type as argument.
36739 (grub_cmd_search): Pass search type to search_fs().
36741 * include/grub/util/console.h: New file.
36742 * util/console.c: Use it instead of grub/machine/console.h.
36743 * util/grub-emu.c: Likewise.
36745 * lib/arg.c (find_long_option): Remove.
36746 (find_long): Add `len' argument, make `s' const char *.
36747 (grub_arg_parse): Parse long options in place, not in a
36750 2009-07-06 Pavel Roskin <proski@gnu.org>
36752 * commands/search.c (search_fs): Fix potential NULL pointer
36755 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36758 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36760 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36763 2009-07-05 Pavel Roskin <proski@gnu.org>
36765 * include/grub/i386/linux.h (struct linux_kernel_params):
36766 Restore padding3, it's still needed.
36768 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36770 * util/osdetect.lua: Likewise.
36772 2009-07-05 Bean <bean123ch@gmail.com>
36774 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36776 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36777 (grub_lua_getenv): Likewise.
36778 (grub_lua_setenv): Likewise.
36779 (save_errno): New function.
36780 (push_result): Likewise.
36781 (grub_lua_enum_device): Likewise.
36782 (grub_lua_enum_file): Likewise.
36783 (grub_lua_file_open): Likewise.
36784 (grub_lua_file_close): Likewise.
36785 (grub_lua_file_seek): Likewise.
36786 (grub_lua_file_read): Likewise.
36787 (grub_lua_file_getline): Likewise.
36788 (grub_lua_file_getsize): Likewise.
36789 (grub_lua_file_getpos): Likewise.
36790 (grub_lua_file_eof): Likewise.
36791 (grub_lua_file_exist): Likewise.
36792 (grub_lua_add_menu): Likewise.
36794 * script/lua/grub_lua.h (isupper): New inline function.
36795 (islower): Likewise.
36796 (ispunct): Likewise.
36797 (isxdigit): Likewise.
36798 (strcspn): Change to normal function.
36799 (strpbkr): New function declaration.
36800 (memchr): Likewise.
36802 * script/lua/grub_main.c (scan_str): New function.
36803 (strcspn): Likewise.
36804 (strpbrk): Likewise.
36805 (memchr): Likewise.
36807 * script/lua/linit.c (lualibs): Enable the string library.
36809 * util/osdetect.lua: New file.
36811 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36813 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36814 `capabilities' member.
36816 2009-07-02 Pavel Roskin <proski@gnu.org>
36818 * genparttoollist.sh: Add missing newline at the end.
36820 2009-07-01 Pavel Roskin <proski@gnu.org>
36822 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36824 * util/hostdisk.c (open_device): Remove `const' from
36825 `sysctl_size', as sysctlbyname() can change it (in this case it
36826 doesn't actually happen).
36828 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36829 using signed long int constants.
36831 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36832 constant to avoid a warning on FreeBSD.
36834 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36837 * Makefile.in: Install include/grub/machine symlink.
36839 * Makefile.in: When installing symlinks, use "cp -fR", which
36840 works on FreeBSD and MacOSX.
36841 From Yves Blusseau <cl7m42e02@sneakemail.com>
36843 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36844 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36846 * util/misc.c: Move grub_reboot() and grub_halt() ...
36847 * util/grub-emu.c: ... here. Make main_env static.
36848 * include/grub/util/misc.h: Remove main_env.
36850 * kern/mm.c: Use correct format to print size_t.
36852 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36853 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36854 * kern/powerpc/dl.c: Likewise.
36855 * kern/sparc64/dl.c: Likewise.
36856 * kern/x86_64/dl.c: Likewise.
36858 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36860 Fix grub-emu build on sparc64-ieee1275.
36862 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36865 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36867 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36868 (grub_reboot, grub_halt): New functions.
36870 * util/i386/pc/misc.c: Delete. Update all users.
36871 * util/sparc64/ieee1275/misc.c: Likewise.
36872 * util/powerpc/ieee1275/misc.c: Likewise.
36874 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36876 * conf/i386.rmk (setjmp_mod_SOURCES)
36877 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36878 * conf/common.rmk (setjmp_mod_SOURCES)
36879 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36880 to use $(target_cpu).
36881 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36882 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36883 * conf/powerpc-ieee1275.rmk: Likewise.
36884 * conf/sparc64-ieee1275.rmk: Likewise.
36886 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36887 $(target_cpu) for kern/$(target_cpu)/dl.c.
36888 * conf/i386-efi.rmk: Likewise.
36889 * conf/i386-ieee1275.rmk: Likewise.
36890 * conf/x86_64-efi.rmk: Likewise.
36891 * conf/i386-coreboot.rmk: Likewise.
36892 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36893 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36894 kern/$(target_cpu)/cache.S.
36895 * conf/sparc64-ieee1275.rmk: Likewise.
36897 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36899 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36900 type to `grub_uint8_t', and adjust `padding9' accordingly.
36902 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36904 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36906 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36907 assembly in final jump, using register constraints.
36909 (grub_linux_boot): For text mode, initialize `have_vga' using
36910 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36912 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36913 right before the final jump.
36915 Set `video_mode' to 0x3.
36917 Document initialization of `video_page', `video_mode' and
36920 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36922 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36923 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36924 and set GRUB_LINUX_FLAG_QUIET appropriately.
36926 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36928 Fix build on Debian / sparc.
36930 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36932 2009-06-28 Pavel Roskin <proski@gnu.org>
36934 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36937 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36939 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36941 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36944 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36948 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36949 file can't be opened. grub_file_open() is already supposed to set
36950 grub_errno / grub_errmsg appropriately.
36951 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36953 2009-06-27 Pavel Roskin <proski@gnu.org>
36954 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36956 * include/grub/dl.h: Include grub/elf.h.
36957 (struct grub_dl): Add symtab field.
36958 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36959 GRUB_MODULES_MACHINE_READONLY.
36960 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36961 of the header for read-only modules.
36962 (grub_dl_unload): Free mod->symtab for read-only modules.
36963 * kern/i386/dl.c: Use mod->symtab.
36964 * kern/powerpc/dl.c: Likewise.
36965 * kern/sparc64/dl.c: Likewise.
36966 * kern/x86_64/dl.c: Likewise.
36968 * conf/i386-qemu.rmk: New file.
36969 * kern/i386/qemu/startup.S: Likewise.
36970 * kern/i386/qemu/mmap.c: Likewise.
36971 * boot/i386/qemu/boot.S: Likewise.
36972 * include/grub/i386/qemu/time.h: Likewise.
36973 * include/grub/i386/qemu/serial.h: Likewise.
36974 * include/grub/i386/qemu/kernel.h: Likewise.
36975 * include/grub/i386/qemu/console.h: Likewise.
36976 * include/grub/i386/qemu/boot.h: Likewise.
36977 * include/grub/i386/qemu/init.h: Likewise.
36978 * include/grub/i386/qemu/machine.h: Likewise.
36979 * include/grub/i386/qemu/loader.h: Likewise.
36980 * include/grub/i386/qemu/memory.h: Likewise.
36982 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
36983 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
36984 [qemu] (pkglib_IMAGES): Add `boot.img'.
36985 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
36986 [qemu] (boot_img_FORMAT): New variables.
36987 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
36988 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
36989 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
36990 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
36991 [qemu] (kernel_img_FORMAT): New variables.
36993 * configure.ac: Recognise `i386-qemu'.
36995 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
36996 (for no compression).
36997 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
36998 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
36999 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37000 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37003 2009-06-27 Pavel Roskin <proski@gnu.org>
37005 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37007 * efiemu/prepare32.c: Likewise.
37008 * efiemu/prepare64.c: Likewise.
37010 2009-06-26 Pavel Roskin <proski@gnu.org>
37012 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37013 * include/grub/elf.h: Define symbols without "32" or "64" based
37014 on GRUB_TARGET_WORDSIZE.
37015 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37016 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37018 * efiemu/loadcore64.c: Likewise.
37019 * loader/i386/bsd32.c: Likewise.
37020 * loader/i386/bsd64.c: Likewise.
37021 * kern/dl.c: Remove own ELF definitions.
37022 * util/i386/efi/grub-mkimage.c: Likewise.
37024 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37026 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37027 segment 0x0 unconditionally, because the reference generated by
37028 GAS is an absolute address.
37030 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37032 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37033 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37035 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37037 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37038 indexes. Check for -f explicitly.
37039 (search_file): Improve error message.
37040 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37042 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37044 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37045 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37047 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37049 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37050 * conf/i386-ieee1275.rmk: Likewise.
37051 * conf/i386-coreboot.rmk: Likewise.
37053 * kern/i386/pc/startup.S (grub_stop): Remove function.
37054 * kern/i386/ieee1275/startup.S: Likewise.
37055 * kern/i386/coreboot/startup.S: Likewise.
37056 * kern/i386/misc.S (grub_stop): New function.
37058 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37060 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37061 * kern/i386/realmode.S (real_to_prot): ... to here.
37063 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37065 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37067 (kernel_elf_SOURCES): Rename to ...
37068 (kernel_img_SOURCES): ... this.
37069 (kernel_elf_HEADERS): Rename to ...
37070 (kernel_img_HEADERS): ... this. Update all users.
37071 (kernel_elf_ASFLAGS): Rename to ...
37072 (kernel_img_ASFLAGS): ... this.
37073 (kernel_elf_CFLAGS): Rename to ...
37074 (kernel_img_CFLAGS): ... this.
37075 (kernel_elf_LDFLAGS): Rename to ...
37076 (kernel_img_LDFLAGS): ... this.
37077 * conf/i386-coreboot.rmk: Likewise.
37078 * conf/powerpc-ieee1275.rmk: Likewise.
37080 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37083 2009-06-21 Pavel Roskin <proski@gnu.org>
37085 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37086 to match nested functions.
37087 * loader/sparc64/ieee1275/linux.c: Likewise.
37089 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37091 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37093 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37094 all i386 platforms.
37096 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37098 Fix asm file handling on ELF, and remove workarounds.
37100 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37101 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37102 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37103 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37105 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37107 Load BSD ELF modules
37109 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37110 and loader/i386/bsd64.c
37111 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37112 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37113 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37114 (grub_freebsd_load_elfmodule32): New declaration
37115 (grub_freebsd_load_elfmoduleobj64): Likewise
37116 (grub_freebsd_load_elf_meta32): Likewise
37117 (grub_freebsd_load_elf_meta64): Likewise
37118 (grub_freebsd_add_meta): Likewise
37119 (grub_freebsd_add_meta_module): Likewise
37120 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37121 (grub_freebsd_add_meta_module): Likewise and move module-specific
37122 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37123 (grub_cmd_freebsd): Add elf-kernel specific parts
37124 based on grub_freebsd_add_meta_module
37125 (grub_cmd_freebsd_module): Add type parsing moved from
37126 grub_freebsd_add_meta_module
37127 (grub_cmd_freebsd_module_elf): New function
37128 (cmd_freebsd_module_elf): New variable
37129 (GRUB_MOD_INIT): Register freebsd_module_elf
37130 * loader/i386/bsd32.c: New file
37131 * loader/i386/bsd64.c: Likewise
37132 * loader/i386/bsdXX.c: Likewise
37133 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37134 (grub_elf64_load): Likewise
37135 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37137 (grub_elf64_load_hook_t): Likewise
37139 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37141 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37143 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37144 don't write a menu entry for recovery mode.
37146 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37148 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37149 after it's no longer needed.
37151 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37153 * include/grub/i386/loader.h (grub_linux_prot_size)
37154 (grub_linux_tmp_addr, grub_linux_real_addr)
37155 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37156 GRUB_MACHINE_PCBIOS.
37157 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37158 common grub_util_info() call to ...
37159 (generate_image): ... here.
37160 Fix use of uninitialized memory, comparison of signed with
37161 unsigned integers and memory leak.
37162 Remove bogus module address message.
37164 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37166 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37168 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37170 2009-06-19 Pavel Roskin <proski@gnu.org>
37172 * configure.ac: Remove stray AC_MSG_CHECKING.
37174 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37176 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37178 2009-06-18 Pavel Roskin <proski@gnu.org>
37180 * conf/common.rmk: Add fs_file.mod.
37181 * disk/fs_file.c: New file.
37182 * include/grub/disk.h (enum grub_disk_dev_id): Add
37183 GRUB_DISK_DEVICE_FILE_ID.
37185 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37187 Fix build with Apple's toolchain. Part 2
37189 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37192 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37194 Fix build with Apple's toolchain. Part 1
37196 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37198 * configure.ac: remove a leftover AC_MSG_RESULT
37199 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37202 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37206 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37207 (decomp_block): initialize ch
37208 use grub_memcpy instead of memcpy
37210 2009-06-17 Pavel Roskin <proski@gnu.org>
37212 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37213 version, use declarations needed to use vga_text as the startup
37216 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37217 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37219 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37220 and grub_at_keyboard_fini(), it's done on module load and
37223 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37225 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37226 file can't be found.
37227 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37229 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37231 Fix newline handling
37233 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37234 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37235 (grub_script_yylex): don't segfault on unterminated script
37236 newline terminates command and variable
37238 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37240 avoid double grub_adjust_range call. Bug reported by David Simner
37242 * kern/disk.c (grub_disk_write): change to raw disk access before
37245 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37247 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37248 spaces, for the benefit of help2man.
37249 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37251 2009-06-16 Pavel Roskin <proski@gnu.org>
37253 * kern/i386/halt.c: Include grub/machine/init.h.
37254 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37256 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37258 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37259 drivemap menuentry.
37261 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37263 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37266 2009-06-16 Pavel Roskin <proski@gnu.org>
37268 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37269 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37270 save %dx, we only need %dl and we never change it.
37271 * boot/i386/pc/cdboot.S: Don't set the root drive.
37272 * boot/i386/pc/pxeboot.S: Likewise.
37273 * include/grub/i386/pc/boot.h: Remove
37274 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37275 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37276 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37277 * kern/i386/pc/init.c (make_install_device): Remove references
37278 to grub_root_drive.
37279 * kern/i386/pc/startup.S: Likewise.
37280 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37282 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37286 * commands/xnu_uuid.c: new file
37287 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37288 (xnu_uuid_mod_SOURCES): new variable
37289 (xnu_uuid_mod_CFLAGS): likewise
37290 (xnu_uuid_mod_LDFLAGS): likewise
37291 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37292 * conf/i386-ieee1275.rmk: likewise
37293 * conf/i386-pc.rmk: likewise
37294 * conf/powerpc-ieee1275.rmk: likewise
37295 * conf/sparc64-ieee1275.rmk: likewise
37296 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37298 2009-06-16 Pavel Roskin <proski@gnu.org>
37300 * configure.ac: Avoid '==' in test command, it's not portable.
37302 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37306 * commands/probe.c: new file
37307 * conf/common.rmk (pkglib_MODULES): add probe.mod
37308 (probe_mod_SOURCES): new variable
37309 (probe_mod_CFLAGS): likewise
37310 (probe_mod_LDFLAGS): likewise
37311 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37312 * conf/i386-ieee1275.rmk: likewise
37313 * conf/i386-pc.rmk: likewise
37314 * conf/powerpc-ieee1275.rmk: likewise
37315 * conf/sparc64-ieee1275.rmk: likewise
37317 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37319 Fix handling of string like \"hello\" and "a
37322 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37323 (grub_script_yylex): fix parsing of quoting, escaping and newline
37325 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37327 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37330 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37332 * util/grub-mkconfig.in: Fix parsing of --output option.
37334 2009-06-12 Pavel Roskin <proski@gnu.org>
37336 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37337 genmk.rb don't need to be generated or installed.
37339 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37341 * commands/i386/pc/drivemap_int13h.S: add more comments
37343 2009-06-11 Pavel Roskin <proski@gnu.org>
37345 * Makefile.in (uninstall): Uninstall manuals.
37347 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37348 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37349 and update-grub_lib in two places.
37350 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37352 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37353 a compiler warning.
37355 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37356 `entry_lo' to fix variable shadowing.
37358 2009-06-11 Christian Franke <franke@computer.org>
37360 * kern/misc.c (__enable_execute_stack): Add missing return type
37361 to prevent gcc warning.
37363 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37365 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37367 2009-06-11 Pavel Roskin <proski@gnu.org>
37369 * Makefile.in: Don't rely on any scripts being executable.
37370 Always use $(SHELL) to run shell scripts.
37372 * configure.ac: Always define ___main if using -nostdlib. This
37373 fixes tests on Cygwin.
37375 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37379 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37380 is in bytes and not in blocks
37382 2009-06-11 Pavel Roskin <proski@gnu.org>
37384 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37387 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37389 * util/grub.d/30_os-prober.in: Fix a comment. Source
37390 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37391 to set the root device. Place drivemap command in the generated
37394 2009-06-11 Pavel Roskin <proski@gnu.org>
37396 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37397 have long been resolved.
37399 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37401 * util/grub.d/10_linux.in: Capitalise "Linux".
37403 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37405 2009-06-11 Pavel Roskin <proski@gnu.org>
37407 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37408 fix a gcc warning and ensure that the function won't ever exit.
37410 * kern/i386/ieee1275/init.c: Add missing prototype for
37411 grub_stop_floppy().
37413 * loader/ieee1275/multiboot2.c [__i386__]: Include
37414 grub/cpu/multiboot.h.
37416 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37417 casts to short - they are not portable and cause warnings. Fix
37418 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37420 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37424 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37426 (grub_get_root_biosnumber_saved): new variable
37427 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37428 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37429 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37430 %dx after the call if necessary
37431 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37432 (boot_mod_SOURCES): remove
37433 (boot_mod_CFLAGS): remove
37434 (boot_mod_LDFLAGS): remove
37435 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37436 (boot_mod_SOURCES): new variable
37437 (boot_mod_CFLAGS): likewise
37438 (boot_mod_LDFLAGS): likewise
37439 * conf/i386-efi.rmk: likewise
37440 * conf/i386-ieee1275.rmk: likewise
37441 * conf/i386-pc.rmk: likewise
37442 * conf/powerpc-ieee1275.rmk: likewise
37443 * conf/sparc64-ieee1275.rmk: likewise
37444 * conf/x86_64-efi.rmk: likewise
37445 * include/grub/i386/pc/biosnum.h: new file
37446 * lib/i386/pc/biosnum.c: likewise
37447 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37448 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37449 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37451 2009-06-10 Pavel Roskin <proski@gnu.org>
37453 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37454 Use separate variables. Read only the file size at the end, but
37455 not the checksum that we don't use.
37457 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37458 Adjust all callers.
37460 * kern/ieee1275/openfw.c: Remove libc includes.
37461 * kern/ieee1275/cmain.c: Likewise.
37462 * include/grub/ieee1275/ieee1275.h: Likewise.
37464 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37467 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37469 * Makefile.in: Remove all trailing whitespace.
37470 * conf/i386-pc.rmk: Likewise.
37471 * conf/powerpc-ieee1275.rmk: Likewise.
37472 * conf/sparc64-ieee1275.rmk: Likewise.
37473 * docs/grub.texi: Likewise.
37474 * docs/texinfo.tex: Likewise.
37475 * disk/fs_uuid.c: Likewise.
37476 * disk/lvm.c: Likewise.
37477 * disk/scsi.c: Likewise.
37478 * disk/ata.c: Likewise.
37479 * disk/ieee1275/ofdisk.c: Likewise.
37480 * disk/i386/pc/biosdisk.c: Likewise.
37481 * disk/host.c: Likewise.
37482 * disk/raid.c: Likewise.
37483 * disk/efi/efidisk.c: Likewise.
37484 * disk/usbms.c: Likewise.
37485 * disk/memdisk.c: Likewise.
37486 * disk/loopback.c: Likewise.
37487 * kern/powerpc/dl.c: Likewise.
37488 * kern/device.c: Likewise.
37489 * kern/dl.c: Likewise.
37490 * kern/sparc64/dl.c: Likewise.
37491 * kern/ieee1275/ieee1275.c: Likewise.
37492 * kern/term.c: Likewise.
37493 * kern/fs.c: Likewise.
37494 * kern/i386/dl.c: Likewise.
37495 * kern/i386/pc/startup.S: Likewise.
37496 * kern/i386/pc/init.c: Likewise.
37497 * kern/i386/pc/mmap.c: Likewise.
37498 * kern/i386/pc/lzo1x.S: Likewise.
37499 * kern/i386/ieee1275/init.c: Likewise.
37500 * kern/i386/realmode.S: Likewise.
37501 * kern/i386/tsc.c: Likewise.
37502 * kern/partition.c: Likewise.
37503 * kern/corecmd.c: Likewise.
37504 * kern/file.c: Likewise.
37505 * kern/efi/efi.c: Likewise.
37506 * kern/efi/init.c: Likewise.
37507 * kern/efi/mm.c: Likewise.
37508 * kern/main.c: Likewise.
37509 * kern/err.c: Likewise.
37510 * kern/env.c: Likewise.
37511 * kern/disk.c: Likewise.
37512 * kern/generic/millisleep.c: Likewise.
37513 * kern/generic/rtc_get_time_ms.c: Likewise.
37514 * kern/misc.c: Likewise.
37515 * kern/parser.c: Likewise.
37516 * genmk.rb: Likewise.
37517 * configure.ac: Likewise.
37518 * boot/i386/pc/diskboot.S: Likewise.
37519 * boot/i386/pc/pxeboot.S: Likewise.
37520 * boot/i386/pc/boot.S: Likewise.
37521 * boot/i386/pc/lnxboot.S: Likewise.
37522 * boot/i386/pc/cdboot.S: Likewise.
37523 * parttool/pcpart.c: Likewise.
37524 * video/readers/tga.c: Likewise.
37525 * video/video.c: Likewise.
37526 * video/bitmap.c: Likewise.
37527 * lib/envblk.c: Likewise.
37528 * lib/i386/setjmp.S: Likewise.
37529 * fs/xfs.c: Likewise.
37530 * fs/afs.c: Likewise.
37531 * fs/fat.c: Likewise.
37532 * fs/ntfs.c: Likewise.
37533 * fs/udf.c: Likewise.
37534 * fs/affs.c: Likewise.
37535 * fs/iso9660.c: Likewise.
37536 * fs/hfs.c: Likewise.
37537 * fs/fshelp.c: Likewise.
37538 * fs/ext2.c: Likewise.
37539 * fs/jfs.c: Likewise.
37540 * fs/reiserfs.c: Likewise.
37541 * fs/hfsplus.c: Likewise.
37542 * fs/minix.c: Likewise.
37543 * fs/cpio.c: Likewise.
37544 * fs/sfs.c: Likewise.
37545 * fs/ufs.c: Likewise.
37546 * efiemu/prepare.c: Likewise.
37547 * efiemu/loadcore_common.c: Likewise.
37548 * efiemu/runtime/efiemu.sh: Likewise.
37549 * efiemu/runtime/efiemu.S: Likewise.
37550 * efiemu/runtime/efiemu.c: Likewise.
37551 * efiemu/pnvram.c: Likewise.
37552 * efiemu/main.c: Likewise.
37553 * efiemu/i386/pc/cfgtables.c: Likewise.
37554 * efiemu/i386/loadcore64.c: Likewise.
37555 * efiemu/i386/loadcore32.c: Likewise.
37556 * efiemu/loadcore.c: Likewise.
37557 * efiemu/symbols.c: Likewise.
37558 * efiemu/mm.c: Likewise.
37559 * include/grub/autoefi.h: Likewise.
37560 * include/grub/datetime.h: Likewise.
37561 * include/grub/term.h: Likewise.
37562 * include/grub/hfs.h: Likewise.
37563 * include/grub/lvm.h: Likewise.
37564 * include/grub/i386/tsc.h: Likewise.
37565 * include/grub/i386/linux.h: Likewise.
37566 * include/grub/i386/xnu.h: Likewise.
37567 * include/grub/i386/efiemu.h: Likewise.
37568 * include/grub/i386/pc/biosdisk.h: Likewise.
37569 * include/grub/i386/pc/memory.h: Likewise.
37570 * include/grub/i386/pc/vbe.h: Likewise.
37571 * include/grub/parttool.h: Likewise.
37572 * include/grub/video.h: Likewise.
37573 * include/grub/memory.h: Likewise.
37574 * include/grub/fs.h: Likewise.
37575 * include/grub/partition.h: Likewise.
37576 * include/grub/xnu.h: Likewise.
37577 * include/grub/efi/api.h: Likewise.
37578 * include/grub/efi/pe32.h: Likewise.
37579 * include/grub/efi/memory.h: Likewise.
37580 * include/grub/multiboot.h: Likewise.
37581 * include/grub/usbdesc.h: Likewise.
37582 * include/grub/multiboot2.h: Likewise.
37583 * include/grub/acpi.h: Likewise.
37584 * include/grub/efiemu/efiemu.h: Likewise.
37585 * include/grub/disk.h: Likewise.
37586 * include/grub/ieee1275/ieee1275.h: Likewise.
37587 * include/grub/net.h: Likewise.
37588 * include/grub/machoload.h: Likewise.
37589 * include/grub/macho.h: Likewise.
37590 * include/multiboot.h: Likewise.
37591 * genmoddep.awk: Likewise.
37592 * normal/main.c: Likewise.
37593 * normal/menu_entry.c: Likewise.
37594 * normal/menu_viewer.c: Likewise.
37595 * normal/completion.c: Likewise.
37596 * normal/cmdline.c: Likewise.
37597 * normal/misc.c: Likewise.
37598 * normal/datetime.c: Likewise.
37599 * bus/usb/usbtrans.c: Likewise.
37600 * bus/usb/ohci.c: Likewise.
37601 * bus/usb/uhci.c: Likewise.
37602 * bus/usb/usb.c: Likewise.
37603 * mmap/efi/mmap.c: Likewise.
37604 * mmap/i386/pc/mmap_helper.S: Likewise.
37605 * mmap/i386/pc/mmap.c: Likewise.
37606 * mmap/i386/mmap.c: Likewise.
37607 * mmap/i386/uppermem.c: Likewise.
37608 * mmap/mmap.c: Likewise.
37609 * commands/acpi.c: Likewise.
37610 * commands/echo.c: Likewise.
37611 * commands/blocklist.c: Likewise.
37612 * commands/loadenv.c: Likewise.
37613 * commands/usbtest.c: Likewise.
37614 * commands/boot.c: Likewise.
37615 * commands/parttool.c: Likewise.
37616 * commands/search.c: Likewise.
37617 * commands/cat.c: Likewise.
37618 * commands/i386/pc/play.c: Likewise.
37619 * commands/i386/pc/drivemap.c: Likewise.
37620 * commands/i386/pc/vbeinfo.c: Likewise.
37621 * commands/i386/pc/acpi.c: Likewise.
37622 * commands/i386/pc/vbetest.c: Likewise.
37623 * commands/ls.c: Likewise.
37624 * commands/cmp.c: Likewise.
37625 * commands/test.c: Likewise.
37626 * commands/efi/acpi.c: Likewise.
37627 * commands/gptsync.c: Likewise.
37628 * commands/help.c: Likewise.
37629 * partmap/amiga.c: Likewise.
37630 * partmap/apple.c: Likewise.
37631 * partmap/acorn.c: Likewise.
37632 * partmap/pc.c: Likewise.
37633 * partmap/sun.c: Likewise.
37634 * partmap/gpt.c: Likewise.
37635 * script/sh/lexer.c: Likewise.
37636 * script/sh/function.c: Likewise.
37637 * font/font.c: Likewise.
37638 * font/font_cmd.c: Likewise.
37639 * loader/powerpc/ieee1275/linux.c: Likewise.
37640 * loader/efi/chainloader.c: Likewise.
37641 * loader/multiboot_loader.c: Likewise.
37642 * loader/macho.c: Likewise.
37643 * loader/i386/multiboot.c: Likewise.
37644 * loader/i386/linux.c: Likewise.
37645 * loader/i386/pc/linux.c: Likewise.
37646 * loader/i386/pc/multiboot2.c: Likewise.
37647 * loader/i386/pc/chainloader.c: Likewise.
37648 * loader/i386/pc/xnu.c: Likewise.
37649 * loader/i386/bsd_trampoline.S: Likewise.
37650 * loader/i386/efi/linux.c: Likewise.
37651 * loader/i386/multiboot_elfxx.c: Likewise.
37652 * loader/i386/bsd_helper.S: Likewise.
37653 * loader/i386/bsd.c: Likewise.
37654 * loader/i386/linux_trampoline.S: Likewise.
37655 * loader/i386/xnu_helper.S: Likewise.
37656 * loader/i386/xnu.c: Likewise.
37657 * loader/i386/bsd_pagetable.c: Likewise.
37658 * loader/i386/multiboot_helper.S: Likewise.
37659 * loader/xnu.c: Likewise.
37660 * loader/xnu_resume.c: Likewise.
37661 * io/gzio.c: Likewise.
37662 * term/efi/console.c: Likewise.
37663 * term/terminfo.c: Likewise.
37664 * term/ieee1275/ofconsole.c: Likewise.
37665 * term/i386/pc/serial.c: Likewise.
37666 * term/i386/pc/vesafb.c: Likewise.
37667 * term/i386/pc/vga.c: Likewise.
37668 * term/usb_keyboard.c: Likewise.
37669 * term/gfxterm.c: Likewise.
37670 * aclocal.m4: Likewise.
37671 * util/lvm.c: Likewise.
37672 * util/grub.d/30_os-prober.in: Likewise.
37673 * util/grub.d/10_hurd.in: Likewise.
37674 * util/console.c: Likewise.
37675 * util/grub-macho2img.c: Likewise.
37676 * util/grub-probe.c: Likewise.
37677 * util/hostfs.c: Likewise.
37678 * util/i386/pc/grub-mkimage.c: Likewise.
37679 * util/i386/pc/grub-setup.c: Likewise.
37680 * util/i386/efi/grub-mkimage.c: Likewise.
37681 * util/grub-mkconfig.in: Likewise.
37682 * util/raid.c: Likewise.
37683 * util/resolve.c: Likewise.
37684 * util/grub-mkdevicemap.c: Likewise.
37685 * util/grub-emu.c: Likewise.
37686 * util/getroot.c: Likewise.
37687 * util/hostdisk.c: Likewise.
37688 * util/usb.c: Likewise.
37689 * util/grub-editenv.c: Likewise.
37690 * util/misc.c: Likewise.
37692 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37694 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37695 `genparttoollist.sh'.
37696 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37697 Add `*.sh' to the list find searches for and change `mdate.sh'
37700 2009-06-10 Pavel Roskin <proski@gnu.org>
37702 * include/grub/multiboot2.h: Provide compatibility defines for
37704 * include/multiboot2.h: Include stdint.h only if needed, using
37706 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37708 * loader/ieee1275/multiboot2.c: Likewise.
37709 * loader/multiboot2.c: Likewise.
37710 * loader/multiboot_loader.c: Likewise.
37712 * configure.ac: Use -nostdlib when probing for the target. It
37713 should not be required to have libc for the target.
37715 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37716 they fail without libc headers for the target.
37717 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37719 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37720 preprocessor conditionals.
37722 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37723 build system doesn't need to be aware of the tar.c internals.
37725 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37727 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37729 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37731 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37732 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37734 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37736 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37737 aren't available if ata.mod gets used.
37739 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37741 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37742 initialising controller.
37743 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37745 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37747 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37748 to choose between ata and biosdisk module on i386-pc.
37750 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37752 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37753 Subclass and Programming Interface fields in terms of the 3 byte
37754 Class Code register.
37755 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37757 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37758 interface is OHCI. Add grub_dprintf for symmetry with
37760 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37761 interface is UHCI. Add interf variable for programming
37762 interface. Print interface with class/subclass.
37764 * bus/usb/ohci.c: Set interf with correct field.
37766 * bus/usb/uhci.c: Remove unneeded doubled lines.
37767 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37768 Remove whitespace inside comment.
37770 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37772 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37773 as fallback an equivalent option without depth.
37775 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37777 Not fail if unable to retrieve C/H/S on LBA disks
37779 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37780 if unable to retrieve C/H/S on LBA disks
37782 2009-06-08 Pavel Roskin <proski@gnu.org>
37784 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37787 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37789 * Makefile.in (uninstall): Remove all $lib_DATA files.
37791 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37793 Bugfix: install on partitionless device
37795 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37798 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37800 * Makefile.in (uninstall): Remove all $include_DATA files.
37802 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37804 * commands/true.c: New file. Implement the true and false commands.
37805 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37806 (true_mod_SOURCES): New variable.
37807 (true_mod_CFLAGS): Likewise.
37808 (true_mod_LDFLAGS): Likewise.
37810 2009-06-05 Colin D Bennett <colin@gibibit.com>
37812 Optimized font character lookup using binary search instead of linear
37813 search. Fonts now are required to have the character index ordered by
37816 * font/font.c (load_font_index): Verify that fonts have ordered
37818 (find_glyph): Use binary search instead of linear search to find a
37819 character in a font.
37821 2009-06-05 Michael Scherer <misc@mandriva.org>
37823 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37824 uses case sensitive btree.
37825 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37826 only for case insensitive filesystems.
37828 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37830 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37831 * conf/common.rmk (search_mod_CFLAGS): likewise
37833 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37835 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37836 compensate a compiler bug
37838 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37840 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37843 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37845 Definitions for creating asm symbols with Apple's CC
37847 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37848 [APPLE_CC] (VARIABLE): likewise
37850 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37852 Disable lnxboot.img when compiled
37855 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37856 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37857 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37858 [! APPLE_CC] (CODE_LENG): skip
37859 [! APPLE_CC] (setup_sects): likewise
37860 [! APPLE_CC]: skip filling
37862 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37864 Address in trampolines based on 32-bit registers when compiled
37867 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37869 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37871 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37873 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37875 * kern/misc.c [APPLE_CC] (memcpy): new function
37876 [APPLE_CC] (memmove): likewise
37877 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37878 (memcpy): define alias conditionally on !APPLE_CC
37881 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37882 APPLE_CC are defined
37883 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37884 (grub_assert_fail): make prototype conditional
37886 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37888 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37890 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37892 (CLEANFILES): add grub-macho2img
37893 (grub_macho2img_SOURCES): new variable
37894 * kern/i386/pc/startup.S (bss_start): new variable
37895 (bss_end): likewise
37896 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37897 * util/grub-macho2img.c: new file
37899 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37901 Use objconv when compiling with Apple's CC
37903 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37904 (efiemu64.o): likewise
37905 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37906 when compiling with Apple's CC
37907 (efiemu64_s.o): likewise
37908 * configure.ac: check for objconv when compiling with Apple's CC
37909 * genmk.rb: use objconv for modules when compiled with Apple's CC
37911 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37913 Define segment as well as section when compiling with
37916 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37917 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37918 (efiemu_convert_pointer): likewise
37919 (efiemu_set_virtual_address_map): likewise
37920 (efiemu_convert_pointer): likewise
37921 (efiemu_getcrc32): likewise
37922 (init_crc32_table): likewise
37923 (reflect): likewise
37924 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37925 (GRUB_MOD_DEP): likewise
37927 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37929 Allow a compilation without -mcmodel=large
37931 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37932 when compiled without -mcmodel=large
37933 (filter_memory_map): remove memory post 4 GiB when compiled
37934 without -mcmodel=large
37935 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37936 TARGET_CFLAGS when -mcmodel=large isn't supported
37938 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37940 Remove nested functions in efiemu core
37942 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37944 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37946 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37948 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37950 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37952 (grub_cpu_is_tsc_supported): likewise
37953 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37955 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37957 Absolute addressing through constant with Apple's cc
37959 * kern/i386/pc/startup.S: Define necessary constants
37960 and address through it when using ABS with Apple's CC
37961 * boot/i386/pc/diskboot.S: likewise
37962 * boot/i386/pc/boot.S: likewise
37963 * boot/i386/pc/lnxboot.S: likewise
37964 * boot/i386/pc/cdboot.S: likewise
37965 * mmap/i386/pc/mmap_helper.S: likewise
37966 * commands/i386/pc/drivemap_int13h.S: likewise
37968 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37970 Check if compiler is apple cc
37972 * Makefile.in (ASFLAGS): new variable
37973 (TARGET_ASFLAGS): likewise
37974 (TARGET_MODULE_FORMAT): likewise
37975 (TARGET_APPLE_CC): likewise
37976 (OBJCONV): likewise
37977 (TARGET_IMG_CFLAGS): likewise
37978 (TARGET_CPPFLAGS): add includedir
37979 * configure.ac: call grub_apple_cc and grub_apple_target_cc
37980 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
37981 Check for linker script only if compiler isn't Apple's CC
37982 (TARGET_MODULE_FORMAT): set
37983 (TARGET_APPLE_CC): likewise
37984 (TARGET_ASFLAGS): likewise
37985 (ASFLAGS): likewise
37986 Check for objcopy only if compiler isn't Apple's CC
37987 Check for BSS symbol only if compiler isn't Apple's CC
37988 * genmk.rb: adapt nm options if we use Apple's utils
37989 * aclocal.m4 (grub_apple_cc): new test
37990 (grub_apple_target_cc): likewise
37992 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37994 Simplify sed expressions and improve awk
37996 * Makefile.in (install-local): simplify sed expression
37997 * gencmdlist.sh: likewise
37998 * genmoddep.awk: avoid adding module as a dependency of itself
38000 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38002 Add missing start symbols
38004 * boot/i386/pc/boot.S: add start
38005 * boot/i386/pc/pxeboot.S: likewise
38007 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38009 Fix wrong assumptions with grub-mkimage on EFI
38011 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38012 (relocate_addresses): consider both r_addend and value at offset
38013 (make_mods_section): zerofill modinfo and header
38014 (convert_elf): write prefix here
38016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38018 Use .asciz instead of .string
38020 * i386/pc/diskboot.S: use .asciz instead of .string
38021 * i386/pc/boot.S: likewise
38022 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38023 (GRUB_MOD_NAME): likewise
38025 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38029 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38030 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38031 (grub_video_setup): remove
38032 (grub_video_set_mode): new prototype
38033 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38035 (linux_vesafb_res): compile only on PCBIOS
38036 (grub_linux_boot): support gfxpayload
38037 * loader/i386/pc/xnu.c (video_hook): new function
38038 (grub_xnu_set_video): support gfxpayload
38039 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38040 (DEFAULT_VIDEO_HEIGHT): likewise
38041 (DEFAULT_VIDEO_FLAGS): likewise
38042 (DEFAULT_VIDEO_MODE): new definition
38043 (video_hook): new function
38044 (grub_gfxterm_init): use grub_video_set_mode
38045 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38047 * video/video.c (grub_video_setup): removed
38048 (grub_video_set_mode): new function based on grub_gfxterm_init and
38051 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38053 Avoid calling biosdisk in drivemap
38055 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38056 (revparse_biosdisk): likewise
38057 (list_mappings): derive name from id directly
38058 (grub_cmd_drivemap): use tryparse_diskstring
38060 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38064 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38065 (grub_lexer_param): add tokenonhold
38066 (grub_script_create_cmdline): remove cmdline. All callers updated
38067 (grub_script_function_create): make functionname
38068 grub_script_arg. All callers updated
38069 (grub_script_execute_argument_to_string): new prototype
38070 * kern/parser.c (state_transitions): reorder
38071 (grub_parser_cmdline_state): fix a bug and make more compact
38072 * script/sh/execute.c (grub_script_execute_argument_to_string):
38074 (grub_script_execute_cmdline): use new format
38075 * script/sh/function.c (grub_script_function_create): make functionname
38076 grub_script_arg. All callers updated
38077 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38078 (grub_script_yylex): remove
38079 (grub_script_yylex2): renamed to ...
38080 (grub_script_yylex): ...renamed
38081 parse the expressions like a${b}c
38082 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38083 (GRUB_PARSER_TOKEN_VAR): remove
38084 (GRUB_PARSER_TOKEN_NAME): likewise
38085 ("if"): declare as typeless
38086 ("while"): likewise
38087 ("function"): likewise
38092 (argument): likewise
38093 (script): accept empty scripts and make exit on error
38094 (arguments): use GRUB_PARSER_TOKEN_ARG
38095 (function): likewise
38096 (command): move error handling to script
38097 (menuentry): move grub_script_lexer_ref before
38098 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38099 argument. All callers updated
38101 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38103 Prevent GRUB from probing floppies during boot.
38105 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38106 * commands/search.c (options): Add --no-floppy.
38107 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38108 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38109 --no-floppy when searching for UUIDs.
38111 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38113 Simplify the code duplication in commands/search.c.
38115 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38116 (search_fs): ... this. Update all users.
38118 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38120 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38122 2009-05-28 Pavel Roskin <proski@gnu.org>
38124 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38125 Remove the original symlink explicitly.
38127 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38128 just one slash. That's how grub_fshelp_find_file() does it.
38130 2009-05-26 Pavel Roskin <proski@gnu.org>
38132 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38135 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38138 2009-05-25 Christian Franke <franke@computer.org>
38140 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38142 (grub_atapi_identify): Add wait after drive select.
38143 (grub_ata_identify): Do more strict status register check before
38144 calling grub_atapi_identify (). Suppress error message if status
38145 register is 0x00 after command failure. Add status register
38146 check after PIO read to avoid bogus identify due to stuck DRQ.
38147 Thanks to Pavel Roskin for testing.
38148 (grub_device_initialize): Remove unsafe status register check.
38149 Thanks to 'phcoder' for problem report and patch.
38150 Prevent sign extension in debug message.
38152 2009-05-23 Colin D Bennett <colin@gibibit.com>
38154 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38155 definition file, and functions defined in `normal/menu.c' have had
38156 their prototypes moved to `include/grub/menu.h' for consistency.
38158 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38160 (grub_menu_get_entry): Likewise.
38161 (grub_menu_get_timeout): Likewise.
38162 (grub_menu_set_timeout): Likewise.
38163 (grub_menu_execute_entry): Likewise.
38164 (grub_menu_execute_with_fallback): Likewise.
38165 (grub_menu_entry_run): Likewise.
38167 * include/grub/normal.h: Re-ordered and grouped function
38168 prototypes by file that the function is defined in.
38169 (grub_menu_execute_callback): Removed; moved to menu.h.
38170 (grub_menu_get_entry): Likewise.
38171 (grub_menu_get_timeout): Likewise.
38172 (grub_menu_set_timeout): Likewise.
38173 (grub_menu_execute_entry): Likewise.
38174 (grub_menu_execute_with_fallback): Likewise.
38175 (grub_menu_entry_run): Likewise.
38176 (grub_menu_addentry): Renamed from this ...
38177 (grub_normal_add_menu_entry): ... to this.
38179 * normal/main.c (grub_menu_addentry): Renamed from this ...
38180 (grub_normal_add_menu_entry): ... to this.
38182 * script/sh/execute.c (grub_script_execute_menuentry): Update
38183 reference to renamed grub_menu_addentry function.
38185 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38187 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38189 2009-05-22 Pavel Roskin <proski@gnu.org>
38191 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38192 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38193 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38194 compiling for the i386 targets, but not for the utilities.
38196 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38198 (grub_root_drive): Likewise.
38199 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38201 (grub_root_drive): Change size to byte.
38202 (grub_start_addr): Remove.
38203 (grub_end_addr): Likewise.
38204 (grub_apm_bios_info): Likewise.
38206 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38208 * normal/i386: Remove.
38209 * normal/powerpc: Likewise.
38210 * normal/sparc64: Likewise.
38211 * normal/x86_64: Likewise.
38213 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38215 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38216 * loader/i386/linux_trampoline.S: Fix indentation
38217 * loader/i386/xnu_helper.S: Likewise
38219 2009-05-18 Colin D Bennett <colin@gibibit.com>
38221 Display error messages when parsing a Lua statement fails.
38222 Previously, executing a syntactically invalid statement like
38223 ")foo" or "bar;" would silently fail.
38225 * script/lua/grub_main.c (handle_lua_error): New function.
38226 (grub_lua_parse_line): Improved reporting of Lua parser and
38229 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38231 Remove -Werror which causes build to fail on some systems
38233 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38234 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38235 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38237 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38239 trampoline for linux on 64-bit platform
38241 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38242 loader/i386/efi/linux_trampoline.S
38243 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38245 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38247 * loader/i386/linux_trampoline.S: moved here
38248 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38250 (jumpvector): removed
38251 (grub_linux_trampoline_start): new declaration
38252 (grub_linux_trampoline_end): likewise
38253 (grub_linux_boot): use trampoline when on 64-bit platform
38254 * loader/i386/linux.c: likewise
38256 2009-05-16 Pavel Roskin <proski@gnu.org>
38258 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38259 const to avoid a warning.
38260 (grub_lua_setenv): Likewise.
38261 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38262 lmsg to fix a warning.
38264 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38266 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38267 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38268 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38269 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38270 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38271 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38272 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38273 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38275 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38277 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38279 2009-05-16 Bean <bean123ch@gmail.com>
38281 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38282 (lua_mod_SOURCES): New variable.
38283 (lua_mod_CFLAGS): Likewise.
38284 (lua_mod_LDFLAGS): Likewise.
38286 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38287 (setjmp_mod_SOURCES): New variable.
38288 (setjmp_mod_CFLAGS): Likewise.
38289 (setjmp_LDFLAGS): Likewise.
38291 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38292 (setjmp_mod_SOURCES): New variable.
38293 (setjmp_mod_CFLAGS): Likewise.
38294 (setjmp_LDFLAGS): Likewise.
38296 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38297 (setjmp_mod_SOURCES): New variable.
38298 (setjmp_mod_CFLAGS): Likewise.
38299 (setjmp_LDFLAGS): Likewise.
38301 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38302 (setjmp_mod_SOURCES): New variable.
38303 (setjmp_mod_CFLAGS): Likewise.
38304 (setjmp_LDFLAGS): Likewise.
38306 * normal/i386/setjmp.S: Moved from here ...
38307 * lib/i386/setjmp.S: ... Moved here
38308 * normal/x86_64/setjmp.S: Moved from here ...
38309 * lib/x86_64/setjmp.S: ... Moved here
38310 * normal/powerpc/setjmp.S: Moved from here ...
38311 * lib/powerpc/setjmp.S: ... Moved here
38312 * normal/sparc64/setjmp.S: Moved from here ...
38313 * lib/sparc64/setjmp.S: ... Moved here
38315 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38316 returns_twice in mingw.
38318 * script/lua/grub_lib.c: New file.
38319 * script/lua/grub_lib.h: Likewise.
38320 * script/lua/grub_lua.h: Likewise.
38321 * script/lua/grub_main.c: Likewise.
38322 * script/lua/lapi.c: Likewise.
38323 * script/lua/lapi.h: Likewise.
38324 * script/lua/lauxlib.c: Likewise.
38325 * script/lua/lauxlib.h: Likewise.
38326 * script/lua/lbaselib.c: Likewise.
38327 * script/lua/lcode.c: Likewise.
38328 * script/lua/lcode.h: Likewise.
38329 * script/lua/ldblib.c: Likewise.
38330 * script/lua/ldebug.c: Likewise.
38331 * script/lua/ldebug.h: Likewise.
38332 * script/lua/ldo.c: Likewise.
38333 * script/lua/ldo.h: Likewise.
38334 * script/lua/ldump.c: Likewise.
38335 * script/lua/lfunc.c: Likewise.
38336 * script/lua/lfunc.h: Likewise.
38337 * script/lua/lgc.c: Likewise.
38338 * script/lua/lgc.h: Likewise.
38339 * script/lua/linit.c: Likewise.
38340 * script/lua/liolib.c: Likewise.
38341 * script/lua/llex.c: Likewise.
38342 * script/lua/llex.h: Likewise.
38343 * script/lua/llimits.h: Likewise.
38344 * script/lua/lmathlib.c: Likewise.
38345 * script/lua/lmem.c: Likewise.
38346 * script/lua/lmem.h: Likewise.
38347 * script/lua/loadlib.c: Likewise.
38348 * script/lua/lobject.c: Likewise.
38349 * script/lua/lobject.h: Likewise.
38350 * script/lua/lopcodes.c: Likewise.
38351 * script/lua/lopcodes.h: Likewise.
38352 * script/lua/loslib.c: Likewise.
38353 * script/lua/lparser.c: Likewise.
38354 * script/lua/lparser.h: Likewise.
38355 * script/lua/lstate.c: Likewise.
38356 * script/lua/lstate.h: Likewise.
38357 * script/lua/lstring.c: Likewise.
38358 * script/lua/lstring.h: Likewise.
38359 * script/lua/lstrlib.c: Likewise.
38360 * script/lua/ltable.c: Likewise.
38361 * script/lua/ltable.h: Likewise.
38362 * script/lua/ltablib.c: Likewise.
38363 * script/lua/ltm.c: Likewise.
38364 * script/lua/ltm.h: Likewise.
38365 * script/lua/lua.h: Likewise.
38366 * script/lua/luaconf.h: Likewise.
38367 * script/lua/lualib.h: Likewise.
38368 * script/lua/lundump.c: Likewise.
38369 * script/lua/lundump.h: Likewise.
38370 * script/lua/lvm.c: Likewise.
38371 * script/lua/lvm.h: Likewise.
38372 * script/lua/lzio.c: Likewise.
38373 * script/lua/lzio.h: Likewise.
38375 2009-05-16 Bean <bean123ch@gmail.com>
38377 * include/grub/kernel.h (grub_module_header_types): Add type
38380 * kern/main.c (grub_load_config): New function.
38381 (grub_main): Call grub_load_config to read boot config.
38383 * grub-mkimage (generate_image): New parameter config_path.
38384 (options): New option --config.
38385 (main): Parse --config option, and pass it to generate_image.
38387 2009-05-14 Christian Franke <franke@computer.org>
38389 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38390 This fixes build on Cygwin.
38392 2009-05-14 Pavel Roskin <proski@gnu.org>
38394 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38395 jump. This saves two bytes, so the typical case of 2 swapped
38396 drives would fit 32 bytes.
38398 2009-05-13 Pavel Roskin <proski@gnu.org>
38400 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38401 grub_uint32_t to avoid a warning.
38403 * loader/i386/linux.c (allocate_pages): When assigning
38404 real_mode_mem, cast through grub_size_t to fix a warning. The
38405 code already makes sure that the value would fit a pointer.
38406 (grub_linux_setup_video): Cast render_target->data to
38407 grub_size_t to fix a warning.
38409 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38411 * commands/i386/pc/drivemap.c: New file - implement drivemap
38413 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38414 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38416 2009-05-13 Pavel Roskin <proski@gnu.org>
38418 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38419 embedding_area_exists.
38421 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38423 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38424 it easier to understand / work with.
38425 Improve warning messages for cases where there's no embedding area,
38426 or when it is too small (or core.img too large).
38428 2009-05-13 Pavel Roskin <proski@gnu.org>
38430 * loader/i386/pc/multiboot2.c: Add necessary includes for
38431 grub_multiboot2_real_boot().
38433 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38434 PX record is always little-endian. We only need the lower 2
38437 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38438 facilitate code reuse.
38439 (grub_cpio_mount): Use "struct head", not a char buffer. This
38440 fixes a warning reported by gcc 4.4.
38442 * kernel/disk.c (grub_disk_read): Use void pointer for the
38444 (grub_disk_write): Use const void pointer for the buffer.
38445 Adjust all callers. Remove unnecessary casts.
38447 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38449 * util/i386/pc/grub-install.in: Update copyright year.
38451 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38455 * commands/gptsync.c: new file
38456 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38457 (gptsync_mod_SOURCES): new variable
38458 (gptsync_mod_CFLAGS): likewise
38459 (gptsync_mod_LDFLAGS): likewise
38460 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38462 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38463 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38464 * conf/i386-ieee1275.rmk: likewise
38465 * conf/i386-pc.rmk: likewise
38466 * conf/powerpc-ieee1275.rmk: likewise
38468 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38472 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38473 (grub_dl_ref): likewise
38475 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38477 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38478 split in two functions (one for msdos and one for gpt).
38480 2009-05-08 Pavel Roskin <proski@gnu.org>
38482 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38485 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38486 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38487 Initialize them with -1. Add sanity check for bad1. Eliminate
38490 2009-05-08 David S. Miller <davem@davemloft.net>
38492 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38494 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38496 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38499 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38502 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38504 2009-05-05 David S. Miller <davem@davemloft.net>
38506 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38508 2009-05-05 Pavel Roskin <proski@gnu.org>
38510 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38511 of grub_dl_ref() and grub_dl_unref().
38512 * commands/parttool.c: Remove preprocessor conditionals around
38513 grub_dl_ref() and grub_dl_unref().
38514 * fs/affs.c: Likewise.
38515 * fs/afs.c: Likewise.
38516 * fs/cpio.c: Likewise.
38517 * fs/ext2.c: Likewise.
38518 * fs/fat.c: Likewise.
38519 * fs/hfs.c: Likewise.
38520 * fs/hfsplus.c: Likewise.
38521 * fs/iso9660.c: Likewise.
38522 * fs/jfs.c: Likewise.
38523 * fs/minix.c: Likewise.
38524 * fs/ntfs.c: Likewise.
38525 * fs/reiserfs.c: Likewise.
38526 * fs/sfs.c: Likewise.
38527 * fs/udf.c: Likewise.
38528 * fs/ufs.c: Likewise.
38529 * fs/xfs.c: Likewise.
38530 * include/grub/dl.h: Likewise.
38531 * loader/xnu.c: Likewise.
38533 2009-05-04 Pavel Roskin <proski@gnu.org>
38535 * commands/acpi.c: Remove unused variable my_mod.
38536 * partmap/amiga.c: Likewise.
38537 * partmap/apple.c: Likewise.
38538 * partmap/gpt.c: Likewise.
38539 * partmap/pc.c: Likewise.
38540 * partmap/sun.c: Likewise.
38541 * term/gfxterm.c: Likewise.
38542 * term/i386/pc/vesafb.c: Likewise.
38543 * term/i386/pc/vga.c: Likewise.
38545 2009-05-04 David S. Miller <davem@davemloft.net>
38547 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38548 pointer args to grub_ieee1275_get_property().
38550 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38552 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38553 devices, and do not traverse down under controller nodes.
38555 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38556 (grub_ofdisk_open): Use it to un-escape "," characters.
38557 * kern/disk.c (find_part_sep): New.
38558 (grub_disk_open): Use it to find the first non-escaped ','
38559 character in the disk name.
38560 * util/ieee1275/devicemap.c (escape_of_path): New.
38561 (grub_util_emit_devicemap_entry): Use it.
38562 * util/sparc64/ieee1275/grub-install.in: Update script to
38563 strip partition specifiers properly by not triggering on
38564 '\' escaped ',' characters.
38566 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38568 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38570 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38572 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38573 on documentation from Wikipedia).
38575 2009-05-04 Pavel Roskin <proski@gnu.org>
38577 * disk/ata.c: Spelling fixes.
38578 * disk/raid.c: Likewise.
38579 * disk/usbms.c: Likewise.
38580 * disk/dmraid_nvidia.c: Likewise.
38581 * kern/ieee1275/openfw.c: Likewise.
38582 * kern/ieee1275/init.c: Likewise.
38583 * kern/ieee1275/cmain.c: Likewise.
38584 * boot/i386/pc/cdboot.S: Likewise.
38585 * video/readers/png.c: Likewise.
38586 * video/i386/pc/vbe.c: Likewise.
38587 * fs/udf.c: Likewise.
38588 * fs/hfs.c: Likewise.
38589 * fs/reiserfs.c: Likewise.
38590 * efiemu/runtime/efiemu.c: Likewise.
38591 * efiemu/main.c: Likewise.
38592 * efiemu/mm.c: Likewise.
38593 * include/grub/elf.h: Likewise.
38594 * include/grub/xnu.h: Likewise.
38595 * include/grub/usbdesc.h: Likewise.
38596 * include/grub/usb.h: Likewise.
38597 * include/grub/script_sh.h: Likewise.
38598 * include/grub/lib/LzmaEnc.h: Likewise.
38599 * include/grub/efiemu/efiemu.h: Likewise.
38600 * include/grub/command.h: Likewise.
38601 * normal/menu.c: Likewise.
38602 * normal/main.c: Likewise.
38603 * normal/datetime.c: Likewise.
38604 * bus/usb/uhci.c: Likewise.
38605 * mmap/i386/uppermem.c: Likewise.
38606 * mmap/mmap.c: Likewise.
38607 * commands/acpi.c: Likewise.
38608 * commands/test.c: Likewise.
38609 * partmap/apple.c: Likewise.
38610 * font/font.c: Likewise.
38611 * loader/sparc64/ieee1275/linux.c: Likewise.
38612 * loader/macho.c: Likewise.
38613 * loader/i386/bsd_trampoline.S: Likewise.
38614 * loader/i386/bsd.c: Likewise.
38615 * loader/xnu.c: Likewise.
38616 * term/i386/pc/vesafb.c: Likewise.
38617 * term/usb_keyboard.c: Likewise.
38618 * util/resolve.c: Likewise.
38619 * util/getroot.c: Likewise.
38621 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38623 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38625 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38627 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38630 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38632 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38633 parameter only available on BIOS.
38635 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38637 Removed wrong semicolon in declaration
38639 * grub/misc.h (grub_dprintf): remove semicolon
38641 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38643 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38644 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38645 is done by grub_cmd_linux() now).
38646 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38647 restore video to text mode.
38648 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38649 indicates lack of "vga=" parameter. "vga=0" is mapped to
38650 `GRUB_LINUX_VID_MODE_NORMAL'.
38652 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38654 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38655 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38656 and `normal/script.c'. Add `kern/rescue_reader.c',
38657 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38658 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38659 `grub_script.tab.c'.
38661 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38662 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38663 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38664 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38665 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38667 * Makefile.in: Remove duplicated 2008 in Copyright line.
38669 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38671 * util/misc.c (grub_util_warn): New function. Emits a warning
38673 * include/grub/util/misc.h (grub_util_warn): New declaration.
38675 * util/i386/pc/grub-install.in: Understand --force and pass it down
38678 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38680 (setup): Improve error messages and add warnings when requested to
38681 install in odd layouts. Refuse to install using blocklists unless
38684 2009-05-04 martin f. krafft <madduck@madduck.net>
38686 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38688 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38690 Updated copyright year
38692 * fs/hfsplus.c: updated copyright year
38694 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38698 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38699 in the space previously used by unused3
38700 (grub_hfsplus_uuid): new function
38701 (grub_hfsplus_fs): added uuid field
38703 2009-05-03 Pavel Roskin <proski@gnu.org>
38705 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38706 suppress warnings. It's no longer needed.
38707 * disk/host.c: Likewise.
38708 * disk/ata_pthru.c: Likewise.
38709 * disk/loopback.c: Likewise.
38710 * hook/datehook.c: Likewise.
38711 * parttool/pcpart.c: Likewise.
38712 * fs/i386/pc/pxe.c: Likewise.
38713 * fs/ntfscomp.c: Likewise.
38714 * efiemu/main.c: Likewise.
38715 * mmap/mmap.c: Likewise.
38716 * commands/crc.c: Likewise.
38717 * commands/hexdump.c: Likewise.
38718 * commands/hdparm.c: Likewise.
38719 * commands/acpi.c: Likewise.
38720 * commands/echo.c: Likewise.
38721 * commands/minicmd.c: Likewise.
38722 * commands/blocklist.c: Likewise.
38723 * commands/memrw.c: Likewise.
38724 * commands/loadenv.c: Likewise.
38725 * commands/usbtest.c: Likewise.
38726 * commands/lsmmap.c: Likewise.
38727 * commands/boot.c: Likewise.
38728 * commands/parttool.c: Likewise.
38729 * commands/configfile.c: Likewise.
38730 * commands/search.c: Likewise.
38731 * commands/ieee1275/suspend.c: Likewise.
38732 * commands/cat.c: Likewise.
38733 * commands/i386/pc/pxecmd.c: Likewise.
38734 * commands/i386/pc/play.c: Likewise.
38735 * commands/i386/pc/halt.c: Likewise.
38736 * commands/i386/pc/vbeinfo.c: Likewise.
38737 * commands/i386/pc/vbetest.c: Likewise.
38738 * commands/lspci.c: Likewise.
38739 * commands/date.c: Likewise.
38740 * commands/handler.c: Likewise.
38741 * commands/ls.c: Likewise.
38742 * commands/test.c: Likewise.
38743 * commands/cmp.c: Likewise.
38744 * commands/efi/loadbios.c: Likewise.
38745 * commands/efi/fixvideo.c: Likewise.
38746 * commands/halt.c: Likewise.
38747 * commands/help.c: Likewise.
38748 * commands/reboot.c: Likewise.
38749 * hello/hello.c: Likewise.
38750 * script/sh/main.c: Likewise.
38751 * loader/xnu.c: Likewise.
38752 * term/terminfo.c: Likewise.
38753 * term/i386/pc/serial.c: Likewise.
38754 * term/usb_keyboard.c: Likewise.
38756 2009-05-03 David S. Miller <davem@davemloft.net>
38758 * normal/menu.c: Include grub/parser.h
38760 2009-05-03 Pavel Roskin <proski@gnu.org>
38762 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38764 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38765 Suggested by Javier Martín <lordhabbit@gmail.com>
38767 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38768 efiemu??.o doesn't exist.
38769 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38772 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38774 FreeBSD 64-bit support
38776 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38777 and loader/i386/bsd_trampoline.S
38778 (bsd_mod_ASFLAGS): new variable
38779 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38780 (FREEBSD_MODTYPE_KERNEL64): likewise
38781 (grub_bsd64_trampoline_start): likewise
38782 (grub_bsd64_trampoline_end): likewise
38783 (grub_bsd64_trampoline_selfjump): likewise
38784 (grub_bsd64_trampoline_gdt): likewise
38785 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38786 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38787 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38788 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38789 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38791 * loader/i386/bsd_pagetable.c: new file
38792 * loader/i386/bsd_trampoline.S: likewise
38793 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38794 (ALIGN_VAR): likewise
38795 (entry_hi): new variable
38796 (kern_end_mdofs): likewise
38797 (is_64bit): likewise
38798 (grub_freebsd_add_meta): use ALIGN_VAR
38799 (grub_e820_mmap): new declaration
38800 (grub_freebsd_add_mmap): new function
38801 (grub_freebsd_add_meta_module): support 64 bit kernels
38802 (grub_freebsd_list_modules): use ALIGN_VAR
38803 (gdt_descriptor): new declaration
38804 (grub_freebsd_boot): support 64 bit kernels
38805 (grub_bsd_elf64_hook): new function
38806 (grub_bsd_load_elf): support elf64
38808 2009-05-03 Bean <bean123ch@gmail.com>
38810 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38811 after we get the result of if statement.
38813 2009-05-03 Bean <bean123ch@gmail.com>
38815 * Makefile.in (enable_efiemu): New variable.
38817 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38819 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38821 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38822 path, add -mno-red-zone option.
38823 (efiemu64_s.o): Likewise.
38824 (efiemu64.o): Use macro $^ for source file.
38826 * configure.ac (--enable-efiemu): New option.
38828 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38832 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38833 (pkglib_MODULES): add xnu.mod
38834 (xnu_mod_SOURCES): new variable
38835 (xnu_mod_CFLAGS): likewise
38836 (xnu_mod_LDFLAGS): likewise
38837 (xnu_mod_ASFLAGS): likewise
38838 * conf/i386-pc.rmk: likewise
38839 * conf/x86_64-efi.rmk: likewise
38840 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38842 * include/grub/i386/macho.h: new file
38843 * include/grub/i386/xnu.h: likewise
38844 * include/grub/macho.h: likewise
38845 * include/grub/machoload.h: likewise
38846 * include/grub/x86_64/macho.h: likewise
38847 * include/grub/x86_64/xnu.h: likewise
38848 * include/grub/xnu.h: likewise
38849 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38850 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38851 * loader/i386/efi/xnu.c: new file
38852 * loader/i386/pc/xnu.c: likewise
38853 * loader/i386/xnu.c: likewise
38854 * loader/i386/xnu_helper.S: likewise
38855 * loader/macho.c: likewise
38856 * loader/xnu.c: likewise
38857 * loader/xnu_resume.c: likewise
38858 * util/grub-dumpdevtree: likewise
38859 * include/grub/i386/pit.h: include grub/err.h
38860 (grub_pit_wait): export
38861 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38863 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38867 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38868 _linux_efi, linux_efi.
38869 new files in grub-emu
38870 new targets efiemu32.o and efiemu64.o
38871 * loader/linux_normal_efiemu.c: likewise
38872 * loader/i386/efi/linux.c: added preliminary efiemu support
38873 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38875 * include/grub/autoefi.h: new file
38876 * include/grub/i386/efiemu.h: likewise
38877 * include/grub/i386/pc/efiemu.h: likewise
38878 * include/grub/efi/api.h: add LL suffix when necessary
38879 new definitions relating to tables
38880 * include/grub/efiemu/efiemu.h: new file
38881 * include/grub/efiemu/runtime.h: likewise
38882 * efiemu/prepare.c: likewise
38883 * efiemu/loadcore_common.c: likewise
38884 * efiemu/loadcore64.c: likewise
38885 * efiemu/runtime/efiemu.sh: likewise
38886 * efiemu/runtime/efiemu.S: likewise
38887 * efiemu/runtime/efiemu.c: likewise
38888 * efiemu/runtime/config.h: likewise
38889 * efiemu/prepare32.c: likewise
38890 * efiemu/main.c: likewise
38891 * efiemu/modules/pnvram.c: likewise
38892 * efiemu/modules/i386: likewise
38893 * efiemu/modules/i386/pc: likewise
38894 * efiemu/modules/acpi.c: likewise
38895 * efiemu/i386/pc/cfgtables.c: likewise
38896 * efiemu/i386/loadcore64.c: likewise
38897 * efiemu/i386/loadcore32.c: likewise
38898 * efiemu/prepare64.c: likewise
38899 * efiemu/loadcore.c: likewise
38900 * efiemu/symbols.c: likewise
38901 * efiemu/mm.c: likewise
38902 * efiemu/loadcore32.c: likewise
38904 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38908 * commands/acpi.c: new file
38909 * commands/i386/pc/acpi.c: likewise
38910 * commands/efi/acpi.c: likewise
38911 * include/grub/acpi.h: likewise
38912 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38913 (acpi_mod_SOURCES): new variable
38914 (acpi_mod_CFLAGS): likewise
38915 (acpi_mod_LDFLAGS): likewise
38916 * conf/i386-efi.rmk: likewise
38917 * conf/x86_64-efi.rmk: likewise
38919 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38921 Missing part from mmap patch
38923 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38924 (grub_mmap_unregister)
38925 (grub_mmap_free_and_unregister): use grub_mmap_register
38927 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38931 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38932 * loader/i386/linux.c (find_mmap_size): likewise
38933 (allocate_pages): likewise
38934 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38935 (grub_fill_multiboot_mmap): likewise
38936 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38937 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38938 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38939 (OPENBSD_MMAP_RESERVED): likewise
38940 * include/grub/i386/pc/memory.h: include grub/memory.h
38941 (grub_lower_mem): removed
38942 (grub_upper_mem): likewise
38943 (GRUB_MACHINE_MEMORY_ACPI): new definition
38944 (GRUB_MACHINE_MEMORY_NVS): likewise
38945 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38946 (GRUB_MACHINE_MEMORY_HOLE): likewise
38947 (grub_machine_mmap_register): likewise
38948 (grub_machine_mmap_unregister): likewise
38949 (grub_machine_get_upper): likewise
38950 (grub_machine_get_lower): likewise
38951 (grub_machine_get_post64): likewise
38952 * include/grub/i386/efi/memory.h: new file
38953 * include/grub/x86_64/efi/memory.h: likewise
38954 * include/grub/efi/memory.h: likewise
38955 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38956 (mmap_mod_SOURCES): new variable
38957 (mmap_mod_LDFLAGS): likewise
38958 (mmap_mod_ASFLAGS): likewise
38959 * conf/i386-coreboot.rmk: likewise
38960 * conf/i386-ieee1275.rmk: likewise
38961 * conf/i386-efi.rmk: likewise
38962 * conf/x86_64-efi.rmk: likewise
38963 * include/grub/types.h (UINT_TO_PTR): new macro
38964 (PTR_TO_UINT32): likewise
38965 (PTR_TO_UINT64): likewise
38966 * include/grub/memory.h: new file
38967 * mmap/i386/pc/mmap.c: likewise
38968 * mmap/i386/pc/mmap_helper.S: likewise
38969 * mmap/i386/uppermem.c: likewise
38970 * mmap/mmap.c: likewise
38971 * mmap/efi/mmap.c: likewise
38972 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38974 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38975 (grub_upper_mem): likewise
38976 (grub_machine_init): don't use grub_upper_mem,
38977 make grub_lower_mem local
38978 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
38979 grub_mmap_iterate and grub_mmap_get_upper
38980 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
38982 2009-05-02 Bean <bean123ch@gmail.com>
38984 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
38985 script/sh/parser.y.
38986 (pkglib_MODULES): Add normal.mod and sh.mod.
38987 (normal_SOURCES): New variable.
38988 (normal_mod_CFLAGS): Likewise.
38989 (normal_mod_LDFLAGS): Likewise.
38990 (sh_mod_SOURCES): Likewise.
38991 (sh_mod_CFLAGS): Likewise.
38992 (sh_mod_LDFLAGS): Likewise.
38994 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
38995 script/sh/lexer.c_DEPENDENCIES.
38996 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
38997 kern/rescue_reader.c and kern/rescue_parser.c.
38998 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
38999 (grub_emu_SOURCES): Change source files.
39000 (pkglib_MODULES): Remove normal.mod.
39001 (normal_SOURCES): Removed.
39002 (normal_mod_CFLAGS): Likewise.
39003 (normal_mod_LDFLAGS): Likewise.
39004 * conf/i386-coreboot.rmk: Likewise.
39005 * conf/i386-efi.rmk: Likewise.
39006 * conf/i386-ieee1276.rmk: Likewise.
39007 * conf/powerpc-ieee1275.rmk: Likewise.
39008 * conf/sparc64-ieee1275.rmk: Likewise.
39009 * conf/x86_64-efi.rmk: Likewise.
39011 * include/grub/command.h (grub_command_execute): New inline function.
39013 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39015 * include/grub/normal.h: Remove <grub/setjmp.h>.
39016 (grub_fs_module_list): Moved to normal/autofs.c.
39017 (grub_exit_env): Removed.
39018 (grub_command_execute): Likewise.
39019 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39021 (read_command_list): New function declaration.
39022 (read_fs_list): Likewise.
39024 * include/parser.h: Include <grub/reader.h>.
39025 (grub_parser_split_cmdline): Change type of getline parameter.
39026 (grub_parser): New structure.
39027 (grub_parser_class): New variable.
39028 (grub_parser_execute): New function declaration.
39029 (grub_register_rescue_parser): Likewise.
39030 (grub_parser_register): New inline function.
39031 (grub_parser_unregister): Likewise.
39032 (grub_parser_get_current): Likewise.
39033 (grub_parser_set_current): Likewise.
39035 * include/grub/reader.h: New file.
39036 * kern/reader.c: Likewise.
39037 * kern/rescue_parser.c: Likewise.
39038 * kern/rescue_reader.c: Likewise.
39039 * normal/autofs.c: Likewise.
39040 * normal/dyncmd.c: Likewise.
39042 * include/grub/rescue.h: Removed.
39043 * normal/command.h: Likewise.
39045 * include/grub/script.h: Moved to ...
39046 * include/grub/script_sh.h: ... Moved here.
39047 * normal/execute.c: Moved to ...
39048 * script/sh/execute.c: ... Moved here.
39049 * normal/function.c: Moved to ...
39050 * script/sh/function.c: ... Moved here.
39051 * normal/lexer.c: Moved to ...
39052 * script/sh/lexer.c: ... Moved here.
39053 * normal/parser.y: Moved to ...
39054 * script/sh/parser.y: ... Moved here.
39055 * normal/script.c: Moved to ...
39056 * script/sh/script.c: ... Moved here.
39058 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39060 (grub_exit_env): Removed.
39061 (fs_module_list): Moved to normal/autofs.c.
39062 (grub_file_getline): Don't handle comment here.
39063 (free_menu): Skip removed field entry->commands.
39064 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39066 (read_config_file): Removed nested parameter, change getline function.
39067 (grub_enter_normal_mode): Removed.
39068 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39069 (read_command_list): Likewise.
39070 (autoload_fs_module): Moved to normal/autofs.c.
39071 (read_fs_list): Likewise.
39072 (reader_nested): New variable.
39073 (grub_normal_execute): Run parser.sh to switch to sh parser.
39074 (grub_cmd_rescue): Removed.
39075 (cmd_normal): Removed.
39076 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39078 (grub_cmdline_run): New function.
39079 (grub_normal_reader_init): Likewise.
39080 (grub_normal_read_line): Likewise.
39081 (grub_env_write_pager): Likewise.
39082 (cmdline): New variable.
39083 (grub_normal_reader): Likewise.
39084 (GRUB_MOD_INIT): Register normal reader and set as current, register
39085 pager hook, register normal command with grub_register_command_prio,
39086 so that it won't show up in command.lst.
39087 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39088 grub_fs_autoload_hook.
39090 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39091 (grub_menu_execute_entry): Replace grub_script_execute with
39092 grub_parser_execute, change parameter to grub_command_execute.
39094 * normal/menu_text.c: Remove <grub/script.h>.
39096 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39097 and <grub/parser.h>.
39098 (run): Change editor_getline to use new parser interface. Change
39099 parameter to grub_command_execute.
39101 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39102 <grub/reader.h> and <grub/parser.h>.
39103 (grub_load_normal_mode): Execute normal command.
39104 (grub_main): Call grub_register_core_commands,
39105 grub_register_rescue_parser and grub_register_rescue_reader, use
39106 grub_reader_loop to enter input loop.
39108 * kern/parser.c (grub_parser_split_cmdline): Change type of
39110 (grub_parser_class): New variable.
39111 (grub_parser_execute): New function.
39113 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39114 * loader/multiboot2.c: Likewise.
39115 * loader/sparc64/ieee1275/linux.c: Likewise.
39117 * util/grub-emu.c (read_command_list): New dummy function.
39119 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39121 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39122 count to 16 for CCISS and IDA.
39124 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39126 * normal/menu_text.c (grub_wait_after_message): Print a newline
39127 after waiting for user input.
39129 * loader/i386/linux.c: Include `<grub/normal.h>'.
39130 (grub_cmd_linux): Improve the error message about `ask' mode, by
39131 waiting for user input so it's not missed (we can do this, since
39132 user requested interaction).
39134 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39136 Added missing lst to grub-mkrescue
39138 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39139 and ${input_dir}/parttool.lst
39141 2009-04-30 David S. Miller <davem@davemloft.net>
39143 * util/hostdisk.c (device_is_wholedisk): New function.
39144 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39145 zero only if device_is_wholedisk() returns true.
39147 * util/hostdisk.c (convert_system_partition_to_system_disk):
39148 Handle virtual disk devices named /dev/vdiskX as found on sparc
39151 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39152 lettered partition specifier is found, convert to numbered.
39154 2009-04-29 David S. Miller <davem@davemloft.net>
39156 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39157 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39159 * normal/command.c: Add missing newline at end of file.
39161 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39163 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39164 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39165 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39166 ihandles have a 32-bit type but need to be stored in a "void *".
39168 2009-04-28 Pavel Roskin <proski@gnu.org>
39170 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39171 not disk. Adjust all dependencies.
39172 (grub_fs_uuid_close): Use grub_device_close(), not
39175 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39176 parent's partition, don't copy it by reference, as it gets freed
39179 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39181 Preboot hooks support
39183 * commands/boot.c (struct grub_preboot_t): new declaration
39184 (preboots_head): new variable
39185 (preboots_tail): likewise
39186 (grub_loader_register_preboot_hook): new function
39187 (grub_loader_unregister_preboot_hook): likewise
39188 (grub_loader_set): launch preboot hooks
39189 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39190 (grub_loader_register_preboot_hook): new declaration
39191 (grub_loader_unregister_preboot_hook): likewise
39193 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39197 * disk/scsi.c (grub_scsi_open): added missing cast when
39198 calling grub_dprintf
39200 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39202 Bug and warning fixes
39204 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39206 * commands/test.c (test_parse): fixed bug with file tests and corrected
39207 declaration of find_file
39209 2009-04-26 Pavel Roskin <proski@gnu.org>
39211 * Makefile.in: Don't install empty manual pages if help2man is
39212 missing. Use help2man option for output, not shell redirection.
39214 2009-04-26 David S. Miller <davem@davemloft.net>
39216 * util/grub-mkdevicemap.c (make_device_map): Add missing
39217 NESTED_FUNC_ATTR to process_device().
39219 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39223 * commands/test.c: rewritten to use bash-like test
39225 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39227 Parttool autoloading and improvements
39229 * Makefile.in (pkglib_DATA): add parttool.lst
39230 (parttool.lst): new target
39231 * genmk.rb: generate parttool-*
39232 (CLEANFILES): add #{parttool}
39233 (PARTTOOLFILES): new variable
39234 * genparttoollist.sh: new file
39235 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39236 (grub_pcpart_type): likewise
39237 * commands/parttool.c (helpmsg): new variable
39238 (grub_cmd_parttool): output help if not enough arguments are supplied
39240 (GRUB_MOD_INIT(parttool)): use helpmsg
39242 2009-04-24 David S. Miller <davem@davemloft.net>
39244 Avoiding opening same device multiple times in device iterator.
39246 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39247 and use it to build a list of partitions in iterate_disk() and
39248 iterate_partition().
39250 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39253 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39254 grub_devalias_iterate() result instead of unconditional 0.
39255 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39256 Also, capture hook return value, either directly or via
39257 grub_children_iterate(), and propagate to caller.
39258 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39259 grub_children_iterate): Return value is now 'int' instead of
39261 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39262 like a proper iterator, stopping when hooks return non-zero.
39263 (grub_devalias_iterate): Likewise.
39265 2009-04-23 David S. Miller <davem@davemloft.net>
39267 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39269 2009-04-22 David S. Miller <davem@davemloft.net>
39271 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39272 is larger than address_cells, use that value for address_cells too.
39274 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39275 IEEE1275_MAX_PATH_LEN): Define.
39276 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39277 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39278 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39279 'devtype'. Explicitly NULL terminate devalias expansion.
39281 * util/sparc64/ieee1275/misc.c: New file.
39282 * util/sparc64/ieee1275/grub-setup.c: New file.
39283 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39284 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39285 * util/sparc64/ieee1275/grub-install.in: New file.
39286 * util/ieee1275/ofpath.c: New file.
39287 * util/ieee1275/devicemap.c: New file.
39288 * util/devicemap.c: New file.
39289 * util/deviceiter.c: New file.
39290 * kern/sparc64/ieee1275/init.c: New file.
39291 * include/grub/util/ofpath.h: New file.
39292 * include/grub/util/deviceiter.h: New file.
39293 * util/grub-mkdevicemap.c: Include deviceiter.h.
39294 Implement using grub_util_emit_devicemap_entry and
39295 grub_util_iterate_devices.
39296 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39297 util/devicemap.c into grub-mkdevicemap
39298 * conf/i386-efi.rmk: Likewise.
39299 * conf/i386-ieee1275.rmk: Likewise.
39300 * conf/i386-pc.rmk: Likewise.
39301 * conf/powerpc-ieee1275.rmk: Likewise.
39302 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39303 images and installation utilities. Build kernel as image
39304 instead of as elf binary. Use common rules as much as possible.
39306 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39308 Correct GPT definition
39310 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39313 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39315 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39317 2009-04-19 David S. Miller <davem@davemloft.net>
39319 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39320 (grub_rescue_cmd_linux): Rename to...
39321 (grub_cmd_linux): and fix prototype.
39322 (grub_rescue_cmd_initrd): Rename to...
39323 (grub_cmd_initrd): and fix prototype.
39324 (cmd_linux, cmd_initrd): New.
39325 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39326 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39328 2009-04-17 Pavel Roskin <proski@gnu.org>
39330 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39332 (grub_ohci_transfer): Likewise.
39334 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39336 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39337 return without a value. Fix inconsistent indentation.
39339 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39340 match struct grub_fs.
39342 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39343 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39344 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39345 * commands/lspci.c (grub_lspci_iter): Likewise.
39347 2009-04-16 Bean <bean123ch@gmail.com>
39349 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39352 2009-04-15 Pavel Roskin <proski@gnu.org>
39354 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39355 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39356 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39359 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39361 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39362 that no multiple data or metadata areas are supported and `Unknown
39365 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39367 Move loader out of the kernel
39369 * kern/loader.c: moved to ...
39370 * commands/boot.c: ... moved here
39371 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39372 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39373 * include/grub/kernel.h (grub_machine_fini): export
39374 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39375 (grub_loader_set): likewise
39376 (grub_loader_unset): likewise
39377 (grub_loader_boot): likewise
39378 * conf/common.rmk: new module boot.mod
39379 (pkglib_MODULES): add boot.mod
39380 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39381 (grub_emu_SOURCES): likewise
39382 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39383 (grub_emu_SOURCES): likewise
39384 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39385 (grub_emu_SOURCES): likewise
39386 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39387 (grub_emu_SOURCES): likewise
39388 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39389 (grub_emu_SOURCES): likewise
39390 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39391 (grub_emu_SOURCES): likewise
39392 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39393 (grub_emu_SOURCES): likewise
39395 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39397 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39399 * kern/misc.c (grub_itoa): Removed function
39400 (grub_ltoa): likewise
39401 (grub_vsprintf): use grub_lltoa
39403 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39407 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39408 * conf/i386-coreboot.rmk: likewise
39409 * conf/i386-ieee1275.rmk: likewise
39410 * conf/powerpc-ieee1275.rmk: likewise
39412 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39414 * INSTALL: Add that `./autogen.sh' needs to be run before
39417 2009-04-14 Bean <bean123ch@gmail.com>
39419 * Makefile.in (pkglib_DATA): Add handler.lst.
39420 (handler.lst): New rule.
39422 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39423 * conf/i386-coreboot.rmk: Likewise.
39424 * conf/i386-ieee1275.rmk: Likewise.
39425 * conf/i386-efi.rmk: Likewise.
39426 * conf/x86_64-efi.rmk: Likewise.
39427 * conf/powerpc-ieee1275.rmk: Likewise.
39428 * conf/sparc64-ieee1275.rmk: Likewise.
39430 * genhandlerlist.sh: New file.
39432 * genmk.rb: Add rules to generate handler.lst.
39434 * include/grub/normal.h (grub_file_getline): New function definition.
39435 (read_handler_list): Likewise.
39436 (free_handler_list): Likewise.
39438 * include/grub/term.h (grub_term_register_input): Add name parameter
39439 for auto generation of handler.lst.
39440 (grub_term_register_output): Likewise.
39442 * normal/handler.c: New file.
39444 * normal/main.c (get_line): Renamed to grub_file_getline.
39445 (read_config_file): Use the newly renamed grub_file_getline.
39446 (read_command_list): Likewise.
39447 (read_fs_list): Likewise.
39448 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39449 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39451 * term/efi/console.c (grub_console_init): Add name parameter for auto
39452 generation of handler.lst.
39453 * term/gfxterm.c: Likewise.
39454 * term/i386/pc/at_keyboard.c: Likewise.
39455 * term/i386/pc/console.c: Likewise.
39456 * term/i386/pc/serial.c: Likewise.
39457 * term/i386/pc/vesafb.c: Likewise.
39458 * term/i386/pc/vga.c: Likewise.
39459 * term/i386/pc/vga_text.c: Likewise.
39460 * term/ieee1275/ofconsole.c: Likewise.
39461 * term/usb_keyboard.c: Likewise.
39463 2009-04-14 Bean <bean123ch@gmail.com>
39465 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39466 properly with null character.
39468 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39470 * configure: Remove.
39471 * config.h.in: Likewise.
39472 * stamp-h.in: Likewise.
39473 * DISTLIST: Likewise.
39474 * conf/common.mk: Likewise.
39475 * conf/i386-coreboot.mk: Likewise.
39476 * conf/i386-efi.mk: Likewise.
39477 * conf/i386-ieee1275.mk: Likewise.
39478 * conf/i386.mk: Likewise.
39479 * conf/i386-pc.mk: Likewise.
39480 * conf/powerpc-ieee1275.mk: Likewise.
39481 * conf/sparc64-ieee1275.mk: Likewise.
39482 * conf/x86_64-efi.mk: Likewise.
39484 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39487 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39488 David S. Miller <davem@davemloft.net>
39490 * util/hostdisk.c (make_device_name): Fix buffer length
39493 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39495 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39496 <sys/param.h> and <sys/sysctl.h>.
39497 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39498 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39499 opening the device and reset them afterwards.
39501 2009-04-13 Pavel Roskin <proski@gnu.org>
39503 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39504 Reported by John Stanley <jpsinthemix@verizon.net>
39506 2009-04-13 Robert Millan <rmh@aybabtu.com>
39508 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39509 that name for menuentries when appropriate.
39511 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39513 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39515 2009-04-13 Robert Millan <rmh@aybabtu.com>
39517 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39518 to Linux, simply abort telling the user it's no longer supported.
39520 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39522 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39523 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39524 `freebsd_loadenv' only when devices.hints exist.
39526 2009-04-13 Pavel Roskin <proski@gnu.org>
39528 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39530 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39532 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39534 (grub_drive): Likewise.
39536 2009-04-13 David S. Miller <davem@davemloft.net>
39538 * kern/sparc64/ieee1275/ieee1275.c: New file.
39539 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39540 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39541 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39542 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39543 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39544 grub_ieee1275_alloc_physmem): Declare new exported functions.
39546 * include/grub/sparc64/ieee1275/loader.h: New file.
39547 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39548 * include/grub/sparc64/kernel.h: Likewise.
39549 * loader/sparc64/ieee1275/linux.c: Likewise.
39551 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39552 (grub_fstest_SOURCES): Likewise.
39554 * util/hostdisk.c (make_device_name): Do not make any assumptions
39555 about the length of drive names.
39557 * kern/dl.c (grub_dl_load_file): Close file immediately when
39558 we are done using it.
39560 2009-04-12 David S. Miller <davem@davemloft.net>
39562 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39563 values. Noticed by Pavel Roskin.
39565 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39568 * genmk.rb: Add more flexible image type specification, also
39569 pass --strip-unneeded to objcopy.
39570 * conf/i386-pc.rmk: Use *_FORMAT.
39571 * conf/i386-pc.mk: Rebuilt.
39573 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39574 (OFDISK_HASH_SZ): Define.
39575 (ofdisk_hash): New hash table.
39576 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39577 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39578 instead of device phandle which is not unique.
39580 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39581 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39582 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39583 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39584 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39585 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39586 GRUB_KERNEL_MACHINE_DATA_END): Define.
39587 (grub_kernel_image_size, grub_total_module_size): Declare.
39589 2009-04-12 Pavel Roskin <proski@gnu.org>
39591 * configure.ac: Change the logic when we check for target tools.
39592 Do it when the target is specified and it's different from the
39593 specified value of the host.
39595 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39597 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39598 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39599 GNU/kFreeBSD. Check if a device is a character device. Use
39600 DIOCGMEDIASIZE to get the size.
39601 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39602 support for GNU/kFreeBSD.
39603 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39604 is a character device instead of a block device. Add support for
39605 FreeBSD device names.
39607 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39608 is a character device instead of a block device.
39610 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39611 is a character device instead of a block device.
39613 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39615 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39616 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39617 FreeBSD. Check if a device is a character device. Use
39618 DIOCGMEDIASIZE to get the size.
39619 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39620 support for FreeBSD.
39621 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39622 is a character device instead of a block device. Add support for
39623 FreeBSD device names.
39625 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39626 a character device instead of a block device.
39627 (grub_util_check_char_device): New function.
39629 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39630 a character device instead of a block device.
39632 * include/grub/util/getroot.h (grub_util_check_char_device): New
39635 2009-04-11 David S. Miller <davem@davemloft.net>
39637 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39639 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39640 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39641 function, if present.
39642 (__bswapdi2): Likewise.
39644 * include/grub/sparc64/ieee1275/boot.h: New file.
39645 * boot/sparc64/ieee1275/boot.S: Likewise.
39646 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39648 * kern/misc.c (grub_ltoa): New function.
39649 (grub_vsprintf): Use it to format 'long' integers.
39651 2009-04-10 David S. Miller <davem@davemloft.net>
39653 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39654 slots are of type grub_ieee1275_cell_t.
39655 (grub_nand_read): Likewise.
39656 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39657 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39658 macros are used to compare values in arg/ret block of the call.
39659 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39660 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39661 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39662 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39663 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39664 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39665 grub_ieee1275_close, grub_ieee1275_set_property,
39666 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39667 grub_ieee1275_cell_t.
39668 * kern/ieee1275/openfw.c (grub_map): Likewise.
39669 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39670 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39672 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39673 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39674 (grub_devalias_iterate): Likewise.
39676 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39680 * fs/ufs.c (INODE_NBLOCKS): new definition
39681 (struct grub_ufs_dirent): added fields for non-BSD dirents
39682 (grub_ufs_get_file_block): fixed double indirect handling
39683 (grub_ufs_lookup_symlink): use more robust way to determine whether
39685 (grub_ufs_find_file): support for non-BSD dirents
39686 (grub_ufs_dir): support for non-BSD dirents
39688 2009-04-10 Bean <bean123ch@gnail.com>
39690 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39691 attribute, otherwise the size would be wrong for i386 platform.
39693 * include/grub/pci.h (grub_pci_read_word): New inline function.
39694 (grub_pci_read_byte): Likewise.
39695 (grub_pci_write): Likewise.
39696 (grub_pci_write_word): Likewise.
39697 (grub_pci_write_byte): Likewise.
39699 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39701 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39702 (find_framebuf): Scan pci to locate the frame buffer address.
39704 * commands/efi/fixvideo.c: New file.
39706 * commands/efi/loadbios.c: Likewise.
39708 * commands/memrw.c: Likewise.
39710 * util/grub-dumpbios.in: Likewise.
39712 * conf/common.rmk (grub-dumpbios): New utility.
39713 (pkglib_MODULES): New module memrw.mod.
39714 (memrw_mod_SOURCE): New macro.
39715 (memrw_mod_CFLAGS): Likewise.
39716 (memrw_mod_LDFLAGS): Likewise.
39718 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39720 (loadbios_mod_SOURCE): New macro.
39721 (loadbios_mod_CFLAGS): Likewise.
39722 (loadbios_mod_LDFLAGS): Likewise.
39723 (fixvideo_mod_SOURCE): Likewise.
39724 (fixvideo_mod_CFLAGS): Likewise.
39725 (fixvideo_mod_LDFLAGS): Likewise.
39727 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39729 (loadbios_mod_SOURCE): New macro.
39730 (loadbios_mod_CFLAGS): Likewise.
39731 (loadbios_mod_LDFLAGS): Likewise.
39732 (fixvideo_mod_SOURCE): Likewise.
39733 (fixvideo_mod_CFLAGS): Likewise.
39734 (fixvideo_mod_LDFLAGS): Likewise.
39736 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39738 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39740 2009-04-07 David S. Miller <davem@davemloft.net>
39742 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39743 support for R_SPARC_OLO10 relocations. Fix compile warning for
39744 R_SPARC_WDISP30 case.
39745 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39747 2009-04-06 Pavel Roskin <proski@gnu.org>
39749 * include/grub/misc.h (ARRAY_SIZE): New macro.
39750 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39752 * loader/i386/linux.c (allocate_pages): Use free_pages().
39753 (grub_linux_unload): Don't use free_pages().
39754 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39755 wrong index. Treat all other modes as text modes.
39756 (grub_cmd_linux): Initialize vid_mode unconditionally to
39757 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39759 * commands/help.c (print_command_help): Use cmd->prio, not
39760 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39762 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39766 * parttool/pcpart.c: new file
39767 * commands/parttool.c: likewise
39768 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39769 (parttool_mod_SOURCES): new variable
39770 (parttool_mod_CFLAGS): likewise
39771 (parttool_mod_LDFLAGS): likewise
39772 (pcpart_mod_SOURCES): likewise
39773 (pcpart_mod_CFLAGS): likewise
39774 (pcpart_mod_LDFLAGS): likewise
39775 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39776 and parttool/pcpart.c
39777 * conf/i386-efi.rmk: likewise
39778 * conf/i386-ieee1275.rmk: likewise
39779 * conf/i386-pc.rmk: likewise
39780 * conf/powerpc-ieee1275.rmk: likewise
39781 * conf/sparc64-ieee1275.rmk: likewise
39782 * conf/x86_64-ieee1275.rmk: likewise
39784 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39786 Support for mtime and further expandability of dir command
39788 * include/grub/lib/datetime.h: moved to ...
39789 * include/grub/datetime.h: ... moved here and added
39790 declaration of grub_unixtime2datetime. All users updated
39791 * include/grub/fs.h: new syntax for dir and mtime functions in
39793 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39794 and GRUB_FSHELP_FLAGS_MASK
39795 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39796 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39797 (grub_ext2_mtime): new function
39798 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39799 (grub_hfsplus_mtime): new function
39800 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39801 (GRUB_UFS_ATTR_FILE): likewise
39802 (GRUB_UFS_ATTR_LNK): likewise
39803 (struct grub_ufs_sblock): new fields mtime
39804 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39806 (grub_ufs_dir): mtime support
39807 (grub_ufs_mtime): new function
39808 * fs/affs.c (grub_affs_dir): use new dir syntax
39809 * fs/afs.c (grub_afs_dir): likewise
39810 * fs/cpio.c (grub_cpio_dir): likewise
39811 * fs/fat.c (grub_fat_find_dir): likewise
39812 * fs/hfs.c (grub_hfs_dir): likewise
39813 * fs/iso9660.c (grub_iso9660_dir): likewise
39814 * fs/jfs.c (grub_jfs_dir): likewise
39815 * fs/minix.c (grub_minix_dir): likewise
39816 * fs/ntfs.c (grub_ntfs_dir): likewise
39817 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39818 * fs/sfs.c (grub_sfs_dir): likewise
39819 * fs/xfs.c (grub_xfs_dir): likewise
39820 * util/hostfs.c (grub_hostfs_dir): likewise
39821 * lib/datetime.c: moved to ...
39822 * normal/datetime.c: ... moved here
39823 (grub_unixtime2datetime): new function
39824 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39825 * normal/completion.c (iterate_dir): use new dir syntax
39826 * normal/misc.c (grub_normal_print_device_info): tell the
39827 last modification time of a volume
39828 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39829 * conf/common.rmk: added lib/datetime.c to ls.mod
39830 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39831 (normal_mod_SOURCES): likewise
39832 (datetime_mod_SOURCES): Removed lib/datetime.c
39833 * conf/i386-efi.rmk: likewise
39834 * conf/i386-ieee1275.rmk: likewise
39835 * conf/i386-pc.rmk: likewise
39836 * conf/powerpc-ieee1275.rmk: likewise
39837 * conf/sparc64-ieee1275.rmk: likewise
39838 * conf/x86_64-efi.rmk: likewise
39840 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39842 Trim trailing spaces in FAT label and support mtools-like labels
39844 * fs/fat.c (grub_fat_iterate_dir): New function based
39845 on grub_fat_find_dir
39846 (grub_fat_find_dir): use grub_fat_iterate_dir
39847 (grub_fat_label): likewise
39849 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39851 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39853 remove extraneous kernel_elf_HEADERS
39855 2009-04-04 Bean <bean123ch@gnail.com>
39857 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39859 * util/misc.c: Likewise.
39861 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39863 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39864 instead of grub_printf.
39866 2009-04-03 Robert Millan <rmh@aybabtu.com>
39868 * loader/i386/linux.c (grub_linux_setup_video): Fill
39869 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39870 values from `mode info' structure instead of hardcoded
39873 2009-04-01 Pavel Roskin <proski@gnu.org>
39875 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39877 * genmk.rb: Likewise.
39878 * configure.ac: Likewise.
39880 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39882 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39883 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39885 2009-04-01 David S. Miller <davem@davemloft.net>
39887 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39888 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39889 (grub_setjmp): Mark with 'returns_twice' attribute.
39890 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39891 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39892 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39894 2009-04-01 Robert Millan <rmh@aybabtu.com>
39896 Reapply fix from 2008-07-28 which was accidentally reverted; also
39897 perform the same fix to a similar check in same function.
39899 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39900 with the same number are found, just use issue a warning with
39901 grub_dprintf(), as this error has been reported to be non-fatal.
39903 2009-03-31 Pavel Roskin <proski@gnu.org>
39905 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39906 for cross-compilation.
39908 2009-03-30 Robert Millan <rmh@aybabtu.com>
39910 Fix i386-ieee1275 build.
39912 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39913 Remove declaration.
39915 2009-03-30 Pavel Roskin <proski@gnu.org>
39917 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39918 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39919 zero-terminated, rely only on the strlen value. Fix comparison
39920 of strings differing in length.
39922 2009-03-30 Robert Millan <rmh@aybabtu.com>
39924 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39925 checking for abi version. Improve error messages on BIOS to notify
39926 user about `linux16' command.
39928 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39932 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39933 in case of collision
39934 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39936 2009-03-29 Robert Millan <rmh@aybabtu.com>
39938 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39939 set `vid_mode' accordingly.
39940 (grub_linux_boot): Process `vid_mode' and set video mode.
39942 2009-03-29 Robert Millan <rmh@aybabtu.com>
39944 * util/grub.d/10_linux.in (linux_entry): New function.
39945 Factorize generation of Linux boot entries.
39947 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39949 Make the format of Environment Block plain text. The boot loader
39950 part is not tested well yet.
39952 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39954 (envblk): Likewise.
39955 (usage): Remove "info" and "clear". Add "unset". Update the
39956 description of "set", as this does not delete variables any
39958 (create_envblk_file): Complete rewrite.
39959 (open_envblk_file): Likewise.
39960 (cmd_info): Removed.
39961 (cmd_list): Likewise.
39962 (cmd_set): Likewise.
39963 (cmd_clear): Likewise.
39964 (list_variables): New function.
39965 (write_envblk): Likewise.
39966 (set_variables): Likewise.
39967 (unset_variables): Likewise.
39968 (main): Complete rewrite.
39970 * commands/loadenv.c (buffer): Removed.
39971 (envblk): Likewise.
39972 (open_envblk_file): New function.
39973 (read_envblk_file): Complete rewrite.
39974 (grub_cmd_load_env): Likewise.
39975 (grub_cmd_list_env): Likewise.
39976 (struct blocklist): New struct.
39977 (free_blocklists): New function.
39978 (check_blocklists): Likewise.
39979 (write_blocklists): Likewise.
39980 (grub_cmd_save_env): Complete rewrite.
39982 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
39983 a plain text signature.
39984 (GRUB_ENVBLK_MAXLEN): Removed.
39985 (struct grub_envblk): Complete rewrite.
39986 (grub_envblk_find): Removed.
39987 (grub_envblk_insert): Likewise.
39988 (grub_envblk_open): New prototype.
39989 (grub_envblk_set): Likewise.
39990 (grub_envblk_delete): Put const to VALUE.
39991 (grub_envblk_iterate): Put const to NAME and VALUE.
39992 (grub_envblk_close): New prototype.
39993 (grub_envblk_buffer): New inline function.
39994 (grub_envblk_size): Likewise.
39996 * lib/envblk.c: Include grub/mm.h.
39997 (grub_env_find): Removed.
39998 (grub_envblk_open): New function.
39999 (grub_envblk_close): Likewise.
40000 (escaped_value_len): Likewise.
40001 (find_next_line): Likewise.
40002 (grub_envblk_insert): Removed.
40003 (grub_envblk_set): New function.
40004 (grub_envblk_delete): Complete rewrite.
40005 (grub_envblk_iterate): Likewise.
40007 2009-03-28 Robert Millan <rmh@aybabtu.com>
40009 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40010 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40011 variables. Use 16-bit loader.
40012 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40014 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40015 (grub_linux16_boot): ... this. Update all users.
40016 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40017 (grub_linux_boot): ... this. Update all users.
40019 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40020 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40021 commands to `linux16' and `initrd16'.
40022 (GRUB_MOD_FINI(linux)): Rename to ...
40023 (GRUB_MOD_FINI(linux16)): ... this.
40025 2009-03-24 Pavel Roskin <proski@gnu.org>
40027 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40028 not just for compilation.
40030 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40032 Move multiboot helper out of kernel
40034 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40035 `loader/i386/multiboot_helper.S'.
40036 * conf/i386-coreboot.rmk: Likewise
40037 * conf/i386-ieee1275.rmk: Likewise
40039 * kern/i386/loader.S: Move multiboot helpers from here...
40040 * loader/i386/multiboot_helper.S: ...moved here
40041 * include/grub/i386/loader.h: Move declarations of multiboot
40042 helpers from here...
40043 * include/grub/i386/multiboot.h: ...moved here
40044 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40046 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40048 * kern/env.c (grub_env_context_open): Added an argument to specify
40049 whether a new context inherits exported variables from current
40050 one. This is useful when making a sandbox to interpret a config
40052 All callers updated.
40054 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40056 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40058 * kern/env.c (grub_env_context_close): Fix memory leaks.
40060 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40062 * normal/main.c (grub_normal_execute): Added an argument
40063 BATCH to specify if an interactive interface should be provided
40064 after reading a config file.
40065 All callers updated.
40066 (read_command_list): Prevent being executed twice.
40067 (read_fs_list): Likewise.
40069 * include/grub/normal.h (grub_normal_execute): Updated the
40072 2009-03-22 Pavel Roskin <proski@gno.org>
40074 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40076 * kern/i386/pc/startup.S: Likewise.
40077 * kern/i386/efi/startup.S: Likewise.
40078 * kern/i386/ieee1275/startup.S: Likewise.
40079 * kern/i386/coreboot/startup.S: Likewise.
40080 * kern/x86_64/efi/startup.S: Likewise.
40082 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40083 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40084 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40086 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40088 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40090 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40092 Use vaddr of correct segment for entry_point.
40094 2009-03-21 Bean <bean123ch@gmail.com>
40096 * commands/blocklist.c: Add include file <grub/command.h>, remove
40097 <grub/normal.h> and <grub/arg.h>.
40098 (grub_cmd_blocklist): Use the new command interface.
40099 (GRUB_MOD_INIT): Likewise.
40100 (GRUB_MOD_FINI): Likewise.
40101 * commands/boot.c: Likewise.
40102 * commands/cat.c: Likewise.
40103 * commands/cmp.c: Likewise.
40104 * commands/configfile.c: Likewise.
40105 * commands/crc.c: Likewise.
40106 * commands/echo.c: Likewise.
40107 * commands/halt.c: Likewise.
40108 * commands/handler.c: Likewise.
40109 * commands/hdparm.c: Likewise.
40110 * commands/help.c: Likewise.
40111 * commands/hexdump.c: Likewise.
40112 * commands/loadenv.c: Likewise.
40113 * commands/ls.c: Likewise.
40114 * commands/lsmmap.c: Likewise.
40115 * commands/lspci.c: Likewise.
40116 * commands/loadenv.c: Likewise.
40117 * commands/read.c: Likewise.
40118 * commands/reboot.c: Likewise.
40119 * commands/search.c: Likewise.
40120 * commands/sleep.c: Likewise.
40121 * commands/test.c: Likewise.
40122 * commands/usbtest.c: Likewise.
40123 * commands/videotest.c: Likewise.
40124 * commands/i386/cpuid.c: Likewise.
40125 * commands/i386/pc/halt.c: Likewise.
40126 * commands/i386/pc/play.c: Likewise.
40127 * commands/i386/pc/pxecmd.c: Likewise.
40128 * commands/i386/pc/vbeinfo.c: Likewise.
40129 * commands/i386/pc/vbetest.c: Likewise.
40130 * commands/ieee1275/suspend.c: Likewise.
40131 * disk/loopback.c: Likewise.
40132 * font/font_cmd.c: Likewise.
40133 * hello/hello.c: Likewise.
40134 * loader/efi/appleloader.c: Likewise.
40135 * loader/efi/chainloader.c: Likewise.
40136 * loader/i386/bsd.c: Likewise.
40137 * loader/i386/efi/linux.c: Likewise.
40138 * loader/i386/ieee1275/linux.c: Likewise.
40139 * loader/i386/linux.c: Likewise.
40140 * loader/i386/pc/chainloader.c: Likewise.
40141 * loader/i386/pc/linux.c: Likewise.
40142 * loader/powerpc/ieee1275/linux.c: Likewise.
40143 * loader/multiboot_loader.c: Likewise.
40144 * term/gfxterm.c: Likewise.
40145 * term/i386/pc/serial.c: Likewise.
40146 * term/terminfo.c: Likewise.
40148 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40149 * term/i386/pc/vga.c: Likewise.
40150 * video/readers/jpeg.c: Likewise.
40151 * video/readers/png.c: Likewise.
40152 * video/readers/tga.c: Likewise.
40154 * util/grub-fstest (cmd_loopback): Removed.
40155 (cmd_blocklist): Likewise.
40156 (cmd_ls): Likewise.
40157 (grub_register_command): Likewise.
40158 (grub_unregister_command): Likewise.
40159 (execute_command): Use grub_command_find to locate command and execute
40162 * include/grub/efi/chainloader.h: Removed.
40163 * loader/efi/chainloader_normal.c: Likewise.
40164 * loader/i386/bsd_normal.c: Likewise.
40165 * loader/i386/pc/chainloader_normal.c: Likewise.
40166 * loader/i386/pc/multiboot_normal.c: Likewise.
40167 * loader/linux_normal.c: Likewise.
40168 * loader/multiboot_loader_normal.c: Likewise.
40169 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40171 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40172 and grub_register_command_p1.
40174 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40175 kern/command.c, lib/arg.c and commands/extcmd.c.
40176 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40177 (minicmd_mod_SOURCES): New variable.
40178 (minicmd_mod_CFLAGS): Likewise.
40179 (minicmd_mod_LDFLAGS): Likewise.
40180 (extcmd_mod_SOURCES): Likewise.
40181 (extcmd_mod_CFLAGS): Likewise.
40182 (extcmd_mod_LDFLAGS): Likewise.
40183 (boot_mod_SOURCES): Removed.
40184 (boot_mod_CFLAGS): Likewise.
40185 (boot_mod_LDFLAGS): Likewise.
40187 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40189 (kernel_img_HEADERS): Add command.h.
40190 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40191 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40193 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40194 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40195 remove the corresponding normal mode command.
40196 (normal_mod_SOURCES): Remove normal/arg.c.
40197 * conf/i386-coreboot.rmk: Likewise.
40198 * conf/i386-efi.rmk: Likewise.
40199 * conf/i386-ieee1275.rmk: Likewise.
40200 * conf/powerpc-ieee1275.rmk: Likewise.
40201 * conf/x86_64-efi.rmk: Likewise.
40203 * include/grub/arg.h: Move from here ...
40204 * include/grub/lib/arg.h: ... to here.
40206 * normal/arg.c: Move from here ...
40207 * lib/arg.c: ... to here.
40209 * commands/extcmd.c: New file.
40210 * commands/minicmd.c: Likewise.
40211 * include/grub/command.h: Likewise.
40212 * include/grub/extcmd.h: Likewise.
40213 * kern/command.c: Likewise.
40214 * kern/corecmd.c: Likewise.
40216 * kern/list.c (grub_list_iterate): Return int instead of void.
40217 (grub_list_insert): New function.
40218 (grub_prio_list_insert): Likewise.
40220 * kern/rescue.c (grub_rescue_command): Removed.
40221 (grub_rescue_command_list): Likewise.
40222 (grub_rescue_register_command): Likewise.
40223 (grub_rescue_unregister_command): Likewise.
40224 (grub_rescue_cmd_boot): Move to minicmd.c
40225 (grub_rescue_cmd_help): Likewise.
40226 (grub_rescue_cmd_info): Likewise.
40227 (grub_rescue_cmd_boot): Likewise.
40228 (grub_rescue_cmd_testload): Likewise.
40229 (grub_rescue_cmd_dump): Likewise.
40230 (grub_rescue_cmd_rmmod): Likewise.
40231 (grub_rescue_cmd_lsmod): Likewise.
40232 (grub_rescue_cmd_exit): Likewise.
40233 (grub_rescue_print_devices): Moved to corecmd.c.
40234 (grub_rescue_print_files): Likewise.
40235 (grub_rescue_cmd_ls): Likewise.
40236 (grub_rescue_cmd_insmod): Likewise.
40237 (grub_rescue_cmd_set): Likewise.
40238 (grub_rescue_cmd_unset): Likewise.
40239 (attempt_normal_mode): Use grub_command_find to get normal module.
40240 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40241 commands, remove grub_rescue_register_command calls.
40243 * normal/command.c (grub_register_command): Removed.
40244 (grub_unregister_command): Likewise.
40245 (grub_command_find): Likewise.
40246 (grub_iterate_commands): Likewise.
40247 (rescue_command): Likewise.
40248 (export_command): Moved to corecmd.c.
40249 (set_command): Removed.
40250 (unset_command): Likewise.
40251 (insmod_command): Likewise.
40252 (rmmod_command): Likewise.
40253 (lsmod_command): Likewise.
40254 (grub_command_init): Likewise.
40256 * normal/completion.c (iterate_command): Use cmd->prio to check for
40258 (complete_arguments): Use grub_extcmd_t structure to find options.
40259 (grub_normal_do_completion): Change function grub_iterate_commands to
40260 grub_command_iterate.
40262 * normal/execute.c (grub_script_execute_cmd): No need to parse
40265 * normal/main.c (grub_dyncmd_dispatcher): New function.
40266 (read_command_list): Register unload commands as dyncmd.
40267 (grub_cmd_normal): Use new command interface, register rescue,
40268 unregister normal at entry, register normal, unregister rescue at exit.
40270 * include/grub/list.h (grub_list_test_t): New type.
40271 (grub_list_iterate): Return int instead of void.
40272 (grub_list_insert): New function.
40273 (GRUB_AS_NAMED_LIST_P): New macro.
40274 (GRUB_AS_PRIO_LIST): Likewise.
40275 (GRUB_AS_PRIO_LIST_P): Likewise.
40276 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40277 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40278 (grub_prio_list): New structure.
40279 (grub_prio_list_insert): New function.
40280 (grub_prio_list_remove): New inline function.
40282 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40283 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40284 (GRUB_COMMAND_FLAG_MENU): Likewise.
40285 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40286 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40287 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40288 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40289 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40290 (grub_command): Likewise.
40291 (grub_register_command): Likewise.
40292 (grub_command_find): Likewise.
40293 (grub_iterate_commands): Likewise.
40294 (grub_command_init): Likewise.
40295 (grub_arg_parse): Likewise.
40296 (grub_arg_show_help): Likewise.
40298 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40299 (grub_rescue_unregister_command): Likewise.
40301 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40302 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40303 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40305 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40306 grub_rescue_cmd_initrd.
40307 * include/grub/i386/loader.h: Likewise.
40308 * include/grub/x86_64/loader.h: Likewise.
40310 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40312 2009-03-21 Bean <bean123ch@gmail.com>
40314 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40315 instead of stat in mingw environment.
40317 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40319 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40321 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40324 2009-03-21 Bean <bean123ch@gmail.com>
40326 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40327 out of range error.
40329 2009-03-18 Michel Dänzer <michel@daenzer.net>
40331 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40332 checking inode flags for EXT4_EXTENTS_FLAG.
40334 2009-03-18 Robert Millan <rmh@aybabtu.com>
40336 * loader/i386/linux.c: Include `<grub/video.h>' and
40337 `<grub/i386/pc/vbe.h>'..
40338 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40339 (grub_linux32_boot): Attempt to configure video settings with
40340 grub_linux_setup_video().
40341 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40342 to avoid grub_console_fini() which would step out of graphical mode
40345 2009-03-14 Robert Millan <rmh@aybabtu.com>
40347 Fix build on powerpc.
40348 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40350 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40352 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40353 background image command.
40355 2009-03-12 Colin D Bennett <colin@gibibit.com>
40357 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40358 (grub_gfxterm_putchar): Extract pairs of identical calls to
40359 draw_cursor out of conditional blocks.
40361 2009-03-11 Pavel Roskin <proski@gnu.org>
40363 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40364 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40366 2009-03-11 Robert Millan <rmh@aybabtu.com>
40368 * loader/i386/multiboot_elfxx.c
40369 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40371 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40373 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40376 2009-03-11 Robert Millan <rmh@aybabtu.com>
40378 * loader/i386/multiboot.c (code_size): New variable.
40379 (grub_multiboot): Define offsets by adding to `code_size' rather
40380 than subtracting from `grub_multiboot_payload_size'. Provide
40381 4-byte alignment to MBI and others by increasing
40382 `boot_loader_name_length' appropriately.
40384 * loader/i386/multiboot_elfxx.c
40385 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40387 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40392 2009-03-08 Robert Millan <rmh@aybabtu.com>
40394 Make loader/i386/linux.c usable on i386-pc again.
40396 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40398 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40401 2009-03-07 Bean <bean123ch@gmail.com>
40403 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40406 2009-03-06 Robert Millan <rmh@aybabtu.com>
40408 Fix display issue on terminals with screen size other than 80x25
40409 (e.g. gfxterm with resolution higher than 640x480).
40411 * normal/main.c (grub_normal_init_page): Display title text in a
40412 position relative to the center of the terminal instead of relying
40413 on a hardcoded offset.
40415 2009-03-04 Robert Millan <rmh@aybabtu.com>
40417 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40420 * Makefile.in (host_kernel): New variable.
40421 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40422 scripts instead of just the windows one.
40423 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40425 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40427 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40429 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40430 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40431 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40432 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40433 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40434 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40436 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40438 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40439 or if there's no space for the disk label and print the partition number on a
40442 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40444 * util/misc.c: Include <time.h>.
40445 (grub_millisleep): New function.
40447 2009-03-04 Bean <bean123ch@gmail.com>
40449 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40450 another option -mno-red-zone.
40452 * commands/handler.c: Change module description.
40454 * kern/handler.c: Add missing space at the end of description line.
40456 * kern/list.c: Likewise.
40458 2009-03-03 Robert Millan <rmh@aybabtu.com>
40460 Move more components to the relocation area, and fix mbi pointer
40461 handling to use the destination rather than the origin (thanks to
40462 Vladimir Serbinenko for spotting).
40464 * loader/i386/multiboot.c (mbi_dest): New variable.
40465 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40466 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40469 2009-03-01 Bean <bean123ch@gmail.com>
40471 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40472 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40473 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40474 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40476 * loader/i386/efi/linux.c (acpi_guid): New variable.
40477 (acpi_guid): Likewise.
40478 (EBDA_SEG_ADDR): New constant.
40479 (LOW_MEM_ADDR): Likewise.
40480 (FAKE_EBDA_SEG): Likewise.
40481 (fake_bios_data): New function.
40482 (grub_linux_boot): Call fake_bios_data.
40484 2009-03-01 Bean <bean123ch@gmail.com>
40486 * commands/terminal.c: Removed.
40488 * commands/handler.c: New file.
40490 * include/grub/list.h: Likewise.
40492 * include/grub/handler.h: Likewise.
40494 * kern/list.c: Likewise.
40496 * kern/handler.c: Likewise.
40498 * kern/term.h: Include header file <grub/handler.h>.
40499 (grub_term_input): Move next field to the beginning.
40500 (grub_term_output): Likewise.
40501 (grub_term_input_class): New variable.
40502 (grub_term_output_class): Likewise.
40503 (grub_term_register_input): Changed to inline function.
40504 (grub_term_register_output): Likewise.
40505 (grub_term_unregister_input): Likewise.
40506 (grub_term_unregister_output): Likewise.
40507 (grub_term_set_current_input): Likewise.
40508 (grub_term_set_current_output): Likewise.
40509 (grub_term_get_current_input): Likewise.
40510 (grub_term_get_current_output): Likewise.
40511 (grub_term_iterate_input): Removed.
40512 (grub_term_iterate_output): Likewise.
40514 * kern/term.c (grub_term_list_input): Removed.
40515 (grub_term_list_output): Likewise.
40516 (grub_term_input_class): New variable.
40517 (grub_term_output_class): Likewise.
40518 (grub_cur_term_input): Change variable as macro.
40519 (grub_cur_term_output): Likewise.
40520 (grub_term_register_input): Removed.
40521 (grub_term_register_output): Likewise.
40522 (grub_term_unregister_input): Likewise.
40523 (grub_term_unregister_output): Likewise.
40524 (grub_term_set_current_input): Likewise.
40525 (grub_term_set_current_output): Likewise.
40526 (grub_term_iterate_input): Likewise.
40527 (grub_term_iterate_output): Likewise.
40528 (grub_term_get_current_input): Likewise.
40529 (grub_term_get_current_output): Likewise.
40531 * util/grub-editenv.c: Include header file <grub/handler.h>.
40532 (grub_term_get_current_input): Removed.
40533 (grub_term_get_current_output): Likewise.
40534 (grub_term_input_class): New variable.
40535 (grub_term_output_class): Likewise.
40537 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40538 (grub_term_get_current_output): Likewise.
40539 (grub_term_input_class): New variable.
40540 (grub_term_output_class): Likewise.
40542 * util/grub-probe.c (grub_term_get_current_input): Removed.
40543 (grub_term_get_current_output): Likewise.
40544 (grub_term_input_class): New variable.
40545 (grub_term_output_class): Likewise.
40547 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40548 (grub_term_get_current_output): Likewise.
40549 (grub_term_input_class): New variable.
40550 (grub_term_output_class): Likewise.
40552 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40553 (terminal_mod_SOURCES): Likewise.
40554 (terminal_mod_CFLAGS): Likewise.
40555 (terminal_mod_LDFLAGS): Likewise.
40557 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40559 (kernel_img_SOURCES): Add list.c and handler.c.
40560 (kernel_img_HEADERS): Add list.h and handler.h.
40562 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40564 (kernel_mod_SOURCES): Add list.c and handler.c.
40565 (kernel_mod_HEADERS): Add list.h and handler.h.
40567 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40569 (kernel_elf_SOURCES): Add list.c and handler.c.
40570 (kernel_elf_HEADERS): Add list.h and handler.h.
40572 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40574 (kernel_elf_SOURCES): Add list.c and handler.c.
40575 (kernel_elf_HEADERS): Add list.h and handler.h.
40577 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40579 (kernel_mod_SOURCES): Add list.c and handler.c.
40580 (kernel_mod_HEADERS): Add list.h and handler.h.
40582 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40584 (kernel_elf_SOURCES): Add list.c and handler.c.
40585 (kernel_elf_HEADERS): Add list.h and handler.h.
40587 2009-02-27 Robert Millan <rmh@aybabtu.com>
40589 Factorize elf32 / elf64 code in Multiboot loader. This will
40590 prevent it from getting out of sync again.
40592 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40593 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40594 grub_multiboot_load_elf64): Move from here ...
40595 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40596 grub_multiboot_load_elf): ... to here (new file).
40598 2009-02-27 Robert Millan <rmh@aybabtu.com>
40600 * util/grub.d/10_linux.in: Rename "single-user mode" to
40603 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40605 Don't leak in SCSI code.
40606 * disk/scsi.c (grub_scsi_close): free `scsi'.
40608 2009-02-27 Robert Millan <rmh@aybabtu.com>
40610 * loader/i386/pc/multiboot.c: Move from here ...
40611 * loader/i386/multiboot.c: ... to here. Update all users.
40613 2009-02-27 Robert Millan <rmh@aybabtu.com>
40615 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40616 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40618 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40620 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40623 2009-02-27 Robert Millan <rmh@aybabtu.com>
40625 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40626 `0x' qualifier as 0 when base is specified as parameter).
40628 2009-02-24 Bean <bean123ch@gmail.com>
40630 * configure.ac: Check for -mcmodel=large in x86_64 target.
40632 * include/grub/efi/api.h (efi_call_10): New macro.
40633 (efi_wrap_10): New function.
40635 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40636 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40637 (GRUB_PE32_REL_BASED_LOW): Likewise.
40638 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40639 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40640 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40641 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40642 (GRUB_PE32_REL_BASED_REL): Likewise.
40643 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40644 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40645 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40647 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40650 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40651 (efi_wrap_10): New function.
40653 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40655 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40656 MB/MBP model (NV chipset).
40657 (devdata_devs): Add devpath_5 to the list.
40659 * load/i386/efi/linux.c (video_base): Remove variable.
40660 (RGB_MASK): New macro.
40661 (RGB_MAGIC): Likewise.
40662 (LINE_MIN): Likewise.
40663 (LINE_MAX): Likewise.
40664 (FBTEST_STEP): Likewise.
40665 (FBTEST_COUNT): Likewise.
40666 (fb_list): New variable.
40667 (grub_find_video_card): Remove function.
40668 (find_framebuf): New function.
40669 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40672 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40673 problem for x86_64.
40675 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40677 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40679 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40682 2009-02-22 Robert Millan <rmh@aybabtu.com>
40684 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40685 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40686 in our relocation, instead of using it directly from heap. Also
40687 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40689 2009-02-21 Robert Millan <rmh@aybabtu.com>
40691 Implement USB keyboard support (based on patch by Marco Gerards)
40693 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40694 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40695 (usb_keyboard_mod_LDFLAGS): New variables.
40697 * term/usb_keyboard.c: New file.
40699 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40701 Corrected wrong declaration
40703 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40705 2009-02-14 Christian Franke <franke@computer.org>
40707 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40708 (grub_lspci_iter): Print class code and programming interface byte.
40710 2009-02-14 Christian Franke <franke@computer.org>
40712 * gendistlist.sh: Ignore `.svn' directories.
40714 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40716 * fs/fat.c: Add 2009 to Copyright line.
40718 2009-02-14 Christian Franke <franke@computer.org>
40720 * commands/hdparm.c: New file. Provides `hdparm' command
40721 which sends ATA commands via grub_disk_ata_pass_through ().
40723 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40725 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40726 and <grub/cpu/io.h> to include/grub/ata.h.
40727 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40728 (GRUB_CDROM_SECTOR_SIZE): Remove.
40729 (GRUB_ATA_*): Move to include/grub/ata.h.
40730 (GRUB_ATAPI_*): Likewise.
40731 (enum grub_ata_commands): Likewise.
40732 (enum grub_ata_timeout_milliseconds): Likewise.
40733 (struct grub_ata_device): Likewise.
40734 (grub_ata_regset): Likewise.
40735 (grub_ata_regget): Likewise.
40736 (grub_ata_regset2): Likewise.
40737 (grub_ata_regget2): Likewise.
40738 (grub_ata_check_ready): Likewise.
40739 (grub_ata_wait_not_busy): Remove static, exported in
40740 include/grub/ata.h.
40741 (grub_ata_wait_drq): Likewise.
40742 (grub_ata_pio_read): Likewise.
40744 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40745 function for hdparm.mod.
40747 * include/grub/ata.h: New file, contains declarations from
40749 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40751 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40752 (grub_disk_ata_pass_through): New exported variable.
40754 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40756 2009-02-13 Colin D Bennett <colin@gibibit.com>
40758 Support multiple fallback entries, and provide an API to support
40759 executing default+fallback menu entries. Renamed the `terminal' menu
40762 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40763 variable declaration.
40764 (grub_menu_execute_callback): New structure declaration.
40765 (grub_menu_execute_callback_t): New typedef.
40766 (grub_menu_execute_with_fallback): New function declaration.
40767 (grub_menu_get_entry): Likewise.
40768 (grub_menu_get_timeout): Likewise.
40769 (grub_menu_set_timeout): Likewise.
40771 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40773 * normal/menu.c (grub_wait_after_message): Moved to
40774 `normal/menu_text.c'.
40775 (draw_border): Likewise.
40776 (print_message): Likewise.
40777 (print_entry): Likewise.
40778 (print_entries): Likewise.
40779 (grub_menu_init_page): Likewise.
40780 (get_entry_number): Likewise.
40781 (print_timeout): Likewise.
40782 (run_menu): Likewise.
40783 (grub_menu_execute_entry): Likewise.
40784 (show_text_menu): Likewise.
40785 (get_and_remove_first_entry_number): New function.
40786 (grub_menu_execute_with_fallback): Likewise.
40787 (get_entry): Renamed to ...
40788 (grub_menu_get_entry): .. this and made it global.
40789 (get_timeout): Renamed to ...
40790 (grub_menu_get_timeout): ... this and made it global.
40791 (set_timeout): Renamed to ...
40792 (grub_menu_set_timeout): ... this and made it global.
40793 (grub_normal_terminal_menu_viewer): Renamed to ...
40794 (grub_normal_text_menu_viewer): ... this.
40796 * normal/menu_text.c: New file. Extracted text-menu-specific code
40797 from normal/menu.c.
40799 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40800 (normal_mod_SOURCES): Likewise.
40802 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40803 (normal_mod_SOURCES): Likewise.
40805 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40806 (normal_mod_SOURCES): Likewise.
40808 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40809 (normal_mod_SOURCES): Likewise.
40811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40812 (normal_mod_SOURCES): Likewise.
40814 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40815 (normal_mod_SOURCES): Likewise.
40817 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40818 (normal_mod_SOURCES): Likewise.
40820 2009-02-11 Robert Millan <rmh@aybabtu.com>
40822 * util/grub.d/00_header.in: Update old reference to `font' command.
40824 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40826 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40828 Based on patch from Javier Martín.
40830 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40832 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40833 to avoid false positives with FAT.
40834 (grub_fstest_SOURCES): Likewise.
40835 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40836 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40837 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40838 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40839 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40840 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40842 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40844 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40845 bpb.version_specific.fat12_or_fat16.fstype and
40846 bpb.version_specific.fat32.fstype.
40848 2009-02-08 Robert Millan <rmh@aybabtu.com>
40850 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40852 2009-02-08 Robert Millan <rmh@aybabtu.com>
40854 * Makefile.in (host_os, host_cpu): New variables.
40855 (target_os): Remove. Update all users.
40857 2009-02-08 Marco Gerards <marco@gnu.org>
40859 * Makefile.in (enable_grub_emu_usb): New variable.
40860 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40861 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40862 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40863 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40864 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40865 `usbtest.mod' and `usbms.mod'.
40866 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40867 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40868 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40869 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40870 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40873 * disk/usbms.c: New file.
40875 * include/grub/usb.h: Likewise.
40877 * include/grub/usbtrans.h: Likewise.
40879 * include/grub/usbdesc.h: Likewise.
40881 * bus/usb/usbtrans.c: Likewise.
40883 * bus/usb/ohci.c: Likewise.
40885 * bus/usb/uhci.c: Likewise.
40887 * bus/usb/usbhub.c: Likewise.
40889 * bus/usb/usb.c: Likewise.
40891 * commands/usbtest.c: Likewise.
40893 * util/usb.c: Likewise.
40895 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40897 * configure.ac: Test for libusb presence.
40899 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40901 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40903 * kern/mm.c: Add more comments.
40905 2009-02-08 Robert Millan <rmh@aybabtu.com>
40907 Patch from Javier Martín.
40908 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40909 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40911 2009-02-08 Robert Millan <rmh@aybabtu.com>
40913 * fs/cpio.c: Split tar functionality to ...
40914 * fs/tar.c: ... here (new file). Update all users.
40916 2009-02-07 Robert Millan <rmh@aybabtu.com>
40918 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40919 backward-incompatible features.
40921 Based on patch from Javier Martín, with some adjustments.
40923 2009-02-07 Michael Scherer <misc@mandriva.org>
40925 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40927 2009-02-07 Robert Millan <rmh@aybabtu.com>
40929 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40930 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40931 after the RAID stuff.
40933 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40935 Fixes problem when running vbetest command as reported by
40936 Vladimir Serbinenko <phcoder@gmail.com>.
40938 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40940 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40942 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40943 /dev/md/NpN style mdraid devices.
40945 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40947 * util/unifont2pff.rb: Remove.
40949 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40951 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40954 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40956 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40957 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40958 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40959 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40960 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40961 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40962 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40964 2009-02-02 Christian Franke <franke@computer.org>
40966 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40968 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40970 * INSTALL: Note that we now require at least autoconf 2.59 and
40971 that LZO is optional.
40973 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40975 Base on patch on bug #24154 created by Tomas Tintera
40976 <trosos@seznam.cz>.
40978 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
40980 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40982 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
40983 <bero@arklinux.org>.
40985 * normal/parser.y (script_init): Add missing semicolon.
40987 2009-01-31 Colin D Bennett <colin@gibibit.com>
40989 * normal/main.c: Add include to grub/menu_viewer.h.
40990 (free_menu_entry_classes): Added.
40991 (grub_normal_menu_addentry): Added class property handling.
40992 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
40993 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
40995 * normal/menu_viewer.c: New file.
40997 * normal/menu.c (run_menu_entry): Renamed to ...
40998 (grub_menu_execute_entry): ... this and made it as global.
40999 (grub_menu_run): Renamed to ...
41000 (show_text_menu): ... this and made it local.
41001 (show_text_menu): Adapt to new function names.
41002 (grub_normal_terminal_menu_viewer): New global variable.
41004 * include/grub/menu.h: New file.
41006 * include/grub/menu_viewer.h: New file.
41008 * include/grub/normal.h: Added include to grub/menu.h.
41009 (grub_menu_entry): Moved to include/grub/menu.h.
41010 (grub_menu_entry_t): Likewise.
41011 (grub_menu): Likewise.
41012 (grub_menu_t): Likewise.
41013 (grub_normal_terminal_menu_viewer): Added.
41014 (grub_menu_execute_entry): Likewise.
41015 (grub_menu_run): Removed.
41017 * DISTLIST: Added include/grub/menu.h.
41018 Added include/grub/menu_viewer.h.
41019 Added normal/menu_viewer.c.
41021 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41023 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41024 arglist for menutitle arguments.
41026 * normal/main.c (grub_normal_menu_addentry): Likewise.
41028 * normal/parser.y (menuentry): Likewise.
41030 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41032 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41033 (grub_script_create_cmdmenu): Likewise.
41035 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41037 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41040 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41042 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41044 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41046 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41048 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41050 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41052 2009-01-30 Christian Franke <franke@computer.org>
41054 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41055 in option help text.
41057 2009-01-27 Pavel Roskin <proski@gnu.org>
41059 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41061 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41063 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41065 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41067 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41068 unregister function.
41070 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41072 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41074 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41076 * util/grub-mkfont.c (usage): Fix typo.
41078 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41080 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41082 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41084 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41086 * kern/misc.c (grub_strcasecmp): New function.
41087 (grub_strcasecmp): Use grub_size_t instead of int for length.
41089 * include/grub/misc.h: Update function prototypes.
41091 2009-01-26 Robert Millan <rmh@aybabtu.com>
41093 * configure.ac: Fix cross-compilation check.
41095 2009-01-22 Christian Franke <franke@computer.org>
41097 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41098 (precision) digit string. Allow `.format2' without `format1' (width).
41099 Limit input chars for `%s' output to `format2' if specified. This is
41100 compatible with standard printf ().
41102 2009-01-22 Christian Franke <franke@computer.org>
41104 * disk/ata.c (grub_ata_wait_status): Replace by ...
41105 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41106 other status bits may be invalid while BSY is asserted.
41107 (grub_ata_check_ready): New function.
41108 (grub_ata_cmd): Removed.
41109 (grub_ata_wait_drq): New function.
41110 (grub_ata_strncpy): Remove inline.
41111 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41112 and error check now done by grub_ata_wait_drq ().
41113 (grub_ata_pio_write): Likewise.
41114 (grub_atapi_identify): Set DEV before check for !BSY. Use
41115 grub_ata_wait_drq () to wait for data.
41116 (grub_ata_device_initialize): Add status register check to
41117 detect missing SATA slave devices. Add debug messages.
41118 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41119 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41120 transfer loop by grub_ata_pio_write ().
41121 (grub_ata_identify): Set DEV before check for !BSY. Use
41122 grub_ata_wait_drq () to wait for data.
41123 (grub_ata_setaddress): Set DEV before check for !BSY.
41124 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41125 read/write in one loop. Fix invalid command on write. Fix incomplete
41126 command on (size % batch) == 0. Add missing error check after write of
41127 last block. Add debug messages.
41128 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41130 2009-01-19 Christian Franke <franke@computer.org>
41132 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41133 (GRUB_ATAPI_IREASON_*): Likewise.
41134 (grub_ata_pio_write): Fix timeout error return.
41135 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41136 (grub_atapi_wait_drq): New function.
41137 (grub_atapi_packet): New parameter `size'.
41138 Use grub_atapi_wait_drq () and direct write instead of
41139 grub_ata_pio_write ().
41140 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41141 reads the number of bytes requested by the device for each DRQ
41143 (grub_atapi_write): Remove old implementation, return not
41144 implemented instead.
41146 2009-01-19 Christian Franke <franke@computer.org>
41148 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41149 of 512 to calculate data size.
41150 (grub_scsi_read12): Likewise.
41151 (grub_scsi_write10): Likewise.
41152 (grub_scsi_write12): Likewise.
41153 (grub_scsi_read): Adjust size according to blocksize.
41154 Add checks for invalid blocksize and unaligned transfer.
41156 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41158 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41160 * term/gfxterm.c (write_char): Fix background rendering for wide
41163 2009-01-19 Robert Millan <rmh@aybabtu.com>
41165 * config.guess: Update to latest version from config git.
41166 * config.sub: Likewise.
41168 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41170 * Makefile.in: Change font compilation to use new grub-mkfont instead
41173 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41174 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41175 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41176 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41177 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41178 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41179 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41180 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41181 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41183 2009-01-16 Christian Franke <franke@computer.org>
41185 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41186 (enum grub_ata_timeout_milliseconds): New enum.
41187 (grub_ata_wait_status): Add parameter milliseconds.
41188 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41189 recovery from timed-out commands.
41190 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41191 return grub_errno instead of REG_ERROR.
41192 (grub_ata_pio_write): Add parameter milliseconds.
41193 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41194 Pass milliseconds to grub_ata_wait_status () and
41195 grub_ata_pio_read ().
41196 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41197 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41198 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41199 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41200 It is not suitable for device detection, because DEV bit is ignored,
41201 the command may run too long, and not all devices set the signature
41203 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41204 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41205 Fix device selection, DEV bit must be set first to address the registers
41206 of the correct device.
41207 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41208 grub_ata_pio_read/write ().
41209 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41210 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41212 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41214 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41216 2009-01-13 Bean <bean123ch@gmail.com>
41218 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41220 2009-01-13 Bean <bean123ch@gmail.com>
41222 * Makefile.in: (enable_grub_mkfont): New variable.
41223 (freetype_cflags): Likewise.
41224 (freetype_libs): Likewise.
41226 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41227 (grub_mkfont_SOURCES): New variable.
41228 (grub_mkfont_CFLAGS): Likewise.
41229 (grub_mkfont_LDFLAGS): Likewise.
41231 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41232 library if `--enable-grub-mkfont' is requested.
41233 (enable_grub_mkfont): New variable.
41234 (freetype_cflags): Likewise.
41235 (freetype_libs): Likewise.
41237 * util/grub-mkfont.c: New file.
41239 2009-01-12 Christian Franke <franke@computer.org>
41241 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41242 mode check. Fix setting of compat_use[].
41244 2009-01-10 Robert Millan <rmh@aybabtu.com>
41246 Update a few copyright years which we forgot to do in 2008 (only for
41247 files whose changes made in 2008 were copyright-significant)
41249 * Makefile.in: Add 2008 to Copyright line.
41250 * disk/ieee1275/ofdisk.c: Likewise.
41251 * disk/efi/efidisk.c: Likewise.
41252 * kern/dl.c: Likewise.
41253 * kern/sparc64/ieee1275/init.c: Likewise.
41254 * kern/mm.c: Likewise.
41255 * kern/efi/mm.c: Likewise.
41256 * boot/i386/pc/boot.S: Likewise.
41257 * genfslist.sh: Likewise.
41258 * fs/iso9660.c: Likewise.
41259 * fs/hfs.c: Likewise.
41260 * fs/jfs.c: Likewise.
41261 * fs/minix.c: Likewise.
41262 * fs/ufs.c: Likewise.
41263 * gensymlist.sh.in: Likewise.
41264 * genkernsyms.sh.in: Likewise.
41265 * include/grub/misc.h: Likewise.
41266 * include/grub/types.h: Likewise.
41267 * include/grub/symbol.h: Likewise.
41268 * include/grub/elf.h: Likewise.
41269 * include/grub/kernel.h: Likewise.
41270 * include/grub/disk.h: Likewise.
41271 * include/grub/dl.h: Likewise.
41272 * include/grub/i386/linux.h: Likewise.
41273 * include/grub/i386/pc/biosdisk.h: Likewise.
41274 * include/grub/efi/api.h: Likewise.
41275 * include/grub/efi/pe32.h: Likewise.
41276 * include/grub/util/misc.h: Likewise.
41277 * normal/execute.c: Likewise.
41278 * normal/arg.c: Likewise.
41279 * normal/completion.c: Likewise.
41280 * normal/lexer.c: Likewise.
41281 * normal/parser.y: Likewise.
41282 * normal/misc.c: Likewise.
41283 * commands/i386/pc/vbeinfo.c: Likewise.
41284 * commands/hexdump.c: Likewise.
41285 * commands/terminal.c: Likewise.
41286 * commands/ls.c: Likewise.
41287 * commands/help.c: Likewise.
41288 * partmap/pc.c: Likewise.
41289 * loader/efi/chainloader.c: Likewise.
41290 * loader/multiboot_loader.c: Likewise.
41291 * loader/i386/pc/multiboot2.c: Likewise.
41292 * term/efi/console.c: Likewise.
41293 * term/i386/pc/serial.c: Likewise.
41294 * util/lvm.c: Likewise.
41295 * util/console.c: Likewise.
41296 * util/i386/efi/grub-mkimage.c: Likewise.
41297 * util/raid.c: Likewise.
41299 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41301 * commands/videotest.c: Removed include to grub/machine/memory.h.
41303 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41304 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41305 (video_mod_SOURCES): Removed.
41306 (video_mod_CFLAGS): Likewise.
41307 (video_mod_LDFLAGS): Likewise.
41308 (gfxterm_mod_SOURCES): Likewise.
41309 (gfxterm_mod_CFLAGS): Likewise.
41310 (gfxterm_mod_LDFLAGS): Likewise.
41311 (videotest_mod_SOURCES): Likewise.
41312 (videotest_mod_CFLAGS): Likewise.
41313 (videotest_mod_LDFLAGS): Likewise.
41314 (bitmap_mod_SOURCES): Likewise.
41315 (bitmap_mod_CFLAGS): Likewise.
41316 (bitmap_mod_LDFLAGS): Likewise.
41317 (tga_mod_SOURCES): Likewise.
41318 (tga_mod_CFLAGS): Likewise.
41319 (tga_mod_LDFLAGS): Likewise.
41320 (jpeg_mod_SOURCES): Likewise.
41321 (jpeg_mod_CFLAGS): Likewise.
41322 (jpeg_mod_LDFLAGS): Likewise.
41323 (png_mod_SOURCES): Likewise.
41324 (png_mod_CFLAGS): Likewise.
41325 (png_mod_LDFLAGS): Likewise.
41327 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41328 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41329 (video_mod_SOURCES): Added.
41330 (video_mod_CFLAGS): Likewise.
41331 (video_mod_LDFLAGS): Likewise.
41332 (videotest_mod_SOURCES): Likewise.
41333 (videotest_mod_CFLAGS): Likewise.
41334 (videotest_mod_LDFLAGS): Likewise.
41335 (bitmap_mod_SOURCES): Likewise.
41336 (bitmap_mod_CFLAGS): Likewise.
41337 (bitmap_mod_LDFLAGS): Likewise.
41338 (tga_mod_SOURCES): Likewise.
41339 (tga_mod_CFLAGS): Likewise.
41340 (tga_mod_LDFLAGS): Likewise.
41341 (jpeg_mod_SOURCES): Likewise.
41342 (jpeg_mod_CFLAGS): Likewise.
41343 (jpeg_mod_LDFLAGS): Likewise.
41344 (png_mod_SOURCES): Likewise.
41345 (png_mod_CFLAGS): Likewise.
41346 (png_mod_LDFLAGS): Likewise.
41347 (gfxterm_mod_SOURCES): Likewise.
41348 (gfxterm_mod_CFLAGS): Likewise.
41349 (gfxterm_mod_LDFLAGS): Likewise.
41351 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41352 grub/machine/console.h.
41354 2009-01-04 Jerone Young <jerone@gmail.com>
41356 Make on screen instructions clearer
41358 Based on patch created by Jidanni <jidanni@jidanni.org>
41360 * normal/menu.c: print clearer instructions on the screen
41362 2009-01-02 Colin D Bennett <colin@gibibit.com>
41366 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41367 build system and fixed gfxterm.c to work with different sized fonts.
41369 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41371 * configure: Re-generated.
41373 * DISTLIST: Removed font/manager.c.
41375 Added font/font_cmd.c.
41377 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41380 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41382 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41384 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41386 * normal/menu.c: Likewise.
41388 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41389 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41391 * include/grub/font.h: Replaced with new file.
41393 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41394 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41395 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41396 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41397 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41398 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41399 fg_red, fg_green, fg_blue, fg_alpha.
41400 (grub_video_adapter): Removed blit_glyph.
41401 (grub_video_blit_glyph): Removed.
41403 * font/manager.c: Removed file.
41405 * font/font.c: New file.
41407 * font/font_cmd.c: Likewise.
41409 * video/video.c (grub_video_blit_glyph): Removed.
41411 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41412 (grub_video_vbe_map_rgba): Likewise.
41413 (grub_video_vbe_unmap_color_int): Likewise.
41414 (grub_video_vbe_blit_glyph): Removed.
41415 (grub_video_vbe_adapter): Removed blit_glyph.
41417 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41418 (get_pixel): Likewise.
41419 (set_pixel): Likewise.
41421 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41423 * term/gfxterm.c: Adapted to new font engine.
41425 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41427 * term/i386/pc/vga.c: Likewise.
41429 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41431 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41433 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41435 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41437 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41439 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41441 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41443 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41445 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41447 * util/grub.d/00_header.in: Changed to use new loadfont command.
41449 * util/grub-mkconfig_lib.in: Changed font extension.
41451 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41453 * util/getroot.c (grub_util_get_grub_dev): Add support for
41454 /dev/md/dNNpNN style partitionable mdraid devices.
41456 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41458 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41459 at a time limit of the PXE TFTP API correctly.
41460 (grub_pxefs_close): Likewise.
41462 2008-11-29 Robert Millan <rmh@aybabtu.com>
41464 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41465 grub_ata_device_initialize() calls.
41467 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41469 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41471 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41473 2008-11-28 Robert Millan <rmh@aybabtu.com>
41475 Fix build on powerpc-ieee1275. Based on patch created by
41476 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41477 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41478 `kern/ieee1275/mmap.c'.
41479 * include/grub/powerpc/ieee1275/memory.h: New file.
41481 Provide grub-install on coreboot.
41482 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41483 (grub_install_SOURCES): New variable.
41484 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41485 usable on coreboot.
41487 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41489 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41490 to `grub_term_input_t'.
41491 (grub_term_get_current_output): Change return type to
41492 `grub_term_output_t'.
41494 2008-11-22 Robert Millan <rmh@aybabtu.com>
41496 Fix breakage on coreboot due to declaration mismatch.
41497 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41498 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41499 grub_vga_text_cls().
41501 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41502 comments. Avoid copying one more byte than necessary (just in case).
41504 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41505 to 0x200000 (avoids trouble with some OFW implementations, and matches
41506 with the one in Yaboot).
41507 Reported by Manoel Abranches
41509 2008-11-20 Robert Millan <rmh@aybabtu.com>
41511 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41512 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41514 * util/grub-mkconfig_lib.in (grub_warn): New function.
41515 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41516 warnings, to obtain consistent formatting.
41517 * util/grub.d/00_header.in: Likewise.
41518 * util/update-grub_lib.in: Likewise.
41520 * loader/i386/linux.c (allocate_pages): Fix a warning.
41521 Move comment text to `#error' stanza.
41523 Harmonize ieee1275's grub_available_iterate() with the generic
41524 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41525 build problem on i386-ieee1275):
41526 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41527 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41528 parameter `type'. Update all users of this function.
41529 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41530 `kern/ieee1275/mmap.c'.
41531 * kern/ieee1275/init.c
41532 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41534 (grub_machine_mmap_iterate): ... this.
41535 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41536 return type to `grub_err_t'. Update all implementations of this
41537 function prototype.
41538 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41541 Add `lsmmap' command (lists firmware-provided memory map):
41542 * commands/lsmmap.c: New file.
41543 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41544 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41546 * conf/powerpc-ieee1275.rmk: Likewise.
41547 * conf/i386-coreboot.rmk: Likewise.
41548 * conf/i386-ieee1275.rmk: Likewise.
41550 2008-11-19 Robert Millan <rmh@aybabtu.com>
41552 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41553 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41554 constraints to initrd allocation (based on code from
41555 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41556 for Linux to find it.
41558 2008-11-14 Robert Millan <rmh@aybabtu.com>
41560 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41561 order to cope with duplicate slashes.
41563 2008-11-14 Robert Millan <rmh@aybabtu.com>
41565 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41566 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41567 don't want to mess with lower memory, because it is used in the Linux
41570 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41571 an appropriate place in lower memory, between 0x10000 and 0x90000,
41572 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41573 is in our heap (probably as a result of it being corrupted during
41574 decompression). Add #error instance with comment to explain why this
41575 loader isn't currently usable on PC/BIOS.
41577 2008-11-14 Robert Millan <rmh@aybabtu.com>
41579 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41580 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41582 2008-11-12 Robert Millan <rmh@aybabtu.com>
41584 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41586 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41587 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41589 * include/grub/i386/pc/memory.h: ... to here.
41591 2008-11-12 Robert Millan <rmh@aybabtu.com>
41593 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41596 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41597 (grub_console_cur_color, grub_console_real_putchar)
41598 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41599 (grub_console_setcolorstate, grub_console_setcolor)
41600 (grub_console_getcolor): Move from here ...
41601 * include/grub/i386/vga_common.h: ... to here (new file).
41603 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41604 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41605 `<grub/i386/io.h>'.
41606 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41607 `<grub/i386/vga_common.h>'.
41609 2008-11-12 Robert Millan <rmh@aybabtu.com>
41611 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41612 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41613 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41615 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41616 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41618 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41619 grub_console_init() with call to grub_vga_text_init().
41620 (grub_machine_fini): Replace call to
41621 grub_console_fini() with call to grub_vga_text_fini() and
41622 grub_at_keyboard_fini().
41624 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41625 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41626 (grub_console_setcolorstate, grub_console_setcolor)
41627 (grub_console_getcolor): New function prototypes.
41629 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41630 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41631 (grub_vga_text_setcursor): Static-ize.
41632 (grub_vga_text_term): New structure.
41633 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41635 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41636 (grub_console_cur_color, grub_console_standard_color)
41637 (grub_console_normal_color, grub_console_highlight_color)
41638 (map_char, grub_console_putchar, grub_console_getcharwidth)
41639 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41640 (grub_console_getcolor): Move from here ...
41641 * term/i386/vga_common.c: ... to here (same function names).
41643 2008-11-12 Robert Millan <rmh@aybabtu.com>
41645 Use newly-added Multiboot support in coreboot.
41647 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41648 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41650 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41651 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41652 (codestart): Store the MBI in `startup_multiboot_info' when we're
41653 being loaded using Multiboot.
41655 * kern/i386/coreboot/init.c (grub_machine_init): Move
41656 grub_at_keyboard_init() call to beginning of function (useful for
41657 debugging). Call grub_machine_mmap_init() before attempting to use
41658 grub_machine_mmap_iterate().
41659 (grub_lower_mem, grub_upper_mem): Move from here ...
41660 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41663 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41664 function prototype.
41666 2008-11-12 Robert Millan <rmh@aybabtu.com>
41668 Fix a regression introduced by the at_keyboard.mod split. Because
41669 some terminals are default on some platforms and non-default on
41670 others, the first terminal being registered determines which is
41671 going to be default.
41673 * kern/term.c (grub_term_register_input): If this is the first
41674 terminal being registered, set it as the current one.
41675 (grub_term_register_output): Likewise.
41677 * term/efi/console.c (grub_console_init): Do not call
41678 grub_term_set_current_output() or grub_term_set_current_input().
41679 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41680 * term/i386/pc/console.c (grub_console_init): Likewise.
41681 (grub_console_fini): Do not call grub_term_set_current_input()
41682 (but leave grub_term_set_current_output() to restore text mode).
41684 2008-11-10 Robert Millan <rmh@aybabtu.com>
41686 * util/grub.d/00_header.in: Add backward compatibility check for
41687 versions of terminal.mod that don't understand `terminal_input' or
41690 2008-11-09 Robert Millan <rmh@aybabtu.com>
41692 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41693 `terminal_input' / `terminal_output', not `terminal'.
41695 2008-11-08 Robert Millan <rmh@aybabtu.com>
41697 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41698 (DISTCLEANFILES): Add `build_env.mk'.
41700 2008-11-08 Robert Millan <rmh@aybabtu.com>
41702 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41703 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41704 members. Update all users.
41705 * util/console.c (grub_ncurses_term): Split in ...
41706 (grub_ncurses_term_input): ... this, and ...
41707 (grub_ncurses_term_output): ... this. Update all users.
41708 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41710 2008-11-08 Robert Millan <rmh@aybabtu.com>
41712 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41713 (PKGDATA): Add $(pkgdata_SRCDIR).
41714 (pkglib_BUILDDIR): New variable.
41715 (pkgdata_SRCDIR): New variable.
41716 (build_env.mk): New target.
41717 (include_DATA): New variable.
41718 (install-local): Install $(include_DATA) files in $(includedir).
41720 2008-11-07 Pavel Roskin <proski@gnu.org>
41722 * gendistlist.sh: Use C locale for sorting to ensure consistent
41723 output on all systems.
41725 * util/grub.d/00_header.in: Remove incorrect space before
41728 2008-11-07 Robert Millan <rmh@aybabtu.com>
41730 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41732 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41733 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41734 (based on find_multi_boot1_header).
41735 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41736 using find_multi_boot2_header(), and abort if neither Multiboot or
41737 Multiboot headers were found.
41739 2008-11-07 Robert Millan <rmh@aybabtu.com>
41741 Modularize at_keyboard.mod:
41743 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41744 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41745 (at_keyboard_mod_LDFLAGS): New variables.
41747 Actual terminal split:
41749 * include/grub/term.h (struct grub_term): Split in ...
41750 (struct grub_term_input): ... this, and ...
41751 (struct grub_term_output): ... this. Update all users.
41752 (grub_term_set_current): Split in ...
41753 (grub_term_set_current_input): ... this, and ...
41754 (grub_term_set_current_output): ... this.
41755 (grub_term_get_current): Split in ...
41756 (grub_term_get_current_input): ... this, and ...
41757 (grub_term_get_current_output): ... this.
41758 (grub_term_register): Split in ...
41759 (grub_term_register_input): ... this, and ...
41760 (grub_term_register_output): ... this.
41761 (grub_term_unregister): Split in ...
41762 (grub_term_unregister_input): ... this, and ...
41763 (grub_term_unregister_output): ... this.
41764 (grub_term_iterate): Split in ...
41765 (grub_term_iterate_input): ... this, and ...
41766 (grub_term_iterate_output): ... this.
41768 * kern/term.c (grub_term_list): Split in ...
41769 (grub_term_list_input): ... this, and ...
41770 (grub_term_list_output): ... this. Update all users.
41771 (grub_cur_term): Split in ...
41772 (grub_cur_term_input): ... this, and ...
41773 (grub_cur_term_output): ... this. Update all users.
41774 (grub_term_set_current): Split in ...
41775 (grub_term_set_current_input): ... this, and ...
41776 (grub_term_set_current_output): ... this.
41777 (grub_term_get_current): Split in ...
41778 (grub_term_get_current_input): ... this, and ...
41779 (grub_term_get_current_output): ... this.
41780 (grub_term_register): Split in ...
41781 (grub_term_register_input): ... this, and ...
41782 (grub_term_register_output): ... this.
41783 (grub_term_unregister): Split in ...
41784 (grub_term_unregister_input): ... this, and ...
41785 (grub_term_unregister_output): ... this.
41786 (grub_term_iterate): Split in ...
41787 (grub_term_iterate_input): ... this, and ...
41788 (grub_term_iterate_output): ... this.
41790 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41791 a check for input and one for output (and only attempt to get keys
41792 from user when input works).
41794 * util/grub-probe.c (grub_term_get_current): Split in ...
41795 (grub_term_get_current_input): ... this, and ...
41796 (grub_term_get_current_output): ... this.
41797 * util/grub-fstest.c: Likewise.
41798 * util/i386/pc/grub-setup.c: Likewise.
41799 * util/grub-editenv.c: Likewise.
41801 Portability adjustments:
41803 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41804 `term/i386/pc/at_keyboard.c'.
41805 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41806 grub_keyboard_controller_init() (now handled by terminal .init).
41807 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41808 grub_at_keyboard_init().
41809 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41810 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41811 at_keyboard.mod via input terminal interface).
41812 * include/grub/i386/coreboot/console.h: Convert into a stub for
41813 `<grub/i386/pc/console.h>'.
41815 Migrate full terminals to new API:
41817 * term/efi/console.c (grub_console_term): Split into ...
41818 (grub_console_term_input): ... this, and ...
41819 (grub_console_term_output): ... this. Update all users.
41820 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41821 (grub_ofconsole_init): Split into ...
41822 (grub_ofconsole_init_input): ... this, and ...
41823 (grub_ofconsole_init_output): ... this.
41824 (grub_ofconsole_term): Split into ...
41825 (grub_ofconsole_term_input): ... this, and ...
41826 (grub_ofconsole_term_output): ... this. Update all users.
41827 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41828 (grub_serial_term_input): ... this, and ...
41829 (grub_serial_term_output): ... this. Update all users.
41830 * term/i386/pc/console.c (grub_console_term): Split into ...
41831 (grub_console_term_input): ... this, and ...
41832 (grub_console_term_output): ... this. Update all users.
41833 (grub_console_term_input): Only enable it on PC/BIOS platform.
41834 (grub_console_init): Remove grub_keyboard_controller_init() call.
41836 Migrate input terminals to new API:
41838 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41839 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41840 i386-specific anyway).
41841 (grub_console_checkkey): Rename to ...
41842 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41844 (grub_keyboard_controller_orig): New variable.
41845 (grub_console_getkey): Rename to ...
41846 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41848 (grub_keyboard_controller_init): Static-ize. Save original
41849 controller value so that it can be restored ...
41850 (grub_keyboard_controller_fini): ... here (new function).
41851 (grub_at_keyboard_term): New structure.
41852 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41855 Migrate output terminals to new API:
41857 * term/i386/pc/vga.c (grub_vga_term): Change type to
41858 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41859 members. Update all users.
41860 * term/gfxterm.c (grub_video_term): Change type to
41861 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41862 members. Update all users.
41863 * include/grub/i386/pc/console.h (grub_console_checkkey)
41864 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41867 Migrate `terminal' command and userland tools to new API:
41869 * commands/terminal.c (grub_cmd_terminal): Split into ...
41870 (grub_cmd_terminal_input): ... this, and ...
41871 (grub_cmd_terminal_output): ... this.
41872 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41873 `terminal_input' and `terminal_output'.
41874 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41875 `terminal_input' / `terminal_output' API.
41876 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41877 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41878 provided ${GRUB_TERMINAL}, convert it).
41880 2008-11-04 Robert Millan <rmh@aybabtu.com>
41882 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41884 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41886 2008-11-03 Bean <bean123ch@gmail.com>
41888 * kern/elf.c (grub_elf32_load): Revert to previous code.
41889 (grub_elf64_load): Likewise.
41891 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41893 2008-11-01 Robert Millan <rmh@aybabtu.com>
41895 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41896 (TARGET_CPPFLAGS): Likewise.
41897 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41899 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41901 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41903 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41905 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41906 addition of objects until the code is not going to be able to fail.
41908 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41910 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41911 (add a missing NULL check, and correct them by moving the pointer
41912 operations after the actual check).
41914 2008-10-29 Robert Millan <rmh@aybabtu.com>
41916 * util/i386/pc/grub-install.in: Handle empty string as output from
41917 make_system_path_relative_to_its_root().
41919 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41921 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41922 circular metadata worst case scenario. If the metadata is circular
41923 then copy the wrap in place.
41924 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41925 project lib/format_text/layout.h
41926 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41928 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41930 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41932 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41934 * util/update-grub_lib.in: Mention filename in warning message.
41936 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41938 * NEWS: Update for rename of update-grub to grub-mkconfig.
41940 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41942 * util/update-grub_lib.in: Copy to ...
41943 * util/grub-mkconfig_lib.in: ... this. Update all users.
41944 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41945 * util/update-grub.in: Rename to ...
41946 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41947 option. Add `--output' option to allow users to specify the generated
41948 configuration file. Default to stdout.
41949 (update_grub_dir): Rename to ...
41950 (grub_mkconfig_dir): ... this.
41951 (grub_cfg): Default to an empty string.
41952 * conf/common.rmk (update-grub): Rename to ...
41953 (grub-mkconfig): ... this.
41954 (update-grub_lib): Copy to ...
41955 (grub-mkconfig_lib): ... this.
41956 (update-grub_SCRIPTS): Copy to ...
41957 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41958 (update-grub_DATA): Rename to ...
41959 (grub-mkconfig_DATA): ... this.
41961 2008-09-28 Robert Millan <rmh@aybabtu.com>
41963 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41964 to `modified'. Add the real `created' field.
41965 (grub_iso9660_uuid): Use `modified' rather than `created' for
41966 constructing the UUID.
41968 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41970 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41971 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41973 2008-09-28 Bean <bean123ch@gmail.com>
41975 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41976 Thanks to Christian Franke for finding this bug.
41978 2008-09-25 Robert Millan <rmh@aybabtu.com>
41980 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
41981 instances of grub_util_get_disk_name() (see previous commit).
41983 2008-09-25 Robert Millan <rmh@aybabtu.com>
41985 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
41986 `util/i386/get_disk_name.c'.
41987 * conf/i386-efi.rmk: Likewise.
41988 * conf/x86_64-efi.rmk: Likewise.
41989 * conf/i386-coreboot.rmk: Likewise.
41990 * conf/i386-ieee1275.rmk: Likewise.
41991 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
41992 `util/ieee1275/get_disk_name.c'.
41993 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
41994 * util/ieee1275/get_disk_name.c: Remove file.
41995 * util/i386/get_disk_name.c: Remove file.
41996 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
41997 "hd%d" for device.map entries, rather than using
41998 grub_util_get_disk_name().
42000 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42002 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42004 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42006 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42008 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42010 (GRUB_TERM_PPAGE): Changed to 0x4900.
42012 2008-09-24 Robert Millan <rmh@aybabtu.com>
42014 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42015 macros (they were i386-pc specific).
42016 * include/grub/sparc64/ieee1275/console.h: Likewise.
42017 * include/grub/efi/console.h: Likewise.
42019 2008-09-22 Bean <bean123ch@gmail.com>
42021 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42022 resident and in attribute list.
42024 * include/grub/ntfs.h (BMP_LEN): Removed.
42026 2008-09-22 Bean <bean123ch@gmail.com>
42028 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42029 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42031 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42032 error occurs, as grub_disk_open will call grub_disk_close, which will
42033 call p->close (scsi).
42035 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42037 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42038 (AC_PREREQ): Bumped to 2.59.
42039 (AC_TRY_COMPILE): Replace obsolete macro with ...
42040 (AC_COMPILE_IFELSE): ... this.
42041 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42042 (AC_LINK_IFELSE): ... this.
42044 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42046 * autogen.sh: Add a call to `gendistlist.sh'.
42048 2008-09-19 Christian Franke <franke@computer.org>
42050 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42051 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42052 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42053 Export __enable_execute_stack() to modules.
42054 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42057 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42059 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42062 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42064 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42065 #include <grub/util/hostdisk.h>.
42067 2008-09-08 Robert Millan <rmh@aybabtu.com>
42069 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42070 segments when their filesz is zero (grub_file_read() interprets
42071 zero-size as "read until EOF", which results in memory corruption).
42072 Use `lowest_segment' rather than 0 for calculating the current
42073 segment load address.
42075 2008-09-08 Robert Millan <rmh@aybabtu.com>
42077 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42078 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42079 clobbered useful information.
42081 2008-09-08 Robert Millan <rmh@aybabtu.com>
42083 * include/grub/util/biosdisk.h: Move to ...
42084 * include/grub/util/hostdisk.h: ... here. Update all users.
42085 * util/biosdisk.c: Move to ...
42086 * util/hostdisk.c: ... here. Update all users.
42088 2008-09-07 Robert Millan <rmh@aybabtu.com>
42090 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42092 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42093 and length can be stored directly in the `mbi->mmap_addr' and
42094 `mbi->mmap_length' struct fields.
42096 2008-09-07 Robert Millan <rmh@aybabtu.com>
42098 * conf/i386.rmk: New file. Provides declaration for building
42100 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42101 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42103 Include `conf/i386.mk'.
42104 * conf/i386-efi.rmk: Likewise.
42105 * conf/x86_64-efi.rmk: Likewise.
42106 * conf/i386-coreboot.rmk: Likewise.
42107 * conf/i386-ieee1275.rmk: Likewise.
42109 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42111 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42112 Adds optimization support for BGR based modes.
42114 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42115 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42116 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42117 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42118 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42119 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42120 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42121 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42122 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42123 (grub_video_i386_vbeblit_index_index): Likewise.
42124 (grub_video_i386_vbeblit_replace_directN): Added.
42125 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42126 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42127 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42128 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42129 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42130 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42131 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42132 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42133 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42134 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42135 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42136 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42137 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42139 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42140 (grub_video_i386_vbefill_R8G8B8): Likewise.
42141 (grub_video_i386_vbefill_index): Likewise.
42142 (grub_video_i386_vbefill_direct32): Added.
42143 (grub_video_i386_vbefill_direct24): Likewise.
42144 (grub_video_i386_vbefill_direct16): Likewise.
42145 (grub_video_i386_vbefill_direct8): Likewise.
42147 * include/grub/video.h (grub_video_blit_format): Removed
42148 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42149 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42150 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42151 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42152 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42154 * video/video.c (grub_video_get_blit_format): Updated to use new
42155 blit formats. Added handling for 16 bit color modes.
42157 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42159 (common_blitter): Updated to use new blitters.
42161 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42163 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42164 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42165 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42166 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42167 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42168 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42169 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42170 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42171 (grub_video_i386_vbeblit_index_index): Likewise.
42172 (grub_video_i386_vbeblit_replace_directN): Added.
42173 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42174 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42175 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42176 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42177 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42178 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42179 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42180 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42181 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42182 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42183 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42184 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42185 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42187 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42188 (grub_video_i386_vbefill_R8G8B8): Likewise.
42189 (grub_video_i386_vbefill_index): Likewise.
42190 (grub_video_i386_vbefill_direct32): Added.
42191 (grub_video_i386_vbefill_direct24): Likewise.
42192 (grub_video_i386_vbefill_direct16): Likewise.
42193 (grub_video_i386_vbefill_direct8): Likewise.
42195 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42198 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42201 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42204 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42207 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42209 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42212 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42214 * fs/iso9660.c (grub_iso9660_date): New structure.
42215 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42216 (grub_iso9660_uuid): New function.
42218 2008-09-05 Bean <bean123ch@gmail.com>
42220 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42222 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42223 insensitive bit for names in Win32 and Win32 & DOS namespace.
42225 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42227 * include/grub/types.h (LONG_MAX): Likewise.
42229 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42231 * util/getroot.c: Include <config.h>.
42232 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42233 add support for /dev/md/N devices and handle LVM double dash escaping.
42235 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42237 * config.guess: Update to latest version from config git.
42238 * config.sub: Likewise.
42240 2008-09-03 Robert Millan <rmh@aybabtu.com>
42242 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42243 `disk->total_sectors'.
42245 2008-09-01 Colin D Bennett <colin@gibibit.com>
42247 * include/grub/normal.h: Fixed incorrect comment for
42248 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42250 2008-09-01 Colin D Bennett <colin@gibibit.com>
42252 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42253 values with defines.
42255 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42256 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42257 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42258 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42259 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42260 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42261 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42262 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42263 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42264 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42265 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42266 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42267 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42268 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42269 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42270 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42271 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42272 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42273 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42275 2008-08-31 Robert Millan <rmh@aybabtu.com>
42277 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42279 (grub_multiboot): Fix a few warnings.
42281 2008-08-31 Robert Millan <rmh@aybabtu.com>
42283 * loader/i386/pc/multiboot.c: Update comment not to say that
42284 boot_device support is unimplemented.
42286 2008-08-31 Robert Millan <rmh@aybabtu.com>
42288 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42289 or memory map support are unimplemented.
42291 2008-08-31 Colin D Bennett <colin@gibibit.com>
42293 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42295 2008-08-31 Colin D Bennett <colin@gibibit.com>
42297 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42298 total video memory in 'vbeinfo' output; show color format details for
42301 2008-08-30 Pavel Roskin <proski@gnu.org>
42303 * util/genmoddep.c: Remove for real this time.
42304 * DISTLIST: Remove util/genmoddep.c.
42306 2008-08-30 Robert Millan <rmh@aybabtu.com>
42308 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42309 as required by Multiboot spec (it was already 4-byte aligned, but
42312 2008-08-29 Pavel Roskin <proski@gnu.org>
42314 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42315 * kern/powerpc/ieee1275/startup.S: ... this.
42316 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42317 * DISTLIST: Likewise.
42319 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42320 grub/cpu/kernel.h. Add start label for consistency with other
42321 platforms. Add grub_prefix immediately after start. Add jump
42322 to the code after grub_prefix.
42323 * include/grub/powerpc/kernel.h: Provide valid values for
42324 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42326 2008-08-29 Bean <bean123ch@gmail.com>
42328 * configure.ac: Change host_os to cygwin for mingw.
42329 (asprintf): New check for function.
42331 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42332 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42334 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42335 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42336 sync, sleep and grub_util_get_disk_size for mingw.
42338 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42339 to get size in mingw.
42340 (open_device): Use flag O_BINARY if it's defined.
42341 (find_root_device): Add dummy code for mingw.
42343 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42344 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42345 (get_scsi_disk_name): Return 0 for mingw.
42347 * util/hostfs.c: #include <grub/util/misc.h>.
42348 (grub_hostfs_open): Use "rb" flag to open file, use
42349 grub_util_get_disk_size to get disk size for mingw.
42351 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42352 (asprintf): New function if HAVE_ASPRINTF is not set.
42353 (sync): New function for mingw.
42355 (grub_util_get_disk_size): Likewise.
42357 2008-08-28 Pavel Roskin <proski@gnu.org>
42359 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42362 2008-08-28 Robert Millan <rmh@aybabtu.com>
42364 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42366 2008-08-28 Robert Millan <rmh@aybabtu.com>
42368 Change find_grub_drive() syntax so it doesn't prevent it from
42369 detecting NULL names as errors.
42371 * util/biosdisk.c (find_grub_drive): Move free slot search code
42373 (find_free_slot): ... to here.
42374 (read_device_map): Use find_free_slot() to search for free slots.
42376 2008-08-27 Marco Gerards <marco@gnu.org>
42378 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42379 (scsi_mod_SOURCES): New variable.
42380 (scsi_mod_CFLAGS): Likewise
42381 (scsi_mod_LDFLAGS): Likewise.
42383 * disk/scsi.c: New file.
42385 * include/grub/scsi.h: Likewise.
42387 * include/grub/scsicmd.h: Likewise.
42389 * disk/ata.c: Include <grub/scsi.h>.
42390 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42392 (grub_ata_iterate): Skip ATAPI devices.
42393 (grub_ata_open): Only handle ATAPI devices.
42394 (struct grub_atapi_read): Removed.
42395 (grub_atapi_readsector): Likewise.
42396 (grub_ata_read): No longer handle ATAPI devices.
42397 (grub_ata_write): Likewise.
42398 (grub_atapi_iterate): New function.
42399 (grub_atapi_read): Likewise.
42400 (grub_atapi_write): Likewise.
42401 (grub_atapi_open): Likewise.
42402 (grub_atapi_close): Likewise.
42403 (grub_atapi_dev): New variable.
42404 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42405 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42407 * include/grub/disk.h (enum grub_disk_dev_id): Add
42408 `GRUB_DISK_DEVICE_SCSI_ID'.
42410 2008-08-26 Robert Millan <rmh@aybabtu.com>
42412 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42413 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42416 2008-08-23 Bean <bean123ch@gmail.com>
42418 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42419 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42420 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42421 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42423 (raid5rec_mod_SOURCES): New macro.
42424 (raid5rec_mod_CFLAGS): Likewise.
42425 (raid5rec_mod_LDFLAGS): Likewise.
42426 (raid6rec_mod_SOURCES): Likewise.
42427 (raid6rec_mod_CFLAGS): Likewise.
42428 (raid6rec_mod_LDFLAGS): Likewise.
42429 (mdraid_mod_SOURCES): Likewise.
42430 (mdraid_mod_CFLAGS): Likewise.
42431 (mdraid_mod_LDFLAGS): Likewise.
42432 (dm_nv_mod_SOURCES): Likewise.
42433 (dm_nv_mod_CFLAGS): Likewise.
42434 (dm_nv_mod_LDFLAGS): Likewise.
42436 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42437 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42438 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42440 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42441 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42443 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42445 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42447 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42449 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42451 * disk/raid5_recover.c: New file.
42453 * disk/raid6_recover.c: Likewise.
42455 * disk/mdraid_linux.c: Likewise.
42457 * disk/dmraid_nvidia.c: Likewise.
42459 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42462 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42463 calculate the size of raid device.
42464 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42465 different layout of raid5.
42466 (grub_raid_scan_device): Remove code specific to mdraid.
42467 (grub_raid_list): New variable.
42468 (free_array): New function.
42469 (grub_raid_register): Likewise.
42470 (grub_raid_unregister): Likewise.
42471 (grub_raid_rescan): Likewise.
42472 (GRUB_MOD_INIT): Don't iterate device here.
42473 (GRUB_MOD_FINI): Use free_array to release resource.
42475 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42476 (grub_raid5_recover_func_t): New function variable type.
42477 (grub_raid6_recover_func_t): Likewise.
42478 (grub_raid5_recover_func): New variable.
42479 (grub_raid6_recover_func): Likewise.
42480 (grub_raid_register): New function.
42481 (grub_raid_unregister): Likewise.
42482 (grub_raid_rescan): Likewise.
42483 (grub_raid_block_xor): Likewise.
42485 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42486 (CMD_CRC): New macro.
42488 (read_file): Handle device as well as file.
42489 (cmd_crc): New function.
42490 (fstest): Handle multiple disks.
42491 (options): Remove part, raw and long, add root and diskcount.
42492 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42493 (main): Find the first non option entry and ignore subsequent options,
42494 add handling for the new options, support multiple disks.
42496 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42498 2008-08-23 Bean <bean123ch@gmail.com>
42500 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42502 * genfslist.sh: Ignore kernel.mod.
42504 * genpartmaplist.sh: Likewise.
42506 2008-08-23 Robert Millan <rmh@aybabtu.com>
42508 * util/getroot.c (find_root_device): Skip anything that starts with
42509 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42511 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42513 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42514 * util/grub.d/00_header.in: Allow the administrator to change default
42515 gfxmode via ${GRUB_GFXMODE}.
42517 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42519 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42521 2008-08-21 Robert Millan <rmh@aybabtu.com>
42523 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42525 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42526 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42528 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42530 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42531 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42533 2008-08-19 Robert Millan <rmh@aybabtu.com>
42535 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42536 (struct grub_virtual_screen): Remove `cursor_color'.
42537 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42539 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42541 2008-08-18 Robert Millan <rmh@aybabtu.com>
42543 Unify (identical) linux_normal.c files.
42544 * loader/i386/efi/linux_normal.c: Move from here ...
42545 * loader/linux_normal.c: ... to here. Update all users.
42546 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42547 * loader/i386/ieee1275/linux_normal.c: Likewise.
42549 2008-08-18 Robert Millan <rmh@aybabtu.com>
42551 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42552 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42553 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42554 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42555 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42557 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42558 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42559 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42560 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42561 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42562 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42563 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42564 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42565 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42566 portably using grub_getxy().
42567 Replace `-EFI' with `-bzImage' in boot message.
42569 2008-08-17 Robert Millan <rmh@aybabtu.com>
42571 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42573 2008-08-17 Robert Millan <rmh@aybabtu.com>
42575 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42577 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42578 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42579 (grub_machine_mmap_iterate): New function declaration.
42580 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42582 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42585 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42586 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42587 Move e820 parsing from here ...
42588 * kern/i386/pc/mmap.c: New file.
42589 (grub_machine_mmap_iterate): ... to here.
42591 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42592 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42593 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42594 (grub_available_iterate): Redeclare to return `void', and redeclare
42595 its hook to use grub_uint64_t as addr and size parameters, and rename
42597 (grub_machine_mmap_iterate): ... this. Update all users.
42599 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42600 to make it more readable. Rename to ...
42601 (grub_machine_mmap_iterate): ... this.
42603 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42604 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42605 (grub_multiboot): Allocate an extra region after the payload, and fill
42606 it with a Multiboot memory map. Adjust a.out loader to calculate size
42607 with the extra space.
42608 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42609 with the extra space.
42611 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42613 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42615 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42617 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42618 mdate-sh to the list `find' searches for.
42619 * DISTLIST: Regenerated.
42621 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42623 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42624 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42625 genmoddep.awk, gensymlist.sh.in.
42626 (DISTDIRS): Add bus, docs, hook, lib.
42627 * DISTLIST: Regenerated.
42628 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42630 2008-08-16 Robert Millan <rmh@aybabtu.com>
42632 * disk/raid.c (grub_raid_init): Handle/report errors set by
42633 grub_device_iterate().
42634 * disk/lvm.c (grub_lvm_init): Likewise.
42636 2008-08-15 Bean <bean123ch@gmail.com>
42638 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42640 (datetime_mod_SOURCES): New macro.
42641 (datetime_mod_CFLAGS): Likewise.
42642 (datetime_mod_LDFLAGS): Likewise.
42643 (date_mod_SOURCES): Likewise.
42644 (date_mod_CFLAGS): Likewise.
42645 (date_mod_LDFLAGS): Likewise.
42646 (datehook_mod_SOURCES): Likewise.
42647 (datehook_mod_CFLAGS): Likewise.
42648 (datehook_mod_LDFLAGS): Likewise.
42650 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42652 (datetime_mod_SOURCES): New macro.
42653 (datetime_mod_CFLAGS): Likewise.
42654 (datetime_mod_LDFLAGS): Likewise.
42655 (date_mod_SOURCES): Likewise.
42656 (date_mod_CFLAGS): Likewise.
42657 (date_mod_LDFLAGS): Likewise.
42658 (datehook_mod_SOURCES): Likewise.
42659 (datehook_mod_CFLAGS): Likewise.
42660 (datehook_mod_LDFLAGS): Likewise.
42662 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42664 (datetime_mod_SOURCES): New macro.
42665 (datetime_mod_CFLAGS): Likewise.
42666 (datetime_mod_LDFLAGS): Likewise.
42667 (date_mod_SOURCES): Likewise.
42668 (date_mod_CFLAGS): Likewise.
42669 (date_mod_LDFLAGS): Likewise.
42670 (datehook_mod_SOURCES): Likewise.
42671 (datehook_mod_CFLAGS): Likewise.
42672 (datehook_mod_LDFLAGS): Likewise.
42674 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42676 (datetime_mod_SOURCES): New macro.
42677 (datetime_mod_CFLAGS): Likewise.
42678 (datetime_mod_LDFLAGS): Likewise.
42679 (date_mod_SOURCES): Likewise.
42680 (date_mod_CFLAGS): Likewise.
42681 (date_mod_LDFLAGS): Likewise.
42682 (datehook_mod_SOURCES): Likewise.
42683 (datehook_mod_CFLAGS): Likewise.
42684 (datehook_mod_LDFLAGS): Likewise.
42686 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42688 (datetime_mod_SOURCES): New macro.
42689 (datetime_mod_CFLAGS): Likewise.
42690 (datetime_mod_LDFLAGS): Likewise.
42691 (date_mod_SOURCES): Likewise.
42692 (date_mod_CFLAGS): Likewise.
42693 (date_mod_LDFLAGS): Likewise.
42694 (datehook_mod_SOURCES): Likewise.
42695 (datehook_mod_CFLAGS): Likewise.
42696 (datehook_mod_LDFLAGS): Likewise.
42698 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42700 * commands/date.c: New file.
42702 * hook/datehook.c: Likewise.
42704 * include/grub/lib/datetime.h: Likewise.
42706 * include/grub/i386/cmos.h: Likewise.
42708 * lib/datetime.c: Likewise.
42710 * lib/i386/datetime.c: Likewise.
42712 * lib/efi/datetime.c: Likewise.
42714 2008-08-14 Robert Millan <rmh@aybabtu.com>
42716 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42717 (grub_mkelfimage_SOURCES): New variable.
42718 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42720 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42721 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42722 * conf/powerpc-ieee1275.rmk: Likewise.
42723 * conf/i386-ieee1275.rmk: Likewise.
42725 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42726 * kern/i386/coreboot/init.c: Likewise.
42728 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42729 with `<grub/cpu/kernel.h>'.
42730 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42732 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42733 * kern/i386/coreboot/startup.S: Likewise.
42735 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42736 (GRUB_MOD_GAP): Remove.
42737 * include/grub/powerpc/kernel.h: New file.
42738 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42739 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42740 * include/grub/i386/kernel.h: New file.
42741 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42742 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42743 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42745 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42747 Use --directory when invoking grub_mkimage.
42749 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42750 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42751 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42752 and GRUB_KERNEL_CPU_PREFIX.
42754 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42756 * include/grub/err.h (grub_err_printf): New function prototype.
42757 * util/misc.c (grub_err_printf): New function.
42758 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42760 * kern/err.c (grub_print_error): Use grub_err_printf.
42762 2008-08-13 Robert Millan <rmh@aybabtu.com>
42764 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42766 2008-08-13 Robert Millan <rmh@aybabtu.com>
42768 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42771 2008-08-12 Robert Millan <rmh@aybabtu.com>
42773 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42774 of the relocation code from here ...
42775 (grub_multiboot): ... to here.
42776 (forward_relocator, backward_relocator): Move from here ...
42777 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42778 (grub_multiboot_backward_relocator): ... to here.
42779 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42780 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42781 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42782 (grub_multiboot_forward_relocator_end)
42783 (grub_multiboot_backward_relocator)
42784 (grub_multiboot_backward_relocator_end): New variables.
42786 2008-08-12 Bean <bean123ch@gmail.com>
42788 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42790 2008-08-11 Robert Millan <rmh@aybabtu.com>
42792 * kern/i386/linuxbios/startup.S: Move from here ...
42793 * kern/i386/coreboot/startup.S: ... to here.
42795 * kern/i386/linuxbios/init.c: Move from here ...
42796 * kern/i386/coreboot/init.c: ... to here.
42798 * kern/i386/linuxbios/table.c: Move from here ...
42799 * kern/i386/coreboot/mmap.c: ... to here.
42801 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42803 2008-08-11 Robert Millan <rmh@aybabtu.com>
42805 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42806 errors. Leave it to the upper layer to handle them.
42808 2008-08-09 Christian Franke <franke@computer.org>
42810 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42811 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42812 Install `grub.d/10_windows' only on Cygwin.
42813 * configure.ac: Add subst of `target_os'.
42814 Check `target_os' also before setting TARGET_OBJ2ELF.
42815 Add `--enable-grub-pe2elf'.
42817 2008-08-08 Robert Millan <rmh@aybabtu.com>
42819 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42820 (grub_last_time): Change type to grub_uint64_t.
42821 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42822 (grub_disk_close): Likewise.
42824 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42825 (run_menu): Migrate code from to using grub_get_time_ms().
42827 * util/misc.c (grub_get_time_ms): New function.
42829 2008-08-08 Marco Gerards <marco@gnu.org>
42831 * disk/ata.c (grub_ata_regget): Change return type to
42833 (grub_ata_regget2): Likewise.
42834 (grub_ata_wait_status): New function.
42835 (grub_ata_wait_busy): Removed function, updated all users to use
42836 `grub_ata_wait_status'.
42837 (grub_ata_wait_drq): Likewise.
42838 (grub_ata_cmd): New function.
42839 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42841 (grub_ata_pio_write): Add error handling.
42842 (grub_atapi_identify): Likewise.
42843 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42845 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42846 handling. Actually use the detected registers. Reorder the
42847 detection logic such that it is easier to read.
42848 (grub_ata_pciinit): Do not assign the same ID to each controller.
42849 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42851 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42853 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42855 2008-08-08 Marco Gerards <marco@gnu.org>
42859 2008-08-07 Bean <bean123ch@gmail.com>
42861 * include/grub/x86_64/pci.h: New file.
42863 2008-08-07 Christian Franke <franke@computer.org>
42865 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42866 (TIMER2_GATE): Likewise.
42867 (grub_pit_wait): Add enable/disable of the timer2 gate
42868 bit of port 0x61. This fixes a possible infinite loop.
42870 2008-08-07 Bean <bean123ch@gmail.com>
42872 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42873 kern/i386/tsc.c and kern/i386/pit.c.
42875 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42878 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42881 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42883 2008-08-07 Bean <bean123ch@gmail.com>
42885 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42887 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42889 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42890 multiple inclusion. Add #include <grub/types.h>.
42892 2008-08-06 Christian Franke <franke@computer.org>
42894 * conf/common.rmk: Build and install `10_windows'.
42895 * util/grub.d/10_windows.in: New script.
42897 2008-08-06 Pavel Roskin <proski@gnu.org>
42899 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42901 2008-08-06 Robert Millan <rmh@aybabtu.com>
42903 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42904 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42906 2008-08-06 Bean <bean123ch@gmail.com>
42908 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42909 (grub_pxefs_fs_int): Remove dummy definition.
42910 (grub_pxefs_open): Use data->block_size to store the current block
42912 (grub_pxefs_read): Use block size stored in data->block_size. As the
42913 value of grub_pxe_blksize can be changed after the file is opened.
42915 2008-08-06 Bean <bean123ch@gmail.com>
42917 * fs/i386/pc/pxe.c (curr_file): new variable.
42918 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42919 require the dummy internal file system anymore.
42920 (grub_pxefs_read): Removed.
42921 (grub_pxefs_close): Likewise.
42922 (grub_pxefs_fs_int): Likewise.
42923 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42924 connection when we switch file.
42925 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42927 2008-08-06 Robert Millan <rmh@aybabtu.com>
42929 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42931 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42932 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42934 * kern/i386/halt.c: New file.
42935 * kern/i386/reboot.c: Likewise.
42936 * include/grub/i386/reboot.h: Likewise.
42937 * include/grub/i386/halt.h: Likewise.
42939 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42940 Include `<grub/cpu/halt.h>'.
42941 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42942 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42944 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42945 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42946 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42947 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42948 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42949 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42951 * include/grub/i386/at_keyboard.h: ... to here.
42953 2008-08-05 Robert Millan <rmh@aybabtu.com>
42955 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42956 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42957 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42958 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42959 `kern/generic/millisleep.c'.
42961 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42962 instead of grub_get_rtc().
42963 (grub_tsc_init): Initialize `tsc_boot_time'.
42965 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42966 (grub_machine_init): Use grub_tsc_init() rather than
42967 installing an RTC-based handler via grub_install_get_time_ms().
42969 * kern/i386/pit.c: New file.
42970 * include/grub/i386/pit.h: Likewise.
42972 2008-08-05 Bean <bean123ch@gmail.com>
42974 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42976 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42977 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
42978 (pxe_mod_SOURCES): New macro.
42979 (pxe_mod_CFLAGS): Likewise.
42980 (pxe_mod_LDFLAGS): Likewise.
42981 (pxecmd_mod_SOURCES): Likewise.
42982 (pxecmd_mod_CFLAGS): Likewise.
42983 (pxecmd_mod_LDFLAGS): Likewise.
42985 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
42986 (grub_pxe_call): Likewise.
42988 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
42990 * commands/i386/pc/pxecmd.c: New file.
42992 * fs/i386/pc/pxe.c: Likewise.
42994 * include/grub/i386/pc/pxe.h: Likewise.
42996 2008-08-05 Bean <bean123ch@gmail.com>
42998 * util/console.c (grub_console_cur_color): New variable.
42999 (grub_console_standard_color): Likewise.
43000 (grub_console_normal_color): Likewise.
43001 (grub_console_highlight_color): Likewise.
43002 (color_map): Likewise.
43003 (use_color): Likewise.
43004 (NUM_COLORS): New macro.
43005 (grub_ncurses_setcolorstate): Handle color properly.
43006 (grub_ncurses_setcolor): Don't change color here, just remember the
43007 settings, color will be set in grub_ncurses_setcolorstate.
43008 (grub_ncurses_getcolor): New function.
43009 (grub_ncurses_init): Initialize color pairs.
43010 (grub_ncurses_term): New member grub_ncurses_getcolor.
43012 2008-08-05 Colin D Bennett <colin@gibibit.com>
43014 High resolution timer support. Implemented for x86 CPUs using TSC.
43015 Extracted generic grub_millisleep() so it's linked in only as needed.
43016 This requires a Pentium compatible CPU; if the RDTSC instruction is
43017 not supported, then it falls back on the generic grub_get_time_ms()
43018 implementation that uses the machine's RTC.
43020 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43021 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43022 `kern/generic/millisleep.c'.
43024 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43025 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43027 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43028 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43030 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43032 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43033 `kern/generic/millisleep.c'.
43035 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43037 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43039 * kern/generic/rtc_get_time_ms.c: New file.
43041 * kern/generic/millisleep.c: New file.
43043 * kern/misc.c: Don't include
43044 <kern/time.h> anymore.
43045 (grub_millisleep_generic): Removed.
43047 * commands/sleep.c (grub_interruptible_millisleep): Uses
43048 grub_get_time_ms() instead of grub_get_rtc().
43050 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43052 (grub_cpu_is_cpuid_supported): New inline function.
43053 (grub_cpu_is_tsc_supported): New inline function.
43054 (grub_tsc_init): New function prototype.
43055 (grub_tsc_get_time_ms): New function prototype.
43057 * kern/i386/tsc.c (grub_get_time_ms): New file.
43059 * include/grub/time.h: Include <grub/types.h.
43060 (grub_millisleep_generic): Removed.
43061 (grub_get_time_ms): New prototype.
43062 (grub_install_get_time_ms): New prototype.
43063 (grub_rtc_get_time_ms): New prototype.
43065 * kern/time.c (grub_get_time_ms): New function.
43066 (grub_install_get_time_ms): New function.
43068 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43069 <grub/time.h> anymore.
43070 (grub_millisleep): Removed.
43071 (grub_machine_init): Call grub_tsc_init.
43073 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43074 get_time_ms() implementation.
43076 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43077 (ieee1275_get_time_ms): New function.
43078 (grub_machine_init): Install get_time_ms() implementation.
43080 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43081 (grub_machine_init): Call grub_tsc_init().
43082 (grub_millisleep): Removed.
43084 * kern/ieee1275/init.c (grub_millisleep): Removed.
43085 (grub_machine_init): Install ieee1275_get_time_ms()
43087 (ieee1275_get_time_ms): New function.
43088 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43091 2008-08-05 Marco Gerards <marco@gnu.org>
43093 * disk/ata.c: Include <grub/pci.h>.
43094 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43095 (grub_ata_initialize): Rewritten.
43096 (grub_ata_device_initialize): New function.
43098 2008-08-04 Pavel Roskin <proski@gnu.org>
43100 * kern/main.c: Include grub/mm.h.
43102 2008-08-04 Robert Millan <rmh@aybabtu.com>
43104 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43105 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43106 corruption problem).
43108 2008-08-04 Robert Millan <rmh@aybabtu.com>
43110 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43111 warnings introduced in my last commit.
43113 2008-08-03 Robert Millan <rmh@aybabtu.com>
43115 Make PCI available on all i386 architectures.
43117 * include/grub/i386/pc/pci.h: Move from here ...
43118 * include/grub/i386/pci.h: ... to here.
43120 * include/grub/i386/pc/pci.h: Remove.
43121 * include/grub/i386/efi/pci.h: Remove.
43122 * include/grub/x86_64/efi/pci.h: Remove.
43124 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43125 `<grub/cpu/pci.h>'.
43127 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43128 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43129 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43131 * conf/i386-ieee1275.rmk: Likewise.
43133 2008-08-03 Robert Millan <rmh@aybabtu.com>
43135 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43136 (grub_console_setcursor): Make it possible to set cursor off.
43138 2008-08-03 Robert Millan <rmh@aybabtu.com>
43140 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43141 of modules instead of assuming which platform provides what.
43142 * util/update-grub.in: Likewise.
43144 2008-08-03 Robert Millan <rmh@aybabtu.com>
43146 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43147 instead of `grub_install_dos_part' to determine whether a drive needs
43148 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43149 because it can be overridden when loading GRUB via Multiboot).
43151 2008-08-02 Robert Millan <rmh@aybabtu.com>
43153 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43155 2008-08-02 Robert Millan <rmh@aybabtu.com>
43157 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43158 of informational grub_dprintf() calls.
43160 2008-08-02 Robert Millan <rmh@aybabtu.com>
43162 * disk/memdisk.c (memdisk_size): Don't initialize.
43163 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43165 * include/grub/i386/pc/kernel.h
43166 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43167 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43168 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43169 (grub_arch_memdisk_size): Remove.
43171 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43172 field (was only used to transfer a constant). Add `type' field to
43173 support multiple module types.
43174 (grub_module_iterate): New function.
43176 * kern/device.c (grub_device_open): Do not hide error messages
43177 when grub_disk_open() fails. Use grub_print_error() instead.
43179 * kern/i386/pc/init.c (grub_arch_modules_addr)
43180 (grub_arch_memdisk_size): Remove functions.
43181 (grub_arch_modules_addr): Return the module address in high memory
43182 (now that it isn't copied anymore).
43184 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43185 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43186 decompression routine (grub_total_module_size already includes that
43187 now). Don't copy modules back to low memory.
43189 * kern/main.c: Include `<grub/mm.h>'.
43190 (grub_load_modules): Split out (and use) ...
43191 (grub_module_iterate): ... this function, which iterates through
43192 module objects and runs a hook.
43193 Comment out grub_mm_init_region() call, as it would cause non-ELF
43194 modules to be overwritten.
43196 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43197 the memdisk image in its own region, make it part of the module list.
43198 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43199 (main): Parse --memdisk|-m option, and pass user-provided path as
43200 parameter to generate_image().
43201 (add_segments): Pass `memdisk_path' down to load_modules().
43202 (load_modules): Embed memdisk image in module section when requested.
43203 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43204 `header.type' instead of `header.offset'.
43206 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43207 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43208 (memdisk_mod_LDFLAGS): New variables.
43209 * conf/i386-coreboot.rmk: Likewise.
43210 * conf/i386-ieee1275.rmk: Likewise.
43212 2008-08-02 Robert Millan <rmh@aybabtu.com>
43214 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43215 (backward_relocator): New variables. Used to allocate and relocate
43216 the payload, respectively.
43217 (grub_multiboot_load_elf32): Load into heap instead of requested
43218 address, install the appropriate relocator code in each bound of
43219 the payload, and set the entry point such that
43220 grub_multiboot_real_boot() will jump to one of them.
43222 * kern/i386/loader.S (grub_multiboot_payload_size)
43223 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43224 (grub_multiboot_payload_entry_offset): New variables.
43225 (grub_multiboot_real_boot): Set cpu context to what the relocator
43226 expects, and jump to the relocator instead of the payload.
43228 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43229 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43230 (grub_multiboot_payload_entry_offset): Export.
43232 2008-08-01 Bean <bean123ch@gmail.com>
43234 * normal/menu_entry.c (editor_getline): Don't return the original
43235 string as result, as it will be released by lexer once it has done
43238 2008-08-01 Robert Millan <rmh@aybabtu.com>
43240 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43241 within menuentries, not before them.
43242 util/grub.d/10_hurd.in: Likewise.
43244 2008-08-01 Bean <bean123ch@gmail.com>
43246 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43247 (bufio_mod_SOURCES): New macro.
43248 (bufio_mod_CFLAGS): Likewise.
43249 (bufio_mod_LDFLAGS): Likewise.
43251 * include/grub/bufio.h: New file.
43253 * io/bufio.c: Likewise.
43255 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43256 (grub_video_reader_png): Use grub_buffile_open to open file.
43258 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43259 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43261 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43262 (grub_video_reader_tga): Use grub_buffile_open to open file.
43264 * font/manager.c: Include <grub/bufio.h>.
43265 (add_font): Use grub_buffile_open to open file.
43267 2008-07-31 Robert Millan <rmh@aybabtu.com>
43269 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43270 ELF segments, use a macro for arbitrarily accessing any of them instead
43271 of preparing a pointer that allows access to one at a time.
43272 (grub_multiboot_load_elf64): Likewise.
43274 2008-07-31 Bean <bean123ch@gmail.com>
43276 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43277 GRUB_KERNEL_MACHINE_DATA_END.
43279 2008-07-30 Robert Millan <rmh@aybabtu.com>
43281 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43282 Increase from 0x50 to 0x60.
43283 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43284 use UUIDs to identify the root drive for them. If that's not
43286 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43287 check, for cross-disk installs.
43289 2008-07-30 Robert Millan <rmh@aybabtu.com>
43291 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43292 is non-empty, use it to set the `prefix' environment variable instead
43293 of the usual approach.
43294 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43295 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43296 environment variable instead of dummy make_install_device().
43298 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43299 (start): Insert a data section, with `grub_prefix' variable.
43300 * kern/i386/linuxbios/startup.S: Likewise.
43302 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43303 New variable reference.
43304 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43305 New macro. Defines offset of `grub_prefix' within startup.S (relative
43307 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43308 section within startup.S (relative to `start').
43309 * include/grub/i386/coreboot/kernel.h: Likewise.
43311 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43312 Overwrite grub_prefix with its contents, at the beginning of the
43314 (main): Understand -p|--prefix.
43316 2008-07-30 Robert Millan <rmh@aybabtu.com>
43318 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43320 2008-07-30 Robert Millan <rmh@aybabtu.com>
43322 * term/i386/pc/vga_text.c (grub_console_cls): Use
43323 grub_console_gotoxy() to go back to beginning of the screen.
43324 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43326 2008-07-29 Christian Franke <franke@computer.org>
43328 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43329 Add conversion of emulated mount points on Cygwin.
43331 2008-07-29 Christian Franke <franke@computer.org>
43333 * util/update-grub.in: Add a check for admin
43335 Remove old `grub.cfg.new' before creation.
43336 Add `-f' to `mv' to handle the different filesystem
43337 semantics of Windows.
43339 2008-07-29 Bean <bean123ch@gmail.com>
43341 * normal/main.c (get_line): Fix buffer overflow bug.
43343 2008-07-28 Robert Millan <rmh@aybabtu.com>
43345 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43346 (struct grub_apple_header): New struct. Describes the layout of
43347 the partmap header.
43348 (apple_partition_map_iterate): Check the header magic as well as the
43349 partition magic (which was already being checked).
43351 2008-07-28 Pavel Roskin <proski@gnu.org>
43353 * genmk.rb: Add a warning to the beginning of the output that
43354 it's a generated file and should not be edited.
43356 2008-07-28 Robert Millan <rmh@aybabtu.com>
43358 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43359 with the same number are found, just use issue a warning with
43360 grub_dprintf(), as this error has been reported to be non-fatal.
43362 2008-07-27 Robert Millan <rmh@aybabtu.com>
43364 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43367 2008-07-27 Bean <bean123ch@gmail.com>
43369 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43370 (grub_fat_find_dir): Ignore case when comparing filename.
43372 2008-07-27 Bean <bean123ch@gmail.com>
43374 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43375 smallino, as it's more descriptive, and i8count can be confused with
43376 the other field count.
43377 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43380 2008-07-27 Bean <bean123ch@gmail.com>
43382 * commands/crc.c: New file.
43384 * lib/crc.c: Likewise.
43386 * include/grub/lib/crc.h: Likewise.
43388 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43390 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43391 (hexdump): Move this function to ...
43393 * lib/hexdump.c: ... here.
43395 * include/grub/hexdump.h: Renamed to ...
43397 * include/grub/lib/hexdump.h: ... this.
43399 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43401 * util/grub-editenv.c: Likewise.
43403 * include/envblk.h: Renamed to ...
43405 * include/lib/envblk.h: ... this.
43407 * util/envblk.c: Renamed to ...
43409 * lib/envblk.c: ... this.
43411 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43413 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43414 (pkglib_MODULES): Add crc.mod.
43415 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43416 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43417 (crc_mod_SOURCES): New macro.
43418 (crc_mod_CFLAGS): Likewise.
43419 (crc_mod_LDFLAGS): Likewise.
43421 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43423 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43425 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43429 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43431 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43433 * commands/help.c: Include <grub/term.h>.
43434 (TERM_WIDTH): Removed. Updated all users.
43436 2008-07-27 Pavel Roskin <proski@gnu.org>
43438 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43439 spurious warnings about a comment within a comment.
43441 2008-07-25 Robert Millan <rmh@aybabtu.com>
43443 * util/getroot.c (find_root_device): Skip devices that match
43444 /dev/dm-[0-9]. This lets the real device be found for any type of
43445 abstraction (LVM, EVMS, RAID..).
43446 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43447 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43448 device is found first, find_root_device() will now skip it.
43450 2008-07-24 Pavel Roskin <proski@gnu.org>
43452 * include/grub/types.h: Use __builtin_bswap32() and
43453 __builtin_bswap64() with gcc 4.3 and newer.
43455 2008-07-24 Christian Franke <franke@computer.org>
43457 * util/i386/pc/grub-install.in: If `--debug' is specified,
43458 pass `--verbose' to grub-setup.
43459 Abort script if make_system_path_relative_to_its_root() fails.
43461 2008-07-24 Bean <bean123ch@gmail.com>
43463 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43464 variable `target_platform' should be `platform'.
43466 2008-07-24 Bean <bean123ch@gmail.com>
43468 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43469 (grub_png_init_fixed_block): New function.
43470 (grub_png_decode_image_data): Handle fixed huffman code compression.
43472 2008-07-24 Bean <bean123ch@gmail.com>
43474 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43475 (grub_pe2elf_SOURCES): New macro.
43476 (CLEANFILES): Add grub-pe2elf.
43478 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43479 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43480 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43481 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43482 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43483 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43484 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43485 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43486 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43487 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43488 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43489 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43490 (GRUB_PE32_DT_FUNCTION): Likewise.
43491 (GRUB_PE32_REL_I386_DIR32): Likewise.
43492 (GRUB_PE32_REL_I386_REL32): Likewise.
43493 (grub_pe32_symbol): New structure.
43494 (grub_pe32_reloc): Likewise.
43496 * util/grub-pe2elf.c: New file.
43498 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43499 start symbol in non pc platform.
43501 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43503 The following patches are from Christian Franke.
43505 * include/grub/dl.h: Remove .previous, gas supports this only
43508 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43509 Remove .type, gas supports this only for ELF format.
43511 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43512 nullbytes in symbol table. This fixes an infinite loop if table is
43515 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43516 TARGET_IMG_LDFLAGS and EXEEXT.
43518 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43519 TARGET_IMG_LDFLAGS_AC.
43520 (grub_CHECK_STACK_ARG_PROBE): New function.
43522 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43524 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43526 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43527 to set TARGET_IMG_LD* accordingly.
43528 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43529 Add call to grub_CHECK_STACK_ARG_PROBE.
43530 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43532 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43534 * genmk.rb: Add EXEEXT to CLEANFILES.
43536 2008-07-23 Robert Millan <rmh@aybabtu.com>
43538 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43539 define the codes for arrows and lines used for the menu).
43540 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43543 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43544 fonts, because the latter are too slow.
43546 2008-07-21 Bean <bean123ch@gmail.com>
43548 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43549 a20. Run keyboard test last, as it will cause macbook to halt.
43551 2008-07-18 Pavel Roskin <proski@gnu.org>
43553 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43554 load foreign architecture modules correctly anyway. Keep
43555 support for loading host architecture modules, whether we
43556 compile them or not.
43558 2008-07-17 Pavel Roskin <proski@gnu.org>
43560 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43561 change target_cpu. The compiler default can mismatch target_cpu
43564 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43565 * kern/efi/efi.c: Likewise.
43567 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43568 target compiler is functional.
43569 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43572 * configure.ac: Default to efi platform for x86_64-apple. Allow
43573 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43574 adjustments from the rest, only do them if target is not
43575 explicitly given. Merge other adjustments with the final sanity
43576 check. Remove an extraneous check for supported CPU. Be
43577 specific which CPU and which platform is not supported.
43579 * configure.ac: Default to pc platform for x86_64.
43581 2008-07-17 Robert Millan <rmh@aybabtu.com>
43583 Partial LinuxBIOS -> Coreboot rename.
43585 * conf/i386-linuxbios.rmk: Renamed to ...
43586 * conf/i386-coreboot.rmk: ... this.
43587 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43588 * configure.ac: Accept "coreboot" as input platform (but maintain
43589 compatibility with "linuxbios").
43590 * include/grub/i386/linuxbios: Renamed to ...
43591 * include/grub/i386/coreboot: ... this.
43593 2008-07-17 Bean <bean123ch@gmail.com>
43595 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43596 (appleldr_mod_SOURCE): New variable.
43597 (appleldr_mod_CFLAGS): Likewise.
43598 (appleldr_mod_LDFLAGS): Likewise.
43599 (pci_mod_SOURCES): Likewise.
43600 (pci_mod_CFLAGS): Likewise.
43601 (pci_mod_LDFLAGS): Likewise.
43602 (lspci_mod_SOURCES): Likewise.
43603 (lspci_mod_CFLAGS): Likewise.
43604 (lspci_mod_LDFLAGS): Likewise.
43606 * conf/x86_64-efi.rmk: New file.
43608 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43610 (grub_efidisk_write): Likewise.
43612 * include/efi/api.h (efi_call_0): New macro.
43613 (efi_call_1): Likewise.
43614 (efi_call_2): Likewise.
43615 (efi_call_3): Likewise.
43616 (efi_call_4): Likewise.
43617 (efi_call_5): Likewise.
43618 (efi_call_6): Likewise.
43620 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43621 grub_rescue_cmd_chainloader.
43623 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43624 (grub_pe32_optional_header): Change some fields based on i386 or
43626 (GRUB_PE32_PE32_MAGIC): Likewise.
43628 * include/grub/efi/uga_draw.h: New file.
43630 * include/grub/elf.h (STN_ABS): New constant.
43631 (R_X86_64_NONE): Relocation constant for x86_64.
43632 (R_X86_64_64): Likewise.
43633 (R_X86_64_PC32): Likewise.
43634 (R_X86_64_GOT32): Likewise.
43635 (R_X86_64_PLT32): Likewise.
43636 (R_X86_64_COPY): Likewise.
43637 (R_X86_64_GLOB_DAT): Likewise.
43638 (R_X86_64_JUMP_SLOT): Likewise.
43639 (R_X86_64_RELATIVE): Likewise.
43640 (R_X86_64_GOTPCREL): Likewise.
43641 (R_X86_64_32): Likewise.
43642 (R_X86_64_32S): Likewise.
43643 (R_X86_64_16): Likewise.
43644 (R_X86_64_PC16): Likewise.
43645 (R_X86_64_8): Likewise.
43646 (R_X86_64_PC8): Likewise.
43648 * include/grub/i386/efi/pci.h: New file.
43650 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43651 Change it value based on platform.
43652 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43653 (GRUB_E820_RAM): Likewise.
43654 (GRUB_E820_RESERVED): Likewise.
43655 (GRUB_E820_ACPI): Likewise.
43656 (GRUB_E820_NVS): Likewise.
43657 (GRUB_E820_EXEC_CODE): Likewise.
43658 (GRUB_E820_MAX_ENTRY): Likewise.
43659 (grub_e820_mmap): New structure.
43660 (linux_kernel_header): Change the efi field according to different
43661 kernel version, also field from linux_kernel_header.
43663 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43665 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43666 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43667 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43668 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43669 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43670 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43671 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43672 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43673 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43674 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43676 * include/grub/x86_64/efi/kernel.h: New file.
43678 * include/grub/x86_64/efi/loader.h: Likewise.
43680 * include/grub/x86_64/efi/machine.h: Likewise.
43682 * include/grub/x86_64/efi/pci.h: Likewise.
43684 * include/grub/x86_64/efi/time.h: Likewise.
43686 * include/grub/x86_64/linux.h: Likewise.
43688 * include/grub/x86_64/setjmp.h: Likewise.
43690 * include/grub/x86_64/time.h: Likewise.
43692 * include/grub/x86_64/types.h: Likewise.
43694 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43695 GRUB_TARGET_SIZEOF_VOID_P.
43697 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43698 (grub_efi_locate_handle): Likewise.
43699 (grub_efi_open_protocol): Likewise.
43700 (grub_efi_set_text_mode): Likewise.
43701 (grub_efi_stall): Likewise.
43702 (grub_exit): Likewise.
43703 (grub_reboot): Likewise.
43704 (grub_halt): Likewise.
43705 (grub_efi_exit_boot_services): Likewise.
43706 (grub_get_rtc): Likewise.
43708 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43709 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43710 (grub_efi_allocate_pages): Wrap efi calls.
43711 (grub_efi_free_pages): Wrap efi calls.
43712 (grub_efi_get_memory_map): Wrap efi calls.
43714 * kern/x86_64/dl.c: New file.
43716 * kern/x86_64/efi/callwrap.S: Likewise.
43718 * kern/x86_64/efi/startup.S: Likewise.
43720 * loader/efi/appleloader.c: Likewise.
43722 * loader/efi/chainloader.c (cmdline): New variable.
43723 (grub_chainloader_unload): Wrap efi calls.
43724 (grub_chainloader_boot): Likewise.
43725 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43728 * loader/efi/chainloader_normal.c (chainloader_command):
43729 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43732 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43734 (grub_e820_add_region): New function.
43735 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43737 (grub_find_video_card): New function.
43738 (grub_linux_setup_video): New function.
43739 (grub_rescue_cmd_linux): Probe for video information.
43741 * normal/x86_64/setjmp.S: New file.
43743 * term/efi/console.c (map_char): New function.
43744 (grub_console_putchar): Map unicode char.
43745 (grub_console_checkkey): Wrap efi calls.
43746 (grub_console_getkey): Likewise.
43747 (grub_console_getwh): Likewise.
43748 (grub_console_gotoxy): Likewise.
43749 (grub_console_cls): Likewise.
43750 (grub_console_setcolorstate): Likewise.
43751 (grub_console_setcursor): Likewise.
43753 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43755 2008-07-16 Pavel Roskin <proski@gnu.org>
43757 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43760 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43761 pointer, not an integer. This fixes a warning and prevents
43762 precision loss on 64-bit systems.
43763 (relocate_addresses): Remove unneeded cast.
43765 2008-07-15 Pavel Roskin <proski@gnu.org>
43767 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43769 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43771 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43772 Fix comparison between signed and unsigned.
43774 * include/grub/i386/ieee1275/console.h: Declare
43775 grub_console_init() and grub_console_fini().
43777 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43778 It's empty and unused.
43780 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43781 beginning to avoid warnings with some compilers.
43783 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43784 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43786 2008-07-14 Pavel Roskin <proski@gnu.org>
43788 * kern/env.c (grub_register_variable_hook): Don't copy empty
43789 string, it leaks memory. Pass "" to grub_env_set(), it should
43790 handle constant strings.
43792 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43793 * commands/cmp.c (grub_cmd_cmp): Likewise.
43794 * kern/dl.c (grub_dl_flush_cache): Likewise.
43795 (grub_dl_load_core): Likewise.
43796 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43797 (grub_elf64_load_phdrs): Likewise.
43799 2008-07-13 Pavel Roskin <proski@gnu.org>
43801 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43802 between signed and unsigned.
43803 (LzmaEnc_Finish): Fix warning about an unused parameter.
43805 2008-07-13 Bean <bean123ch@gmail.com>
43807 * Makefile.in (enable_lzo): New rule.
43809 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43811 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43813 * boot/i386/pc/lnxboot.S: #include <config.h>.
43815 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43816 its value according to the compression algorithm used, lzo or lzma.
43818 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43819 compression algorithm according to configure macro.
43821 * kern/i386/pc/startup.S (codestart): Likewise.
43823 * kern/i386/pc/lzma_decode.S: New file.
43825 * include/grub/lib/LzFind.h: Likewise.
43827 * include/grub/lib/LzHash.h: Likewise.
43829 * include/grub/lib/LzmaDec.h: Likewise.
43831 * include/grub/lib/LzmaEnc.h: Likewise.
43833 * include/grub/lib/LzmaTypes.h: Likewise.
43835 * lib/LzFind.c: Likewise.
43837 * lib/LzmaDec.c: Likewise.
43839 * lib/LzmaEnc.c: Likewise.
43841 2008-07-13 Bean <bean123ch@gmail.com>
43843 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43844 (grub_ext4_extent_header): New structure.
43845 (grub_ext4_extent): Likewise.
43846 (grub_ext4_extent_idx): Likewise.
43847 (grub_ext4_find_leaf): New function.
43848 (grub_ext2_read_block): Handle extents.
43850 2008-07-12 Robert Millan <rmh@aybabtu.com>
43852 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43854 2008-07-11 Robert Millan <rmh@aybabtu.com>
43856 * util/grub.d/40_custom.in: New file. Example on how to add custom
43857 entries to /etc/grub.d.
43858 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43859 40_custom (implicitly, by merging all the grub.d rules).
43861 2008-07-11 Pavel Roskin <proski@gnu.org>
43863 * commands/read.c (grub_getline): Fix invalid memory access.
43864 Don't add newline to the variable value.
43866 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43867 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43868 (serial_hw_get_port): Check validity of the port number.
43869 (grub_cmd_serial): Check return value of serial_hw_get_port().
43871 2008-07-07 Pavel Roskin <proski@gnu.org>
43873 * boot/i386/pc/diskboot.S (notification_string): Replace
43874 "Loading kernel" with just "loading". This is shorter, less
43875 confusing and saves a few bytes for possible future changes.
43877 2008-07-05 Pavel Roskin <proski@gnu.org>
43879 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43880 size for ATAPI devices, they are undefined. Output sector
43881 number in decimal form.
43883 * disk/ata.c: Use named constants for status bits.
43885 2008-07-04 Pavel Roskin <proski@gnu.org>
43887 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43888 grub_addr_t before casting it to the void pointer to fix a
43889 warning. Non-addressable regions are discarded earlier.
43890 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43891 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43892 (check_signature): Don't shadow table_header.
43893 (grub_linuxbios_table_iterate): Cast numeric constants to
43894 grub_linuxbios_table_header_t.
43895 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43898 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43901 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43902 pointer, which can cause warnings. Support 64-bit addresses.
43904 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43905 of sizeof(long). This fixes PowerPC image generation on x86_64.
43907 2008-07-04 Robert Millan <rmh@aybabtu.com>
43909 This fixes a performance issue when pc & gpt partmap iterators
43910 didn't abort iteration even after our hook found what it was
43911 looking for (often causing expensive probes of non-existent drives).
43913 Some callers relied on previous buggy behaviour, since they would
43914 raise an error when their own hooks caused early abortion of its
43917 * kern/device.c (grub_device_open): Improve error message.
43918 * disk/lvm.c (grub_lvm_open): Likewise.
43919 * disk/raid.c (grub_raid_open): Likewise.
43921 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43922 when hook requests it, independently of grub_errno.
43923 (pc_partition_map_probe): Do not fail when find_func() caused
43924 early abortion of pc_partition_map_iterate().
43926 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43927 when hook requests it, independently of grub_errno.
43928 (gpt_partition_map_probe): Do not fail when find_func() caused
43929 early abortion of gpt_partition_map_iterate().
43931 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43932 when hook requests it, independently of grub_errno. Do not fail when
43933 part_map_iterate_hook() caused early abortion of p->iterate().
43935 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43936 when grub_partition_iterate() returned with non-zero.
43938 2008-07-03 Pavel Roskin <proski@gnu.org>
43940 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43941 like we do in grub_ata_pio_read().
43942 (grub_ata_readwrite): Always write individual sectors. Fix the
43943 sector count for the remainder.
43944 (grub_ata_write): Enable writing to ATA devices. Correctly
43945 report error for ATAPI devices.
43947 2008-07-02 Pavel Roskin <proski@gnu.org>
43949 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43952 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43953 for every read sector, we already increment it for the whole
43954 batch. This fixes reading more than 256 sectors at once.
43956 * util/grub-editenv.c (cmd_info): Cast argument to long
43957 explicitly. ptrdiff_t reduces to int on i386.
43959 * util/grub-editenv.c (main): Be specific which parameter is
43962 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43963 (memdisk): Make memdisk_orig_addr a pointer.
43965 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43966 for file offsets, use grub_off_t instead. Fix printf format
43969 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43970 there. Real unexpected warnings should not drown in the noise
43971 about known problems.
43973 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43974 grub_disk_addr_t for memory addresses.
43976 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43977 explicitly to fix a warning.
43979 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
43981 * Makefile.in (MODULE_LDFLAGS): New variable.
43982 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
43983 the linker accepts --build-id=none.
43984 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
43986 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
43988 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
43989 those in Linux XFS code. Provide a way to access 64-bit parent
43991 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
43992 the end of struct grub_xfs_dir_header.
43994 2008-07-02 Bean <bean123ch@gmail.com>
43996 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
43997 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43998 and GRUB_IEEE1275_FLAG_NO_ANSI.
44000 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44001 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44002 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44004 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44005 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44007 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44008 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44010 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44011 esc sequence on non ANSI terminal.
44012 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44014 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44017 2008-07-02 Bean <bean123ch@gmail.com>
44019 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44020 (grub_editenv_SOURCES): New variable.
44021 (pkglib_MODULES): Add loadenv.mod.
44022 (loadenv_mod_SOURCES): New variable.
44023 (loadenv_mod_CFLAGS): Likewise.
44024 (loadenv_mod_LDFLAGS): Likewise.
44026 * include/grub/envblk.h: New file.
44028 * util/envblk.c: New file.
44030 * util/grub-editenv.c: New file.
44032 * commands/loadenv.c: New file.
44034 2008-07-01 Pavel Roskin <proski@gnu.org>
44036 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44037 not unsigned char. This fixes warnings and is consistent with
44040 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44042 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44044 * term/tparm.c (analyze): Always set *popcount.
44046 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44047 cast to fix a warning.
44049 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44050 cast to suppress a warning.
44052 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44053 grub_fshelp_read_file() expects.
44055 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44056 write uuid as a 32-bit value in CPU byte order, so declare and
44059 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44060 long if the format specifier expects it.
44061 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44062 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44063 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44064 long to fix a warning.
44065 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44066 grub_dprintf() arguments to fix warnings.
44068 2008-06-30 Pavel Roskin <proski@gnu.org>
44070 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44071 install_bsd_part immediately before core.img is embedded or
44072 modified on disk. This fixes core.img verification if core.img
44073 cannot be embedded.
44075 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44076 core_path to calculate the blocklist.
44077 Patch from Javier Martín <lordhabbit@gmail.com>
44079 2008-06-29 Robert Millan <rmh@aybabtu.com>
44081 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44082 block to disk block.
44083 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44084 Patch from Niels Böhm <bitbucket@arcor.de>
44086 2008-06-29 Robert Millan <rmh@aybabtu.com>
44088 * util/update-grub_lib.in (font_path): Search for fonts in
44089 /boot/grub first, which is more likely to be readable (we aren't
44090 deciding where fonts live, just looking for them).
44092 2008-06-26 Pavel Roskin <proski@gnu.org>
44094 * util/biosdisk.c (read_device_map): Don't leave dead map
44095 entries for devices failing stat() check.
44097 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44098 core_path_dev for the core.img path on the target device.
44100 2008-06-26 Robert Millan <rmh@aybabtu.com>
44102 * disk/fs_uuid.c: New file.
44103 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44104 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44105 (fs_uuid_mod_LDFLAGS): New variables.
44106 * include/grub/disk.h (grub_disk_dev_id): Add
44107 `GRUB_DISK_DEVICE_UUID_ID'.
44108 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44109 implement iterate().
44111 2008-06-26 Robert Millan <rmh@aybabtu.com>
44113 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44114 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44115 Linux image includes no initrd.
44117 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44119 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44120 call to resolve the core image location that effectively appended the
44123 2008-06-21 Robert Millan <rmh@aybabtu.com>
44125 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44128 * util/grub.d/10_hurd.in: ... to here ...
44129 * util/grub.d/10_linux.in: ... and here.
44131 2008-06-19 Robert Millan <rmh@aybabtu.com>
44133 * kern/main.c (grub_main): Export `prefix' variable immediately
44134 after it has been set by grub_machine_set_prefix().
44136 2008-06-19 Robert Millan <rmh@aybabtu.com>
44138 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44139 search result when not saving to variable, not the other way around.
44140 When saving to variable, abort iteration as soon as a match is found.
44142 2008-06-19 Robert Millan <rmh@aybabtu.com>
44144 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44145 check for partition that provides /boot/grub. Its logic is flawed,
44146 as it prevents prepare_grub_to_access_device() from being called
44149 2008-06-19 Robert Millan <rmh@aybabtu.com>
44151 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44152 "insmod" command directly when abstraction modules are needed,
44153 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44154 since it had already been processed).
44156 2008-06-19 Pavel Roskin <proski@gnu.org>
44158 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44159 changed. This is needed in case GRUB_LIBDIR changes.
44160 * conf/i386-ieee1275.rmk: Likewise.
44161 * conf/i386-linuxbios.rmk: Likewise.
44162 * conf/i386-pc.rmk: Likewise.
44163 * conf/powerpc-ieee1275.rmk: Likewise.
44165 2008-06-18 Pavel Roskin <proski@gnu.org>
44167 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44168 kernel_elf_symlist.c to symlist.c for consistency with other
44169 architectures. Update all users.
44170 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44172 2008-06-18 Robert Millan <rmh@aybabtu.com>
44174 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44177 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44178 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44179 a RAID device, run setup() for all members independently on whether
44180 LVM abstraction is being used.
44181 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44182 If grub-mkimage has set `*install_dos_part == -2', don't override this
44184 Perform *install_dos_part adjustments independently on whether
44185 we're embedding or not.
44186 Clarify error message when image is too big for embedding.
44187 Remove duplicate *install_dos_part stanza.
44189 2008-06-17 Robert Millan <rmh@aybabtu.com>
44191 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44192 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44194 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44195 values in grub_ofconsole_normal_color and
44196 grub_ofconsole_highlight_color (they're not directly related to
44197 background and foreground).
44198 (grub_ofconsole_setcolorstate): Extract background and foreground
44199 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44201 2008-06-17 Robert Millan <rmh@aybabtu.com>
44203 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44204 /boot/grub for the check in last commit, not /boot (they could be
44205 different partitions).
44207 2008-06-16 Robert Millan <rmh@aybabtu.com>
44209 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44210 asked to setup access for the same partition that provides /boot,
44211 don't bother using UUIDs since our root already has the value we
44214 2008-06-16 Robert Millan <rmh@aybabtu.com>
44216 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44218 Patch from Sven Mueller <sven@debian.org>.
44220 2008-06-16 Robert Millan <rmh@aybabtu.com>
44222 * util/update-grub.in: Check for $EUID instead of $UID.
44223 Reported by Vincent Zweije.
44225 2008-06-16 Bean <bean123ch@gmail.com>
44227 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44228 (grub_ext2_read_block): Likewise.
44229 (grub_ext2_read_inode): Likewise.
44230 (grub_ext2_mount): Likewise.
44231 (grub_ext2_close): Likewise.
44232 (grub_ext3_get_journal): Removed.
44234 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44235 (grub_reiserfs_read_symlink): Likewise.
44236 (grub_reiserfs_mount): Likewise.
44237 (grub_reiserfs_open): Likewise.
44238 (grub_reiserfs_read): Likewise.
44239 (grub_reiserfs_close): Likewise.
44240 (grub_reiserfs_get_journal): Removed.
44242 * fs/fshelp.c (grub_fshelp_read): Removed.
44243 (grub_fshelp_map_block): Likewise.
44245 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44246 (grub_fshelp_journal): Likewise.
44247 (grub_fshelp_read): Likewise.
44248 (grub_fshelp_map_block): Likewise.
44250 2008-06-16 Pavel Roskin <proski@gnu.org>
44252 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44253 floating point anymore.
44254 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44256 2008-06-15 Pavel Roskin <proski@gnu.org>
44258 * commands/ls.c (grub_ls_list_files): Use integer calculations
44259 for human readable format, avoid floating point use.
44260 * kern/misc.c (grub_ftoa): Remove.
44261 (grub_vsprintf): Remove floating point support.
44263 2008-06-15 Robert Millan <rmh@aybabtu.com>
44265 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44267 Reported by Max Vozeler.
44269 2008-06-15 Robert Millan <rmh@aybabtu.com>
44271 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44272 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44274 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44275 the beginning of the prefix.
44277 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44278 It is assumed that if we have a memdisk, grub-mkimage has set
44279 grub_prefix to include the "(memdisk)" drive in it.
44281 2008-06-15 Robert Millan <rmh@aybabtu.com>
44283 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44284 Initialize keyboard controller after registering the terminal, so that
44285 grub_printf() can be called from grub_keyboard_controller_init().
44287 2008-06-15 Robert Millan <rmh@aybabtu.com>
44289 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44290 extent-btree which is written as big endian on disk.
44291 Reported by Alain Greppin <al@chilibi.org>.
44293 2008-06-14 Robert Millan <rmh@aybabtu.com>
44295 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44296 * util/i386/pc/grub-install.in (modules): Likewise.
44298 2008-06-13 Pavel Roskin <proski@gnu.org>
44300 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44302 2008-06-13 Bean <bean123ch@gmail.com>
44304 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44306 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44308 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44309 to indicate sparse block.
44311 2008-06-12 Pavel Roskin <proski@gnu.org>
44313 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44314 number, grub_fshelp_read() does it for us.
44316 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44317 linear disk read with journal translation.
44318 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44319 * include/grub/fshelp.h: Declare grub_fshelp_read().
44321 2008-06-09 Pavel Roskin <proski@gnu.org>
44323 * fs/minix.c (grub_minix_mount): Handle error reading
44326 2008-06-08 Robert Millan <rmh@aybabtu.com>
44328 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44329 don't append the RAID prefix afterwards.
44330 Reported by Clint Adams.
44332 2008-06-08 Robert Millan <rmh@aybabtu.com>
44334 Based on description from Pavel:
44335 * kern/disk.c (grub_disk_check_range): Rename to ...
44336 (grub_disk_adjust_range): ... this. Add a comment explaining the
44337 tasks performed by this function.
44339 2008-06-08 Robert Millan <rmh@aybabtu.com>
44341 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44342 `num_serial' (for consistency with other variables).
44343 (struct grub_ntfs_data): Add `uuid' member.
44344 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44345 (grub_ntfs_uuid): New function.
44346 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44348 2008-06-07 Pavel Roskin <proski@gnu.org>
44350 * util/biosdisk.c (open_device): Revert last change to the
44351 function, it broke installation. The sector needs to be
44352 different dependent on which device is opened.
44354 2008-06-06 Robert Millan <rmh@aybabtu.com>
44356 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44357 rest of GRUB, and breakage doesn't happen if its value were modified.
44359 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44360 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44361 a constant (same value).
44362 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44363 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44365 2008-06-06 Robert Millan <rmh@aybabtu.com>
44367 * util/biosdisk.c (open_device): Do not modify sector offset when
44368 accessing a partition. kern/disk.c already handles this for us.
44370 2008-06-06 Robert Millan <rmh@aybabtu.com>
44372 * util/grub-emu.c (grub_machine_init): Move code in this function from
44374 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44375 segfault in case grub_printf() is called).
44377 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44378 grub_probe. Update all users not to explicitly add it again.
44379 (grub_device): New variable; contains corresponding device for grubdir.
44380 (fs_module, partmap_module, devabstraction_module): Pass
44381 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44384 2008-06-05 Robert Millan <rmh@aybabtu.com>
44386 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44387 is found, print it (same layout as with labels).
44389 2008-06-04 Robert Millan <rmh@aybabtu.com>
44391 * util/biosdisk.c (get_drive): Rename to ...
44392 (find_grub_drive): ... this. Update all users.
44394 (get_os_disk): Rename to ...
44395 (convert_system_partition_to_system_disk): ... this. Update all users.
44397 (find_drive): Rename to ...
44398 (find_system_device): ... this. Update all users.
44400 2008-06-04 Robert Millan <rmh@aybabtu.com>
44402 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44403 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44404 (make_device_map): Likewise.
44406 2008-06-01 Robert Millan <rmh@aybabtu.com>
44408 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44409 before dereferencing it.
44411 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44412 union with fat12/fat16-specific ones. Add some new fields, including
44413 `num_serial' for both versions.
44414 (struct grub_fat_data): Add `uuid' member.
44415 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44416 names. Initialize `data->uuid' using `num_serial'.
44417 (grub_fat_uuid): New function.
44418 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44420 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44421 (grub_reiserfs_uuid): New function.
44422 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44425 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44426 (grub_xfs_uuid): New function.
44427 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44429 2008-06-01 Robert Millan <rmh@aybabtu.com>
44431 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44432 code that is backward compatible with pre-uuid search command.
44434 2008-05-31 Robert Millan <rmh@aybabtu.com>
44436 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44437 floppies after everything else, to ensure floppy drive isn't accessed
44438 unnecessarily (patch from Bean).
44440 2008-05-31 Robert Millan <rmh@aybabtu.com>
44442 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44443 not print device names when we were asked to set a variable.
44445 2008-05-31 Robert Millan <rmh@aybabtu.com>
44447 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44448 using "cursor-on" and "cursor-off" commands (understood at least by
44449 the Open Firmware flavour on OLPC).
44451 2008-05-31 Michael Gorven <michael@gorven.za.net>
44453 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44454 on and off sequences.
44456 2008-05-31 Robert Millan <rmh@aybabtu.com>
44458 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44459 * util/update-grub.in: Likewise.
44461 2008-05-30 Pavel Roskin <proski@gnu.org>
44463 * util/biosdisk.c (linux_find_partition): Simplify logic and
44464 make the code more universal. Keep special processing for
44465 devfs, but use a simple rule for all other devices. If the
44466 device ends with a number, append 'p' and the partition number.
44467 Otherwise, append only the partition number.
44469 2008-05-30 Robert Millan <rmh@aybabtu.com>
44471 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44472 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44473 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44474 the `root' parameter to Linux.
44476 2008-05-30 Robert Millan <rmh@aybabtu.com>
44478 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44479 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44480 --fs_uuid with --fs-uuid.
44481 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44482 all filesystems support them).
44484 2008-05-30 Robert Millan <rmh@aybabtu.com>
44486 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44487 grub_printf() flags, since we're printing in units of 2 bytes.
44489 2008-05-30 Robert Millan <rmh@aybabtu.com>
44491 * util/grub.d/00_header.in: Remove obsolete comment referencing
44492 convert_system_path_to_grub_path().
44493 * util/update-grub.in: Likewise.
44494 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44495 (convert_system_path_to_grub_path): Add a warning message explaining
44496 that this function is deprecated. Rely on is_path_readable_by_grub()
44497 for the readability checks.
44498 (font_path): Use is_path_readable_by_grub() for the readability
44499 check rather than convert_system_path_to_grub_path().
44501 2008-05-30 Robert Millan <rmh@aybabtu.com>
44503 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44504 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44505 converting it first.
44506 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44507 grub.cfg for access to font file, and afterwards call it again to set
44510 2008-05-30 Robert Millan <rmh@aybabtu.com>
44512 * commands/search.c (options): Add --fs_uuid option.
44513 (search_fs_uuid): New function.
44514 (grub_cmd_search): Fix --set argument passing.
44515 Use search_fs_uuid() when requested via --fs_uuid.
44516 (grub_search_init): Update help message.
44517 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44518 and redeclare it as an array of 16-bit words.
44519 (grub_ext2_uuid): New function.
44520 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44521 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44522 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44523 (GRUB_DEVICE_BOOT_UUID): New variables.
44524 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44525 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44527 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44528 just assume `root' variable has the right value.
44529 * util/grub.d/10_linux.in: Likewise.
44530 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44532 (main): Recognise `-t fs_uuid' argument.
44534 2008-05-30 Robert Millan <rmh@aybabtu.com>
44536 * util/biosdisk.c (map): Redefine structure to hold information
44537 about GRUB drive name.
44538 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44540 (call_hook): Remove.
44541 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44542 member. Assume drive has partitions.
44543 (grub_util_biosdisk_open): Access device names via `.device' struct
44545 (open_device): Likewise.
44546 (find_drive): Likewise.
44547 (read_device_map): Adjust map[] usage to match the new struct
44548 definition. Don't check for duplicates (still possible, but not cheap
44550 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44551 (make_device_name): Remove assumption of BIOS-like drive names.
44553 2008-05-30 Pavel Roskin <proski@gnu.org>
44555 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44556 compiling execute.c doesn't need grub_script.tab.h anymore.
44557 (normal/command.c_DEPENDENCIES): Likewise.
44558 (normal/function.c_DEPENDENCIES): Likewise.
44559 * conf/i386-ieee1275.rmk: Likewise.
44560 * conf/i386-linuxbios.rmk: Likewise.
44561 * conf/i386-pc.rmk: Likewise.
44562 * conf/powerpc-ieee1275.rmk: Likewise.
44563 * conf/sparc64-ieee1275.rmk: Likewise.
44565 2008-05-29 Pavel Roskin <proski@gnu.org>
44567 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44568 when scanning metadata for volume group name.
44570 * include/grub/script.h: Don't include grub_script.tab.h. It's
44571 a generated file, which may only be included from the files with
44572 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44573 use union YYSTYPE, as the later allows forward declaration.
44574 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44576 2008-05-29 Robert Millan <rmh@aybabtu.com>
44578 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44579 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44580 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44581 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44584 2008-05-29 Robert Millan <rmh@aybabtu.com>
44586 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44587 control key combinations.
44589 2008-05-29 Robert Millan <rmh@aybabtu.com>
44591 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44592 * util/ieee1275/grub-install.in: ... to here.
44593 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44594 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44595 (grub_install_SOURCES): Likewise.
44597 2008-05-29 Robert Millan <rmh@aybabtu.com>
44599 * fs/affs.c: Update copyright year.
44600 * fs/ext2.c: Likewise.
44601 * fs/fshelp.c: Likewise.
44602 * fs/hfsplus.c: Likewise.
44603 * fs/ntfs.c: Likewise.
44604 * fs/xfs.c: Likewise.
44605 * include/grub/fshelp.h: Likewise.
44606 * util/grub-mkdevicemap.c: Likewise.
44608 2008-05-28 Robert Millan <rmh@aybabtu.com>
44610 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44611 might need to be fatfs to support some firmware implementations
44614 2008-05-28 Robert Millan <rmh@aybabtu.com>
44616 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44618 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44619 (make_device_map): Likewise.
44621 2008-05-20 Bean <bean123ch@gmail.com>
44623 * fs/fshelp.c (grub_fshelp_map_block): New function.
44624 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44625 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44627 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44628 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44629 (grub_fshelp_journal): New structure.
44630 (grub_fshelp_map_block): New function prototype.
44631 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44632 (grub_fshelp_map_block): Likewise.
44634 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44635 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44636 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44637 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44638 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44639 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44640 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44641 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44642 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44643 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44644 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44645 (grub_ext2_sblock): New members for journal support.
44646 (grub_ext3_journal_header): New structure.
44647 (grub_ext3_journal_revoke_header): Likewise.
44648 (grub_ext3_journal_block_tag): Likewise.
44649 (grub_ext3_journal_sblock): Likewise.
44650 (grub_fshelp_node): New members logfile and journal.
44651 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44652 grub_fshelp_map_block to get real block number.
44653 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44655 (grub_ext2_read_inode): Likewise.
44656 (grub_ext3_get_journal): New function.
44657 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44658 (grub_ext2_close): Release memory used by journal.
44660 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44661 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44662 (grub_reiserfs_transaction_header): Renamed to
44663 grub_reiserfs_description_block, replace field data with real_blocks.
44664 (grub_reiserfs_commit_block): New structure.
44665 (grub_reiserfs_data): New member journal.
44666 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44668 (grub_reiserfs_read_symlink): Likewise.
44669 (grub_reiserfs_iterate_dir): Likewise.
44670 (grub_reiserfs_open): Likewise.
44671 (grub_reiserfs_read): Likewise.
44672 (grub_reiserfs_get_journal): New function.
44673 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44674 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44675 using grub_reiserfs_get_journal.
44676 (grub_reiserfs_close): Release memory used by journal.
44678 * fs/affs.c (grub_affs_read_block): Change block type to
44679 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44681 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44683 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44685 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44687 * fs/udf.c (grub_udf_read_block): Change block type to
44688 grub_disk_addr_t. Use type cast to avoid warning.
44690 * fs/xfs.c (grub_xfs_read_block): Likewise.
44692 2008-05-16 Christian Franke <franke@computer.org>
44694 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44695 to ensure that break with ESC will always work.
44696 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44697 Remove ESC from keyboard queue.
44699 2008-05-16 Christian Franke <franke@computer.org>
44701 * util/biosdisk.c: [__CYGWIN__] Add includes.
44702 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44703 (get_os_disk): Move variable declarations to OS specific
44704 parts to avoid warning.
44705 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44706 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44707 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44709 * util/getroot.c: [__CYGWIN__] Add includes.
44710 (strip_extra_slashes): Fix "/" case.
44711 [__CYGWIN__] (get_win32_path): New function.
44712 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44713 [__CYGWIN__] (find_root_device): Disable.
44714 [__CYGWIN__] (get_bootsec_serial): New function.
44715 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44716 [__linux__] (grub_guess_root_device): Add early returns to simplify
44718 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44719 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44720 check for Linux only.
44722 2008-05-15 Bean <bean123ch@gmail.com>
44724 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44725 keyboard hang problem in apple's intel mac.
44727 2008-05-09 Robert Millan <rmh@aybabtu.com>
44729 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44731 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44732 (make_device_map): Likewise.
44733 Reported by Aurelien Jarno <aurel32@debian.org>
44735 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44737 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44738 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44739 (make_device_map): Output entries for xvd type disks.
44741 2008-05-07 Robert Millan <rmh@aybabtu.com>
44743 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44745 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44746 (make_device_map): Likewise.
44747 Reported by Roland Dreier <rdreier@cisco.com>
44749 2008-05-07 Robert Millan <rmh@aybabtu.com>
44751 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44752 grub_strstr() call. Correct a few mistakes in failure path handling.
44754 2008-05-06 Robert Millan <rmh@aybabtu.com>
44756 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44757 Do not print a trailing slash (therefore, the root directory is an
44759 (convert_system_path_to_grub_path): Do not remove trailing slash
44760 from make_system_path_relative_to_its_root() output.
44762 * util/i386/pc/grub-install.in: Add trailing slash to output from
44763 make_system_path_relative_to_its_root().
44765 2008-05-06 Robert Millan <rmh@aybabtu.com>
44767 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44768 ensures that output lines aren't intermangled with those sent to
44769 stderr (via grub_util_info()).
44770 * util/grub-probe.c (grub_refresh): Likewise.
44771 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44773 2008-05-05 Christian Franke <franke@computer.org>
44775 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44776 Add Cygwin device names.
44777 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44778 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44779 (check_device): Return error instead of success on empty name.
44780 (make_device_map): Move label inside linux specific code to
44781 prevent compiler warning.
44783 2008-04-30 Robert Millan <rmh@aybabtu.com>
44785 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44786 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44788 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44790 2008-04-29 Robert Millan <rmh@aybabtu.com>
44792 * docs/grub.cfg: New file (example GRUB configuration).
44794 2008-04-26 Robert Millan <rmh@aybabtu.com>
44796 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44797 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44798 and `disk/ieee1275/nand.c'.
44800 2008-04-25 Bean <bean123ch@gmail.com>
44802 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44805 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44806 change the buffer size to 4096 for cdrom device.
44808 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44810 (_linux_mod_SOURCES): New variable.
44811 (_linux_mod_CFLAGS): Likewise.
44812 (_linux_mod_LDFLAGS): Likewise.
44813 (linux_mod_SOURCES): Likewise.
44814 (linux_mod_CFLAGS): Likewise.
44815 (linux_mod_LDFLAGS): Likewise.
44816 (nand_mod_SOURCES): Likewise.
44817 (nand_mod_CFLAGS): Likewise.
44818 (nand_mod_LDFLAGS): Likewise.
44820 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44821 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44822 type property. (nand device in olpc don't have this property)
44824 * include/grub/disk.h (grub_disk_dev_id): New macro
44825 GRUB_DISK_DEVICE_NAND_ID.
44827 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44828 function prototype.
44829 (grub_rescue_cmd_initrd): Likewise.
44831 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44832 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44833 ofw_cif_handler and ofw_idt, adjust padding number.
44835 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44836 GRUB_MACHINE_IEEE1275 is defined.
44838 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44839 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44841 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44842 on nested function heap_init.
44843 (grub_upper_mem): New variable for i386-ieee1275.
44844 (grub_get_extended_memory): New function for i386-ieee1275.
44845 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44847 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44848 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44851 * loader/i386/ieee1275/linux.c: New file.
44853 * loader/i386/ieee1275/linux_normal.c: New file.
44855 * disk/ieee1275/nand.c: New file.
44857 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44859 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44861 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44863 2008-04-18 Robert Millan <rmh@aybabtu.com>
44865 Restructures early code path on ieee1275 to unify grub_main() as
44866 the first C function that is executed in every platform.
44868 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44869 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44871 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44872 * kern/ieee1275/cmain.c (cmain): Rename to ...
44873 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44874 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44877 2008-04-18 Robert Millan <rmh@aybabtu.com>
44879 * util/update-grub.in: Fix syntax error when setting
44880 `GRUB_PRELOAD_MODULES'.
44881 Reported by Stephane Chazelas <stephane@artesyncp.com>
44883 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44885 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44886 section into account, newer toolchains generate unique build ids
44887 * configure.ac: remove the test for --build-id=none acceptance,
44888 we want build ids to be preserved
44889 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44890 far from other sections don't cause the raw binary images grow
44893 2008-04-15 Robert Millan <rmh@aybabtu.com>
44895 * disk/lvm.c: Update copyright year.
44896 * kern/misc.c: Likewise.
44898 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44900 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44901 there is no memory left for physical volume name.
44903 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44905 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44906 volume name mapping to support bigger than 9 character names properly.
44908 2008-04-13 Robert Millan <rmh@aybabtu.com>
44910 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44911 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44913 2008-04-13 Christian Franke <franke@computer.org>
44915 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44916 to create a floppy emulation boot CD when non emulation mode
44918 Enable Joliet CD filesystem extension.
44920 2008-04-13 Robert Millan <rmh@aybabtu.com>
44922 * kern/misc.c (grub_strncat): Fix off-by-one error.
44923 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44925 * kern/env.c (grub_env_context_close): Clear current context, not
44927 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44929 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44931 2008-04-13 Robert Millan <rmh@aybabtu.com>
44933 Improve robustness when handling LVM.
44935 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44936 (and leave `*p' unmodified).
44937 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44939 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44940 iterating through it.
44941 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44943 (grub_lvm_scan_device): Check the return value (and fail gracefully
44944 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44945 Don't assume `vg->pvs != NULL' when iterating through it.
44947 2008-04-13 Robert Millan <rmh@aybabtu.com>
44949 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44950 * genmk.rb (partmap): New variable.
44951 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44952 (#{partmap}): New target rule.
44953 * genpartmaplist.sh: New file.
44954 * Makefile.in (pkglib_DATA): Add partmap.lst.
44955 (partmap.lst): New target rule.
44956 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44957 modules (including all partition maps), instead of preloading them.
44959 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44961 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44962 `linux-boot-prober' (if installed) to detect other operating
44963 systems which are installed on the computer and add them to
44965 * conf/common.rmk: Build and install 30_os-prober.
44967 2008-04-12 Robert Millan <rmh@aybabtu.com>
44969 * kern/powerpc/ieee1275/init.c: Move from here ...
44970 * kern/ieee1275/init.c: ... to here. Update all users.
44972 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44973 * kern/ieee1275/cmain.c: ... to here. Update all users.
44975 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44976 * kern/ieee1275/openfw.c: ... to here. Update all users.
44978 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
44979 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
44981 2008-04-10 Pavel Roskin <proski@gnu.org>
44983 * configure.ac: Always use "_cv_" in cache variables for
44984 compatibility with Autoconf 2.62.
44986 2008-04-07 Robert Millan <rmh@aybabtu.com>
44988 Revert grub/machine/init.h addition by Pavel (since it breaks on
44989 i386-ieee1275 and others):
44990 * util/i386/pc/misc.c: Remove grub/machine/init.h.
44991 * util/powerpc/ieee1275/misc.c: Likewise.
44993 2008-04-07 Robert Millan <rmh@aybabtu.com>
44995 * util/grub-probe.c (probe): Improve error message.
44997 2008-04-07 Robert Millan <rmh@aybabtu.com>
44999 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45000 (this prevents the presence of a bogus entry from ruining the whole
45003 2008-04-06 Pavel Roskin <proski@gnu.org>
45005 * util/biosdisk.c: Include grub/util/biosdisk.h.
45006 * util/grub-fstest.c (execute_command): Make static.
45007 * util/grub-mkdevicemap.c (check_device): Likewise.
45008 * util/i386/pc/misc.c: Include grub/machine/init.h.
45009 * util/powerpc/ieee1275/misc.c: Likewise.
45010 * util/lvm.c: Include grub/util/lvm.h.
45011 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45013 * util/raid.c: Include grub/util/raid.h.
45014 (grub_util_getdiskname): Make static.
45016 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45017 grub_hostfs_fini(), as they are called from grub_init_all() and
45018 grub_fini_all() respectively. This fixes an infinite loop in
45019 grub-fstest due to double registration of hostfs.
45020 Reported by Christian Franke <Christian.Franke@t-online.de>
45022 2008-04-05 Pavel Roskin <proski@gnu.org>
45024 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45025 all 8 functions. Otherwise, probe function 0 only.
45027 2008-04-04 Pavel Roskin <proski@gnu.org>
45029 * commands/lspci.c (grub_lspci_iter): Print the bus number
45032 * commands/lspci.c (grub_pci_classes): Fix typos.
45033 (grub_lspci_iter): Don't print func twice. Print vendor ID
45034 before device ID, as it's normally done.
45036 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45037 Fix signedness warnings.
45038 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45040 * util/ieee1275/get_disk_name.c: Include config.h so that
45041 _GNU_SOURCE is defined and getline() is declared. Mark an
45042 unused argument as such. Fix a signedness warning.
45044 2008-04-02 Pavel Roskin <proski@gnu.org>
45046 * genkernsyms.sh.in: Use more robust assignments for CC and
45047 srcdir. Quote srcdir.
45048 * gensymlist.sh.in: Likewise. Assert at the compile time that
45049 the symbol table is not empty.
45051 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45052 * fs/cpio.c (grub_cpio_read): Likewise.
45054 2008-04-01 Pavel Roskin <proski@gnu.org>
45056 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45057 * disk/host.c (grub_host_open): Likewise.
45058 * disk/loopback.c (grub_loopback_open): Likewise.
45059 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45060 disk->id as in disk/host.c, not a multi-character constant.
45062 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45063 later is obsolete, potentially dangerous and sets a bad example.
45064 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45065 * util/misc.c (grub_util_get_image_size): Likewise.
45067 * disk/loopback.c (options): Improve help for "--partitions".
45069 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45070 options to align them with the short options, e.g. "echo -e".
45072 2008-03-31 Bean <bean123ch@gmail.com>
45074 * video/reader/png.c (grub_png_data): New member is_16bit and
45076 (grub_png_decode_image_header): Detect 16 bit png image.
45077 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45078 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45079 (grub_video_reader_png): Release memory occupied by image_data.
45081 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45083 (grub_nfs_mount): Skip the test for sector per cluster.
45085 * include/grub/ntfs.h (MAX_SPC): Removed.
45087 2008-03-31 Bean <bean123ch@gmail.com>
45089 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45090 (grub_probe_SOURCES): Add fs/afs.c.
45091 (grub_fstest_SOURCES): Likewise.
45092 (afs_mod_SOURCES): New variable.
45093 (afs_mod_CFLAGS): Likewise.
45094 (afs_mod_LDFLAGS): Likewise.
45096 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45097 (grub_emu_SOURCES): Likewise.
45099 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45101 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45103 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45107 * fs/afs.c: New file.
45109 2008-03-30 Pavel Roskin <proski@gnu.org>
45111 * disk/host.c: Include grub/misc.h to fix a warning.
45112 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45113 warnings about implicit declarations.
45115 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45117 * include/grub/i386/loader.h: Change declaration of
45118 grub_linux_boot() to match what grub_loader_set() expects.
45119 * util/getroot.c (grub_guess_root_device): Return const char* to
45121 * util/grub-probe.c (probe): Fix a warning about uninitialized
45122 abstraction_name variable.
45123 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45124 second argument as unused to fix a warning.
45126 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45127 missing grub_error() call.
45129 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45130 2.60 and newer uses it to define datadir.
45132 * commands/sleep.c: Fix warning about implicit declaration.
45133 * disk/memdisk.c: Likewise.
45134 * loader/aout.c: Likewise.
45135 * loader/i386/bsd_normal.c: Likewise.
45136 * util/grub-probe.c: Likewise.
45138 * commands/i386/cpuid.c (has_longmode): Make static.
45139 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45140 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45142 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45143 GDT. This is more robust, as %ds can change.
45144 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45145 calling real_to_prot().
45146 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45148 2008-03-28 Pavel Roskin <proski@gnu.org>
45150 * kern/i386/pc/startup.S: Assert that uncompressed functions
45151 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45152 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45153 code, as they push parts of the code (error handlers) beyond
45154 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45155 code as correctness and size.
45157 2008-03-28 Pavel Roskin <proski@gnu.org>
45159 * kern/i386/pc/startup.S
45160 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45161 data block address to the real mode, keep offset minimal. This
45162 works around a bug in AWARD BIOS on old Athlon systems, which
45163 makes CD detection hang.
45165 2008-03-26 Pavel Roskin <proski@gnu.org>
45167 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45169 * include/grub/normal.h: Add grub_parse_color_name_pair()
45172 2008-03-24 Bean <bean123ch@gmail.com>
45174 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45175 (cd_count): Removed.
45176 (cd_drive): New variable.
45177 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45178 (grub_biosdisk_call_hook): Likewise.
45179 (grub_biosdisk_iterate): Change cdrom detection method.
45180 (grub_biosdisk_open): Replace cd_start with cd_drive.
45181 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45182 detect cdrom device.
45184 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45186 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45187 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45188 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45189 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45190 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45191 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45192 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45193 (grub_biosdisk_cdrp): New structure.
45194 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45196 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45198 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45201 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45204 2008-03-20 Robert Millan <rmh@aybabtu.com>
45206 Remove 2 TiB limit in ata.mod.
45207 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45208 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45209 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45210 grub_uint64_t instead of grub_uint32_t.
45212 2008-03-05 Bean <bean123ch@gmail.com>
45214 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45215 (grub_multiboot): Set boot device.
45217 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45219 2008-03-02 Bean <bean123ch@gmail.com>
45221 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45224 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45226 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45229 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45232 * docs/fdl.texi: New file.
45234 * docs/mdate-sh: New file. Copied from gnulib.
45235 * docs/texinfo.tex: Likewise.
45237 * config.guess: Updated from gnulib.
45238 * install-sh: Likewise.
45240 2008-02-28 Robert Millan <rmh@aybabtu.com>
45242 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45243 (aout_mod_SOURCES): New variable.
45244 (aout_mod_CFLAGS): Likewise.
45245 (aout_mod_LDFLAGS): Likewise.
45247 * conf/i386-ieee1275.rmk: Likewise.
45249 2008-02-28 Robert Millan <rmh@aybabtu.com>
45251 * util/update-grub.in: Reorganise terminal validity check. Accept
45252 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45253 Based on suggestion by Franklin PIAT.
45255 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45257 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45259 * util/getroot.c (grub_util_check_block_device): New function that
45260 returns the given argument if it is a block device and returns NULL else.
45261 * util/grub-probe.c (argument_is_device): New variable.
45262 (probe): Promote device_name from a variable to an argument. Receive
45263 device_name from grub_util_check_block_device() if path is NULL and from
45264 grub_guess_root_device() else. Do not free() device_name anymore.
45265 (options): Introduce new parameter '-d, --device'.
45266 (main): Add description of the new parameter to the help screen.
45267 Rename path variable to argument. Set argument_is_device if the '-d'
45268 option is given. Pass argument to probe() depending on
45269 argument_is_device.
45271 2008-02-24 Bean <bean123ch@gmail.com>
45273 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45274 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45275 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45276 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45277 (GRUB_ISO9660_VOLDESC_END): Likewise.
45278 (grub_iso9660_primary_voldesc): New member escape.
45279 (grub_iso9660_data): New member joliet.
45280 (grub_iso9660_convert_string): New function.
45281 (grub_iso9660_mount): Detect joliet extension.
45282 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45283 (grub_iso9660_iso9660_label): Likewise.
45285 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45286 (grub_setup_SOURCES): Add fs/udf.c.
45287 (grub_fstest_SOURCES): Likewise.
45288 (udf_mod_SOURCES): New variable.
45289 (udf_mod_CFLAGS): Likewise.
45290 (udf_mod_LDFLAGS): Likewise.
45292 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45293 (grub_emu_SOURCES): Likewise.
45295 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45297 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45299 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45303 * fs/udf.c: New file.
45305 2008-02-24 Robert Millan <rmh@aybabtu.com>
45307 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45308 (normal/lexer.c_DEPENDENCIES): New variables.
45309 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45310 (normal/lexer.c_DEPENDENCIES): Likewise.
45311 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45312 (normal/lexer.c_DEPENDENCIES): Likewise.
45313 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45314 (normal/lexer.c_DEPENDENCIES): Likewise.
45315 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45316 (normal/lexer.c_DEPENDENCIES): Likewise.
45317 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45318 (normal/lexer.c_DEPENDENCIES): Likewise.
45320 2008-02-23 Robert Millan <rmh@aybabtu.com>
45322 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45323 since they were intended to be in hex. This didn't break previously
45324 because of a bug in gpt_partition_map_iterate() (see below).
45326 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45327 when checking the validity of GPT header.
45328 Remove `partno', since it always provides the same information as `i'.
45330 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45332 * include/grub/efi/time.h: Fix a wrong comment.
45334 2008-02-19 Pavel Roskin <proski@gnu.org>
45336 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45339 2008-02-19 Bean <bean123ch@gmail.com>
45341 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45342 (aout_mod_SOURCES): New variable.
45343 (aout_mod_CFLAGS): Likewise.
45344 (aout_mod_LDFLAGS): Likewise.
45345 (_bsd_mod_SOURCES): New variable.
45346 (_bsd_mod_CFLAGS): Likewise.
45347 (_bsd_mod_LDFLAGS): Likewise.
45348 (bsd_mod_SOURCES): New variable.
45349 (bsd_mod_CFLAGS): Likewise.
45350 (bsd_mod_LDFLAGS): Likewise.
45352 * include/grub/aout.h: New file.
45354 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45356 * include/grub/i386/bsd.h: New file.
45358 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45361 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45362 function is called, so that it's possible to change it inside the hook.
45363 (grub_elf64_load): Likewise.
45364 (grub_elf_file): Don't close the file if elf header is not found.
45365 (grub_elf_close): Close the file if grub_elf_file fails (The new
45366 grub_elf_file won't close it).
45367 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45368 (grub_elf64_size): Likewise.
45370 * kern/i386/loader.S (grub_unix_real_boot): New function.
45372 * loader/aout.c: New file.
45374 * loader/i386/bsd.c: New file.
45376 * loader/i386/bsd_normal.c: New file.
45378 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45380 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45381 can test other formats.
45383 2008-02-19 Robert Millan <rmh@aybabtu.com>
45385 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45386 (grub_gpt_partition_type_empty): Redefine with macro from
45387 `<grub/gpt_partition.h>'.
45388 (gpt_partition_map_iterate): Adjust partition type comparison.
45390 Export `entry' as partmap-specific `part.data' struct.
45391 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45393 * include/grub/gpt_partition.h (grub_gpt_header)
45394 (grub_gpt_partentry): ... to here (new file).
45396 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45398 (grub_gpt_partition_type_bios_boot): New const variable, defined
45399 with macro from `<grub/gpt_partition.h>'.
45401 (setup): Replace `first_start' with `embed_region', which keeps
45402 track of the embed region (and is partmap-agnostic).
45404 Replace find_first_partition_start() with find_usable_region(),
45405 which finds a usable region for embedding using partmap-specific
45406 knowledge (supports PC/MSDOS and GPT).
45408 Fix all assumptions that the embed region start at sector 1, using
45409 `embed_region.start' from now on. Similarly, use `embed_region.end'
45410 rather than `first_start' to calculate available size.
45412 In grub_util_info() message, replace "into after the MBR" with an
45413 indication of the specific sector our embed region starts at.
45415 2008-02-19 Robert Millan <rmh@aybabtu.com>
45417 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45418 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45419 `commands/reboot.c'.
45420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45421 (halt_mod_SOURCES): Likewise.
45422 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45423 (halt_mod_SOURCES): Likewise.
45425 2008-02-17 Christian Franke <franke@computer.org>
45427 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45429 2008-02-17 Robert Millan <rmh@aybabtu.com>
45431 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45432 set `first_start' to 0 for non-PC/MSDOS partition maps.
45434 2008-02-16 Robert Millan <rmh@aybabtu.com>
45436 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45437 do not assume partition map is PC/MSDOS before performing checks that
45438 are specific to that layout.
45440 2008-02-13 Robert Millan <rmh@aybabtu.com>
45442 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45443 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45444 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45446 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45448 * configure.ac: Only a cosmetic change on the handling of
45449 -fno-stack-protector.
45451 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45453 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45454 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45456 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45457 (halt_mod_SOURCES): New variable.
45458 (halt_mod_CFLAGS): Likewise.
45459 (halt_mod_LDFLAGS): Likewise.
45460 (reboot_mod_SOURCES): Likewise.
45461 (reboot_mod_CFLAGS): Likewise.
45462 (reboot_mod_LDFLAGS): Likewise.
45464 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45465 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45467 (halt_mod_SOURCES): Likewise.
45468 (reboot_mod_SOURCES): Likewise.
45470 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45471 commands/i386/pc/reboot.c by commands/reboot.c.
45472 (reboot_mod_SOURCES): Likewise.
45474 * commands/i386/pc/reboot.c: merge this file ...
45476 * commands/ieee1275/reboot.c: ... and this file ...
45478 * commands/reboot.c: ... to this file.
45479 Add some precompiler directive to include the correct header for
45482 * commands/ieee1275/halt.c: move this file ...
45484 * commands/halt.c: ... to here.
45485 Add some precompiler directive to include the correct header for
45488 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45489 (grub_halt): Likewise.
45491 * kern/efi/efi.c (grub_reboot): New function.
45492 (grub_halt): Likewise.
45494 2008-02-12 Robert Millan <rmh@aybabtu.com>
45496 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45497 /dev (like it is done for /dev/mapper). This doesn't provide support
45498 for EVMS, but at least it is now easy to identify the problem when it
45501 2008-02-11 Robert Millan <rmh@aybabtu.com>
45503 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45504 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45505 comparing it with -1, not 0.
45507 2008-02-10 Robert Millan <rmh@aybabtu.com>
45509 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45512 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45514 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45515 `disk/lvm.c' to the end of the list.
45516 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45517 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45519 2008-02-10 Robert Millan <rmh@aybabtu.com>
45521 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45522 grub_print_error() instead. This will let user know why we're entering
45524 Based on suggestions from Sam Morris.
45526 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45528 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45529 on remaining N args, instead of "--" arg N times.
45531 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45533 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45534 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45535 pattern for unknown glyphs.
45537 2008-02-09 Robert Millan <rmh@aybabtu.com>
45539 * configure.ac: Probe for `help2man'.
45540 * Makefile.in (builddir): New variable.
45541 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45542 or otherwise add a few flags/options to it.
45543 (install-local): For every executable utility or script that is
45544 installed, invoke $(HELP2MAN) to install a manpage based on --help
45547 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45548 that it doesn't prevent --help from working in build tree.
45550 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45551 with `bug-grub@gnu.org'.
45552 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45553 * util/update-grub.in (usage): New function.
45554 Implement proper argument check, with support for --help and --version
45555 (as well as existing -y).
45557 2008-02-09 Christian Franke <franke@computer.org>
45559 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45560 avoid overwriting previous output.
45561 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45563 2008-02-09 Robert Millan <rmh@aybabtu.com>
45565 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45568 2008-02-09 Robert Millan <rmh@aybabtu.com>
45570 * commands/sleep.c: New file.
45571 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45572 (sleep_mod_SOURCES): New variable.
45573 (sleep_mod_CFLAGS): Likewise.
45574 (sleep_mod_LDFLAGS): Likewise.
45576 2008-02-09 Robert Millan <rmh@aybabtu.com>
45578 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45579 situations in which we can deduce the RAID size and the superblock
45582 2008-02-09 Robert Millan <rmh@aybabtu.com>
45584 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45585 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45586 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45588 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45589 and return a grub_diskmemberlist_t composed of physical array members.
45590 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45592 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45594 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45595 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45596 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45598 * util/grub-probe.c (probe): Move partmap probing code from here ...
45599 (probe_partmap): ... to here.
45600 (probe): Use probe_partmap() once for the disk we're probing, and
45601 additionally, when such disk contains a memberlist() struct member,
45602 once for each disk that is contained in the structure returned by
45605 2008-02-09 Robert Millan <rmh@aybabtu.com>
45607 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45608 environment variable to 'all' in order to obtain debug output from
45610 * util/i386/pc/grub-setup.c (main): Likewise.
45612 2008-02-08 Robert Millan <rmh@aybabtu.com>
45614 * disk/raid.c (grub_raid_scan_device): Check for
45615 `array->device[sb.this_disk.number]' rather than for
45616 `array->device[sb.this_disk.number]->name', since the latter is not
45617 guaranteed to be accessible.
45619 2008-02-08 Robert Millan <rmh@aybabtu.com>
45621 * disk/raid.c: Update copyright.
45622 * fs/cpio.c: Likewise.
45623 * include/grub/raid.h: Likewise.
45624 * loader/i386/pc/multiboot.c: Likewise.
45625 * util/hostfs.c: Likewise.
45627 2008-02-08 Robert Millan <rmh@aybabtu.com>
45629 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45630 to a grub_disk_t array.
45631 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45633 (grub_raid_scan_device): Replace `device[x].name' accesses with
45634 `device[x]->name'. Simplify initialization of `array->device[x]'.
45636 2008-02-08 Robert Millan <rmh@aybabtu.com>
45638 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45639 grub_dprintf() calls.
45640 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45643 2008-02-07 Christian Franke <franke@computer.org>
45645 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45646 instead of fseek and ftell to support large files.
45647 (grub_hostfs_read): Likewise.
45649 2008-02-07 Robert Millan <rmh@aybabtu.com>
45651 Patch from Jeroen Dekkers.
45652 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45653 failure, since successfully reading all array members might not be
45656 2008-02-06 Robert Millan <rmh@aybabtu.com>
45658 * util/grub-probe.c (probe): Simplify partmap probing (with the
45659 assumption that the first word up to the underscore equals to
45662 2008-02-06 Christian Franke <franke@computer.org>
45664 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45665 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45666 last block of a cpio or tar stream.
45667 Check for "TRAILER!!!" instead of any empty data
45668 block to detect last block of a cpio stream.
45669 (grub_cpio_dir): Fix constness of variable np.
45670 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45671 cpio or tar trailer is detected. This fixes a crash
45672 on open of a non existing file.
45674 2008-02-05 Bean <bean123ch@gmail.com>
45676 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45678 (grub_multiboot_load_elf64): Likewise.
45679 (grub_multiboot): Initialize mbi structure.
45681 * util/grub-fstest.c: Don't include unused header file script.h.
45683 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45685 (grub_fstest_SOURCES): Likewise.
45687 2008-02-05 Robert Millan <rmh@aybabtu.com>
45689 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45690 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45691 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45692 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45694 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45695 (translation_table): Replace hardcoded values with macros
45696 provided by `<grub/term.h>'.
45698 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45699 (keyboard_map): Correct/add a few values, with macros provided
45700 by `<grub/term.h>'.
45701 (keyboard_map_shift): Zero values that don't differ from their
45702 `keyboard_map' equivalents.
45703 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45704 Discard the second scan code that is always sent by Caps lock.
45705 Only use `keyboard_map_shift' when it provides a non-zero value,
45706 otherwise fallback to `keyboard_map'.
45708 2008-02-04 Bean <bean123ch@gmail.com>
45710 * Makefile.in (enable_grub_fstest): New variable.
45712 * conf/common.rmk (grub_fstest_init.lst): New rule.
45713 (grub_fstest_init.h): Likewise.
45714 (grub_fstest_init.c): Likewise.
45715 (util/grub-fstest.c_DEPENDENCIES): New variable.
45716 (grub_fstest_SOURCES): Likewise.
45718 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45720 * util/grub-fstest.c: New file.
45722 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45724 Make grub-setup handle a separate root device.
45726 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45727 so that the root device can be compared with the destination
45729 When embedding the core image, if the root and destination devices
45730 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45732 When not embedding, set ROOT_DRIVE to 0xFF.
45734 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45736 Add support for having a grub directory in a different drive. This
45737 is still only the data handling part.
45739 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45740 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45741 (grub_root_drive): New variable.
45743 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45744 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45745 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45748 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45750 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45752 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45754 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45755 is bogus, because PXE booting does not specify any drive
45758 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45759 am not sure if this is really correct.
45761 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45762 is always identical to the boot drive when booting from a CD.
45764 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45766 (root_drive): New variable.
45767 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45768 (setup_sectors): Push %dx right after popping it, because %dh will
45770 (copy_buffer): Restore %dx.
45772 2008-02-03 Robert Millan <rmh@aybabtu.com>
45774 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45775 use `cdboot.img' for cdrom images.
45777 2008-02-03 Robert Millan <rmh@aybabtu.com>
45779 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45780 only setup gfxterm when `font' command has succeeded.
45782 2008-02-03 Robert Millan <rmh@aybabtu.com>
45784 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45785 (grub_rescue_cmd_multiboot_loader)
45786 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45788 2008-02-03 Pavel Roskin <proski@gnu.org>
45790 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45791 %edx and %esi from stack only after grub_gate_a20() is called.
45792 grub_gate_a20() clobbers %edx.
45794 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45796 * configure.ac (AC_INIT): Bumped to 1.96.
45798 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45799 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45800 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45801 video/readers/png.c.
45803 2008-02-03 Bean <bean123ch@gmail.com>
45805 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45806 (cdboot_img_SOURCES): New variable.
45807 (cdboot_img_ASFLAGS): New variable.
45808 (cdboot_img_LDFLAGS): New variable.
45810 * boot/i386/pc/cdboot.S: New file.
45812 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45813 (cd_count): Likewise.
45814 (grub_biosdisk_get_drive): Add support for cd device.
45815 (grub_biosdisk_call_hook): Likewise.
45816 (grub_biosdisk_iterate): Likewise.
45817 (grub_biosdisk_open): Likewise.
45818 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45819 (grub_biosdisk_rw): Support reading from cd device.
45820 (GRUB_MOD_INIT): Iterate cd devices.
45822 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45823 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45824 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45826 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45828 2008-02-02 Robert Millan <rmh@aybabtu.com>
45830 * commands/read.c: New file.
45831 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45832 (read_mod_SOURCES): New variable.
45833 (read_mod_CFLAGS): Likewise.
45834 (read_mod_LDFLAGS): Likewise.
45836 2008-02-02 Robert Millan <rmh@aybabtu.com>
45838 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45839 determining whether menu has to be displayed.
45841 2008-02-02 Marco Gerards <marco@gnu.org>
45843 * bus/pci.c: New file.
45845 * include/grub/pci.h: Likewise.
45847 * include/grub/i386/pc/pci.h: Likewise.
45849 * commands/lspci.c: Likewise.
45851 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45853 (pci_mod_SOURCES): New variable.
45854 (pci_mod_CFLAGS): Likewise.
45855 (pci_mod_LDFLAGS): Likewise.
45856 (lspci_mod_SOURCES): Likewise.
45857 (lspci_mod_CFLAGS): Likewise.
45858 (lspci_mod_LDFLAGS): Likewise.
45860 2008-02-02 Bean <bean123ch@gmail.com>
45862 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45863 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45865 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45866 (grub_xfs_btree_node): New structure.
45867 (grub_xfs_btree_root): New structure.
45868 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45869 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45870 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45871 (GRUB_XFS_EXTENT_SIZE): Likewise.
45872 (grub_xfs_read_block): Support btree format type.
45873 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45874 Use directory block as basic unit.
45876 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45878 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45879 __attribute__ ((__regparm__ (1))).
45881 2008-02-01 Robert Millan <rmh@aybabtu.com>
45883 Correct a mistake in previous commit.
45885 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45887 (normal/command.c_DEPENDENCIES): New variable.
45889 2008-02-01 Robert Millan <rmh@aybabtu.com>
45891 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45893 (normal/command.c_DEPENDENCIES): New variable.
45894 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45895 * conf/i386-ieee1275.rmk: Likewise.
45896 * conf/i386-linuxbios.rmk: Likewise.
45897 * conf/i386-pc.rmk: Likewise.
45898 * conf/sparc64-ieee1275.rmk: Likewise.
45899 * conf/powerpc-ieee1275.rmk: Likewise.
45900 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45902 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45904 2008-02-01 Robert Millan <rmh@aybabtu.com>
45906 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45907 call at beginning of function.
45909 2008-01-31 Pavel Roskin <proski@gnu.org>
45911 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45912 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45913 (grub_mkrescue_SOURCES): Likewise.
45914 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45916 2008-01-30 Robert Millan <rmh@aybabtu.com>
45918 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45919 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45920 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45921 (grub_probe_SOURCES): ... to here.
45923 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45924 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45925 * conf/i386-ieee1275.rmk: Likewise.
45926 * conf/i386-linuxbios.rmk: Likewise.
45927 * conf/powerpc-ieee1275.rmk: Likewise.
45929 2008-01-30 Tristan Gingold <gingold@free.fr>
45931 * kern/rescue.c: Silently accept empty lines.
45933 2008-01-29 Bean <bean123ch@gmail.com>
45935 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45936 (real_code_2): Code cleanup and change comment style.
45937 (move_memory): Avoid using 32-bit address mode.
45939 2008-01-29 Bean <bean123ch@gmail.com>
45941 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45942 (png_mod_SOURCES): New variable.
45943 (png_mod_CFLAGS): Likewise.
45944 (png_mod_LDFLAGS): Likewise.
45946 * video/readers/png.c: New file.
45948 2008-01-28 Robert Millan <rmh@aybabtu.com>
45950 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45951 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45952 `ifndef GRUB_MOD_GAP' hack.
45953 * util/elf/grub-mkimage.c (add_segments): Likewise.
45955 2008-01-27 Robert Millan <rmh@aybabtu.com>
45957 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45958 `GRUB_MOD_GAP' for platforms in which it's not defined.
45959 * util/elf/grub-mkimage.c (add_segments): Likewise.
45961 2008-01-27 Robert Millan <rmh@aybabtu.com>
45963 Get grub-emu to build again (including parallel builds).
45965 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45967 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45968 (normal/execute.c_DEPENDENCIES): ... this, ...
45969 (grub-emu_DEPENDENCIES): ... and this.
45971 * conf/i386-efi.rmk: Likewise.
45972 * conf/i386-linuxbios.rmk: Likewise.
45973 * conf/i386-ieee1275.rmk: Likewise.
45974 * conf/powerpc-ieee1275.rmk: Likewise.
45975 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45977 2008-01-27 Robert Millan <rmh@aybabtu.com>
45979 * NEWS: Add a few items.
45981 2008-01-27 Robert Millan <rmh@aybabtu.com>
45983 Fix parallel builds with grub-emu. Based on earlier commit for
45984 grub-probe and grub-setup.
45986 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45987 (util/grub-emu.c_DEPENDENCIES): ... this.
45988 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45989 (util/grub-emu.c_DEPENDENCIES): ... this.
45990 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45991 (util/grub-emu.c_DEPENDENCIES): ... this.
45992 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45993 (util/grub-emu.c_DEPENDENCIES): ... this.
45994 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45995 (util/grub-emu.c_DEPENDENCIES): ... this.
45997 2008-01-27 Pavel Roskin <proski@gnu.org>
45999 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46000 to create a gap between _end and the modules added to the image
46001 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46002 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46003 * util/elf/grub-mkimage.c (add_segments): Likewise.
46005 2008-01-26 Pavel Roskin <proski@gnu.org>
46007 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46008 just return an error.
46010 2008-01-26 Bean <bean123ch@gmail.com>
46012 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46013 (grub_reiserfs_get_item): Save offset of the next item.
46014 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46016 2008-01-25 Robert Millan <rmh@aybabtu.com>
46018 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46019 make all filesystem sources appear together (possibly fixing omissions
46021 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46022 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46023 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46026 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46028 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46029 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46030 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46031 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46033 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46034 (probe): Add a sanity check to make sure of our ability to read
46035 requested files when probing for filesystem type.
46037 * genmk.rb: Update copyright year (2007).
46039 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46040 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46041 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46042 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46043 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46044 : Remove function prototypes.
46046 2008-01-25 Robert Millan <rmh@aybabtu.com>
46048 Revert my previous commits (based on wrong assumption of how grub_errno
46051 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46052 * kern/file.c (grub_file_open): Likewise.
46054 2008-01-24 Pavel Roskin <proski@gnu.org>
46056 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46057 that hang if GRUB tries to setup colors.
46058 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46059 colors for firmwares that don't support it.
46060 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46061 Recognize Open Hack'Ware, set flags to work around its
46064 2008-01-24 Robert Millan <rmh@aybabtu.com>
46066 * kern/file.c (grub_file_open): Do not account previous failures of
46067 unrelated functions when grub_errno is checked for.
46068 Reported by Oleg Strikov.
46070 2008-01-24 Bean <bean123ch@gmail.com>
46072 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46073 (grub_ufs_sblock): New member volume name.
46074 (grub_ufs_find_file): Fix string copy bug.
46075 (grub_ufs_label): Implement this function properly.
46077 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46078 (grub_hfs_iterate_records): Use the correct file number for extents
46079 and catalog file. Fix problem in next index calculation.
46080 (grub_hfs_find_node): Replace recursive function call with loop.
46081 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46083 2008-01-23 Robert Millan <rmh@aybabtu.com>
46085 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46086 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46087 (grub_multiboot2_real_boot): New function prototype.
46089 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46090 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46092 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46093 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46095 2008-01-23 Robert Millan <rmh@aybabtu.com>
46097 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46098 #ifdef'ed out grub_printf().
46100 2008-01-23 Robert Millan <rmh@aybabtu.com>
46102 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46103 grub_dprintf calls, since they make "debug=all" mode unusable.
46104 (grub_console_checkkey): Likewise.
46106 2008-01-23 Robert Millan <rmh@aybabtu.com>
46108 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46109 `term/i386/pc/at_keyboard.c'.
46110 (pkglib_MODULES): Add `serial.mod'.
46111 (serial_mod_SOURCES): New variable.
46112 (serial_mod_CFLAGS): Likewise.
46113 (serial_mod_LDFLAGS): Likewise.
46115 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46116 `<grub/powerpc/ieee1275/console.h>'.
46117 (grub_keyboard_controller_init): New function prototype.
46118 (grub_console_checkkey): Likewise.
46119 (grub_console_getkey): Likewise.
46121 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46124 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46125 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46127 2008-01-23 Robert Millan <rmh@aybabtu.com>
46129 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46130 present, "(memdisk)/boot/grub" becomes the default prefix.
46132 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46133 a memdisk tarball with all the modules. Add --overlay=DIR option that
46134 allows users to overlay additional files into the image.
46136 2008-01-23 Robert Millan <rmh@aybabtu.com>
46138 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46139 and `machine/memory.h'.
46140 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46141 (_multiboot_mod_SOURCES): New variable.
46142 (_multiboot_mod_CFLAGS): Likewise.
46143 (_multiboot_mod_LDFLAGS): Likewise.
46144 (multiboot_mod_SOURCES): Likewise.
46145 (multiboot_mod_CFLAGS): Likewise.
46146 (multiboot_mod_LDFLAGS): Likewise.
46148 * include/grub/i386/ieee1275/loader.h: New file.
46150 * include/grub/i386/ieee1275/machine.h: Likewise.
46152 * include/grub/i386/ieee1275/memory.h: Likewise.
46154 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46155 variable declaration.
46156 (grub_os_area_size): Likewise.
46158 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46159 (grub_lower_mem, grub_upper_mem): New variables.
46160 (grub_stop_floppy): New function (just to make
46161 grub_multiboot2_real_boot() happy).
46163 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46164 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46165 (grub_stop): New function.
46166 Include `"../realmode.S"' and `"../loader.S"'.
46168 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46169 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46171 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46172 rely on grub_multiboot2_real_boot() for final boot.
46174 2008-01-22 Robert Millan <rmh@aybabtu.com>
46176 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46177 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46178 device that doesn't look like an SD card.
46179 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46180 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46181 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46182 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46185 2008-01-22 Robert Millan <rmh@aybabtu.com>
46187 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46188 avoid claiming over our own code.
46190 2008-01-22 Bean <bean123ch@gmail.com>
46192 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46193 (jpeg_mod_SOURCES): New variable.
46194 (jpeg_mod_CFLAGS): Likewise.
46195 (jpeg_mod_LDFLAGS): Likewise.
46197 * video/readers/jpeg.c : New file.
46199 2008-01-22 Bean <bean123ch@gmail.com>
46201 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46202 there are no more items.
46204 2008-01-21 Robert Millan <rmh@aybabtu.com>
46206 * kern/mm.c (grub_mm_init_region): Improve debug message.
46208 2008-01-21 Robert Millan <rmh@aybabtu.com>
46210 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46211 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46213 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46215 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46216 Indicates start of upper memory.
46217 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46218 (generate_image): Abort when image size is big enough to corrupt
46221 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46222 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46223 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46224 instead of hardcoding 0xA0000.
46225 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46226 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46227 instead of hardcoding 0xA0000.
46229 2008-01-21 Robert Millan <rmh@aybabtu.com>
46231 * disk/memdisk.c (memdisk_size): New variable.
46232 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46234 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46235 image to dynamic memory.
46236 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46237 `memdisk_size'. Free memdisk block.
46239 2008-01-21 Robert Millan <rmh@aybabtu.com>
46241 Fix detection of very small filesystems (like tar).
46243 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46244 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46245 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46246 a problem with this disk).
46248 2008-01-21 Robert Millan <rmh@aybabtu.com>
46250 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46251 on grub_biosdisk_rw_standard() error.
46253 2008-01-21 Robert Millan <rmh@aybabtu.com>
46255 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46257 * kern/elf.c: Likewise.
46258 * kern/ieee1275/ieee1275.c: Likewise.
46259 * kern/powerpc/ieee1275/openfw.c: Likewise.
46260 * term/ieee1275/ofconsole.c: Likewise.
46262 2008-01-21 Robert Millan <rmh@aybabtu.com>
46264 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46266 * include/grub/kernel.h (grub_arch_memdisk_addr)
46267 (grub_arch_memdisk_size): Moved from here ...
46269 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46270 (grub_arch_memdisk_size): ... to here.
46272 2008-01-21 Robert Millan <rmh@aybabtu.com>
46274 Mostly based on bugfix from Bean.
46276 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46277 attribute with hook() parameter.
46278 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46280 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46281 attribute with hook() parameter.
46282 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46285 2008-01-21 Robert Millan <rmh@aybabtu.com>
46287 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46288 (pkglib_MODULES): Add `memdisk.mod'.
46289 (memdisk_mod_SOURCES): New variable.
46290 (memdisk_mod_CFLAGS): Likewise.
46291 (memdisk_mod_LDFLAGS): Likewise.
46293 * disk/memdisk.c: New file.
46295 * include/grub/disk.h (grub_disk_dev_id): Add
46296 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46298 * include/grub/i386/pc/kernel.h
46299 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46300 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46301 (grub_kernel_image_size): New variable declaration.
46302 (grub_total_module_size): Likewise.
46303 (grub_memdisk_image_size): Likewise.
46305 * include/grub/i386/pc/memory.h
46306 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46308 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46309 (grub_arch_memdisk_addr): New variable declaration.
46310 (grub_arch_memdisk_size): Likewise.
46312 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46313 (grub_arch_memdisk_size): Likewise.
46315 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46316 (codestart): Replace hardcoded `0x100000' with
46317 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46319 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46320 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46321 not NULL, append the contents of the file it refers to, at the end of
46322 the compressed kernel image. Initialize `grub_memdisk_image_size'
46323 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46324 (options): Add "memdisk"|'m' option.
46325 (main): Parse --memdisk|-m option, and pass user-provided path as
46326 parameter to generate_image().
46328 2008-01-20 Robert Millan <rmh@aybabtu.com>
46330 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46331 grub_dprintf() calls from here ...
46332 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46334 2008-01-20 Robert Millan <rmh@aybabtu.com>
46336 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46338 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46340 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46341 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46342 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46343 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46345 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46346 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46348 2008-01-19 Robert Millan <rmh@aybabtu.com>
46350 Get rid of confusing function (superseded by
46351 `grub_ieee1275_get_integer_property')
46352 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46354 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46356 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46357 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46358 in native endianness from grub_ieee1275_get_integer_property().
46360 2008-01-19 Robert Millan <rmh@aybabtu.com>
46362 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46363 command after "shut-down", since implementations differ on which
46364 the command for halt is.
46366 2008-01-19 Robert Millan <rmh@aybabtu.com>
46368 * include/grub/i386/linuxbios/console.h: Add header protection.
46369 (grub_keyboard_controller_init): New function prototype.
46370 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46371 (KEYBOARD_COMMAND_READ): Likewise.
46372 (KEYBOARD_COMMAND_WRITE): Likewise.
46373 (KEYBOARD_SCANCODE_SET1): Likewise.
46374 (grub_keyboard_controller_write): New function.
46375 (grub_keyboard_controller_read): Likewise.
46376 (grub_keyboard_controller_init): Likewise.
46378 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46379 (grub_console_init): On coreboot/LinuxBIOS, call
46380 grub_keyboard_controller_init().
46382 2008-01-19 Robert Millan <rmh@aybabtu.com>
46384 PowerPC changes provided by Pavel Roskin.
46386 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46387 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46388 don't rely on cmain() doing it.
46389 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46390 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46392 2008-01-16 Robert Millan <rmh@aybabtu.com>
46394 * include/grub/i386/linuxbios/memory.h
46395 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46396 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46397 receive `table_header' as argument. Instead, probe for it in the
46398 known memory ranges where it can be present.
46399 (grub_available_iterate): Do not pass a fixed `table_header' address
46400 to grub_linuxbios_table_iterate().
46402 2008-01-15 Robert Millan <rmh@aybabtu.com>
46404 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46405 * conf/i386-ieee1275.rmk: New file.
46406 * include/grub/i386/ieee1275/console.h: Likewise.
46407 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46408 * include/grub/i386/ieee1275/kernel.h: Likewise.
46409 * include/grub/i386/ieee1275/time.h: Likewise.
46410 * kern/i386/ieee1275/init.c: Likewise.
46411 * kern/i386/ieee1275/startup.S: Likewise.
46413 2008-01-15 Robert Millan <rmh@aybabtu.com>
46415 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46416 when pointers are 32-bit (but still do set it to one when they are
46419 2008-01-15 Robert Millan <rmh@aybabtu.com>
46421 * include/grub/ieee1275/ieee1275.h
46422 (grub_ieee1275_get_integer_property): New function prototype.
46424 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46425 (grub_ieee1275_get_integer_property): New function. Wraps around
46426 grub_ieee1275_get_property() to handle endianness.
46428 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46429 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46431 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46432 (grub_map): Likewise.
46433 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46435 2008-01-15 Bean <bean123ch@gmail.com>
46437 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46438 (grub_script_execute_cmdline): Reset grub_errno.
46440 * normal/main.c (read_config_file): Reset grub_errno.
46442 * normal/parse.y (script_init): New.
46443 (script): Move function and menuentry here.
46445 (command): Add delimiter at the end of command.
46446 (commands): Adjust to match the new command.
46447 (commandblock): Remove grub_script_lexer_record_start.
46448 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46449 (if): Use the new commands.
46451 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46453 2008-01-15 Robert Millan <rmh@aybabtu.com>
46455 * normal/menu.c (run_menu): Move timeout message from here ...
46456 (print_timeout): ... to here.
46457 (run_menu): Use print_timeout() once during initial draw to print
46458 the whole message, and again in every clock tick to update only
46459 the number of seconds.
46461 2008-01-15 Robert Millan <rmh@aybabtu.com>
46463 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46464 actual size of `available' from grub_ieee1275_get_property(), and
46465 restrict parsing to that bound.
46467 2008-01-15 Christian Franke <franke@computer.org>
46469 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46470 (argp_program_version): Remove variable.
46471 (argp_program_bug_address): Likewise.
46472 (options): Convert from struct argp_option to struct option.
46473 (struct arguments): Remove.
46474 (parse_opt): Remove.
46475 (usage): New function.
46476 (main): Replace struct args members by simple variables.
46477 Replace argp_parse() by getopt_long().
46478 Add switch to evaluate options.
46479 Add missing "(...)" around root_dev in prefix string.
46481 2008-01-14 Robert Millan <rmh@aybabtu.com>
46483 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46484 for grub_ieee1275_exit(), in order to improve portability.
46486 2008-01-14 Robert Millan <rmh@aybabtu.com>
46488 * util/grub.d/10_linux.in (prefix): Define.
46489 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46491 2008-01-13 Pavel Roskin <proski@gnu.org>
46493 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46494 grub_errno if no errors have been detected.
46496 2008-01-12 Robert Millan <rmh@aybabtu.com>
46498 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46499 (grub_util_get_dev_abstraction): New function prototype.
46501 * util/getroot.c: Include `<grub/util/getroot.h>'
46502 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46503 (grub_util_get_dev_abstraction): ... here (new function).
46505 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46506 `PRINT_ABSTRACTION'.
46507 (probe): Probe for abstraction type when requested.
46508 (main): Understand `--target=abstraction'.
46510 * util/i386/efi/grub-install.in: Add abstraction module to core
46511 image when it is found to be necessary.
46512 * util/i386/pc/grub-install.in: Likewise.
46513 * util/powerpc/ieee1275/grub-install.in: Likewise.
46515 * util/update-grub_lib.in (font_path): Return system path without
46516 converting to GRUB path.
46517 * util/update-grub.in: Convert system path returned by font_path()
46518 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46519 abstraction module is needed for loading fonts (if any). Export
46520 that as `GRUB_PRELOAD_MODULES'.
46521 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46524 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46526 Remove some unused code from reiserfs.
46528 * fs/reiserfs.c (struct grub_reiserfs_key)
46529 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46530 (struct grub_reiserfs_node_body): Removed.
46531 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46533 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46535 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46537 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46539 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46541 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46543 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46544 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46545 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46547 2008-01-10 Robert Millan <rmh@aybabtu.com>
46549 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46550 Determines if a file is garbage left by packaging systems, etc.
46551 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46552 for processing /etc/grub.d scripts.
46553 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46554 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46555 as a condition for processing Linux images.
46557 2008-01-10 Pavel Roskin <proski@gnu.org>
46559 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46560 to compile reiserfs.c on PowerPC.
46562 2008-01-10 Robert Millan <rmh@aybabtu.com>
46564 * kern/device.c (grub_device_iterate): Do not abort device iteration
46565 when one of the devices cannot be opened.
46566 * kern/disk.c (grub_disk_open): Do not account previous failures of
46567 unrelated functions when grub_errno is checked for.
46569 2008-01-08 Robert Millan <rmh@aybabtu.com>
46571 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46572 `! grub_linux_is_bzimage', change order of address comparison to make
46573 it more intuitive, and improve "too big zImage" error message.
46575 2008-01-08 Robert Millan <rmh@aybabtu.com>
46577 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46578 `$(update-grub_DATA)'.
46579 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46582 2008-01-07 Robert Millan <rmh@aybabtu.com>
46584 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46585 which instruction is modified by grub-setup during installation
46586 (since it wasn't obvious by only looking at this file).
46588 2008-01-07 Robert Millan <rmh@aybabtu.com>
46590 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46591 listing actual TODO items.
46593 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46595 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46597 (grub_reiserfs_get_key_offset): Likewise.
46598 (grub_reiserfs_set_key_offset): Likewise.
46599 (grub_reiserfs_set_key_type): Likewise.
46600 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46602 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46603 better to remove the bitfield version completely.
46605 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46607 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46608 allocated from the heap, due to the fshelp implementation.
46609 (grub_reiserfs_dir): Free NODE, due to the same reason.
46611 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46613 Mostly from Vincent Pelletier:
46615 * fs/reiserfs.c: New file.
46617 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46618 (reiserfs_mod_SOURCES): New variable.
46619 (reiserfs_mod_CFLAGS): Likewise.
46620 (reiserfs_mod_LDFLAGS): Likewise.
46622 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46623 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46624 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46627 2008-01-06 Robert Millan <rmh@aybabtu.com>
46629 * normal/color.c: Remove `<grub/env.h>'.
46631 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46633 * include/grub/normal.h: Include <grub/env.h>.
46635 2008-01-05 Robert Millan <rmh@aybabtu.com>
46637 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46638 usage example with `(hd0,1)'.
46639 Reported by Samuel Thibault.
46641 2008-01-05 Robert Millan <rmh@aybabtu.com>
46643 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46644 (grub_linux_boot_zimage): Rename to ...
46645 (grub_linux_boot): ... this.
46646 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46647 (grub_linux_boot_zimage): Conditionalize zImage copy.
46649 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46650 (grub_linux_boot_bzimage): Remove prototype.
46651 (grub_linux_boot_zimage): Rename to ...
46652 (grub_linux_boot): ... this.
46654 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46655 (grub_linux_boot): Remove function.
46657 2008-01-05 Robert Millan <rmh@aybabtu.com>
46659 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46660 (grub_env_write_color_highlight): Likewise.
46661 (grub_wait_after_message): Likewise.
46663 * normal/color.c: New file.
46665 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46666 (normal_mod_DEPENDENCIES): Likewise.
46668 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46669 (normal_mod_DEPENDENCIES): Likewise.
46671 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46672 (normal_mod_DEPENDENCIES): Likewise.
46674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46675 (normal_mod_DEPENDENCIES): Likewise.
46677 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46678 for waiting after a message is printed.
46679 * normal/main.c (read_config_file): Likewise.
46680 (grub_normal_init): Register grub_env_write_color_normal() and
46681 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46682 `color_highlight' variables as global.
46684 * normal/menu.c (grub_wait_after_message): New function.
46685 (grub_color_menu_normal): New variable. Replaces ...
46686 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46687 (grub_color_menu_highlight): New variable. Replaces ...
46688 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46689 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46690 `GRUB_TERM_COLOR_STANDARD'.
46691 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46692 `normal_code' and `highlight_code' to `old_color_normal' and
46693 `old_color_highlight', respectively.
46694 (grub_menu_init_page): Update colors when drawing the menu, based on
46695 `menu_color_normal' and `menu_color_highlight' variables.
46696 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46697 a message is printed.
46699 2008-01-05 Robert Millan <rmh@aybabtu.com>
46701 * kern/env.c (grub_env_context_open): Propagate hooks for global
46702 variables to new context.
46704 * kern/main.c (grub_set_root_dev): Export `root' variable.
46706 2008-01-05 Robert Millan <rmh@aybabtu.com>
46708 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46709 discs unconditionally, since udev and others have options to provide
46712 2008-01-05 Robert Millan <rmh@aybabtu.com>
46714 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46716 2008-01-04 Christian Franke <franke@computer.org>
46718 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46721 2008-01-03 Pavel Roskin <proski@gnu.org>
46723 * kern/i386/linuxbios/init.c: Put "void" to all function
46724 declarations with no arguments.
46725 * kern/powerpc/ieee1275/init.c: Likewise.
46726 * term/i386/pc/at_keyboard.c: Likewise.
46727 * term/i386/pc/vga_text.c: Likewise.
46728 * util/grub-mkdevicemap.c: Likewise.
46730 2008-01-02 Robert Millan <rmh@aybabtu.com>
46732 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46733 message when loaded image is out of bounds.
46734 (grub_multiboot_load_elf64): Likewise.
46736 2008-01-02 Pavel Roskin <proski@gnu.org>
46738 * util/grub.d/10_linux.in: Try version without ".old" when
46739 looking for initrd. It's better to use initrd from the newer
46740 kernel of the same version than no initrd at all.
46742 2008-01-01 Robert Millan <rmh@aybabtu.com>
46744 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46746 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46748 * include/grub/video.h: Added grub_video_unmap_color and
46749 grub_video_get_active_render_target.
46750 (grub_video_adapter): Added unmap_color and get_active_render_target.
46752 * video/video.c: Added grub_video_unmap_color and
46753 grub_video_get_active_render_target.
46754 (grub_video_get_info): Changed method to accept NULL pointer as an
46755 argument to allow detection of active video adapter.
46757 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46758 grub_video_vbe_unmap_color_int.
46759 Added grub_video_vbe_unmap_color and
46760 grub_video_vbe_get_active_render_target.
46761 (grub_video_vbe_adapter): Added unmap_color and
46762 get_active_render_target.
46764 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46765 with grub_video_vbe_unmap_color_int.
46767 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46768 (DEFAULT_NORMAL_COLOR): Likewise.
46769 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46770 (DEFAULT_FG_COLOR): Removed.
46771 (DEFAULT_BG_COLOR): Likewise.
46772 (DEFAULT_CURSOR_COLOR): Changed value.
46773 (grub_virtual_screen): Added standard_color_setting,
46774 normal_color_setting, highlight_color_setting and term_color.
46775 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46776 (bitmap_width): Added.
46777 (bitmap_height): Likewise.
46778 (bitmap): Likewise.
46779 (set_term_color): Likewise.
46780 (grub_virtual_screen_setup): Changed to use new terminal coloring
46782 (grub_gfxterm_init): Added init for bitmap.
46783 (grub_gfxterm_fini): Added destroy for bitmap.
46784 (redraw_screen_rect): Updated to use background bitmap and new
46786 (scroll_up): Added optimization for case when there is no bitmap.
46787 (grub_gfxterm_cls): Fixed to use correct background color.
46788 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46790 (grub_virtual_screen_setcolor): Likewise.
46791 (grub_virtual_screen_getcolor): Added.
46792 (grub_gfxterm_background_image_cmd): Likewise.
46793 (grub_video_term): Added setcolor and getcolor.
46794 (MOD_INIT): Added registration of background_image command.
46795 (MOD_TERM): Added unregistration for background_image command.
46797 2007-12-30 Pavel Roskin <proski@gnu.org>
46799 * loader/multiboot_loader.c: Fix multiboot command
46800 unregistration. Fix all typos in the word "multiboot".
46802 2007-12-29 Pavel Roskin <proski@gnu.org>
46804 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46805 support for initrd names used in Fedora.
46807 2007-12-26 Bean <bean123ch@gmail.com>
46809 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46810 (cpio_mod_SOURCES): New variable.
46811 (cpio_mod_CFLAGS): Likewise.
46812 (cpio_mod_LDFLAGS): Likewise.
46814 * fs/cpio.c: New file.
46816 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46818 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46820 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46822 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46824 2007-12-25 Robert Millan <rmh@aybabtu.com>
46826 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46827 (grub_getcolor): New function.
46829 * kern/term.c (grub_getcolor): New function.
46830 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46831 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46832 (print_entry): Set normal and highlight colors to
46833 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46834 respectively, before printing and restore them to old
46836 (grub_menu_init_page): Likewise. Fill an additional colored space
46837 that would otherwise be left blank.
46839 * term/efi/console.c (grub_console_getcolor): New function.
46840 (struct grub_console_term.getcolor): New variable.
46841 * term/i386/pc/console.c (grub_console_getcolor): New function.
46842 (struct grub_console_term.getcolor): New variable.
46843 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46844 (struct grub_console_term.getcolor): New variable.
46846 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46847 (struct grub_console_term.setcolor): Remove variable.
46848 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46849 (struct grub_console_term.setcolor): Remove variable.
46850 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46851 (struct grub_console_term.setcolor): Remove variable.
46852 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46853 (struct grub_console_term.setcolor): Remove variable.
46855 2007-12-25 Robert Millan <rmh@aybabtu.com>
46857 * configure.ac: Search for possible unifont.hex locations, and
46858 define UNIFONT_HEX if found.
46860 * Makefile.in (UNIFONT_HEX): Define variable.
46861 (DATA): Rename to ...
46862 (PKGLIB): ... this. Update all users.
46863 (PKGDATA): New variable.
46864 (pkgdata_IMAGES): Rename to ...
46865 (pkglib_IMAGES): ... this. Update all users.
46866 (pkgdata_MODULES): Rename to ...
46867 (pkglib_MODULES): ... this. Update all users.
46868 (pkgdata_PROGRAMS): Rename to ...
46869 (pkglib_PROGRAMS): ... this. Update all users.
46870 (pkgdata_DATA): Rename to ...
46871 (pkglib_DATA): ... this. Update all users.
46872 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46873 (unicode.pff, ascii.pff): New rules.
46874 (all-local): Add `$(PKGDATA)' dependency.
46875 (install-local): Process `$(PKGDATA)'.
46877 * util/update-grub_lib.in (font_path): Search for *.pff files in
46878 a few more locations, including `${pkgdata}'.
46880 2007-12-23 Robert Millan <rmh@aybabtu.com>
46882 Patch from Bean <bean123ch@gmail.com>:
46883 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46886 2007-12-21 Bean <bean123ch@gmail.com>
46888 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46889 (ntfscomp_mod_SOURCES): New variable.
46890 (ntfscomp_mod_CFLAGS): Likewise.
46891 (ntfscomp_mod_LDFLAGS): Likewise.
46893 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46894 (grub_probe_SOURCES): Likewise.
46895 (grub_emu_SOURCES): Likewise.
46897 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46898 (grub_emu_SOURCES): Likewise.
46900 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46901 (grub_emu_SOURCES): Likewise.
46903 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46904 (grub_emu_SOURCES): Likewise.
46906 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46907 (read_run_list): Renamed to grub_ntfs_read_run_list.
46908 (decomp_nextvcn): Moved to ntfscomp.c.
46909 (decomp_getch): Likewise.
46910 (decomp_get16): Likewise.
46911 (decomp_block): Likewise.
46912 (read_block): Likewise.
46913 (read_data): Partially moved to ntfscomp.c.
46914 (fixup): Change unsigned to grub_uint16_t.
46915 (read_mft): Change unsigned long to grub_uint32_t.
46916 (read_attr): Likewise.
46917 (read_data): Likewise.
46918 (read_run_data): Likewise.
46919 (read_run_list): Likewise.
46920 (read_mft): Likewise.
46922 * fs/ntfscomp.c: New file.
46924 * include/grub/ntfs.h: New file.
46926 2007-12-16 Robert Millan <rmh@aybabtu.com>
46928 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46929 IDE disk check, since Linux is known to support 20 IDE disks.
46930 Reported by Colin Watson.
46932 2007-12-15 Bean <bean123ch@gmail.com>
46934 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46935 (lnxboot_img_SOURCES): New variable.
46936 (lnxboot_img_ASFLAGS): Likewise.
46937 (lnxboot_img_LDFLAGS): Likewise.
46939 * boot/i386/pc/lnxboot.S: New file.
46941 2007-11-24 Pavel Roskin <proski@gnu.org>
46943 * configure.ac: Test if '--build-id=none' is supported by the
46944 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46945 objcopy to generate incorrect binary files (binutils
46946 2.17.50.0.18-1 as shipped by Fedora 8).
46947 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46948 linking, so that build ID doesn't break the test.
46950 2007-11-24 Pavel Roskin <proski@gnu.org>
46952 * include/grub/i386/time.h: use "void" in the argument list
46953 of grub_cpu_idle().
46954 * include/grub/powerpc/time.h: Likewise.
46955 * include/grub/sparc64/time.h: Likewise.
46957 2007-11-18 Christian Franke <franke@computer.org>
46959 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46960 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46961 This fixes the problem that function keys did not work in grub-emu.
46963 2007-11-18 Christian Franke <franke@computer.org>
46965 * disk/host.c (grub_host_open): Remove attribute unused from
46966 name parameter. Add check for "host". This fixes the problem
46967 that grub-emu does not find partitions.
46969 2007-11-18 Christian Franke <franke@computer.org>
46971 * util/hostfs.c (is_dir): New function.
46972 (grub_hostfs_dir): Handle missing dirent.d_type case.
46973 (grub_hostfs_read): Add missing fseek().
46974 (grub_hostfs_label): Clear label pointer. This fixes a crash
46975 of grub-emu on "ls (host)".
46977 2007-11-18 Christian Franke <franke@computer.org>
46979 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
46980 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
46981 to 64 bit boundary by default.
46983 2007-11-18 Bean <bean123ch@gmail.com>
46985 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
46986 (hexdump_mod_SOURCES): New variable.
46987 (hexdump_mod_CFLAGS): Likewise.
46988 (hexdump_mod_LDFLAGS): Likewise.
46990 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46992 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46994 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46998 * include/grub/hexdump.h: New file.
47000 * commands/hexdump.c: New file.
47002 2007-11-10 Robert Millan <rmh@aybabtu.com>
47004 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47005 in grub_outb() calls.
47006 (beep_on): Likewise.
47008 2007-11-10 Christian Franke <franke@computer.org>
47010 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47011 (grub_menu_run): Likewise.
47013 2007-11-10 Robert Millan <rmh@aybabtu.com>
47015 * include/grub/i386/efi/machine.h: New file.
47016 * include/grub/i386/linuxbios/machine.h: Likewise.
47017 * include/grub/i386/pc/machine.h: Likewise.
47018 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47019 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47021 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47022 (serial_hw_io_addr): New variable.
47023 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47024 instead of `(unsigned short *) 0x400'.
47026 2007-11-10 Bean <bean123ch@gmail.com>
47028 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47030 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47032 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47033 (vga_mod_SOURCES): Added.
47034 (vga_mod_CFLAGS): Likewise.
47035 (vga_mod_LDFLAGS): Likewise.
47037 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47039 (set_map_mask): Likewise.
47040 (set_read_map): Likewise.
47041 (set_read_address): Likewise.
47042 (vga_font): Removed variable.
47043 (get_vga_glyph): Removed function.
47044 (invalidate_char): Likewise.
47045 (write_char): Changed to use grub_font_get_glyph() for font
47047 (grub_vga_putchar): Likewise.
47048 (grub_vga_getcharwidth): Likewise.
47050 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47052 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47054 (pxeboot_img_LDFLAGS): Likewise.
47055 (diskboot_img_LDFLAGS): Likewise.
47056 (kernel_img_LDFLAGS): Likewise.
47058 2007-11-06 Robert Millan <rmh@aybabtu.com>
47060 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47061 in grub_outb() calls.
47062 (serial_hw_init): Likewise.
47064 2007-11-05 Robert Millan <rmh@aybabtu.com>
47066 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47067 spaces. Skip non-regular files.
47069 2007-11-05 Robert Millan <rmh@aybabtu.com>
47071 * kern/disk.c (grub_disk_firmware_fini)
47072 (grub_disk_firmware_is_tainted): New variables.
47074 * include/grub/disk.h (grub_disk_firmware_fini)
47075 (grub_disk_firmware_is_tainted): Likewise.
47077 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47078 (grub_disk_biosdisk_fini): ... to here.
47079 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47080 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47081 is set. Register grub_disk_biosdisk_fini() in
47082 `grub_disk_firmware_fini'.
47084 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47085 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47086 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47087 to finish existing firmware disk interface.
47089 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47090 (ata_mod_SOURCES): New variable.
47091 (ata_mod_CFLAGS): Likewise.
47092 (ata_mod_LDFLAGS): Likewise.
47094 2007-11-05 Robert Millan <rmh@aybabtu.com>
47096 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47097 (grub_ata_wait): Reimplement using grub_millisleep().
47099 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47100 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47102 2007-11-03 Marco Gerards <marco@gnu.org>
47104 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47105 (CRTC_ADDR_PORT): New macro.
47106 (CRTC_DATA_PORT): Likewise.
47107 (CRTC_CURSOR): Likewise.
47108 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47109 (CRTC_CURSOR_ADDR_LOW): Likewise.
47110 (update_cursor): New function.
47111 (grub_console_real_putchar): Call `update_cursor'.
47112 (grub_console_gotoxy): Likewise.
47113 (grub_console_cls): Set the default color when clearing the
47115 (grub_console_setcursor): Implemented.
47117 2007-11-03 Marco Gerards <marco@gnu.org>
47119 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47121 (grub_ata_pio_write): Likewise.
47123 (grub_atapi_identify): Wait after issuing an ATA command.
47124 (grub_atapi_packet): Likewise.
47125 (grub_ata_identify): Likewise.
47126 (grub_ata_readwrite): Likewise.
47128 2007-11-03 Marco Gerards <marco@gnu.org>
47130 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47131 (grub_ata_pio_write): Likewise.
47132 (grub_ata_readwrite): Use `grub_error', instead of
47133 returning `grub_errno'.
47135 2007-11-03 Marco Gerards <marco@gnu.org>
47137 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47138 grub_ata_pio_write once for every single sector, instead of for
47141 2007-10-31 Robert Millan <rmh@aybabtu.com>
47143 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47145 * conf/i386-linuxbios.rmk: New file.
47147 * kern/i386/pc/hardware.c: Likewise.
47148 * term/i386/pc/at_keyboard.c: Likewise.
47149 * term/i386/pc/vga_text.c: Likewise.
47151 * include/grub/i386/linuxbios/boot.h: Likewise.
47152 * include/grub/i386/linuxbios/console.h: Likewise.
47153 * include/grub/i386/linuxbios/init.h: Likewise.
47154 * include/grub/i386/linuxbios/kernel.h: Likewise.
47155 * include/grub/i386/linuxbios/loader.h: Likewise.
47156 * include/grub/i386/linuxbios/memory.h: Likewise.
47157 * include/grub/i386/linuxbios/serial.h: Likewise.
47158 * include/grub/i386/linuxbios/time.h: Likewise.
47160 * kern/i386/linuxbios/init.c: Likewise.
47161 * kern/i386/linuxbios/startup.S: Likewise.
47162 * kern/i386/linuxbios/table.c: Likewise.
47164 2007-10-31 Marco Gerards <marco@gnu.org>
47166 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47167 (ata_mod_SOURCES): New variable.
47168 (ata_mod_CFLAGS): Likewise.
47169 (ata_mod_LDFLAGS): Likewise.
47171 * disk/ata.c: New file.
47173 * include/grub/disk.h (grub_disk_dev_id): Add
47174 `GRUB_DISK_DEV_ATA_ID'.
47176 2007-10-31 Robert Millan <rmh@aybabtu.com>
47178 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47179 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47181 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47182 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47184 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47187 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47189 2007-10-27 Robert Millan <rmh@aybabtu.com>
47191 * include/grub/types.h (ULONG_MAX): Define macro.
47193 2007-10-22 Robert Millan <rmh@aybabtu.com>
47195 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47197 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47199 2007-10-22 Robert Millan <rmh@aybabtu.com>
47201 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47202 (pkgdata_MODULES): Add `biosdisk.mod'.
47203 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47206 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47207 (grub_biosdisk_init): Replace with ...
47208 (GRUB_MOD_INIT(biosdisk)): ... this.
47209 (grub_biosdisk_fini): Replace with ...
47210 (GRUB_MOD_FINI(biosdisk)): ... this.
47212 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47213 (grub_machine_init): Remove call to grub_biosdisk_init().
47214 (grub_machine_fini): Remove call to grub_machine_fini().
47216 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47218 2007-10-22 Robert Millan <rmh@aybabtu.com>
47220 * include/grub/time.h: New file.
47221 * include/grub/i386/time.h: Likewise.
47222 * include/grub/powerpc/time.h: Likewise.
47223 * include/grub/sparc64/time.h: Likewise.
47225 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47227 (KERNEL_MACHINE_TIME_HEADER): ... this.
47228 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47230 (KERNEL_MACHINE_TIME_HEADER): ... this.
47231 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47233 (KERNEL_MACHINE_TIME_HEADER): ... this.
47235 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47236 (grub_millisleep): New function.
47237 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47238 (grub_millisleep): New function.
47239 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47240 Remove `grub/machine/time.h' include.
47241 (grub_millisleep): New function.
47242 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47243 Remove `grub/machine/time.h' include.
47244 (grub_millisleep): New function.
47246 * include/grub/misc.h (grub_div_roundup): New function.
47248 * kern/misc.c: Include `<grub/time.h>'.
47249 (grub_millisleep_generic): New function.
47251 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47253 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47255 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47256 `machine/time.h'. Add `time.h'.
47257 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47259 2007-10-21 Robert Millan <rmh@aybabtu.com>
47261 * include/grub/misc.h (grub_max): New function.
47263 2007-10-21 Robert Millan <rmh@aybabtu.com>
47265 * util/misc.c (grub_util_info): Call fflush() before returning.
47267 2007-10-20 Robert Millan <rmh@aybabtu.com>
47269 * genmk.rb (Image): Copy `extra_flags' from here ...
47270 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47272 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47273 to `argc' and `args' arguments.
47275 2007-10-17 Robert Millan <rmh@aybabtu.com>
47277 * kern/i386/loader.S: New file.
47279 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47280 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47281 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47282 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47283 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47284 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47285 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47286 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47287 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47288 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47289 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47290 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47291 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47292 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47294 * kern/i386/realmode.S: New file.
47296 * kern/i386/pc/startup.S (protstack): Moved from here ...
47297 * kern/i386/realmode.S (protstack)... to here.
47298 * kern/i386/pc/startup.S (gdt): Moved from here ...
47299 * kern/i386/realmode.S (gdt)... to here.
47300 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47301 * kern/i386/realmode.S (prot_to_real)... to here.
47303 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47304 `kern/i386/realmode.S'.
47306 2007-10-17 Robert Millan <rmh@aybabtu.com>
47308 * include/grub/i386/loader.h: New file.
47310 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47311 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47312 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47313 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47314 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47315 * include/grub/i386/loader.h (grub_linux_prot_size)
47316 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47317 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47318 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47319 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47321 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47323 2007-10-15 Robert Millan <rmh@aybabtu.com>
47325 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47326 filesystem when dev->disk is unset.
47327 Do probe for filesystem even when dev->disk->has_partitions is set.
47328 In case a filesystem is found, always report it.
47329 In case it isn't, if dev->disk->has_partitions is set, report that
47330 a partition table was found instead of reporting that no filesystem
47331 could be identified.
47333 2007-10-12 Robert Millan <rmh@aybabtu.com>
47335 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47336 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47338 * include/grub/types.h (grub_host_to_target16): New macro.
47339 (grub_host_to_target32): Likewise.
47340 (grub_host_to_target64): Likewise.
47341 (grub_target_to_host16): Likewise.
47342 (grub_target_to_host32): Likewise.
47343 (grub_target_to_host64): Likewise.
47345 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47346 Renamed from to ...
47347 (GRUB_MOD_ALIGN): ...this. Update all users.
47349 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47350 grub_host_to_target32.
47351 Replace grub_be_to_cpu32 with grub_target_to_host32.
47352 (load_modules): Likewise.
47353 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47354 Replace grub_be_to_cpu32 with grub_target_to_host32.
47355 Replace grub_cpu_to_be16 with grub_host_to_target16.
47356 Replace grub_cpu_to_be32 grub_host_to_target32.
47358 2007-10-12 Robert Millan <rmh@aybabtu.com>
47360 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47361 * util/elf/grub-mkimage.c: ... here.
47363 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47364 `util/powerpc/ieee1275/grub-mkimage.c'.
47366 2007-10-07 Robert Millan <rmh@aybabtu.com>
47368 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47369 and make it easier to figure out.
47370 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47371 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47372 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47373 leave us with less than HEAP_MIN_SIZE total heap.
47374 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47376 2007-10-03 Robert Millan <rmh@aybabtu.com>
47378 * include/grub/i386/io.h: New file.
47379 * commands/i386/pc/play.c (inb): Removed.
47381 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47383 * term/i386/pc/serial.c (inb): Removed.
47385 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47387 * term/i386/pc/vga.c (inb): Removed.
47389 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47392 2007-10-02 Robert Millan <rmh@aybabtu.com>
47394 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47396 Reported by Marcin Kurek.
47398 2007-09-07 Robert Millan <rmh@aybabtu.com>
47400 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47401 SmartFirmware version updates (as released by Sven Luther), and avoid
47402 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47403 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47406 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47408 From Hitoshi Ozeki:
47409 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47410 when merging two regions.
47412 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47414 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47415 * normal/completion.c (grub_normal_do_completion): Likewise.
47416 Reported by Hitoshi Ozeki.
47418 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47420 Do not use devices at boot in chainloading.
47422 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47423 (boot_part_addr): Likewise.
47424 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47425 with BOOT_DRIVE and BOOT_PART_ADDR.
47426 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47427 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47429 2007-08-29 Robert Millan <rmh@aybabtu.com>
47431 Patch from Simon Peter <dn.tlp@gmx.net>:
47432 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47433 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47434 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47435 util/i386/pc/grub-setup.c_DEPENDENCIES.
47436 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47437 util/grub-probe.c_DEPENDENCIES.
47438 * conf/powerpc-ieee1275.rmk: Likewise.
47440 2007-08-28 Robert Millan <rmh@aybabtu.com>
47442 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47443 to tell grub-mkdevicemap how to name devices.
47444 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47447 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47448 util/i386/get_disk_name.c.
47449 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47450 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47451 util/ieee1275/get_disk_name.c.
47453 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47455 * DISTLIST: Add util/i386/get_disk_name.c and
47456 util/ieee1275/get_disk_name.c.
47458 * util/grub-mkdevicemap.c: Replace device naming logic with
47459 grub_util_get_disk_name() calls.
47461 2007-08-20 Robert Millan <rmh@aybabtu.com>
47463 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47464 (so that it works for both plural and singular quantities).
47466 2007-08-05 Robert Millan <rmh@aybabtu.com>
47468 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47469 so that [xz] isn't taken into account when determining order.
47471 2007-08-02 Marco Gerards <marco@gnu.org>
47473 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47474 `include/multiboot2.h', `include/grub/elfload.h',
47475 `include/multiboot.h', `include/grub/multiboot.h',
47476 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47477 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47478 `kern/elf.c', `loader/multiboot_loader.c',
47479 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47480 `loader/i386/pc/multiboot2.c',
47481 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47482 `util/i386/pc/grub-mkrescue.in'. Remove
47483 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47484 `include/grub/i386/pc/util/biosdisk.h' and
47485 `include/grub/powerpc/ieee1275/multiboot.h'.
47487 2007-08-02 Bean <bean123ch@gmail.com>
47489 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47490 (ntfs_mod_SOURCES): New variable.
47491 (ntfs_mod_CFLAGS): Likewise.
47492 (ntfs_mod_LDFLAGS): Likewise.
47494 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47495 (grub_probe_SOURCES): Likewise.
47496 (grub_emu_SOURCES): Likewise.
47498 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47499 (grub_emu_SOURCES): Likewise.
47501 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47502 (grub_emu_SOURCES): Likewise.
47504 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47506 * fs/ntfs.c: New file.
47508 2007-08-02 Bean <bean123ch@gmail.com>
47510 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47512 * file.h (grub_file): Likewise.
47514 * fshelp.h (grub_fshelp_read_file): Likewise.
47516 * util/i386/pc/grub-setup.c (setup): Likewise.
47517 (save_first_sector): Likewise.
47518 (save_blocklists): Likewise.
47520 * fs/affs.c (grub_affs_read_file): Likewise.
47522 * fs/ext2.c (grub_ext2_read_file): Likewise.
47524 * fs/fat.c (grub_fat_read_data): Likewise.
47526 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47528 * fs/hfs.c (grub_hfs_read_file): Likewise.
47530 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47532 * fs/jfs.c (grub_jfs_read_file): Likewise.
47534 * fs/minix.c (grub_minix_read_file): Likewise.
47536 * fs/sfs.c (grub_sfs_read_file): Likewise.
47538 * fs/ufs.c (grub_ufs_read_file): Likewise.
47540 * fs/xfs.c (grub_xfs_read_file): Likewise.
47542 * command/blocklist.c (read_blocklist): Likewise.
47543 (print_blocklist): Likewise.
47545 2007-08-02 Marco Gerards <marco@gnu.org>
47547 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47550 * disk/host.c: New file.
47552 * util/hostfs.c: Likewise.
47554 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47555 return `GRUB_ERR_BAD_FS'.
47556 * fs/sfs.c (grub_sfs_mount): Likewise.
47557 * fs/xfs.c (grub_xfs_mount): Likewise.
47559 * include/grub/disk.h (enum grub_disk_dev_id): Add
47560 `GRUB_DISK_DEVICE_HOST_ID'.
47562 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47564 2007-07-24 Jerone Young <jerone@gmail.com>
47566 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47567 modules for compilation.
47568 * conf/powerpc-ieee1275.rmk: Likewise.
47570 * include/multiboot.h: Move multiboot definitions to one file. Rename
47571 many definitions to not get grub specific.
47572 * include/multiboot2.h: Create header with multiboot 2 definitions.
47573 * include/grub/multiboot.h: Header for grub specific function
47574 prototypes and definitions.
47575 * include/grub/multiboot2.h: Likewise.
47576 * include/grub/multiboot_loader.h: Likewise.
47577 * include/grub/i386/pc/multiboot.h: Removed.
47578 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47580 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47581 and 2 to allow for one multiboot and module commands.
47582 * loader/multiboot2.c: Add multiboot2 functionality.
47583 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47584 and definition names.
47585 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47587 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47588 ieee1275 specific multiboot2 code.
47590 * kern/i386/pc/startup.S: Change headers and definition names for
47591 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47593 2007-07-22 Robert Millan <rmh@aybabtu.com>
47595 * geninitheader.sh: Process file specified in first parameter rather
47596 than hardcoding grub_modules_init.lst.
47597 * geninit.sh: Likewise. Also, construct header name dynamically rather
47598 than hardcoding grub_modules_init.h.
47600 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47601 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47602 grub_probe_init.[ch] and grub_setup_init.[ch].
47604 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47605 grub_modules_init.h with grub_emu_init.h.
47606 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47607 grub_probe_init.[ch] files.
47608 * conf/i386-efi.rmk: Likewise.
47609 * conf/i386-pc.rmk: Likewise.
47610 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47611 grub_setup_init.[ch] files.
47613 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47614 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47615 to initialize modules rather than a list of hardcoded functions.
47616 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47617 grub_init_all() to initialize modules rather than a list of hardcoded
47620 2007-07-22 Robert Millan <rmh@aybabtu.com>
47622 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47623 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47625 2007-07-22 Robert Millan <rmh@aybabtu.com>
47627 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47628 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47629 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47630 flag when running on SmartFirmware.
47631 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47632 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47635 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47636 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47637 rather than decreasing it.
47639 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47640 there's not enough space to do it, fail in the same way as when it
47641 can't be done because there are no partitions.
47643 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47644 when nvsetenv failed.
47646 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47648 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47649 because this rule is automatically generated.
47650 (grub-mkrescue): Removed for the same reason as above.
47652 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47654 Migrate to GNU General Public License Version 3.
47656 * COPYING: Replaced with the plain text version of GPLv3.
47658 * config.guess: Updated from gnulib.
47659 * config.sub: Likewise.
47661 * geninit.sh: Output a GPLv3 copyright notice.
47662 * geninitheader.sh: Likewise.
47663 * genmodsrc.sh: Likewise.
47664 * gensymlist.sh.in: Likewise.
47666 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47667 * boot/i386/pc/diskboot.S: Likewise.
47668 * boot/i386/pc/pxeboot.S: Likewise.
47669 * commands/blocklist.c: Likewise.
47670 * commands/boot.c: Likewise.
47671 * commands/cat.c: Likewise.
47672 * commands/cmp.c: Likewise.
47673 * commands/configfile.c: Likewise.
47674 * commands/echo.c: Likewise.
47675 * commands/help.c: Likewise.
47676 * commands/ls.c: Likewise.
47677 * commands/search.c: Likewise.
47678 * commands/terminal.c: Likewise.
47679 * commands/test.c: Likewise.
47680 * commands/videotest.c: Likewise.
47681 * commands/i386/cpuid.c: Likewise.
47682 * commands/i386/pc/halt.c: Likewise.
47683 * commands/i386/pc/play.c: Likewise.
47684 * commands/i386/pc/reboot.c: Likewise.
47685 * commands/i386/pc/vbeinfo.c: Likewise.
47686 * commands/i386/pc/vbetest.c: Likewise.
47687 * commands/ieee1275/halt.c: Likewise.
47688 * commands/ieee1275/reboot.c: Likewise.
47689 * commands/ieee1275/suspend.c: Likewise.
47690 * disk/loopback.c: Likewise.
47691 * disk/lvm.c: Likewise.
47692 * disk/raid.c: Likewise.
47693 * disk/efi/efidisk.c: Likewise.
47694 * disk/i386/pc/biosdisk.c: Likewise.
47695 * disk/ieee1275/ofdisk.c: Likewise.
47696 * font/manager.c: Likewise.
47697 * fs/affs.c: Likewise.
47698 * fs/ext2.c: Likewise.
47699 * fs/fat.c: Likewise.
47700 * fs/fshelp.c: Likewise.
47701 * fs/hfs.c: Likewise.
47702 * fs/hfsplus.c: Likewise.
47703 * fs/iso9660.c: Likewise.
47704 * fs/jfs.c: Likewise.
47705 * fs/minix.c: Likewise.
47706 * fs/sfs.c: Likewise.
47707 * fs/ufs.c: Likewise.
47708 * fs/xfs.c: Likewise.
47709 * hello/hello.c: Likewise.
47710 * include/grub/acorn_filecore.h: Likewise.
47711 * include/grub/arg.h: Likewise.
47712 * include/grub/bitmap.h: Likewise.
47713 * include/grub/boot.h: Likewise.
47714 * include/grub/cache.h: Likewise.
47715 * include/grub/device.h: Likewise.
47716 * include/grub/disk.h: Likewise.
47717 * include/grub/dl.h: Likewise.
47718 * include/grub/elfload.h: Likewise.
47719 * include/grub/env.h: Likewise.
47720 * include/grub/err.h: Likewise.
47721 * include/grub/file.h: Likewise.
47722 * include/grub/font.h: Likewise.
47723 * include/grub/fs.h: Likewise.
47724 * include/grub/fshelp.h: Likewise.
47725 * include/grub/gzio.h: Likewise.
47726 * include/grub/hfs.h: Likewise.
47727 * include/grub/kernel.h: Likewise.
47728 * include/grub/loader.h: Likewise.
47729 * include/grub/lvm.h: Likewise.
47730 * include/grub/misc.h: Likewise.
47731 * include/grub/mm.h: Likewise.
47732 * include/grub/net.h: Likewise.
47733 * include/grub/normal.h: Likewise.
47734 * include/grub/parser.h: Likewise.
47735 * include/grub/partition.h: Likewise.
47736 * include/grub/pc_partition.h: Likewise.
47737 * include/grub/raid.h: Likewise.
47738 * include/grub/rescue.h: Likewise.
47739 * include/grub/script.h: Likewise.
47740 * include/grub/setjmp.h: Likewise.
47741 * include/grub/symbol.h: Likewise.
47742 * include/grub/term.h: Likewise.
47743 * include/grub/terminfo.h: Likewise.
47744 * include/grub/tparm.h: Likewise.
47745 * include/grub/types.h: Likewise.
47746 * include/grub/video.h: Likewise.
47747 * include/grub/efi/api.h: Likewise.
47748 * include/grub/efi/chainloader.h: Likewise.
47749 * include/grub/efi/console.h: Likewise.
47750 * include/grub/efi/console_control.h: Likewise.
47751 * include/grub/efi/disk.h: Likewise.
47752 * include/grub/efi/efi.h: Likewise.
47753 * include/grub/efi/pe32.h: Likewise.
47754 * include/grub/efi/time.h: Likewise.
47755 * include/grub/i386/linux.h: Likewise.
47756 * include/grub/i386/setjmp.h: Likewise.
47757 * include/grub/i386/types.h: Likewise.
47758 * include/grub/i386/efi/kernel.h: Likewise.
47759 * include/grub/i386/efi/loader.h: Likewise.
47760 * include/grub/i386/efi/time.h: Likewise.
47761 * include/grub/i386/pc/biosdisk.h: Likewise.
47762 * include/grub/i386/pc/boot.h: Likewise.
47763 * include/grub/i386/pc/chainloader.h: Likewise.
47764 * include/grub/i386/pc/console.h: Likewise.
47765 * include/grub/i386/pc/init.h: Likewise.
47766 * include/grub/i386/pc/kernel.h: Likewise.
47767 * include/grub/i386/pc/loader.h: Likewise.
47768 * include/grub/i386/pc/memory.h: Likewise.
47769 * include/grub/i386/pc/multiboot.h: Likewise.
47770 * include/grub/i386/pc/serial.h: Likewise.
47771 * include/grub/i386/pc/time.h: Likewise.
47772 * include/grub/i386/pc/vbe.h: Likewise.
47773 * include/grub/i386/pc/vbeblit.h: Likewise.
47774 * include/grub/i386/pc/vbefill.h: Likewise.
47775 * include/grub/i386/pc/vbeutil.h: Likewise.
47776 * include/grub/i386/pc/vga.h: Likewise.
47777 * include/grub/ieee1275/ieee1275.h: Likewise.
47778 * include/grub/ieee1275/ofdisk.h: Likewise.
47779 * include/grub/powerpc/libgcc.h: Likewise.
47780 * include/grub/powerpc/setjmp.h: Likewise.
47781 * include/grub/powerpc/types.h: Likewise.
47782 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47783 * include/grub/powerpc/ieee1275/console.h: Likewise.
47784 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47785 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47786 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47787 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47788 * include/grub/powerpc/ieee1275/time.h: Likewise.
47789 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47790 * include/grub/sparc64/libgcc.h: Likewise.
47791 * include/grub/sparc64/setjmp.h: Likewise.
47792 * include/grub/sparc64/types.h: Likewise.
47793 * include/grub/sparc64/ieee1275/console.h: Likewise.
47794 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47795 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47796 * include/grub/sparc64/ieee1275/time.h: Likewise.
47797 * include/grub/util/biosdisk.h: Likewise.
47798 * include/grub/util/getroot.h: Likewise.
47799 * include/grub/util/lvm.h: Likewise.
47800 * include/grub/util/misc.h: Likewise.
47801 * include/grub/util/raid.h: Likewise.
47802 * include/grub/util/resolve.h: Likewise.
47803 * io/gzio.c: Likewise.
47804 * kern/device.c: Likewise.
47805 * kern/disk.c: Likewise.
47806 * kern/dl.c: Likewise.
47807 * kern/elf.c: Likewise.
47808 * kern/env.c: Likewise.
47809 * kern/err.c: Likewise.
47810 * kern/file.c: Likewise.
47811 * kern/fs.c: Likewise.
47812 * kern/loader.c: Likewise.
47813 * kern/main.c: Likewise.
47814 * kern/misc.c: Likewise.
47815 * kern/mm.c: Likewise.
47816 * kern/parser.c: Likewise.
47817 * kern/partition.c: Likewise.
47818 * kern/rescue.c: Likewise.
47819 * kern/term.c: Likewise.
47820 * kern/efi/efi.c: Likewise.
47821 * kern/efi/init.c: Likewise.
47822 * kern/efi/mm.c: Likewise.
47823 * kern/i386/dl.c: Likewise.
47824 * kern/i386/efi/init.c: Likewise.
47825 * kern/i386/efi/startup.S: Likewise.
47826 * kern/i386/pc/init.c: Likewise.
47827 * kern/i386/pc/lzo1x.S: Likewise.
47828 * kern/i386/pc/startup.S: Likewise.
47829 * kern/ieee1275/ieee1275.c: Likewise.
47830 * kern/powerpc/cache.S: Likewise.
47831 * kern/powerpc/dl.c: Likewise.
47832 * kern/powerpc/ieee1275/cmain.c: Likewise.
47833 * kern/powerpc/ieee1275/crt0.S: Likewise.
47834 * kern/powerpc/ieee1275/init.c: Likewise.
47835 * kern/powerpc/ieee1275/openfw.c: Likewise.
47836 * kern/sparc64/cache.S: Likewise.
47837 * kern/sparc64/dl.c: Likewise.
47838 * kern/sparc64/ieee1275/init.c: Likewise.
47839 * kern/sparc64/ieee1275/openfw.c: Likewise.
47840 * loader/efi/chainloader.c: Likewise.
47841 * loader/efi/chainloader_normal.c: Likewise.
47842 * loader/i386/efi/linux.c: Likewise.
47843 * loader/i386/efi/linux_normal.c: Likewise.
47844 * loader/i386/pc/chainloader.c: Likewise.
47845 * loader/i386/pc/chainloader_normal.c: Likewise.
47846 * loader/i386/pc/linux.c: Likewise.
47847 * loader/i386/pc/linux_normal.c: Likewise.
47848 * loader/i386/pc/multiboot.c: Likewise.
47849 * loader/i386/pc/multiboot_normal.c: Likewise.
47850 * loader/powerpc/ieee1275/linux.c: Likewise.
47851 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47852 * normal/arg.c: Likewise.
47853 * normal/cmdline.c: Likewise.
47854 * normal/command.c: Likewise.
47855 * normal/completion.c: Likewise.
47856 * normal/execute.c: Likewise.
47857 * normal/function.c: Likewise.
47858 * normal/lexer.c: Likewise.
47859 * normal/main.c: Likewise.
47860 * normal/menu.c: Likewise.
47861 * normal/menu_entry.c: Likewise.
47862 * normal/misc.c: Likewise.
47863 * normal/parser.y: Likewise.
47864 * normal/script.c: Likewise.
47865 * normal/i386/setjmp.S: Likewise.
47866 * normal/powerpc/setjmp.S: Likewise.
47867 * normal/sparc64/setjmp.S: Likewise.
47868 * partmap/acorn.c: Likewise.
47869 * partmap/amiga.c: Likewise.
47870 * partmap/apple.c: Likewise.
47871 * partmap/gpt.c: Likewise.
47872 * partmap/pc.c: Likewise.
47873 * partmap/sun.c: Likewise.
47874 * term/gfxterm.c: Likewise.
47875 * term/terminfo.c: Likewise.
47876 * term/efi/console.c: Likewise.
47877 * term/i386/pc/console.c: Likewise.
47878 * term/i386/pc/serial.c: Likewise.
47879 * term/i386/pc/vesafb.c: Likewise.
47880 * term/i386/pc/vga.c: Likewise.
47881 * term/ieee1275/ofconsole.c: Likewise.
47882 * util/biosdisk.c: Likewise.
47883 * util/console.c: Likewise.
47884 * util/genmoddep.c: Likewise.
47885 * util/getroot.c: Likewise.
47886 * util/grub-emu.c: Likewise.
47887 * util/grub-mkdevicemap.c: Likewise.
47888 * util/grub-probe.c: Likewise.
47889 * util/lvm.c: Likewise.
47890 * util/misc.c: Likewise.
47891 * util/raid.c: Likewise.
47892 * util/resolve.c: Likewise.
47893 * util/update-grub.in: Likewise.
47894 * util/update-grub_lib.in: Likewise.
47895 * util/grub.d/00_header.in: Likewise.
47896 * util/grub.d/10_hurd.in: Likewise.
47897 * util/grub.d/10_linux.in: Likewise.
47898 * util/i386/efi/grub-install.in: Likewise.
47899 * util/i386/efi/grub-mkimage.c: Likewise.
47900 * util/i386/pc/grub-install.in: Likewise.
47901 * util/i386/pc/grub-mkimage.c: Likewise.
47902 * util/i386/pc/grub-mkrescue.in: Likewise.
47903 * util/i386/pc/grub-setup.c: Likewise.
47904 * util/i386/pc/misc.c: Likewise.
47905 * util/powerpc/ieee1275/grub-install.in: Likewise.
47906 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47907 * util/powerpc/ieee1275/misc.c: Likewise.
47908 * video/bitmap.c: Likewise.
47909 * video/video.c: Likewise.
47910 * video/i386/pc/vbe.c: Likewise.
47911 * video/i386/pc/vbeblit.c: Likewise.
47912 * video/i386/pc/vbefill.c: Likewise.
47913 * video/i386/pc/vbeutil.c: Likewise.
47914 * video/readers/tga.c: Likewise.
47916 2007-07-02 Robert Millan <rmh@aybabtu.com>
47918 * conf/i386-efi.rmk: Replace obsolete reference to
47919 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47920 with util/getroot.c.
47921 * conf/powerpc-ieee1275.rmk: Likewise.
47922 * conf/sparc64-ieee1275.rmk: Likewise.
47924 * util/grub-emu.c (main): Fix unchecked pointer handling.
47926 2007-07-02 Robert Millan <rmh@aybabtu.com>
47928 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47929 invocation to fail, in order to support partition-less media.
47931 * util/i386/pc/grub-install.in: Likewise.
47933 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47934 which fs or partmap modules are needed (akin to its sister scripts).
47936 Also use grub-probe to get rid of unportable /proc/mounts check.
47938 Print the same informational message that the other scripts do, before
47941 2007-06-23 Robert Millan <rmh@aybabtu.com>
47943 * util/update-grub_lib.in (font_path): New function. Determine whether
47944 a font file can be found and, if so, echo the GRUB path to it.
47946 * util/update-grub.in: Handle multiple terminals depending on user
47947 input, platform availability and font file presence. Propagate
47948 variables of our findings to /etc/grub.d/ children.
47950 * util/grub.d/00_header.in: Handle multiple terminals, based on
47951 environment setup by update-grub.
47953 2007-06-23 Robert Millan <rmh@aybabtu.com>
47955 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47957 2007-06-21 Robert Millan <rmh@aybabtu.com>
47959 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47960 indicate end of data section in kernel image.
47961 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47962 GRUB_KERNEL_MACHINE_DATA_END.
47964 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47966 * kern/i386/efi/startup.S: Likewise.
47968 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47969 during image generation. Implement --prefix option to override this
47971 * util/i386/efi/grub-mkimage.c: Likewise.
47973 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47974 code to make path relative to its root into a separate function.
47976 * util/i386/pc/grub-install.in: Use newly provided
47977 make_system_path_relative_to_its_root() to convert ${grubdir}, then
47978 pass the result to grub-install --prefix.
47980 2007-06-13 Robert Millan <rmh@aybabtu.com>
47982 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
47983 DEFAULT_DEVICE_MAP.
47984 * util/grub-emu.c: Use above definitions from misc.h instead of
47986 * util/grub-mkdevicemap.c: Likewise.
47987 * util/i386/pc/grub-setup.c: Likewise.
47988 * util/grub-probe.c: Likewise.
47989 (probe): Abort with grub_util_error() when either
47990 grub_guess_root_device or grub_util_get_grub_dev fails.
47992 2007-06-12 Robert Millan <rmh@aybabtu.com>
47994 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
47995 "pager" assignment.
47996 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
47998 * util/grub-probe.c (probe): Likewise for "drive_name".
48000 2007-06-11 Robert Millan <rmh@aybabtu.com>
48002 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48003 not just the cdrom one.
48005 2007-06-11 Robert Millan <rmh@aybabtu.com>
48007 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48008 Add --pkglibdir=DIR option to override pkglibdir.
48009 Mention --image-type=TYPE in help output.
48010 Fix --grub-mkimage (it was a no-op).
48011 Abort gracefully when no parameter is given.
48013 2007-06-11 Robert Millan <rmh@aybabtu.com>
48015 * util/i386/pc/grub-mkrescue.in: New file.
48016 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48017 * Makefile.in: Handle bin_SCRIPTS.
48019 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48021 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48022 list of video modes.
48024 2007-06-06 Robert Millan <rmh@aybabtu.com>
48026 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48027 file doesn't exist, or if it is in a filesystem grub can't read.
48029 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48030 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48031 header comment to fit in 80 columns when the variables are resolved.
48033 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48034 could be identified by update-grub. Remove redundant check for
48035 unifont.pff existence (since convert_system_path_to_grub_path now
48038 2007-06-04 Robert Millan <rmh@aybabtu.com>
48040 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48042 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48044 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48046 2007-06-04 Robert Millan <rmh@aybabtu.com>
48048 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48050 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48051 grub_apple_partition_map_fini.
48054 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48055 to access >2 TiB disks).
48057 Print disk->total_sectors with %llu instead of %lu, since this
48058 variable is always 64-bit (prevents wrong disk size from being displayed
48059 on either >2 TiB disk or big-endian CPU).
48061 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48062 into a generic case that supports all (sane) partition maps.
48064 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48067 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48068 and grub_apple_partition_map_fini() after that.
48070 2007-06-01 Robert Millan <rmh@aybabtu.com>
48072 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48074 * util/grub.d/00_header.in: Only enable gfxterm when
48075 convert_system_path_to_grub_path() succeeds.
48077 2007-05-20 Robert Millan <rmh@aybabtu.com>
48079 * util/update-grub_lib.in: New file.
48080 * DISTLIST: Add update-grub_lib.in.
48081 * conf/common.rmk: Generate update-grub_lib and install it in
48083 * Makefile.in: Add install routine for $(lib_DATA).
48085 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48086 function provided by update-grub_lib to support arbitrary paths of
48088 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48089 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48091 2007-05-19 Robert Millan <rmh@aybabtu.com>
48093 * commands/i386/cpuid.c: New module.
48094 * DISTLIST: Add it.
48095 * conf/i386-efi.rmk: Enable cpuid.mod.
48096 * conf/i386-pc.rmk: Likewise.
48098 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48100 * kern/disk.c (grub_disk_read): Check return value of
48103 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48105 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48107 * disk/raid.c (grub_raid_open): Likewise.
48109 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48111 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48112 stack instead of on the heap.
48114 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48115 before doing a read on it.
48117 * configure.ac: Only use -fno-stack-protector for the target
48120 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48122 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48123 __attribute_ ((unused)) to mode_type argument.
48125 * util/getroot.c (grub_guess_root_device): Fix #endif.
48127 * kern/misc.c (memcmp): Fix prototype.
48129 * include/grub/partition.h [GRUB_UTIL]
48130 (grub_gpt_partition_map_init): Add prototype.
48131 (grub_gpt_partition_map_fini): Likewise.
48133 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48134 at the right place.
48136 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48137 (grub_fat_read_data): Likewise.
48138 (grub_fat_find_dir): Likewise.
48140 * font/manager.c (find_glyph): Make table a const.
48141 (grub_font_get_glyph): Remove bitmap from if statement.
48143 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48145 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48146 code, first search for device in /dev/mapper, then in /dev.
48147 (grub_util_get_grub_dev): New function.
48148 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48150 * util/grub-probe.c (probe): Remove check for RAID, call
48151 grub_util_get_grub_dev() instead of
48152 grub_util_biosdisk_get_grub_dev().
48153 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48154 grub_util_biosdisk_get_grub_dev().
48155 * util/i386/pc/grub-setup.c (main): Likewise.
48157 2007-05-16 Robert Millan <rmh@aybabtu.com>
48159 * DISTLIST: Update for the latest changes.
48160 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48161 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48162 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48163 grub/util/biosdisk.h.
48164 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48165 grub/util/biosdisk.h.
48167 2007-05-16 Robert Millan <rmh@aybabtu.com>
48169 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48171 2007-05-16 Robert Millan <rmh@aybabtu.com>
48173 * util/i386/efi/grub-install.in: New.
48174 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48175 newly added grub-install.
48176 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48178 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48179 grub/util/biosdisk.h.
48180 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48181 grub/util/biosdisk.h.
48183 2007-05-16 Robert Millan <rmh@aybabtu.com>
48185 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48186 * include/grub/util/biosdisk.h: ... here.
48187 * util/i386/pc/biosdisk.c: Moved to ...
48188 * util/biosdisk.c: ... here.
48189 * util/i386/pc/getroot.c: Moved to ...
48190 * util/getroot.c: ... here.
48191 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48192 * util/grub-mkdevicemap.c: ... here.
48193 * util/i386/pc/grub-probe.c: Moved to ...
48194 * util/grub-probe.c: ... here.
48196 2007-05-15 Robert Millan <rmh@aybabtu.com>
48198 * util/update-grub.in: Remove duplicated line in grub.cfg header
48201 2007-05-13 Robert Millan <rmh@aybabtu.com>
48203 * util/update-grub.in: Fix a few assumptions about the devices holding
48204 /, /boot and /boot/grub being the same.
48205 * util/grub.d/00_header.in: Likewise.
48206 * util/grub.d/10_hurd.in: Likewise.
48207 * util/grub.d/10_linux.in: Likewise.
48209 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48210 patterns. Use that to define the `.old' suffix as older than `'.
48212 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48214 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48215 the grub.cfg header message.
48217 2007-05-11 Robert Millan <rmh@aybabtu.com>
48219 * util/update-grub.in: Create device.map if it doesn't already exist,
48220 before attempting to run grub-probe.
48221 Check for grub-probe and grub-mkdevicemap with the same code
48222 grub-install is using.
48225 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48227 * Makefile.in: Add the datarootdir autoconf variable.
48229 2007-05-09 Robert Millan <rmh@aybabtu.com>
48231 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48232 fail gracefully if dev->disk->partition == NULL.
48234 2007-05-07 Robert Millan <rmh@aybabtu.com>
48236 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48237 determine partition map module.
48238 * util/i386/pc/grub-install.in: Use this feature to decide which
48239 partition module to load, instead of hardcoding pc and gpt.
48241 2007-05-07 Robert Millan <rmh@aybabtu.com>
48243 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48244 source directory differs from build directory.
48246 2007-05-05 Robert Millan <rmh@aybabtu.com>
48248 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48251 2007-05-05 Robert Millan <rmh@aybabtu.com>
48253 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48255 2007-05-05 Robert Millan <rmh@aybabtu.com>
48257 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48258 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48260 2007-05-05 Robert Millan <rmh@aybabtu.com>
48262 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48263 (grub_probe_SOURCES): Likewise.
48264 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48265 GPT and initialize dos_part and bsd_part accordingly.
48266 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48268 (main): Activate gpt module for use during partition identification,
48269 and deactivate it afterwards.
48270 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48271 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48272 partition identification, and deactivate it afterwards.
48274 2007-05-05 Robert Millan <rmh@aybabtu.com>
48276 * term/i386/pc/console.c (grub_console_fini): Call
48277 grub_term_set_current() before grub_term_unregister().
48279 2007-05-04 Robert Millan <rmh@aybabtu.com>
48281 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48282 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48283 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48284 and update-grub_DATA.
48285 * conf/common.rmk: Build and install update-grub components.
48286 * conf/common.mk: Regenerate.
48287 * util/update-grub.in: New. Core of update-grub.
48288 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48289 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48290 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48291 * util/grub.d/README: New. Document grub.d directory layout.
48293 2007-05-01 Robert Millan <rmh@aybabtu.com>
48295 * util/grub-emu.c: Move initialization functions
48296 grub_util_biosdisk_init() and grub_init_all() before
48297 grub_util_biosdisk_get_grub_dev(), which relies on them.
48299 2007-04-19 Robert Millan <rmh@aybabtu.com>
48301 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48304 2007-04-18 Jerone Young <jerone@gmail.com>
48306 * kernel/elf.c: Add missing parenthesis for conditional statement
48309 2007-04-10 Jerone Young <jerone@gmail.com>
48311 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48312 continue on and look for device node with real device name.
48314 2007-04-10 Jerone Young <jerone@gmail.com>
48316 * configure.ac: Add argument for autoconf to use transformation
48318 * Makefile.in: Add autoconf package transformation code.
48319 * util/i386/pc/grub-install.in: Likewise.
48320 * util/powerpc/ieee1275/grub-install.in: Likewise.
48322 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48324 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48325 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48326 (EXT2_REVISION): Likewise.
48327 (EXT2_INODE_SIZE): Likewise.
48328 (struct grub_ext2_block_group): Added a missing member
48330 (grub_ext2_read_inode): Divide by the inode size in a superblock
48331 instead of 128 to obtain INODES_PER_BLOCK.
48332 Use the macro EXT2_INODE_SIZE instead of directly using
48333 SBLOCK->INODE_SIZE.
48335 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48337 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48338 superblock instead of the structure size to compute an
48339 offset. This fixes the problem that GRUB could not read a
48340 filesystem when inode size is different from 128-byte.
48342 2007-03-05 Marco Gerards <marco@gnu.org>
48344 * normal/main.c (read_config_file): When "menu" is not set, create
48345 an initial context.
48347 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48349 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48350 (HEAP_LIMIT): New macro.
48351 (grub_claim_heap): Claim memory up to `heaplimit'.
48353 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48355 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48356 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48357 (_start): Likewise.
48358 (grub_arch_modules_addr): Return address after `_end'.
48359 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48360 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48361 (add_segments): Calculate `_end' from phdr size and location.
48362 (ALIGN_UP): Moved to ...
48363 * include/grub/misc.h: here.
48364 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48366 (GRUB_IEEE1275_MODULE_BASE): Removed.
48368 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48370 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48373 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48375 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48377 (grub_elf64_load_hook_t): Likewise.
48378 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48381 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48383 * kern/mm.c: Update copyright.
48384 (grub_mm_debug): Correct syntax error.
48385 (grub_mm_dump_free): New function.
48386 (grub_debug_free): Call `grub_free'.
48387 * include/grub/mm.h: Update copyright.
48388 (grub_mm_dump_free): Add declaration.
48390 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48392 * include/grub/ieee1275/ieee1275.h: Update copyright.
48393 * kern/powerpc/ieee1275/init.c: Likewise.
48394 * kern/powerpc/ieee1275/openfw.c: Likewise.
48396 * loader/powerpc/ieee1275/linux.c: Likewise.
48397 * include/grub/elfload.h: Likewise.
48398 * kern/elf.c: Likewise.
48399 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48401 (grub_elf64_load): Likewise.
48402 (grub_elf32_load_segment): Move to a nested function.
48403 (grub_elf64_load_segment): Likewise.
48405 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48407 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48409 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48410 (grub_heap_len): Likewise.
48411 (HEAP_SIZE): New macro.
48412 (grub_claim_heap): New function.
48413 (grub_machine_init): Don't claim heap directly. Call
48415 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48416 (grub_available_iterate): New function.
48418 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48420 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48421 * configure.ac: Use it for testing the HOST and TARGET compilers.
48423 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48425 * Makefile.in (enable_grub_emu): New variable.
48426 * configure.ac (--enable-grub-emu): New option.
48427 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48428 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48429 * conf/i386-pc.rmk: Likewise.
48430 * conf/powerpc-ieee1275.rmk: Likewise.
48431 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48433 2006-12-12 Marco Gerards <marco@gnu.org>
48435 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48437 * kern/env.c (grub_env_unset): Don't free the member `value' when
48438 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48441 * normal/main.c (current_menu): Removed.
48442 (free_menu): Unset the `menu' environment variable.
48443 (grub_normal_menu_addentry): Make use of the environment variable
48444 `menu', instead of using the global `current_menu'. Allocate
48445 memory for the sourcecode of this entry.
48446 (read_config_file): New argument `nested', changed all callers.
48447 Only in the case of a new context, initialize a new menu. Set the
48448 `menu' environment variable.
48449 (grub_normal_execute): Don't set and unset the environment
48450 variable `menu' here anymore. Only free the menu when leaving the
48453 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48456 2006-12-11 Marco Gerards <marco@gnu.org>
48458 * normal/menu_entry.c (run): Fix off by one bug so the last line
48459 is executed. Move the loader check to outside the loop.
48461 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48463 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48465 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48467 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48468 the number of sectors. Reported by Andrey Shuvikov
48469 <mr_hyro@yahoo.com>.
48471 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48473 * kern/disk.c (grub_disk_read): When there is a read error, always
48474 try to read only the necessary data.
48476 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48478 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48480 [GRUB_UTIL] (grub_raid_fini): Likewise.
48481 [GRUB_UTIL] (grub_lvm_init): Likewise.
48482 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48483 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48484 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48485 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48486 and grub_raid_fini().
48488 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48490 * include/grub/types.h (__unused): Rename to UNUSED.
48491 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48492 (grub_elf64_size): Likewise.
48494 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48496 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48497 grub_error_push and grub_error_pop in the error-handling path.
48498 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48501 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48503 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48504 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48506 (kernel_elf_SOURCES): Likewise.
48507 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48508 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48509 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48510 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48511 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48512 (elf_mod_SOURCES): New variable.
48513 (elf_mod_CFLAGS): Likewise.
48514 (elf_mod_LDFLAGS): Likewise.
48515 * include/grub/types.h (__unused): New macro.
48516 * include/grub/elfload.h: New file.
48517 * kern/elf.c: Likewise.
48518 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48519 (ELF32_LOADMASK): New macro.
48520 (ELF64_LOADMASK): Likewise.
48521 (vmlinux): Removed.
48522 (grub_linux_load32): New function.
48523 (grub_linux_load64): Likewise.
48524 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48525 Use grub_elf_t instead of grub_file_t.
48527 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48529 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48530 `catch_result' to struct set_color_args.
48532 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48534 * normal/menu.c: Include grub/script.h.
48535 * normal/menu_entry.c: Likewise.
48536 * include/grub/normal.h: Do not include grub/script.h.
48538 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48540 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48542 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48544 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48546 (grub_disk_close): Print debug messages when closing a disk.
48547 (grub_disk_read): Print debug messages when disk read fails.
48548 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48550 * kern/partition.c: Include misc.h.
48551 (grub_partition_iterate): Print debug messages when detecting
48554 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48556 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48558 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48560 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48562 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48563 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48565 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48567 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48568 instead of sizeof(lv). Patch by Michael Guntsche.
48570 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48572 * disk/lvm.c: Rename VGS to VG_LIST.
48573 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48574 (grub_lvm_open): Likewise.
48575 Thanks to Michael Guntsche for finding this bug.
48577 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48579 * configure.ac (AC_INIT): Bumped to 1.95.
48581 2006-10-14 Robert Millan <rmh@aybabtu.com>
48583 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48584 with "/dev/.static/dev/md".
48586 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48588 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48589 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48590 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48591 DRIVE_NAME are always freed.
48593 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48594 DOS_PART, as a DOS partition is counted from one instead of zero
48595 now. Reported by Robert Millan.
48597 2006-10-14 Robert Millan <rmh@aybabtu.com>
48599 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48600 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48601 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48602 string returned by grub_guess_root_device.
48603 * util/i386/pc/grub-setup.c: Likewise.
48604 * util/i386/pc/grub-probefs.c: Likewise.
48606 * util/i386/pc/grub-probefs.c: Rename to ...
48607 * util/i386/pc/grub-probe.c: ... this.
48608 * DISTLIST: Remove grub-probefs, add grub-probe.
48609 * conf/i386-efi.rmk: Likewise.
48610 * conf/i386-pc.rmk: Likewise.
48611 * util/i386/pc/grub-install.in: Likewise.
48613 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48614 choose which information we want to print.
48616 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48618 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48619 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48620 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48621 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48622 video/readers/tga.c and video/i386/pc/vbeutil.c.
48624 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48626 Added support for RAID and LVM.
48628 * disk/lvm.c: New file.
48629 * disk/raid.c: Likewise.
48630 * include/grub/lvm.h: Likewise.
48631 * include/grub/raid.h: Likewise.
48632 * include/grub/util/lvm.h: Likewise.
48633 * include/grub/util/raid.h: Likewise.
48634 * util/lvm.c: Likewise.
48635 * util/raid.c: Likewise.
48637 * include/grub/disk.h (grub_disk_dev_id): Add
48638 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48639 (grub_disk_get_size): New prototype.
48640 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48641 returns a partition.
48642 (grub_disk_get_size): New function.
48644 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48645 verbatim if grub_install_dos_part is -2.
48647 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48650 * util/i386/pc/grub-setup.c (setup): New argument
48651 MUST_EMBED. Force embedding of GRUB when the argument is
48652 true. Close FILE before returning.
48653 (main): Add support for RAID and LVM.
48655 * conf/common.rmk: Add RAID and LVM modules.
48656 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48658 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48660 * kern/misc.c (grub_strstr): New function.
48661 * include/grub/misc.h (grub_strstr): New prototype.
48663 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48665 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48667 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48669 * kern/misc.c (grub_strtoull): Guess the base only if not
48672 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48674 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48677 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48679 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48681 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48682 Remove `flags' argument. All callers changed.
48683 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48684 (IEEE1275_IHANDLE_INVALID): New variable.
48685 (IEEE1275_CELL_INVALID): New variable.
48686 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48687 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48688 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48689 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48690 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48691 codes from Open Firmware. All callers updated.
48692 (grub_ieee1275_next_property): Directly return Open Firmware return
48694 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48695 Standardize error checking from `grub_ieee1275_get_property'.
48696 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48697 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48699 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48701 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48702 `instance_to_package_args' to `instance_to_path_args'.
48704 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48705 `grub_ieee1275_chosen'.
48707 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48708 `grub_ieee1275_interpret'.
48710 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48712 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48714 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48716 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48717 (__cmpdi): Likewise.
48719 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48720 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48723 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48725 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48726 to type `grub_ssize_t'.
48727 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48729 2006-09-22 Marco Gerards <marco@gnu.org>
48731 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48734 2006-09-22 Marco Gerards <marco@gnu.org>
48736 * commands/echo.c: New file.
48738 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48740 * conf/common.rmk (echo_mod_SOURCES): New variable.
48741 (echo_mod_CFLAGS): Likewise.
48742 (echo_mod_LDFLAGS): Likewise.
48744 2006-09-22 Marco Gerards <marco@gnu.org>
48746 * normal/main.c (get_line): Malloc memory instead of using
48747 preallocated memory. Removed the arguments `cmdline' and
48748 `max_len'. Updated all callers.
48750 2006-09-22 Marco Gerards <marco@gnu.org>
48752 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48753 (normal_mod_DEPENDENCIES): Likewise.
48755 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48756 (normal_mod_DEPENDENCIES): Likewise.
48758 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48760 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48762 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48764 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48765 (normal_mod_DEPENDENCIES): Likewise.
48766 * conf/i386-pc.mk: Regenerate.
48767 * conf/i386-efi.mk: Likewise
48768 * conf/common.mk: Likewise.
48769 * conf/powerpc-ieee1275.mk: Likewise.
48770 * conf/sparc64-ieee1275.mk: Likewise.
48772 2006-09-22 Robert Millan <rmh@aybabtu.com>
48774 Sync with i386 version.
48775 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48776 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48778 2006-09-21 Robert Millan <rmh@aybabtu.com>
48780 Import from GRUB Legacy (lib/device.c):
48781 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48782 (init_device_map) [__linux__]: Add support for I2O devices.
48784 2006-09-14 Marco Gerards <marco@gnu.org>
48786 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48789 2006-09-14 Robert Millan <rmh@aybabtu.com>
48791 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48794 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48796 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48797 before adding it to device.map.
48799 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48801 * genmk.rb: Let GCC generate dependencies the first time it
48802 compiles a file; using the -MD option.
48803 * conf/common.mk: Regenerate.
48804 * conf/i386-pc.mk: Likewise.
48805 * conf/i386-efi.mk: Likewise.
48806 * conf/powerpc-ieee1275.mk: Likewise.
48807 * conf/sparc64-ieee1275.mk: Likewise.
48809 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48811 Move the prototypes of grub_setjmp and grub_longjmp to
48812 cpu/setjmp.h, so that each architecture may specify different
48815 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48816 (grub_longjmp): Likewise.
48817 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48818 (grub_longjmp): Likewise.
48819 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48820 (grub_longjmp): Likewise.
48822 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48823 [!GRUB_UTIL] (grub_longjmp): Removed.
48825 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48827 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48828 "color!" method does not return any value.
48830 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48832 * include/grub/bitmap.h: New file.
48834 * include/grub/i386/pc/vbeutil.h: Likewise.
48836 * video/bitmap.c: Likewise.
48838 * video/readers/tga.c: Likewise.
48840 * video/i386/pc/vbeutil.c: Likewise.
48842 * commands/videotest.c: Code cleanup and updated to reflect to new
48845 * term/gfxterm.c: Likewise.
48847 * video/video.c: Likewise.
48849 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48850 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48851 (bitmap_mod_SOURCES): New entry.
48852 (bitmap_mod_CFLAGS): Likewise.
48853 (bitmap_mod_LDFLAGS): Likewise.
48854 (tga_mod_SOURCES): Likewise.
48855 (tga_mod_CFLAGS): Likewise.
48856 (tga_mod_LDFLAGS): Likewise.
48858 * include/grub/video.h (grub_video_blit_operators): New enum type.
48859 (grub_video_render_target): Changed as forward declaration and moved
48860 actual definition to be video driver specific.
48861 (grub_video_adapter.blit_bitmap): Added blitting operator.
48862 (grub_video_adapter.blit_render_target): Likewise.
48863 (grub_video_blit_bitmap): Likewise.
48864 (grub_video_blit_render_target): Likewise.
48866 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48867 driver specific render target definition.
48868 (grub_video_vbe_map_rgba): Added driver internal helper.
48869 (grub_video_vbe_unmap_color): Updated to use
48870 grub_video_i386_vbeblit_info.
48871 (grub_video_vbe_get_video_ptr): Likewise.
48873 * include/grub/i386/pc/vbeblit.h
48874 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48875 grub_video_i386_vbeblit_info.
48876 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48877 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48878 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48879 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48880 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48881 (grub_video_i386_vbeblit_index_index): Likewise.
48882 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48883 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48884 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48885 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48887 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48890 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48891 include/grub/i386/pc/vbeblit.h.
48893 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48894 Updated to use grub_video_i386_vbeblit_info.
48895 (grub_video_i386_vbefill_R8G8B8): Likewise.
48896 (grub_video_i386_vbefill_index): Likewise.
48897 (grub_video_i386_vbefill): Added generic filler.
48899 * video/i386/pc/vbefill.c: Updated to reflect changes on
48900 include/grub/i386/pc/vbefill.h.
48902 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48903 grub_video_i386_vbeblit_info.
48904 (grub_video_vbe_unmap_color): Likewise.
48905 (grub_video_vbe_blit_glyph): Likewise.
48906 (grub_video_vbe_scroll): Likewise.
48907 (grub_video_vbe_draw_pixel): Removed function.
48908 (grub_video_vbe_get_pixel): Likewise.
48909 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48910 updated code to use it.
48911 (common_blitter): Added common blitter for render target and bitmap.
48912 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48913 (grub_video_vbe_blit_render_target): Likewise.
48915 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48917 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48918 is in text mode if there is no console control protocol instance
48921 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48923 * include/grub/video.h: Code cleanup.
48925 * include/grub/i386/pc/vbe.h: Likewise.
48927 * video/i386/pc/vbe.c: Likewise.
48929 * video/i386/pc/vbeblit.c: Likewise.
48931 * video/i386/pc/vbefill.c: Likewise.
48933 * video/video.c: Likewise. Also added more comments.
48935 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48937 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48938 (struct grub_biosdisk_dap): Likewise.
48940 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48941 linkage settings for all functions.
48943 2006-07-12 Marco Gerards <marco@gnu.org>
48945 * configure.ac (--enable-mm-debug): Fix typo.
48947 * genkernsyms.sh.in: Use proper quoting for `CC'.
48949 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48951 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48952 (normal_mod_ASFLAGS): Remove "-m32".
48954 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48956 * util/misc.c: Include config.h.
48957 [!HAVE_MEMALIGN]: Do not include malloc.h.
48958 (grub_memalign): Use posix_memalign, if present. Then, use
48959 memalign, if present. Otherwise, emit an error.
48961 * util/grub-emu.c: Do not include malloc.h.
48963 * include/grub/util/misc.h: Include unistd.h. This is required for
48964 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48965 D. Eades III <hde@foobar-qux.org>.
48967 * configure.ac (AC_GNU_SOURCE): Added.
48968 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48971 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48973 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48974 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48976 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48978 * include/grub/types.h (grub_host_addr_t): Rename to
48979 grub_target_addr_t.
48980 (grub_host_off_t): Rename to grub_target_off_t.
48981 (grub_host_size_t): Rename to grub_target_size_t.
48982 (grub_host_ssize_t): Rename to grub_target_ssize_t.
48983 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
48985 * include/grub/kernel.h (struct grub_module_header): Change type
48986 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
48987 (grub_module_info): Likewise.
48989 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48991 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
48992 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
48993 Velazquez <jesus.velazquez@gmail.com>.
48995 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48997 Count partitions from 1 instead of 0 in the string representation
48998 of partitions. Still use 0-based internally.
49000 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49001 (sun_partition_map_iterate): Use grub_partition_t instead of
49002 struct grub_partition *. Cast DESC->START_CYLINDER to
49003 grub_uint64_t after converting the endian.
49004 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49005 (sun_partition_map_get_name): Add 1 to P->INDEX.
49007 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49009 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49011 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49012 zero instead of one.
49013 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49014 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49016 * partmap/apple.c (apple_partition_map_iterate): Change the type
49017 of POS to unsigned.
49018 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49019 (apple_partition_map_get_name): Add 1 into P->INDEX.
49021 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49022 of POS to unsigned.
49023 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49024 calculate the offset of a partition.
49025 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49026 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49028 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49029 SECTOR to grub_disk_addr_t.
49030 (acorn_partition_map_iterate): Likewise.
49031 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49032 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49034 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49036 * kern/i386/pc/init.c (make_install_device): Add 1 into
49037 GRUB_INSTALL_DOS_PART.
49039 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49042 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49044 Clean up the code to support 64-bit addressing in disks and
49045 files. This change is not enough for filesystems yet.
49047 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49048 type of "start" to grub_uint64_t.
49049 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49050 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49051 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49054 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49055 to grub_disk_addr_t.
49057 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49060 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49062 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49065 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49067 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49069 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49071 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49072 to grub_off_t, to detect an error from grub_file_seek.
49073 (grub_multiboot_load_elf32): Likewise.
49075 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49076 maximum unsigned long value when an overflow is detected.
49077 (grub_strtoull): New function.
49078 (grub_divmod64): Likewise.
49079 (grub_lltoa): use grub_divmod64.
49081 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49083 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49084 the pointer to next character. Use grub_strtoull instead of
49086 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49087 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49090 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49091 return value is signed.
49092 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49093 test if OFFSET is less than zero, as OFFSET is unsigned now.
49095 * kern/disk.c (struct grub_disk_cache): Change the type of
49096 "sector" to grub_disk_addr_t.
49097 (grub_disk_cache_get_index): Change the type of SECTOR to
49098 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49099 unsigned after shifting.
49100 (grub_disk_cache_invalidate): Change the type of SECTOR to
49102 (grub_disk_cache_unlock): Likewise.
49103 (grub_disk_cache_store): Likewise.
49104 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49105 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49106 grub_disk_addr_t and grub_uint64_t, respectively.
49107 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49108 body, as the value of OFFSET is tweaked by
49109 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49110 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49112 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49113 body, as the value of OFFSET is tweaked by
49114 grub_disk_check_range. Change the types of LEN and N to
49117 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49118 and "saved_offset" to grub_off_t.
49119 (test_header): Cast BUF to char *.
49120 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49122 (grub_gzio_read): Change the types of OFFSET and SIZE to
49123 grub_off_t and grub_size_t, respectively.
49125 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49127 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49128 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49129 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49130 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49131 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49133 * include/grub/types.h (grub_off_t): Unconditionally set to
49135 (grub_disk_addr_t): Changed to grub_uint64_t.
49137 * include/grub/partition.h (struct grub_partition): Change the
49138 types of "start", "len" and "offset" to grub_disk_addr_t,
49139 grub_uint64_t and grub_disk_addr_t, respectively.
49140 (grub_partition_get_start): Return grub_disk_addr_t.
49141 (grub_partition_get_len): Return grub_uint64_t.
49143 * include/grub/misc.h (grub_strtoull): New prototype.
49144 (grub_divmod64): Likewise.
49146 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49147 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49148 grub_off_t, respectively.
49149 All callers and references changed.
49151 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49152 grub_size_t in "read".
49153 All callers and references changed.
49155 * include/grub/file.h (struct grub_file): Change the types of
49156 "offset" and "size" to grub_off_t and grub_off_t,
49157 respectively. Change the type of SECTOR to grub_disk_addr_t in
49159 (grub_file_read): Change the type of LEN to grub_size_t.
49160 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49162 (grub_file_size): Return grub_off_t.
49163 (grub_file_tell): Likewise.
49164 All callers and references changed.
49166 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49167 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49169 (struct grub_disk): Change the type of "total_sectors" to
49170 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49172 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49173 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49174 (grub_disk_write): Likewise.
49175 All callers and references changed.
49177 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49178 char * for grub_strncmp to silence gcc.
49179 (grub_iso9660_mount): Likewise.
49180 (grub_iso9660_mount): Likewise.
49181 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49183 (grub_iso9660_iterate_dir): Likewise.
49184 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49186 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49187 LEN to grub_disk_addr_t and grub_size_t, respectively.
49189 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49191 * fs/jfs.c (grub_jfs_read_file): Likewise.
49193 * fs/minix.c (grub_jfs_read_file): Likewise.
49195 * fs/sfs.c (grub_jfs_read_file): Likewise.
49197 * fs/ufs.c (grub_jfs_read_file): Likewise.
49199 * fs/xfs.c (grub_jfs_read_file): Likewise.
49201 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49202 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49205 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49206 BLKNR to -1 instead of returning GRUB_ERRNO.
49207 (grub_ext2_read_file): Change the types of SECTOR and
49208 LEN to grub_disk_addr_t and grub_size_t, respectively.
49210 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49211 LEN to grub_disk_addr_t and grub_size_t, respectively.
49213 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49216 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49217 string. Do not cast SECTOR explicitly.
49219 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49220 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49221 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49222 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49223 over 2TB and LBA mode is not supported, raise an error.
49224 (get_safe_sectors): New function.
49225 (grub_biosdisk_read): Use get_safe_sectors.
49226 (grub_biosdisk_write): Likewise.
49228 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49229 (grub_efidisk_write): Likewise.
49231 * disk/loopback.c (delete_loopback): Cosmetic changes.
49232 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49234 (grub_loopback_open): Likewise.
49235 (grub_loopback_read): Likewise. Also, change the type of POS to
49236 grub_off_t, and fix the usage of grub_memset.
49238 * commands/i386/pc/play.c: Include grub/machine/time.h.
49240 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49243 * commands/configfile.c: Include grub/env.h.
49245 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49246 GRUB_ERRNO directly instead. Change the type of POS to
49247 grub_off_t. Follow the coding standard.
49249 * commands/blocklist.c: Include grub/partition.h.
49250 (grub_cmd_blocklist): Return an error if the underlying device is
49251 not a disk. Take the starting sector of a partition into account,
49252 if a partition is used.
49254 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49256 (lba_mode): Support 64-bit addresses.
49257 (chs_mode): Likewise.
49258 (copy_buffer): Adapted to the new offsets of a length field and a
49260 (blocklist_default_start): Allocate 64-bit space.
49262 * boot/i386/pc/boot.S (force_lba): Removed.
49263 (boot_drive): Moved to under KERNEL_SECTOR.
49264 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49266 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49268 (lba_mode): Refactored to support a 64-bit address. More size
49270 (setup_sectors): Likewise.
49272 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49274 * DISTLIST: Added include/grub/i386/linux.h. Removed
49275 include/grub/i386/pc/linux.h
49277 * configure.ac (AC_INIT): Bumped to 1.94.
49279 * config.guess: Updated from gnulib.
49280 * config.sub: Likewise.
49281 * install-sh: Likewise.
49282 * mkinstalldirs: Likewise.
49284 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49286 * conf/common.rmk (grub_modules_init.lst): Depended on
49287 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49290 * genmk.rb (PModule::rule): Reverted the previous change.
49292 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49294 * conf/common.rmk (grub_modules_init.lst): Depends on
49295 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49296 that the target does not exist before producing.
49297 (grub_modules_init.h): Remove the target before generating.
49298 (grub_emu_init.c): Likewise.
49300 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49302 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49304 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49305 for the target-specific tests. Make sure that we also have the
49306 up-to-date target variables for those tests.
49308 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49310 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49311 (PModule::rule): Likewise.
49313 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49315 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49316 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49317 target-specific flags should be prefixed.
49318 (PModule::rule): Likewise.
49320 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49322 * configure.ac (CMP): Check if cmp is available explicitly.
49324 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49326 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49327 (target_cpu): New variable.
49328 (pkglibdir): Use target_cpu instead of host_cpu.
49330 * util/i386/pc/grub-install.in (host_cpu): Removed.
49331 (target_cpu): New variable.
49332 (pkglibdir): Use target_cpu instead of host_cpu.
49334 * util/genmoddep.c: Removed.
49336 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49337 instead of GRUB_HOST_SIZEOF_VOID_P.
49338 * kern/dl.c: Likewise.
49340 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49342 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49343 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49344 (GRUB_TARGET_SIZEOF_LONG): ... this.
49345 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49346 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49347 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49349 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49350 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49351 (GRUB_TARGET_SIZEOF_LONG): ... this.
49352 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49353 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49354 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49356 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49357 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49358 (GRUB_TARGET_SIZEOF_LONG): ... this.
49359 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49360 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49362 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49363 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49364 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49365 instead of GRUB_HOST_SIZEOF_LONG.
49366 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49367 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49368 GRUB_CPU_WORDS_BIGENDIAN.
49369 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49370 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49373 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49374 (genmoddep_SOURCES): Likewise.
49375 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49376 (genmoddep_SOURCES): Likewise.
49377 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49378 (genmoddep_SOURCES): Likewise.
49379 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49381 (genmoddep_SOURCES): Likewise.
49383 * genmoddep.awk: New file.
49385 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49386 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49387 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49388 (PModule::rule): Likewise.
49389 (Program::rule): Likewise.
49390 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49391 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49394 * configure.ac: Rewritten intensively to use host and target
49395 instead of build and host, respectively.
49397 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49398 (host_cpu): Removed.
49399 (target_cpu): New variable.
49400 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49401 (BUILD_CC): Removed.
49402 (BUILD_CFLAGS): Likewise.
49403 (BUILD_CPPFLAGS): Likewise.
49404 (TARGET_CC): New variable.
49405 (TARGET_CFLAGS): Likewise.
49406 (TARGET_CPPFLAGS): Likewise.
49407 (TARGET_LDFLAGS): Likewise.
49409 (include): Use target_cpu instead of host_cpu.
49410 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49412 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49414 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49416 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49417 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49418 field 'false' to 'exec_on_false'.
49419 (grub_script_create_cmdif): Renamed argument names to reflect above
49422 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49424 * normal/script.c (grub_script_create_cmdif): Likewise.
49426 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49428 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49430 (grub_hfsplus_btree_recptr): Likewise.
49431 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49432 FILEBLOCK both to pass a block number and store next block
49434 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49435 overflow file correctly. Specify errors appropriately, because
49436 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49437 grub_hfsplus_btree_recptr to get the pointer to a found key.
49438 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49441 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49443 (_linux_mod_SOURCES): New variable.
49444 (_linux_mod_CFLAGS): Likewise.
49445 (_linux_mod_LDFLAGS): Likewise.
49446 (linux_mod_SOURCES): Likewise.
49447 (linux_mod_CFLAGS): Likewise.
49448 (linux_mod_LDFLAGS): Likewise.
49450 * DISTLIST: Added loader/i386/efi/linux.c,
49451 loader/i386/efi/linux_normal.c and
49452 include/grub/i386/efi/loader.h.
49454 * loader/i386/efi/linux.c: New file.
49455 * loader/i386/efi/linux_normal.c: Likewise.
49456 * include/grub/i386/efi/loader.h: Likewise.
49458 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49460 * commands/blocklist.c: New file.
49462 * DISTLIST: Added commands/blocklist.c.
49464 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49465 color for the background, and a darker color for the foreground.
49466 (grub_console_checkkey): Return READ_KEY.
49467 (grub_console_cls): Set the background to
49468 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49470 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49472 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49473 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49475 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49478 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49479 BG. The spec is wrong again.
49481 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49483 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49485 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49486 commands/blocklist.c.
49487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49489 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49490 (blocklist_mod_SOURCES): New variable.
49491 (blocklist_mod_CFLAGS): Likewise.
49492 (blocklist_mod_LDFLAGS): Likewise.
49494 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49496 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49498 (lba_mode): Use %eax more intensively to reduce the code size.
49500 2006-05-20 Marco Gerards <marco@gnu.org>
49502 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49504 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49506 (script): Accept leading newlines.
49507 (newlines): New rule to describe 0 or more newlines.
49508 (commands): Accept `command' with trailing newline. Fixed the
49509 order in which arguments were passed to `grub_script_add_cmd'.
49510 Accept commands separated by newlines.
49511 (function): Changed to accept newlines.
49512 (menuentry) Rewritten.
49514 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49515 front of the list, instead of to the end.
49517 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49519 * util/i386/pc/grub-install.in (bindir): New variable.
49520 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49521 Shaver <lbgwjl@gmail.com>.
49523 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49525 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49526 grub/machine/linux.h
49527 * loader/i386/pc/linux.c: Likewise.
49529 * include/grub/i386/pc/linux.h: Moved to ...
49530 * include/grub/i386/linux.h: ... here.
49532 * include/grub/i386/linux.h (struct linux_kernel_params): New
49535 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49537 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49539 (grub_video_vbe_blit_glyph): Likewise.
49540 (grub_video_vbe_blit_bitmap): Likewise.
49541 (grub_video_vbe_blit_render_target): Likewise.
49543 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49545 * configure.ac (--with-platform): Properly quote the square
49548 2006-05-08 Marco Gerards <marco@gnu.org>
49550 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49552 (kernel_elf_HEADERS): ...to this. Updated all users.
49553 (grubof_symlist.c): Renamed from this...
49554 (kernel_elf_symlist.c): ...to this. Updated all users.
49555 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49556 (grubof_SOURCES): Renamed from this...
49557 (kernel_elf_SOURCES): ...to this.
49558 (grubof_HEADERS): Renamed from this...
49559 (kernel_elf_HEADERS): ...to this.
49560 (grubof_CFLAGS): Renamed from this...
49561 (kernel_elf_CFLAGS): ...to this.
49562 (grubof_ASFLAGS): Renamed from this...
49563 (kernel_elf_ASFLAGS): ...to this.
49564 (grubof_LDFLAGS): Renamed from this...
49565 (kernel_elf_LDFLAGS): ...to this.
49567 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49569 (kernel_elf_HEADERS): ...to this. Updated all users.
49570 (grubof_symlist.c): Renamed from this...
49571 (kernel_elf_symlist.c): ...to this. Updated all users.
49572 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49573 (grubof_SOURCES): Renamed from this...
49574 (kernel_elf_SOURCES): ...to this.
49575 (grubof_HEADERS): Renamed from this...
49576 (kernel_elf_HEADERS): ...to this.
49577 (grubof_CFLAGS): Renamed from this...
49578 (kernel_elf_CFLAGS): ...to this.
49579 (grubof_ASFLAGS): Renamed from this...
49580 (kernel_elf_ASFLAGS): ...to this.
49581 (grubof_LDFLAGS): Renamed from this...
49582 (kernel_elf_LDFLAGS): ...to this.
49584 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49585 `kernel.elf' instead of `grubof'.
49587 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49589 Add --with-platform to configure. Use pkglibdir instead of
49590 pkgdatadir. This is reported by Roger Leigh.
49592 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49593 (host_vendor): Likewise.
49594 (host_os): Likewise.
49595 (pkgdatadir): Likewise.
49596 (platform): New variable.
49597 (pkglibdir): Likewise.
49598 Use PKGLIBDIR instead of PKGDATADIR.
49600 * util/i386/pc/grub-install.in (datadir): Removed.
49601 (host_vendor): Likewise.
49602 (host_os): Likewise.
49603 (pkgdatadir): Likewise.
49604 (platform): New variable.
49605 (pkglibdir): Likewise.
49606 Use PKGLIBDIR instead of PKGDATADIR.
49608 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49609 instead of GRUB_DATADIR.
49611 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49613 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49616 * configure.ac (--with-platform): New option.
49617 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49619 * Makefile.in: Include a makefile based on PLATFORM instead of
49621 (pkgdatadir): Not appended by the machine type.
49622 (pkglibdir): Appended by the machine type.
49623 (host_vendor): Removed.
49624 (platform): New variable.
49625 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49626 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49627 (uninstall): Likewise.
49629 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49631 Use the environment context in the menu. Remove the commands
49632 "default" and "timeout", and use variables instead.
49634 * normal/menu.c: Include grub/env.h.
49635 (print_entry): Cast TITLE to silence gcc.
49636 (get_timeout): New function.
49637 (set_timeout): Likewise.
49638 (get_entry_number): Likewise.
49639 (run_menu): Use a default entry, a fallback entry and a timeout
49640 in the environment variables "default", "fallback" and
49641 "timeout". Also, tweak the default entry if it is not within the
49642 current menu entries.
49643 (grub_menu_run): Use a fallback entry in the environment variable
49646 * normal/main.c (read_config_file): Do not initialize
49647 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49649 (grub_normal_execute): Use a data slot to store the menu.
49651 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49652 fallback_entry and timeout.
49653 (struct grub_menu_list): Removed.
49654 (grub_menu_list_t): Likewise.
49655 (struct grub_context): Likewise.
49656 (grub_context_t): Likewise.
49657 (grub_context_get): Likewise.
49658 (grub_context_get_current_menu): Likewise.
49659 (grub_context_push_menu): Likewise.
49660 (grub_context_pop_menu): Likewise.
49661 (grub_default_init): Likewise.
49662 (grub_default_fini): Likewise.
49663 (grub_timeout_init): Likewise.
49664 (grub_timeout_fini): Likewise.
49666 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49668 (normal_mod_SOURCES): Removed normal/context.c.
49670 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49671 commands/default.c, commands/timeout.c and normal/context.c.
49672 (normal_mod_SOURCES): Removed normal/context.c.
49674 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49675 commands/timeout.c and normal/context.c.
49676 (normal_mod_SOURCES): Removed normal/context.c.
49678 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49679 commands/default.c, commands/timeout.c and normal/context.c.
49680 (normal_mod_SOURCES): Removed normal/context.c.
49682 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49684 (default_mod_SOURCES): Removed.
49685 (default_mod_CFLAGS): Likewise.
49686 (default_mod_LDFLAGS): Likewise.
49687 (timeout_mod_SOURCES): Removed.
49688 (timeout_mod_CFLAGS): Likewise.
49689 (timeout_mod_LDFLAGS): Likewise.
49691 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49694 * commands/default.c: Removed.
49695 * commands/timeout.c: Likewise.
49696 * normal/context.c: Likewise.
49698 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49700 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49702 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49704 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49705 "next" to "prev" for readability.
49706 (struct grub_env_sorted_var): New struct.
49707 (grub_env_context): Renamed to ...
49708 (initial_context): ... this.
49709 (grub_env_var_context): Renamed to ...
49710 (current_context): ... this.
49711 (grub_env_find): Look only at CURRENT_CONTEXT.
49712 (grub_env_context_open): Rewritten to copy exported variables from
49714 (grub_env_context_close): Rewritten according to the new
49715 scheme. Also, add an assertion to prevent the initial context from
49717 (grub_env_insert): Removed the code for the sorted list.
49718 (grub_env_remove): Likewise.
49719 (grub_env_export): Simply mark the variable with
49720 GRUB_ENV_VAR_GLOBAL.
49721 (grub_env_set): A cosmetic change for naming consistency.
49722 (grub_env_get): Likewise.
49723 (grub_env_unset): Likewise.
49724 (grub_env_iterate): Rewritten to sort variables within this
49726 (grub_register_variable_hook): Fixed for naming consistency. Call
49727 grub_env_find again, only if NAME is not found at the first time.
49728 (mangle_data_slot_name): New function.
49729 (grub_env_set_data_slot): Likewise.
49730 (grub_env_get_data_slot): Likewise.
49731 (grub_env_unset_data_slot): Likewise.
49733 * include/grub/env.h (grub_env_var_type): New enum.
49734 (GRUB_ENV_VAR_LOCAL): New constant.
49735 (GRUB_ENV_VAR_GLOBAL): Likewise.
49736 (GRUB_ENV_VAR_DATA): Likewise.
49737 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49739 (grub_env_set): Replace VAR with NAME for consistency.
49740 (grub_register_variable_hook): Likewise.
49741 (grub_env_export): Specify the name of the argument.
49742 (grub_env_set_data_slot): New prototype.
49743 (grub_env_get_data_slot): Likewise.
49744 (grub_env_unset_data_slot): Likewise.
49746 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49748 Extend the loader so that GRUB can accept a loader which comes
49749 back to GRUB when a loaded image exits. Also, this change adds
49750 support for a chainloader on EFI.
49752 * term/efi/console.c: Include grub/misc.h.
49753 (grub_console_checkkey): Display a scan code on the top for
49754 debugging. This will be removed once the EFI port gets stable.
49755 Correct the scan code mapping.
49757 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49758 allocate memory from larger regions, in order to reduce the number
49759 of allocated regions. Otherwise, the MacOSX loader panics.
49760 (filter_memory_map): Avoid less than 1MB for compatibility with
49762 (add_memory_regions): Allocate from the tail of a region, if
49763 possible, to avoid allocating a region near to 1MB, for the MacOSX
49766 * kern/efi/init.c (grub_efi_set_prefix): Specify
49767 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49769 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49770 argument IMAGE_HANDLE and specify it to get a loaded image.
49771 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49772 grub_efi_get_loaded_image.
49773 (grub_efi_get_filename): Divide the length by the size of
49775 (grub_efi_get_device_path): New function.
49776 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49777 the length by the size of grub_efi_char16_t for a file path device
49780 * kern/loader.c (grub_loader_noreturn): New variable.
49781 (grub_loader_set): Accept a new argument NORETURN. Set
49782 GRUB_LOADER_NORETURN to NORETURN.
49783 All callers changed.
49784 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49787 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49789 (grub_efi_get_loaded_image): Take an argument to specify an image
49792 * include/grub/loader.h (grub_loader_set): Added one more argument
49795 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49796 instead of grub_efi_open_protocol.
49797 (grub_efidisk_get_device_name): Likewise.
49798 (grub_efidisk_close): Print a newline.
49799 (grub_efidisk_get_device_handle): Fixed to use
49800 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49801 GRUB_EFI_DEVICE_PATH_TYPE.
49803 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49804 * kern/efi/efi.c (device_path_guid): ... here.
49806 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49808 (kernel_mod_HEADERS): Added efi/disk.h.
49809 (_chain_mod_SOURCES): New variable.
49810 (_chain_mod_CFLAGS): Likewise.
49811 (_chain_mod_LDFLAGS): Likewise.
49812 (chain_mod_SOURCES): Likewise.
49813 (chain_mod_CFLAGS): Likewise.
49814 (chain_mod_LDFLAGS): Likewise.
49816 * DISTLIST: Added include/grub/efi/chainloader.h,
49817 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49819 * include/grub/efi/chainloader.h: New file.
49820 * loader/efi/chainloader.c: Likewise.
49821 * loader/efi/chainloader_normal.c: Likewise.
49823 2006-04-30 Marco Gerards <marco@gnu.org>
49825 * commands/configfile.c (grub_cmd_source): New function.
49826 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49827 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49829 2006-04-30 Marco Gerards <marco@gnu.org>
49831 * normal/execute.c (grub_script_execute_cmd): Change the return
49832 type to `grub_err_t'. Correctly return the error.
49833 (grub_script_execute_cmdline): In case a command line is not a
49834 command or a function, try to interpret it as an assignment.
49836 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49838 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49839 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49840 skip a node whose name is obviously invalid as UTF-16,
49841 i.e. contains a NUL character. Stop the iteration when the last
49842 directory entry is found. Instead of using the return value of
49843 grub_hfsplus_btree_iterate_node, store the value in RET and use
49844 it, because the iterator can be stopped by the last directory
49847 2006-04-30 Marco Gerards <marco@gnu.org>
49849 * include/grub/env.h (grub_env_export): New prototype. Reported
49850 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49852 2006-04-30 Marco Gerards <marco@gnu.org>
49854 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49855 size of the extents in a catalog file record.
49857 2006-04-29 Marco Gerards <marco@gnu.org>
49859 * commands/configfile.c (grub_cmd_configfile): Execute the
49860 configfile within its own context.
49862 * include/grub/env.h (grub_env_context_open): New prototype.
49863 (grub_env_context_close): Likewise.
49865 * kern/env.c (grub_env): Removed.
49866 (grub_env_sorted): Likewise.
49867 (grub_env_context): New variable.
49868 (grub_env_var_context): Likewise.
49869 (grub_env_find): Search both the active context and the global
49871 (grub_env_context_open): New function.
49872 (grub_env_context_close): Likewise.
49873 (grub_env_insert): Likewise.
49874 (grub_env_remove): Likewise.
49875 (grub_env_export): Likewise.
49876 (grub_env_set): Changed to use helper functions to avoid code
49878 (grub_env_iterate): Rewritten so both the current context and the
49879 global context are being used.
49881 * normal/command.c (export_command): New function.
49882 (grub_command_init): Register the `export' function.
49884 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49886 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49887 explicitly to suppress gcc's warnings.
49888 * fs/fat.c (grub_fat_find_dir): Likewise.
49889 (grub_fat_label): Likewise.
49890 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49891 (grub_xfs_mount): Likewise.
49892 (grub_xfs_label): Likewise.
49893 * fs/affs.c (grub_affs_mount): Likewise.
49894 (grub_affs_label): Likewise.
49895 (grub_affs_iterate_dir): Likewise.
49896 * fs/sfs.c (grub_sfs_mount): Likewise.
49897 (grub_sfs_iterate_dir): Likewise.
49898 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49899 * fs/hfs.c (grub_hfs_mount): Likewise.
49900 (grub_hfs_cmp_catkeys): Likewise.
49901 (grub_hfs_find_dir): Likewise.
49902 (grub_hfs_dir): Likewise.
49903 (grub_hfs_label): Likewise.
49904 * fs/jfs.c (grub_jfs_mount): Likewise.
49905 (grub_jfs_opendir): Likewise.
49906 (grub_jfs_getent): Likewise.
49907 (grub_jfs_lookup_symlink): Likewise.
49908 (grub_jfs_label): Likewise.
49909 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49910 (grub_hfsplus_iterate_dir): Likewise.
49911 (grub_hfsplus_btree_iterate_node): Made static.
49913 * util/grub-emu.c (prefix): New variable.
49914 (grub_machine_set_prefix): New function.
49915 (main): Do not set the environment variable "prefix" here. Only
49916 set PREFIX, which is used later by grub_machine_set_prefix.
49918 * include/grub/video.h: Do not include grub/symbol.h.
49919 (grub_video_register): Not exported. This symbol is not defined in
49921 (grub_video_unregister): Likewise.
49922 (grub_video_iterate): Likewise.
49923 (grub_video_setup): Likewise.
49924 (grub_video_restore): Likewise.
49925 (grub_video_get_info): Likewise.
49926 (grub_video_get_blit_format): Likewise.
49927 (grub_video_set_palette): Likewise.
49928 (grub_video_get_palette): Likewise.
49929 (grub_video_set_viewport): Likewise.
49930 (grub_video_get_viewport): Likewise.
49931 (grub_video_map_color): Likewise.
49932 (grub_video_map_rgb): Likewise.
49933 (grub_video_map_rgba): Likewise.
49934 (grub_video_fill_rect): Likewise.
49935 (grub_video_blit_glyph): Likewise.
49936 (grub_video_blit_bitmap): Likewise.
49937 (grub_video_blit_render_target): Likewise.
49938 (grub_video_scroll): Likewise.
49939 (grub_video_swap_buffers): Likewise.
49940 (grub_video_create_render_target): Likewise.
49941 (grub_video_delete_render_target): Likewise.
49942 (grub_video_set_active_render_target): Likewise.
49944 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49946 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49948 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49949 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49950 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49951 instead of $(srcdir)/genkernsyms.sh.
49953 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49954 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49955 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49956 instead of $(srcdir)/genkernsyms.sh.
49958 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49959 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49960 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49961 instead of $(srcdir)/genkernsyms.sh.
49963 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49964 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49965 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49966 instead of $(srcdir)/genkernsyms.sh.
49968 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49971 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49973 (gensymlist.sh): New target.
49974 (genkernsyms.sh): Likewise.
49976 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49977 genkernsyms.sh.in and gensymlist.sh.in.
49979 * genkernsyms.sh: Removed.
49980 * gensymlist.sh: Likewise.
49982 * genkernsyms.sh.in: New file.
49983 * gensymlist.sh.in: Likewise.
49985 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49987 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
49988 clobber "prefix", since we may have already set it manually.
49990 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49992 * kern/misc.c (abort): New alias for grub_abort.
49994 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
49996 A new machine-specific function "grub_machine_set_prefix" is
49997 defined. This is called after loading modules, so that a prefix
49998 initialization can use modules. Also, this change adds an
49999 intensive debugging feature for the memory manager via the
50000 configure option "--enable-mm-debug".
50002 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50005 * kern/sparc64/ieee1275/init.c (abort): Removed.
50006 (grub_stop): Likewise.
50007 (grub_exit): New function.
50008 (grub_set_prefix): Renamed to ...
50009 (grub_machine_set_prefix): ... this.
50010 (grub_machine_init): Do not call grub_set_prefix.
50012 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50013 (grub_machine_set_prefix): ... this.
50014 (grub_machine_init): Do not call grub_set_prefix.
50016 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50017 (grub_machine_init): Do not set the prefix here.
50019 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50021 * kern/efi/init.c: Include grub/mm.h.
50022 (grub_efi_set_prefix): New function.
50024 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50025 (grub_efi_get_filename): New function.
50026 (grub_print_device_path): Renamed to ...
50027 (grub_efi_print_device_path): ... this.
50029 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50030 [MM_DEBUG] (grub_realloc): Likewise.
50031 [MM_DEBUG] (grub_free): Likewise.
50032 [MM_DEBUG] (grub_memalign): Likewise.
50033 [MM_DEBUG] (grub_mm_debug): New variable.
50034 [MM_DEBUG] (grub_debug_malloc): New function.
50035 [MM_DEBUG] (grub_debug_free): New function.
50036 [MM_DEBUG] (grub_debug_realloc): New function.
50037 [MM_DEBUG] (grub_debug_memalign): New function.
50039 * kern/misc.c (grub_abort): Print a newline to distinguish
50042 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50043 grub_set_root_dev after loading modules. This is necessary when
50044 setting a prefix depends on modules.
50046 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50047 (grub_efi_print_device_path): ... this.
50048 (grub_efi_get_filename): New prototype.
50049 (grub_efi_set_prefix): Likewise.
50051 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50053 (grub_efidisk_get_device_handle): New prototype.
50054 (grub_efidisk_get_device_name): Likewise.
50056 * include/grub/mm.h: Include config.h.
50057 (MM_DEBUG): Removed.
50058 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50059 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50060 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50061 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50062 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50063 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50064 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50065 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50066 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50068 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50070 * disk/efi/efidisk.c: Include grub/partition.h.
50071 (iterate_child_devices): New function.
50072 (add_device): First, compare only last device path nodes, so that
50073 devices are sorted by the types.
50074 (grub_efidisk_get_device_handle): New function.
50075 (grub_efidisk_get_device_name): Likewise.
50077 * configure.ac (--enable-mm-debug): New option to enable the
50078 memory manager debugging feature. This makes the binary much
50079 bigger, so is disabled by default.
50081 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50083 Use grub_abort instead of grub_stop, and grub_exit must be
50084 define in each architecture now. Also, this change adds support
50087 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50088 (grub_getkey): New function.
50089 (grub_term_get_current): Likewise.
50091 * util/i386/pc/grub-setup.c: Include grub/term.h.
50092 (grub_getkey): New function.
50093 (grub_term_get_current): Likewise.
50095 * util/misc.c (grub_stop): Renamed to ...
50096 (grub_exit): ... this.
50098 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50099 (grub_exit): ... this.
50100 (grub_machine_init): Use grub_abort instead of abort.
50101 (grub_stop): Removed.
50103 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50106 * kern/i386/pc/startup.S (grub_exit): New function.
50107 (cold_reboot): New label.
50109 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50110 (grub_efi_init): Call grub_efidisk_init.
50111 (grub_efi_fini): Call grub_efidisk_fini.
50113 * kern/efi/efi.c: Include grub/mm.h.
50114 (grub_efi_console_control_guid): Renamed to ...
50115 (console_control_guid): ... this.
50116 (grub_efi_loaded_image_guid): Renamed to ...
50117 (loaded_image_guid): ... this.
50118 (grub_efi_locate_handle): New function.
50119 (grub_efi_open_protocol): Likewise.
50120 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50121 GRUB_EFI_CONSOLE_CONTROL_GUID.
50122 (grub_efi_exit): Removed.
50123 (grub_stop): Likewise.
50124 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50125 (grub_exit): New function.
50126 (grub_print_device_path): Likewise.
50128 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50129 (grub_enter_rescue_mode): Register "exit".
50131 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50132 (grub_abort): New function.
50134 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50136 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50138 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50140 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50141 (grub_print_device_path): New prototype.
50142 (grub_efi_locate_handle): Likewise.
50143 (grub_efi_open_protocol): Likewise.
50145 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50146 * disk/efi/efidisk.c: Likewise.
50148 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50150 * include/grub/efi/console_control.h
50151 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50153 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50154 last 8 bytes as an array.
50155 (GRUB_EFI_DISK_IO_GUID): New macro.
50156 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50157 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50158 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50160 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50161 (struct grub_efi_device_path): Rename the member "sub_type" to
50163 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50164 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50165 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50166 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50167 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50168 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50169 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50170 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50171 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50172 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50173 (struct grub_efi_pci_device_path): New structure.
50174 (grub_efi_pci_device_path_t): New type.
50175 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50176 (struct grub_efi_pccard_device_path): New structure.
50177 (grub_efi_pccard_device_path_t): New type.
50178 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50179 (struct grub_efi_memory_mapped_device_path): New structure.
50180 (grub_efi_memory_mapped_device_path_t): New type.
50181 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50182 (struct grub_efi_vendor_device_path): New structure.
50183 (grub_efi_vendor_device_path_t): New type.
50184 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50185 (struct grub_efi_controller_device_path): New structure.
50186 (grub_efi_controller_device_path_t): New type.
50187 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50188 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50189 (struct grub_efi_acpi_device_path): New structure.
50190 (grub_efi_acpi_device_path_t): New type.
50191 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50192 (struct grub_efi_expanded_acpi_device_path): New structure.
50193 (grub_efi_expanded_acpi_device_path_t): New type.
50194 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50195 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50196 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50197 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50198 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50199 (struct grub_efi_atapi_device_path): New structure.
50200 (grub_efi_atapi_device_path_t): New type.
50201 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50202 (struct grub_efi_fibre_channel_device_path): New structure.
50203 (grub_efi_fibre_channel_device_path_t): New type.
50204 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50205 (struct grub_efi_1394_device_path): New structure.
50206 (grub_efi_1394_device_path_t): New type.
50207 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50208 (struct grub_efi_usb_device_path): New structure.
50209 (grub_efi_usb_device_path_t): New type.
50210 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50211 (struct grub_efi_usb_class_device_path): New structure.
50212 (grub_efi_usb_class_device_path_t): New type.
50213 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50214 (struct grub_efi_i2o_device_path): New structure.
50215 (grub_efi_i2o_device_path_t): New type.
50216 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50217 (struct grub_efi_mac_address_device_path): New structure.
50218 (grub_efi_mac_address_device_path_t): New type.
50219 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50220 (struct grub_efi_ipv4_device_path): New structure.
50221 (grub_efi_ipv4_device_path_t): New type.
50222 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50223 (struct grub_efi_ipv6_device_path): New structure.
50224 (grub_efi_ipv6_device_path_t): New type.
50225 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50226 (struct grub_efi_infiniband_device_path): New structure.
50227 (grub_efi_infiniband_device_path_t): New type.
50228 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50229 (struct grub_efi_uart_device_path): New structure.
50230 (grub_efi_uart_device_path_t): New type.
50231 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50232 (struct grub_efi_vendor_messaging_device_path): New structure.
50233 (grub_efi_vendor_messaging_device_path_t): New type.
50234 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50235 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50236 (struct grub_efi_hard_drive_device_path): New structure.
50237 (grub_efi_hard_drive_device_path_t): New type.
50238 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50239 (struct grub_efi_cdrom_device_path): New structure.
50240 (grub_efi_cdrom_device_path_t): New type.
50241 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50242 (struct grub_efi_vendor_media_device_path): New structure.
50243 (grub_efi_vendor_media_device_path_t): New type.
50244 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50245 (struct grub_efi_file_path_device_path): New structure.
50246 (grub_efi_file_path_device_path_t): New type.
50247 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50248 (struct grub_efi_protocol_device_path): New structure.
50249 (grub_efi_protocol_device_path_t): New type.
50250 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50251 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50252 (struct grub_efi_bios_device_path): New structure.
50253 (grub_efi_bios_device_path_t): New type.
50254 (struct grub_efi_disk_io): New structure.
50255 (grub_efi_disk_io_t): New type.
50256 (struct grub_efi_block_io_media): New structure.
50257 (grub_efi_block_io_media_t): New type.
50258 (struct grub_efi_block_io): New structure.
50259 (grub_efi_block_io_t): New type.
50261 * include/grub/misc.h (grub_stop): Removed.
50262 (grub_exit): New prototype.
50263 (grub_abort): Likewise.
50265 * include/grub/disk.h (enum grub_disk_dev_id): Added
50266 GRUB_DISK_DEVICE_EFIDISK_ID.
50268 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50269 disk/efi/efidisk.c.
50270 (kernel_syms.lst): Remove the target if an error occurs.
50272 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50274 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50275 as it was simply too buggy.
50277 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50279 * kern/misc.c (grub_lltoa): New function.
50280 (grub_vsprintf): Added support for the long long suffix,
50283 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50285 * Makefile.in (LDFLAGS): Add variable.
50286 (LD): Remove variable.
50287 * configure.ac: Add -m32 to LDFLAGS.
50288 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50289 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50290 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50291 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50292 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50294 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50295 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50296 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50298 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50300 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50301 length for unknown glyph.
50303 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50305 Add support for pre-loaded modules into the EFI port.
50307 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50308 completely. Accept one more argument DIR. The caller has changed.
50310 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50312 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50313 (grub_efi_loaded_image_guid): New variable.
50314 (grub_efi_get_loaded_image): New function.
50315 (grub_arch_modules_addr): Likewise.
50317 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50320 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50321 (struct grub_efi_loaded_image): New structure.
50322 (grub_efi_loaded_image_t): New type.
50324 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50326 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50327 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50328 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50330 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50332 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50334 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50336 * DISTLIST: Added include/grub/efi/console.h,
50337 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50338 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50340 * include/grub/efi/console.h: New file.
50341 * include/grub/efi/time.h: Likewise.
50342 * include/grub/i386/efi/kernel.h: Likewise.
50343 * kern/efi/init.c: Likewise.
50344 * kern/efi/mm.c: Likewise.
50345 * term/efi/console.c: Likewise.
50347 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50348 (grub_stop): Removed.
50349 (grub_get_rtc): Likewise.
50350 (grub_machine_init): Simply call grub_efi_init.
50351 (grub_machine_fini): Call grub_efi_fini.
50353 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50354 (grub_efi_output_string): Removed.
50355 (grub_efi_stall): New function.
50356 (grub_stop): Likewise.
50357 (grub_get_rtc): Likewise.
50359 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50360 (grub_efi_stall): New prototype.
50361 (grub_efi_allocate_pages): Likewise.
50362 (grub_efi_free_pages): Likewise.
50363 (grub_efi_get_memory_map): Likewise.
50364 (grub_efi_mm_init): Likewise.
50365 (grub_efi_mm_fini): Likewise.
50366 (grub_efi_init): Likewise.
50367 (grub_efi_fini): Likewise.
50369 * include/grub/i386/efi/time.h: Do not include
50370 grub/symbol.h. Include grub/efi/time.h.
50371 (GRUB_TICKS_PER_SECOND): Removed.
50372 (grub_get_rtc): Likewise.
50374 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50375 Added padding. The EFI spec is buggy.
50376 (GRUB_EFI_BLACK): New macro.
50377 (GRUB_EFI_BLUE): Likewise.
50378 (GRUB_EFI_GREEN): Likewise.
50379 (GRUB_EFI_CYAN): Likewise.
50380 (GRUB_EFI_RED): Likewise.
50381 (GRUB_EFI_MAGENTA): Likewise.
50382 (GRUB_EFI_BROWN): Likewise.
50383 (GRUB_EFI_LIGHTGRAY): Likewise.
50384 (GRUB_EFI_BRIGHT): Likewise.
50385 (GRUB_EFI_DARKGRAY): Likewise.
50386 (GRUB_EFI_LIGHTBLUE): Likewise.
50387 (GRUB_EFI_LIGHTGREEN): Likewise.
50388 (GRUB_EFI_LIGHTCYAN): Likewise.
50389 (GRUB_EFI_LIGHTRED): Likewise.
50390 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50391 (GRUB_EFI_YELLOW): Likewise.
50392 (GRUB_EFI_WHITE): Likewise.
50393 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50394 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50395 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50396 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50397 (GRUB_EFI_BACKGROUND_RED): Likewise.
50398 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50399 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50400 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50401 (GRUB_EFI_TEXT_ATTR): Likewise.
50403 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50404 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50405 (kernel_mod_HEADERS): Added efi/time.h.
50407 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50409 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50410 include/grub/efi/api.h, include/grub/efi/console_control.h,
50411 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50412 include/grub/i386/efi/time.h, kern/efi/efi.c,
50413 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50414 and util/i386/efi/grub-mkimage.c.
50416 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50418 * genmk.rb (PModule#rule): Do not export symbols if
50419 #{prefix}_EXPORTS is set to "no".
50421 * conf/i386-efi.mk: New file.
50422 * conf/i386-efi.rmk: Likewise.
50423 * include/grub/efi/api.h: Likewise.
50424 * include/grub/efi/console_control.h: Likewise.
50425 * include/grub/efi/efi.h: Likewise.
50426 * include/grub/efi/pe32.h: Likewise.
50427 * include/grub/i386/efi/time.h: Likewise.
50428 * kern/efi/efi.c: Likewise.
50429 * kern/i386/efi/init.c: Likewise.
50430 * kern/i386/efi/startup.S: Likewise.
50431 * util/i386/efi/grub-mkimage.c: Likewise.
50433 2006-04-17 Marco Gerards <marco@gnu.org>
50435 * include/grub/script.h: Include <grub/parser.h> and
50436 "grub_script.tab.h".
50437 (struct grub_lexer_param): New struct.
50438 (struct grub_parser_param): Likewise.
50439 (grub_script_create_arglist): Pass the state in an argument.
50440 (grub_script_add_arglist): Likewise.
50441 (grub_script_create_cmdline): Likewise.
50442 (grub_script_create_cmdblock): Likewise.
50443 (grub_script_create_cmdif): Likewise.
50444 (grub_script_create_cmdmenu): Likewise.
50445 (grub_script_add_cmd): Likewise.
50446 (grub_script_arg_add): Likewise.
50447 (grub_script_lexer_ref): Likewise.
50448 (grub_script_lexer_deref): Likewise.
50449 (grub_script_lexer_record_start): Likewise.
50450 (grub_script_lexer_record_stop): Likewise.
50451 (grub_script_mem_record): Likewise.
50452 (grub_script_mem_record_stop): Likewise.
50453 (grub_script_malloc): Likewise.
50454 (grub_script_yylex): Likewise.
50455 (grub_script_yyparse): Likewise.
50456 (grub_script_yyerror): Likewise.
50457 (grub_script_yylex): Likewise.
50458 (grub_script_lexer_init): Return the state.
50460 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50461 (grub_script_lexer_done): Likewise.
50462 (grub_script_lexer_getline): Likewise.
50463 (grub_script_lexer_refs): Likewise.
50464 (script): Likewise.
50465 (newscript): Likewise.
50466 (record): Likewise.
50467 (recording): Likewise.
50468 (recordpos): Likewise.
50469 (recordlen): Likewise.
50470 (grub_script_lexer_init): Return the state instead of setting
50472 (grub_script_lexer_ref): Use the newly added argument for state
50473 instead of globals.
50474 (grub_script_lexer_deref): Likewise.
50475 (grub_script_lexer_record_start): Likewise.
50476 (grub_script_lexer_record_stop): Likewise.
50477 (recordchar): Likewise.
50478 (nextchar): Likewise.
50479 (grub_script_yylex2): Likewise.
50480 (grub_script_yylex): Likewise.
50481 (grub_script_yyerror): Likewise.
50483 * normal/parser.y (func_mem): Removed variable.
50484 (menu_entry): Likewise.
50486 (%lex-param): New parser option.
50487 (%parse-param): Likewise.
50488 (script): Always return the AST.
50489 (argument): Pass the state around.
50490 (arguments): Likewise.
50491 (grubcmd): Likewise.
50492 (commands): Likewise.
50493 (function): Likewise.
50494 (menuentry): Likewise.
50495 (if_statement): Likewise.
50498 * normal/script.c (grub_script_memused): Removed variable.
50499 (grub_script_parsed): Likewise.
50500 (grub_script_malloc): Added a state argument. Use that instead of
50502 (grub_script_mem_record): Likewise.
50503 (grub_script_mem_record_stop): Likewise.
50504 (grub_script_arg_add): Likewise.
50505 (grub_script_add_arglist): Likewise.
50506 (grub_script_create_cmdline): Likewise.
50507 (grub_script_create_cmdif): Likewise.
50508 (grub_script_create_cmdmenu): Likewise.
50509 (grub_script_add_cmd): Likewise.
50510 (grub_script_parse): Setup the state before calling the parser.
50512 2006-04-16 Marco Gerards <marco@gnu.org>
50514 * normal/command.c (grub_command_init): Remove the title command.
50516 * normal/lexer.c (grub_script_yylex): Renamed from this...
50517 (grub_script_yylex2): ... to this.
50518 (grub_script_yylex): New function. Temporary
50519 introduced to filter some tokens.
50520 (grub_script_yyerror): Print a newline.
50522 * normal/main.c (read_config_file): Output information about the
50523 lines that contain errors. Wait for a key after all lines have
50524 been processed. Don't return an empty menu.
50526 * normal/parser.y (func_mem): Don't initialize.
50527 (menu_entry): Likewise.
50528 (err): New variable.
50529 (script): Don't return anything when an error was encountered.
50530 (ws, returns): Removed rules.
50531 (argument): Disabled concatenated variable support.
50532 (arguments): Remove explicit separators.
50533 (grubcmd): Likewise.
50534 (function): Likewise.
50535 (menuentry): Likewise.
50537 (commands): Likewise. Add error handling.
50539 * normal/script.c (grub_script_create_cmdline): If
50540 `grub_script_parsed' is 0, assume the parser encountered an error.
50542 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50544 * configure.ac: Add support for EFI. Fix the typo
50545 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50547 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50549 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50550 foreign multibyte characters should be shown correctly.
50552 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50554 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50556 (read_config_file): Made it to close file before returning.
50558 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50560 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50561 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50562 video/i386/pc/vbefill.c.
50564 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50565 video/i386/pc/vbefill.c.
50567 * include/grub/video.h (grub_video_blit_format): New enum.
50568 (grub_video_mode_info): Added new member blit_format.
50569 (grub_video_get_blit_format): New function prototype.
50571 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50572 function prototype.
50573 (grub_video_vbe_map_rgb): Likewise.
50574 (grub_video_vbe_unmap_color): Likewise.
50576 * include/grub/i386/pc/vbeblit.h: New file.
50578 * include/grub/i386/pc/vbefill.h: New file.
50580 * video/video.c (grub_video_get_blit_format): New function.
50581 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50582 (grub_video_vbe_map_rgb): Likewise.
50583 (grub_video_vbe_unmap_color): Likewise.
50585 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50587 (grub_video_vbe_blit_render_target): Changed to use more optimized
50589 (grub_video_vbe_setup): Added detection for optimized settings.
50590 (grub_video_vbe_create_render_target): Likewise.
50592 * video/i386/pc/vbeblit.c: New file.
50594 * video/i386/pc/vbefill.c: New file.
50596 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50598 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50601 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50602 parsing to support both hex and dec ranges. If filename was missing
50603 show usage information.
50605 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50607 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50608 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50610 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50611 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50612 (video_mod_SOURCES): Added.
50613 (video_mod_CFLAGS): Likewise.
50614 (video_mod_LDFLAGS): Likewise.
50615 (gfxterm_mod_SOURCES): Likewise.
50616 (gfxterm_mod_CFLAGS): Likewise.
50617 (gfxterm_mod_LDFLAGS): Likewise.
50618 (videotest_mod_SOURCES): Likewise.
50619 (videotest_mod_CFLAGS): Likewise.
50620 (videotest_mod_LDFLAGS): Likewise.
50621 (vesafb_mod_SOURCES): Removed.
50622 (vesafb_mod_CFLAGS): Likewise.
50623 (vesafb_mod_LDFLAGS): Likewise.
50624 (vga_mod_SOURCES): Likewise.
50625 (vga_mod_CFLAGS): Likewise.
50626 (vga_mod_LDFLAGS): Likewise.
50628 * commands/videotest.c: New file.
50630 * font/manager.c (fill_with_default_glyph): Modified to use
50632 (grub_font_get_glyph): Likewise.
50633 (fontmanager): Renamed from this...
50634 (font_manager): ... to this.
50636 * include/grub/font.h (grub_font_glyph): Added new structure.
50637 (grub_font_get_glyph): Modified to use grub_font_glyph.
50639 * include/grub/misc.h (grub_abs): Added as inline function.
50641 * include/grub/video.h: New file.
50643 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50644 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50645 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50646 (grub_vbe_get_controller_info): Renamed from this...
50647 (grub_vbe_bios_get_controller_info): ... to this.
50648 (grub_vbe_get_mode_info): Renamed from this...
50649 (grub_vbe_bios_get_mode_info): ... to this.
50650 (grub_vbe_set_mode): Renamed from this...
50651 (grub_vbe_bios_set_mode): ... to this.
50652 (grub_vbe_get_mode): Renamed from this...
50653 (grub_vbe_bios_get_mode): ... to this.
50654 (grub_vbe_set_memory_window): Renamed from this...
50655 (grub_vbe_bios_set_memory_window): ... to this.
50656 (grub_vbe_get_memory_window): Renamed from this...
50657 (grub_vbe_bios_get_memory_window): ... to this.
50658 (grub_vbe_set_scanline_length): Renamed from this...
50659 (grub_vbe_set_scanline_length): ... to this.
50660 (grub_vbe_get_scanline_length): Renamed from this...
50661 (grub_vbe_bios_get_scanline_length): ... to this.
50662 (grub_vbe_set_display_start): Renamed from this...
50663 (grub_vbe_bios_set_display_start): ... to this.
50664 (grub_vbe_get_display_start): Renamed from this...
50665 (grub_vbe_bios_get_display_start): ... to this.
50666 (grub_vbe_set_palette_data): Renamed from this...
50667 (grub_vbe_bios_set_palette_data): ... to this.
50668 (grub_vbe_set_pixel_rgb): Removed.
50669 (grub_vbe_set_pixel_index): Likewise.
50671 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50673 (grub_vbe_bios_get_controller_info): ... to this.
50674 (grub_vbe_get_mode_info): Renamed from this...
50675 (grub_vbe_bios_get_mode_info): ... to this.
50676 (grub_vbe_set_mode): Renamed from this...
50677 (grub_vbe_bios_set_mode): ... to this.
50678 (grub_vbe_get_mode): Renamed from this...
50679 (grub_vbe_bios_get_mode): ... to this.
50680 (grub_vbe_set_memory_window): Renamed from this...
50681 (grub_vbe_bios_set_memory_window): ... to this.
50682 (grub_vbe_get_memory_window): Renamed from this...
50683 (grub_vbe_bios_get_memory_window): ... to this.
50684 (grub_vbe_set_scanline_length): Renamed from this...
50685 (grub_vbe_set_scanline_length): ... to this.
50686 (grub_vbe_get_scanline_length): Renamed from this...
50687 (grub_vbe_bios_get_scanline_length): ... to this.
50688 (grub_vbe_set_display_start): Renamed from this...
50689 (grub_vbe_bios_set_display_start): ... to this.
50690 (grub_vbe_get_display_start): Renamed from this...
50691 (grub_vbe_bios_get_display_start): ... to this.
50692 (grub_vbe_set_palette_data): Renamed from this...
50693 (grub_vbe_bios_set_palette_data): ... to this.
50694 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50695 getting corrupted after calling it. Added more pushes and pops.
50696 (grub_vbe_bios_set_mode): Likewise.
50697 (grub_vbe_bios_get_mode): Likewise.
50698 (grub_vbe_bios_get_memory_window): Likewise.
50699 (grub_vbe_bios_set_scanline_length): Likewise.
50700 (grub_vbe_bios_get_scanline_length): Likewise.
50701 (grub_vbe_bios_get_display_start): Likewise.
50702 (grub_vbe_bios_set_palette_data): Likewise.
50704 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50705 (cl_insert): Likewise.
50706 (cl_delete): Likewise.
50708 * term/gfxterm.c: New file.
50710 * term/i386/pc/vesafb.c: Removed file.
50712 * video/video.c: New file.
50714 * video/i386/pc/vbe.c (real2pm): Added new function.
50715 (grub_video_vbe_draw_pixel): Likewise.
50716 (grub_video_vbe_get_video_ptr): Likewise.
50717 (grub_video_vbe_get_pixel): Likewise
50718 (grub_video_vbe_init): Likewise.
50719 (grub_video_vbe_fini): Likewise.
50720 (grub_video_vbe_setup): Likewise.
50721 (grub_video_vbe_get_info): Likewise.
50722 (grub_video_vbe_set_palette): Likewise.
50723 (grub_video_vbe_get_palette): Likewise.
50724 (grub_video_vbe_set_viewport): Likewise.
50725 (grub_video_vbe_get_viewport): Likewise.
50726 (grub_video_vbe_map_color): Likewise.
50727 (grub_video_vbe_map_rgb): Likewise.
50728 (grub_video_vbe_map_rgba): Likewise.
50729 (grub_video_vbe_unmap_color): Likewise.
50730 (grub_video_vbe_fill_rect): Likewise.
50731 (grub_video_vbe_blit_glyph): Likewise.
50732 (grub_video_vbe_blit_bitmap): Likewise.
50733 (grub_video_vbe_blit_render_target): Likewise.
50734 (grub_video_vbe_scroll): Likewise.
50735 (grub_video_vbe_swap_buffers): Likewise.
50736 (grub_video_vbe_create_render_target): Likewise.
50737 (grub_video_vbe_delete_render_target): Likewise.
50738 (grub_video_vbe_set_active_render_target): Likewise.
50739 (grub_vbe_set_pixel_rgb): Remove function.
50740 (grub_vbe_set_pixel_index): Likewise.
50741 (index_color_mode): Remove static variable.
50742 (active_mode): Likewise.
50743 (framebuffer): Likewise.
50744 (bytes_per_scan_line): Likewise.
50745 (grub_video_vbe_adapter): Added new static variable.
50746 (framebuffer): Likewise.
50747 (render_target): Likewise.
50748 (initial_mode): Likewise.
50749 (mode_in_use): Likewise.
50750 (mode_list): Likewise.
50752 2006-03-10 Marco Gerards <marco@gnu.org>
50754 * configure.ac (AC_INIT): Bumped to 1.93.
50756 * DISTLIST: Added `include/grub/hfs.h'.
50758 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50760 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50761 18H, which might help the BIOS falling back to next boot media.
50763 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50765 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50766 Poe Chen <poe.poechen@gmail.com>.
50768 2006-01-17 Marco Gerards <marco@gnu.org>
50770 * include/grub/normal.h: Include <grub/script.h>.
50771 (grub_command_list): Removed struct.
50772 (grub_command_list_t): Removed type.
50773 (grub_menu_entry): Remove members `num' and `command_list'. Add
50774 members `commands' and `sourcecode'.
50775 * include/grub/script.h: Add inclusion guards.
50776 (grub_script_cmd_menuentry): New struct.
50777 (grub_script_execute_menuentry): New prototype.
50778 (grub_script_lexer_record_start): Likewise.
50779 (grub_script_lexer_record_stop): Likewise.
50780 * normal/execute.c (grub_script_execute_menuentry): New function.
50781 * normal/lexer.c (record, recording, recordpos, recordlen): New
50783 (grub_script_lexer_record_start): New function.
50784 (grub_script_lexer_record_stop): Likewise.
50785 (recordchar): Likewise.
50786 (nextchar): Likewise.
50787 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50788 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50789 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50790 (current_menu): New variable.
50791 (free_menu): Mainly rewritten.
50792 (grub_normal_menu_addentry): New function.
50793 (read_config_file): Rewritten.
50794 * normal/menu.c (run_menu_entry): Mainly rewritten.
50795 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50797 (run): Mainly rewritten.
50798 * normal/parser.y (menu_entry): New variable.
50799 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50800 (menuentry): New rule.
50801 (command): Add `menuentry'.
50802 (if_statement): Allow additional returns before `fi'.
50803 * normal/script.c (grub_script_create_cmdmenu): New function.
50805 2006-01-03 Marco Gerards <marco@gnu.org>
50807 * INSTALL: GNU Bison is required.
50808 * configure.ac: Rewritten the test to detect Bison.
50809 * Makefile.in (YACC): New variable. Reported by Xun Sun
50810 <xun.sun.cn@gmail.com>.
50812 2006-01-03 Marco Gerards <marco@gnu.org>
50814 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50815 the HFS+ filesystem to filesystem blocks.
50816 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50817 GCC warning is silenced.
50819 2006-01-03 Marco Gerards <marco@gnu.org>
50821 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50822 read from disk from big endian to host byte order.
50824 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50826 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50828 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50829 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50830 embedded HFS+ filesystem.
50831 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50832 (grub_hfs_sblock): Move from here...
50833 * include/grub/hfs.h: To here... New file.
50834 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50836 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50838 (grub_hfsplus_volheader): Change type of member `magic' to
50840 (grub_hfsplus_data): Add new member `embedded_offset'.
50841 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50843 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50844 Calculate the offset.
50846 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50848 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50850 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50852 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50854 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50855 ENV->NAME is NULL after allocating ENV->VALUE.
50857 2005-12-25 Marco Gerards <marco@gnu.org>
50859 * kern/env.c (grub_env_set): Rewritten the error handling code.
50861 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50863 * geninit.sh: Made more robust, and more portable.
50865 2005-12-25 Marco Gerards <marco@gnu.org>
50867 Add support for Apple HFS+ filesystems.
50869 * fs/hfsplus.c: New file.
50871 * DISTLIST: Added `fs/hfsplus.c'.
50873 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50874 (hfsplus_mod_SOURCES): New variable.
50875 (hfsplus_mod_CFLAGS): Likewise.
50876 (hfsplus_mod_LDFLAGS): Likewise.
50877 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50878 (grub_setup_SOURCES): Likewise.
50879 (grub_mkdevicemap_SOURCES): Likewise.
50880 (grub_emu_SOURCES): Likewise.
50881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50883 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50885 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50887 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50889 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50890 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50891 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50892 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50893 normal/lexer.c, normal/parser.y, normal/script.c, and
50895 Removed kern/sparc64/cache.c.
50897 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50898 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50901 * configure.ac (AC_INIT): Bumped to 1.92.
50903 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50905 * kern/err.c (grub_error_push): Added new function to support error
50907 (grub_error_pop): Likewise.
50908 (grub_error_stack_items): New local variable to support error stacks.
50909 (grub_error_stack_pos): Likewise.
50910 (grub_error_stack_assert): Likewise.
50911 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50913 (grub_print_error): Added support to print errors from error stack.
50915 * include/grub/err.h (grub_error_push): Added function prototype.
50916 (grub_error_pop): Likewise.
50918 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50920 * configure.ac: Accept `powerpc64' as host_cpu.
50921 (amd64): Rename to `biarch32'.
50923 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50924 non-cacheline-aligned addresses.
50926 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50927 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50928 if `size' is non-zero.
50930 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50932 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50933 and `cd' to make sure the filename is not prefixed with a
50935 (pkgdata_MODULES): Add `gpt.mod'.
50936 (gpt_mod_SOURCES): New variable.
50937 (gpt_mod_CFLAGS): Likewise.
50938 (gpt_mod_LDFLAGS): Likewise.
50940 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50942 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50945 * partmap/gpt.c: New file.
50947 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50948 GPT partition map is detected.
50950 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50952 * commands/i386/pc/play.c: New file.
50953 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50954 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50957 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50959 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50960 ((unused))' to silence gcc warning.
50962 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50964 * configure.ac: Correct `AC_PROG_YACC' test.
50966 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50968 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50969 check before installing files.
50971 2005-11-22 Mike Small <smallm@panix.com>
50973 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50974 number regex so multidigit numbers are recognized correctly.
50976 2005-11-22 Mike Small <smallm@panix.com>
50978 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
50979 debugging message before attempting to claim memory.
50980 (grub_rescue_cmd_initrd): Add a claim debugging message and try
50981 multiple addresses in case of failure.
50983 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50985 * term/tparm.c (get_space): Remove empty `if' statement.
50987 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
50989 * kern/parser.c (check_varstate): Rename `state' to 's'.
50991 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50993 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
50994 variable definitions to the beginning of each function. Sort stack
50996 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
50997 `buf' argument to `char *'.
50999 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51001 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51002 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51003 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51004 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51005 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51006 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51007 configfile.mod, search.mod, gzio.mod and test.mod.
51008 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51009 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51010 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51011 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51012 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51013 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51014 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51015 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51016 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51017 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51018 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51019 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51020 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51021 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51022 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51023 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51024 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51025 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51026 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51027 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51028 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51029 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51030 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51032 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51034 (pkgdata_MODULES): Add test.mod.
51036 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51038 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51039 appending to variables with "+=".
51040 (PModule): Use full pathname to generate *.lst filenames.
51042 * Makefile.in: Fixed list rules moved from genmk.rb.
51043 (.DELETE_ON_ERROR): New special target.
51044 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51046 * conf/i386-pc.rmk: Include conf/common.mk.
51047 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51048 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51049 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51050 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51051 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51052 configfile.mod, search.mod, gzio.mod and test.mod.
51053 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51054 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51055 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51056 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51057 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51058 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51059 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51060 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51061 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51062 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51063 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51064 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51065 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51066 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51067 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51068 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51069 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51070 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51071 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51072 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51073 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51074 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51075 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51077 * conf/common.rmk: ... to here. New file.
51079 * conf/common.mk: New file.
51081 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51083 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51084 (grub_script.tab.c): ... here.
51086 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51087 (grub_script.tab.c): ... here.
51089 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51090 (grub_script.tab.c): ... here.
51092 * normal/command.c (grub_command_find): Fixed a memory leak of
51093 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51095 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51097 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51098 "@" which marks the start of a comment on ARM.
51099 (VARIABLE): Likewise.
51101 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51103 Add support for Linux/ADFS partition tables.
51105 * partmap/acorn.c: New file.
51107 * include/grub/acorn_filecore.h: Likewise.
51109 * DISTLIST: Added `partmap/acorn.c' and
51110 `include/grub/acorn_filecore.h'.
51112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51114 (pkgdata_MODULES): Add `acorn.mod'.
51115 (acorn_mod_SOURCES): New variable.
51116 (acorn_mod_CFLAGS): Likewise.
51118 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51120 (pkgdata_MODULES): Add `acorn.mod'.
51121 (acorn_mod_SOURCES): New variable.
51122 (acorn_mod_CFLAGS): Likewise.
51124 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51125 (pkgdata_MODULES): Add `acorn.mod'.
51126 (acorn_mod_SOURCES): New variable.
51127 (acorn_mod_CFLAGS): Likewise.
51128 (acorn_mod_LDFLAGS): Likewise.
51130 * include/types.h (grub_disk_addr_t): New typedef.
51132 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51134 * geninit.sh: New file.
51136 * geninitheader.sh: Likewise.
51138 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51139 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51140 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51141 * commands/configfile.c (grub_configfile_init)
51142 (grub_configfile_fini): Likewise.
51143 * commands/default.c (grub_default_init, grub_default_fini):
51145 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51146 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51147 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51148 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51150 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51151 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51153 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51154 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51156 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51158 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51160 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51161 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51162 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51163 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51164 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51165 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51166 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51167 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51168 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51169 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51170 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51171 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51172 * partmap/amiga.c (grub_amiga_partition_map_init)
51173 (grub_amiga_partition_map_fini): Likewise.
51174 * partmap/apple.c (grub_apple_partition_map_init)
51175 (grub_apple_partition_map_fini): Likewise.
51176 * partmap/pc.c (grub_pc_partition_map_init)
51177 (grub_pc_partition_map_fini): Likewise.
51178 * partmap/sun.c (grub_sun_partition_map_init,
51179 grub_sun_partition_map_fini): Likewise.
51180 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51183 * util/grub-emu.c: Include <grub_modules_init.h>.
51184 (main): Don't initialize and de-initialize any modules directly,
51185 use `grub_init_all' and `grub_fini_all' instead.
51187 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51188 `grub_vesafb_mod_init'.
51189 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51191 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51192 `grub_vga_mod_init'. Updated all users.
51193 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51195 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51196 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51199 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51200 Generate a function to initialize the module in utilities.
51201 Updated all callers.
51202 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51203 initialize the module in utilities. Updated all callers.
51205 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51207 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51208 escape sequence and a literal ^L to clear the screen.
51210 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51211 when returning from Open Firmware.
51213 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51215 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51216 (grub_ofconsole_height): Likewise.
51217 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51218 manually insert a '\n'.
51219 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51220 `grub_ofconsole_height'. Return early if these are already set.
51222 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51224 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51225 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51226 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51227 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51228 and `normal/script.c'.
51229 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51230 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51231 (test_mod_SOURCES): New variable.
51232 (test_mod_CFLAGS): Likewise.
51233 (test_mod_LDFLAGS): Likewise.
51234 (pkgdata_MODULES): Add `test.mod'.
51235 (grub_script.tab.c): New rule.
51236 (grub_script.tab.h): Likewise.
51238 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51241 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51242 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51243 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51244 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51245 (test_mod_SOURCES): New variable.
51246 (test_mod_CFLAGS): Likewise.
51247 (pkgdata_MODULES): Add `test.mod'.
51248 (grub_script.tab.c): New rule.
51249 (grub_script.tab.h): Likewise.
51251 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51253 Add initial scripting support.
51255 * commands/test.c: New file.
51256 * include/grub/script.h: Likewise.
51257 * normal/execute.c: Likewise.
51258 * normal/function.c: Likewise.
51259 * normal/lexer.c: Likewise.
51260 * normal/parser.y: Likewise.
51261 * normal/script.c: Likewise.
51263 * configure.ac: Add `AC_PROG_YACC' test.
51265 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51266 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51267 `normal/function.c' and `normal/script.c'.
51268 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51269 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51270 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51272 (pkgdata_MODULES): Add `test.mod'.
51273 (grub_script.tab.c): New rule.
51274 (grub_script.tab.h): Likewise.
51276 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51278 * include/grub/normal.h (grub_test_init): New prototype.
51279 (grub_test_fini): Likewise.
51281 * normal/command.c: Include <grub/script.h>.
51282 (grub_command_execute): Rewritten.
51284 * util/grub-emu.c (main): Call `grub_test_init' and
51287 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51289 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51291 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51292 there are no pending characters.
51294 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51296 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51297 `grub_strndup' to drop device arguments. Replace unnecessary
51298 `grub_strndup' with `grub_strdup'.
51300 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51302 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51303 `debug' environment variable has been set.
51305 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51307 * Makefile.in (install-local): Use $(DATA).
51308 (uninstall): Likewise.
51309 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51310 (sbin_UTILITIES): ... to here.
51311 (sbin_SCRIPTS): New variable.
51312 (grub_install_SOURCES): New variable.
51313 * util/powerpc/ieee1275/grub-install.in: New file.
51314 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51316 (add_segments): Call `grub_util_get_path'.
51318 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51320 From Timothy Baldwin:
51321 * commands/ls.c (grub_ls_list_files): Close FILE with
51323 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51325 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51327 * include/grub/parser.h: New file.
51329 * kern/parser.c: Likewise.
51331 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51332 (grub_setup_SOURCES): Likewise.
51333 (grub_probefs_SOURCES): Likewise.
51334 (grub_emu_SOURCES): Likewise.
51335 (kernel_img_HEADERS): Add `parser.h'.
51337 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51338 (grub_emu_SOURCES): Add `kern/parser.c'.
51339 (grubof_SOURCES): Likewise.
51341 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51342 (grubof_SOURCES): Add `kern/parser.c'.
51344 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51346 * kern/misc.c (grub_split_cmdline): Removed function.
51348 * kern/rescue.c: Include <grub/parser.h>.
51349 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51350 of `grub_split_cmdline'.
51352 * normal/command.c: Include <grub/parser.h>.
51353 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51354 of `grub_split_cmdline'.
51356 * normal/completion.c: Include <grub/parser.h>.
51357 (cmdline_state): New variable.
51358 (iterate_dir): End the filename with a quote depending on the
51359 command line state.
51360 (get_state): new function.
51361 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51362 split the arguments and determine the current argument. When the
51363 argument string is not quoted, escape all spaces.
51365 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51367 * normal/sparc64/setjmp.S: New file.
51369 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51371 * include/grub/sparc64/libgcc.h: New file.
51372 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51373 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51374 normal/sparc64/setjmp.c.
51376 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51378 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51379 * kern/sparc64/cache.S: New file.
51380 * kern/sparc64/cache.c: Removed.
51381 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51382 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51384 (COMMON_LDFLAGS): Add -melf64_sparc.
51385 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51386 (grubof_SOURCES): Use cache.S instead of cache.c.
51387 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51388 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51389 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51391 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51392 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51393 (linux_mod_CFLAGS): Commented out.
51394 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51395 out because module isn't built.
51396 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51397 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51398 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51399 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51400 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51401 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51402 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51403 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51404 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51405 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51406 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51407 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51408 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51409 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51411 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51413 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51414 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51415 longer, because HFS should not be used on PC.
51417 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51419 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51420 consistently within the loop.
51422 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51424 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51425 directory can not be read.
51427 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51429 * configure.ac (AC_INIT): Increase the version number to 1.91.
51431 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51432 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51433 term/i386/pc/serial.c.
51435 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51437 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51438 file size must be permitted.
51440 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51441 between %ah and %al.
51443 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51445 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51447 Call the hook with a NUL-terminated filename.
51448 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51451 * kern/term.c (cursor_state): New variable.
51452 (grub_term_set_current): Reset the cursor state on a new
51454 (grub_setcursor): Rewritten to use CURSOR_STATE.
51455 (grub_getcursor): New function.
51457 * include/grub/term.h (grub_getcursor): New prototype.
51459 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51460 integers on ARM. Reported by Timothy Baldwin
51461 <T.E.Baldwin99@members.leeds.ac.uk>.
51463 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51465 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51467 (grub_sfs_dir): Likewise.
51469 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51471 Add support for the SFS filesystem.
51473 * fs/sfs.c: New file.
51475 * DISTLIST: Added `fs/sfs.c'.
51477 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51478 (grub_probefs_SOURCES): Likewise.
51479 (grub_emu_SOURCES): Likewise.
51480 (pkgdata_MODULES): Add `sfs.mod'.
51481 (sfs_mod_SOURCES): New variable.
51482 (sfs_mod_CFLAGS): Likewise.
51483 (sfs_mod_LDFLAGS): Likewise.
51485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51486 (pkgdata_MODULES): Add `sfs.mod'.
51487 (sfs_mod_SOURCES): New variable.
51488 (sfs_mod_CFLAGS): Likewise.
51490 * util/grub-emu.c (main): Call `grub_sfs_init' and
51493 * include/grub/fs.h (grub_sfs_init): New prototype.
51494 (grub_sfs_fini): Likewise.
51496 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51498 Add support for the AFFS filesystem.
51500 * fs/affs.c: New file.
51502 * DISTLIST: Added `fs/affs.c'.
51504 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51505 (grub_probefs_SOURCES): Likewise.
51506 (grub_emu_SOURCES): Likewise.
51507 (pkgdata_MODULES): Add `affs.mod'.
51508 (affs_mod_SOURCES): New variable.
51509 (affs_mod_CFLAGS): Likewise.
51510 (affs_mod_LDFLAGS): Likewise.
51512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51513 (pkgdata_MODULES): Add `affs.mod'.
51514 (affs_mod_SOURCES): New variable.
51515 (affs_mod_CFLAGS): Likewise.
51517 * util/grub-emu.c (main): Call `grub_affs_init' and
51520 * include/grub/fs.h (grub_affs_init): New prototype.
51521 (grub_affs_fini): Likewise.
51523 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51525 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51527 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51529 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51532 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51535 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51536 (COMMON_LDFLAGS): New variable.
51537 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51538 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51539 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51540 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51541 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51542 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51543 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51544 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51545 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51546 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51547 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51548 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51549 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51550 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51551 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51553 (normal_mod_ASFLAGS): Add `-m32'.
51555 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51556 (grub_host_size_t, grub_host_ssize_t): New types.
51557 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51558 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51559 `GRUB_HOST_SIZEOF_VOID_P'.
51561 * include/grub/kernel.h (struct grub_module_header): Type of
51562 member offset changed to `grub_host_off_t'. Type of member size
51563 changed to `grub_host_size_t'.
51564 (struct grub_module_info): Type of member offset changed to
51565 `grub_host_off_t'. Type of member size changed to
51566 `grub_host_size_t'.
51568 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51570 Make GRUB's kernel compliant to Multiboot Specification.
51572 * kern/i386/pc/startup.S (multiboot_header): New label.
51573 (multiboot_entry): Likewise.
51574 (multiboot_trampoline): Likewise.
51576 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51577 Increased to 0x4A0.
51579 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51580 put parentheses after a question mark.
51581 [!GRUB_UTIL] (my_mod): New variable.
51583 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51585 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51587 Adds support for the XFS filesystem. Btrees are not supported
51590 * fs/xfs.c: New file.
51592 * DISTLIST: Added `fs/xfs.c'.
51594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51595 (grub_probefs_SOURCES): Likewise.
51596 (grub_emu_SOURCES): Likewise.
51597 (pkgdata_MODULES): Add `xfs.mod'.
51598 (xfs_mod_SOURCES): New variable.
51599 (xfs_mod_CFLAGS): Likewise.
51601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51602 (pkgdata_MODULES): Add `xfs.mod'.
51603 (xfs_mod_SOURCES): New variable.
51604 (xfs_mod_CFLAGS): Likewise.
51606 * util/grub-emu.c (main): Call `grub_xfs_init' and
51609 * include/grub/fs.h (grub_xfs_init): New prototype.
51610 (grub_xfs_fini): Likewise.
51613 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51615 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51616 color modes, allow greater than 16 colors to be configured as
51619 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51621 * normal/completion.c (complete_arguments): Add the qualifier
51622 const into OPTIONS.
51624 From Omniflux <omniflux+lists@omniflux.com>:
51625 * include/grub/terminfo.h: New file.
51626 * include/grub/tparm.h: Likewise.
51627 * include/grub/i386/pc/serial.h: Likewise.
51628 * term/terminfo.c: Likewise.
51629 * term/tparm.c: Likewise.
51630 * term/i386/pc/serial.c: Likewise.
51631 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51633 (terminfo_mod_SOURCES): New variable.
51634 (terminfo_mod_CFLAGS): Likewise.
51635 (serial_mod_SOURCES): Likewise.
51636 (serial_mod_CFLAGS): Likewise.
51638 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51640 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51641 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51642 and kern/powerpc/ieee1275/cmain.c, respectively.
51644 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51645 * kern/powerpc/ieee1275/crt0.S: ... here.
51647 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51648 * kern/powerpc/ieee1275/cmain.c: ... here.
51650 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51651 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51652 instead of boot/powerpc/ieee1275/crt0.S and
51653 boot/powerpc/ieee1275/cmain.c, respectively.
51655 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51656 sectors. It was not used anyway.
51658 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51660 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51661 `unused parameter' warning.
51663 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51665 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51667 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51670 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51672 * include/grub/normal.h (enum grub_completion_type): Added
51673 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51675 * normal/cmdline.c (print_completion): Handle
51676 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51677 * normal/menu_entry.c (store_completion): Likewise.
51679 * normal/completion.c (complete_arguments): New function.
51680 (grub_normal_do_completion): Call `complete_arguments' when the
51681 current words start with a dash.
51683 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51685 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51686 `gzio.mod' instead of `io.mod').
51688 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51690 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51691 (DISTDIRS): Added io and video.
51692 Rewrite the search routine to make an output consistently.
51694 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51695 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51696 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51697 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51698 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51699 util/powerpc/ieee1275/misc.c.
51701 * include/grub/gzio.h: New file.
51702 * io/gzio.c: Likewise.
51704 * kern/file.c (grub_file_close): Call grub_device_close only if
51705 FILE->DEVICE is not NULL.
51707 * include/grub/mm.h [!NULL] (NULL): New macro.
51709 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51711 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51712 (pkgdata_MODULES): Added gzio.mod.
51713 (gzio_mod_SOURCES): New variable.
51714 (gzio_mod_CFLAGS): Likewise.
51716 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51717 (pkgdata_MODULES): Added gzio.mod.
51718 (gzio_mod_SOURCES): New variable.
51719 (gzio_mod_CFLAGS): Likewise.
51721 * commands/cat.c: Include grub/gzio.h.
51722 (grub_cmd_cat): Use grub_gzfile_open instead of
51725 * commands/cmp.c: Include grub/gzio.h.
51726 (grub_cmd_cmp): Use grub_gzfile_open instead of
51729 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51730 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51732 (grub_rescue_cmd_module): Likewise.
51734 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51736 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51737 kern/sparc64/ieee1275/init.c because it contains _start.
51738 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51740 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51742 * configure.ac: Add support for sparc64 host with ieee1275
51744 * configure: Generated from configure.ac.
51745 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51747 (grub_ofdisk_read): Likewise.
51748 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51749 pointers as (void *) to remove a warning.
51750 (grub_ofdisk_close): Likewise.
51751 (grub_ofdisk_read): Likewise.
51752 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51753 returns, so make it return void to remove a warning.
51754 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51755 Corresponding prototype change.
51756 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51757 values, and cast the pointers as (void *) to remove a warning.
51758 (grub_mm_dump): Likewise.
51759 * conf/sparc64-ieee1275.mk: New file.
51760 * conf/sparc64-ieee1275.rmk: Likewise.
51761 * include/grub/sparc64/setjmp.h: Likewise.
51762 * include/grub/sparc64/types.h: Likewise.
51763 * include/grub/sparc64/ieee1275/console.h: Likewise.
51764 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51765 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51766 * include/grub/sparc64/ieee1275/time.h: Likewise.
51767 * kern/sparc64/cache.c: Likewise.
51768 * kern/sparc64/dl.c: Likewise.
51769 * kern/sparc64/ieee1275/init.c: Likewise.
51770 * kern/sparc64/ieee1275/openfw.c: Likewise.
51772 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51774 * util/console.c (grub_ncurses_putchar): If C is greater than
51775 0x7f, set C to a question mark.
51776 (grub_ncurses_getcharwidth): New function.
51777 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51780 * normal/menu.c (print_entry): Made aware of Unicode. First,
51781 convert TITLE to UCS-4, and predict the cursor position by
51784 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51786 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51788 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51790 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51791 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51794 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51795 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51796 grub_strcpy and grub_strlen. Take it into account that a space
51797 character is inserted as a delimiter.
51799 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51801 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51802 invalid magic in the error.
51804 * commands/search.c: New file.
51806 * util/grub-emu.c (main): Call grub_search_init and
51809 * kern/rescue.c (grub_rescue_print_disks): Removed.
51810 (grub_rescue_print_devices): New function.
51811 (grub_rescue_cmd_ls): Use grub_device_iterate with
51812 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51813 grub_rescue_print_disks.
51815 * kern/partition.c (grub_partition_iterate): Return the result of
51816 PARTMAP->ITERATE instead of GRUB_ERRNO.
51818 * kern/device.c: Include grub/partition.h.
51819 (grub_device_iterate): New function.
51821 * include/grub/partition.h (grub_partition_iterate): Return int
51822 instead of grub_err_t.
51824 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51826 [GRUB_UTIL] (grub_search_fini): Likewise.
51828 * include/grub/device.h (grub_device_iterate): New prototype.
51830 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51832 (pkgdata_MODULES): Added search.mod.
51833 (search_mod_SOURCES): New variable.
51834 (search_mod_CFLAGS): Likewise.
51836 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51837 (pkgdata_MODULES): Added search.mod.
51838 (search_mod_SOURCES): New variable.
51839 (search_mod_CFLAGS): Likewise.
51841 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51842 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51843 All callers changed.
51845 * DISTLIST: Added commands/search.c.
51847 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51849 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51851 (grub_getcharwidth): New function.
51853 * kern/misc.c (grub_utf8_to_ucs4): New function.
51855 * include/grub/term.h (struct grub_term): Added a new member
51857 (grub_getcharwidth): New prototype.
51859 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51861 * term/i386/pc/console.c (map_char): New function. Segregated from
51862 grub_console_putchar.
51863 (grub_console_putchar): Use map_char.
51864 (grub_console_getcharwidth): New function.
51865 (grub_console_term): Specified grub_console_getcharwidth as
51868 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51869 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51871 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51873 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51874 on grub_strtoul completely.
51875 (write_char): Declare local variables in the beginning of the
51877 (grub_vesafb_getcharwidth): New function.
51878 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51881 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51883 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51884 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51885 commands/i386/pc/vbetest.c.
51887 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51888 call grub_vbe_get_controller_info again, because the returned
51889 information is volatile.
51890 (grub_vbe_set_video_mode): Mostly rewritten.
51891 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51892 grub_vbe_status_t correctly.
51893 (grub_vbe_get_video_mode_info): Likewise.
51894 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51895 several if statements.
51897 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51898 * commands/i386/pc/vbeinfo.c: ... this.
51900 * commands/i386/pc/vbe_test.c: Renamed to ...
51901 * commands/i386/pc/vbetest.c: ... this.
51903 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51905 (grub_cmd_vbeinfo): ... this. Save video modes before
51906 iterating. Skip a video mode, if it is not available, not enough
51907 information is given or it is monochrome. Show the memory
51908 model. Leave the interpretation of MODEVAR to grub_strtoul
51910 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51911 (GRUB_MOD_FINI): Likewise.
51913 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51914 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51915 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51916 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51917 grub_strtoul completely.
51918 (real2pm): Removed.
51919 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51920 (GRUB_MOD_FINI): Likewise.
51922 * normal/misc.c: Include grub/mm.h.
51924 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51925 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51926 (vbe_list_modes_mod_SOURCES): Removed.
51927 (vbe_list_modes_mod_CFLAGS): Likewise.
51928 (vbe_test_mod_SOURCES): Likewise.
51929 (vbe_test_mod_CFLAGS): Likewise.
51930 (vbeinfo_mod_SOURCES): New variable.
51931 (vbeinfo_mod_CFLAGS): Likewise.
51932 (vbetest_mod_SOURCES): Likewise.
51933 (vbetest_mod_CFLAGS): Likewise.
51935 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51937 * normal/misc.c: New file.
51939 * DISTLIST: Added normal/misc.c.
51941 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51942 DISK to HOOK. Call HOOK with DISK.
51943 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51944 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51945 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51947 * normal/menu_entry.c (struct screen): Added a new member
51948 "completion_shown".
51949 (completion_buffer): New global variable.
51950 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51951 (store_completion): New function.
51952 (complete): Likewise.
51953 (clear_completions): Likewise.
51954 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51955 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51956 a tab, call complete.
51958 * normal/completion.c (disk_dev): Removed.
51959 (print_simple_completion): Likewise.
51960 (print_partition_completion): Likewise.
51961 (print_func): New global variable.
51962 (add_completion): Do not take the arguments WHAT or PRINT any
51963 longer. Added a new argument TYPE. Instead of printing directly,
51964 call PRINT_FUNC if not NULL.
51965 All callers changed.
51966 (complete_device): Use a local variable DEV instead of
51967 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51968 (grub_normal_do_completion): Take a new argument HOOK. Do not
51969 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51970 empty string, return NULL instead.
51971 All callers changed.
51973 * normal/cmdline.c (print_completion): New function.
51975 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51977 All callers changed.
51979 * kern/disk.c (grub_print_partinfo): Removed.
51981 * include/grub/partition.h (struct grub_partition_map): Add a new
51982 argument DISK into HOOK of ITERATE.
51983 (grub_partition_iterate): Add a new argument DISK to HOOK.
51985 * include/grub/normal.h (enum grub_completion_type): New enum.
51986 (grub_completion_type_t): New type.
51987 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
51988 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
51989 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
51990 (GRUB_COMPLETION_TYPE_FILE): Likewise.
51991 (grub_normal_do_completion): Added a new argument HOOK.
51992 (grub_normal_print_device_info): New prototype.
51994 * include/grub/disk.h (grub_print_partinfo): Removed.
51996 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
51997 (normal_mod_SOURCES): Likewise.
51998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51999 (normal_mod_SOURCES): Likewise.
52001 * commands/ls.c (grub_ls_list_disks): Use
52002 grub_normal_print_device_info instead of grub_print_partinfo. Free
52004 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52005 duplicating the code.
52007 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52009 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52010 follow GCS more precisely.
52011 * commands/i386/pc/vbe_test.c: Likewise.
52012 * include/grub/i386/pc/vbe.h: Likewise.
52013 * term/i386/pc/vesafb.c: Likewise.
52014 * video/i386/pc/vbe.c: Likewise.
52016 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52018 * DISTLIST: Added term/i386/pc/vesafb.c
52019 DISTLIST: Added video/i386/pc/vbe.c
52020 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52021 DISTLIST: Added commands/i386/pc/vbe_test.c.
52022 * commands/i386/pc/vbe_list_modes.c: New file.
52023 * commands/i386/pc/vbe_test.c: Likewise.
52024 * term/i386/pc/vesafb.c: Likewise.
52025 * video/i386/pc/vbe.c: Likewise.
52026 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52027 (grub_vbe_probe) Added prototype.
52028 (grub_vbe_set_video_mode) Likewise.
52029 (grub_vbe_get_video_mode) Likewise.
52030 (grub_vbe_get_video_mode_info) Likewise.
52031 (grub_vbe_set_pixel_rgb) Likewise.
52032 (grub_vbe_set_pixel_index) Likewise.
52033 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52034 (pkgdata_MODULES): Added vesafb.mod.
52035 (pkgdata_MODULES): Added vbe_list_modes.mod.
52036 (pkgdata_MODULES): Added vbe_test.mod.
52037 (vbe_mod_SOURCES): Added.
52038 (vbe_mod_CFLAGS): Likewise.
52039 (vesafb_mod_SOURCES): Likewise.
52040 (vesafb_mod_CFLAGS): Likewise.
52041 (vbe_list_modes_mod_SOURCES): Likewise.
52042 (vbe_list_modes_mod_CFLAGS): Likewise.
52043 (vbe_test_mod_SOURCES): Likewise.
52044 (vbe_test_mod_CFLAGS): Likewise.
52046 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52048 * normal/command.c (grub_command_execute): If INTERACTIVE is
52049 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52050 CMDLINE. Disable the pager if INTERACTIVE is true.
52051 All callers are changed.
52053 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52054 before reading a config file.
52055 * normal/main.c (read_config_file): Even if a command is not
52056 found, register it if it is within an entry.
52058 * util/grub-emu.c: Include sys/types.h and unistd.h.
52059 (options): Added --hold.
52060 (struct arguments): Added a new member "hold".
52061 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52063 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52064 cleared by a debugger, if it is not zero.
52066 * include/grub/normal.h (grub_command_execute): Add an argument
52069 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52071 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52073 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52075 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52076 program with another one, because the old one didn't detect a bug
52077 in gcc-3.4. Always use regparm 2, because the new test is still
52078 not enough for gcc-4.0. Someone must investigate a simple test
52079 case which detects a bug in gcc-4.0.
52081 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52083 * DISTLIST: Added normal/completion.c.
52085 * normal/completion.c: New file.
52087 * term/i386/pc/console.c (grub_console_getwh): New function.
52088 (grub_console_term): Assign grub_console_getwh to getwh.
52090 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52091 function is defined in normal/completion.c as
52092 grub_normal_do_completion.
52093 (grub_cmdline_get): Use grub_normal_do_completion instead of
52096 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52097 returns non-zero, otherwise return 0.
52098 (grub_partition_iterate): First, probe the partition map. Then,
52099 call ITERATE only for this partition map.
52101 * kern/misc.c (grub_strncmp): Rewritten.
52103 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52104 returns non-zero. Otherwise return 0.
52106 * include/grub/partition.h (grub_partition_map_iterate): Return
52107 int instead of void.
52109 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52111 * include/grub/misc.h (grub_strncmp): Change the type of N to
52114 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52117 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52118 unsigned explicitly before comparing it with I.
52120 * kern/main.c (grub_env_write_root): Add the attribute unused into
52123 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52124 normal/completion.c.
52125 (normal_mod_SOURCES): Likewise.
52126 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52127 (normal_mod_SOURCES): Likewise.
52129 * normal/command.c (grub_iterate_commands): If ITERATE returns
52130 non-zero, return one immediately.
52132 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52134 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52135 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52137 (grub_vbe_get_controller_info): New function.
52138 (grub_vbe_get_mode_info): Likewise.
52139 (grub_vbe_set_mode): Likewise.
52140 (grub_vbe_get_mode): Likewise.
52141 (grub_vbe_set_memory_window): Likewise.
52142 (grub_vbe_get_memory_window): Likewise.
52143 (grub_vbe_set_scanline_length): Likewise.
52144 (grub_vbe_get_scanline_length): Likewise.
52145 (grub_vbe_set_display_start): Likewise.
52146 (grub_vbe_get_display_start): Likewise.
52147 (grub_vbe_set_palette_data): Likewise.
52148 * include/grub/i386/pc/vbe.h: New file.
52150 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52152 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52153 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52154 * DISTLIST: Likewise.
52155 * kern/ieee1275/of.c: Moved to ...
52156 * kern/ieee1275/ieee1275.c: ... here.
52158 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52160 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52161 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52162 Pass 0 as `end' parameter to grub_strtoul().
52164 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52166 * include/grub/powerpc/ieee1275/console.h: Do not include
52167 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52169 (grub_console_cur_color): Remove i386-specific prototype.
52170 (grub_console_real_putchar): Likewise.
52171 (grub_console_checkkey): Likewise.
52172 (grub_console_getkey): Likewise.
52173 (grub_console_getxy): Likewise.
52174 (grub_console_gotoxy): Likewise.
52175 (grub_console_cls): Likewise.
52176 (grub_console_setcursor): Likewise.
52177 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52178 Include <grub/machine/console.h>.
52179 * term/ieee1275/ofconsole.c: Likewise.
52181 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52183 * Makefile.in (LIBLZO): New variable.
52185 * configure.ac: Check for LZO version 2.
52187 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52188 lzo/lzo1x.h instead of lzo1x.h.
52190 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52193 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52194 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52196 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52197 copying the data from PARTITION to P.
52199 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52201 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52202 negative, unload the module.
52204 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52205 map is "pc_partition_map" but not "pc".
52206 (usage): Fix the description. The options are --boot-image and
52207 --core-image but not --boot-file or --core-file.
52208 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52209 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52212 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52213 --core-file. Specify INSTALL_DEVICE as an argument.
52215 * util/console.c: Include config.h.
52216 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52217 [HAVE_NCURSES_H]: Include ncurses.h.
52218 [HAVE_CURSES_H]: Include curses.h.
52219 [!A_NORMAL] (A_NORMAL): Defined as zero.
52220 [!A_STANDOUT] (A_STANDOUT): Likewise.
52222 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52224 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52226 * configure.ac: Check for curses libraries and headers.
52228 * Makefile.in (LIBCURSES): New variable.
52230 * genmk.rb (Script::rule): Set the executable bits.
52232 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52233 name of the PC partition map is "pc_partition_map" but not "pc".
52235 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52237 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52238 (modules): Likewise.
52239 (usage): Added descriptions for --modules and --grub-probefs.
52240 Handle --modules and --grub-probefs. Save the arguments in MODULES
52241 and GRUB_PROBEFS, respectively.
52242 Auto-detect a filesystem module against GRUBDIR. If the result is
52243 empty and modules are not specified explicitly, abort the
52244 installation. Add the result to MODULES.
52246 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52247 disk/powerpc/ieee1275/ofdisk.c,
52248 include/grub/powerpc/ieee1275/init.h and
52249 term/powerpc/ieee1275/ofconsole.c.
52250 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52251 term/ieee1275/ofconsole.c.
52253 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52255 * COPYING: Upgraded to the latest version. Only the address of the
52256 FSF office has changed.
52258 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52260 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52261 kern/ieee1275.c with kern/ieee1275/of.c.
52263 * kern/ieee1275.c: Moved to ...
52264 * kern/ieee1275/of.c: ... here.
52266 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52268 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52271 * config.guess: Updated to the latest version from gnulib.
52272 * config.sub: Likewise.
52273 * install.sh: Likewise.
52274 * mkinstalldirs: Likewise.
52276 * include/grub/console.h: Removed. This file is arch-specific. Do
52277 not put this in include/grub.
52279 * include/grub/i386/pc/console.h: Resurrected.
52281 * util/console.c: Include grub/machine/console.h instead of
52283 * util/grub-emu.c: Likewise.
52285 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52287 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52290 From Vincent Pelletier <subdino2004@yahoo.fr>
52291 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52292 Redefined to use grub_getwh.
52293 (grub_term): New member named getwh.
52294 (grub_getwh): New prototype.
52295 * kern/term.c (grub_getwh): New function.
52296 * term/i386/pc/console.c (grub_console_getwh): New function.
52297 (grub_console_term): New member `getwh'.
52298 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52299 (grub_vga_term): New member `getwh'.
52300 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52302 (grub_ofconsole_getw): New function.
52303 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52304 (grub_ofconsole_term): New field named getwh and new initial
52307 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52309 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52310 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52311 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52312 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52313 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52314 of <grub/machine/ieee1275.h>.
52315 * commands/ieee1275/reboot.c: Likewise.
52316 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52317 * kern/ieee1275.c: ... to here. All users updated. Change all
52318 parameter structs to use new type `grub_ieee1275_cell_t'.
52319 * term/powerpc/ieee1275/ofconsole.c: Move ...
52320 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52321 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52322 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52323 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52325 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52326 Remove unused prototypes. All users updated.
52327 * include/grub/powerpc/ieee1275/console.h: Removed.
52328 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52329 `grub_ieee1275_cell_t'.
52330 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52331 Cast comparisons with -1 to the correct type.
52332 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52333 type to match `grub_ieee1275_entry_fn'.
52335 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52337 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52339 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52340 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52342 (grub_probefs_SOURCES): New variable.
52344 * util/i386/pc/grub-probefs.c: New file.
52346 * util/i386/pc/grub-setup.c (main): Call
52347 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52348 grub_hfs_init and grub_jfs_init to initialize the system. Call
52349 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52350 grub_pc_partition_map_fini to finish the system.
52352 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52354 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52356 (grub_multiboot_load_elf32): Likewise.
52357 (grub_multiboot_is_elf64): Likewise.
52358 (grub_multiboot_load_elf64): Likewise.
52359 (grub_multiboot_load_elf): Likewise.
52360 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52361 an ELF32 or ELF64 file.
52362 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52364 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52365 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52366 NULL before calling FS->LABEL.
52367 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52368 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52369 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52370 before calling FS->LABEL.
52372 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52374 * util/i386/pc/grub-install.in (datadir): New variable.
52376 (pkgdatadir): New variable.
52377 (pkglibdir): Removed.
52379 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52381 * DISTLIST: Added util/i386/pc/grub-install.in.
52383 * util/i386/pc/grub-install.in: New file.
52385 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52386 (grub_install_SOURCES): Likewise.
52388 * genmk.rb: Added support for scripts.
52389 (Script): New class.
52390 (scripts): New variable.
52392 * Makefile.in (install-local): Install sbin_SCRIPTS by
52394 (uninstall): Remove sbin_SCRIPTS.
52396 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52397 device, try to get a GRUB device by
52398 grub_util_biosdisk_get_grub_dev.
52401 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52402 description for --device-map.
52404 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52406 Change the semantics of variable hooks. They now return strings
52407 instead of error values.
52409 * util/i386/pc/grub-setup.c: Include grub/env.h.
52410 (setup): Use grub_device_set_root instead of grub_env_set.
52412 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52413 grub_env_get instead of grub_device_set_root and
52414 grub_device_get_root, respectively.
52416 * kern/main.c (grub_env_write_root): New function.
52417 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52418 grub_env_set instead of grub_device_set_root.
52420 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52422 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52423 rather than calling ENV->WRITE_HOOK afterwards.
52424 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52425 passing a pointer of a pointer.
52426 (grub_register_variable_hook): Change the types of "read_hook" and
52427 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52429 Allocate the default empty string on the heap, because this string
52430 may be freed later.
52432 * kern/device.c: Include grub/env.h.
52433 (grub_device_set_root): Removed.
52434 (grub_device_get_root): Likewise.
52435 (grub_device_open): Use grub_env_get instead of
52436 grub_device_get_root.
52438 * include/grub/env.h (grub_env_read_hook_t): New type.
52439 (grub_env_write_hook_t): Likewise.
52440 (grub_env_var): Change the types of "read_hook" and "write_hook"
52441 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52442 (grub_register_variable_hook): Likewise.
52444 * include/grub/device.h (grub_device_set_root): Removed.
52445 (grub_device_set_root): Likewise.
52447 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52448 make sure that DIRNAME terminates with '/', so that
52449 grub_fat_find_dir will fail if PATH is not a directory.
52451 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52453 Use the qualifier auto for print_files and print_files_long.
52454 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52456 Put a newline only if there is no error.
52457 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52460 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52462 * kern/partition.c (grub_partition_probe): Initialize PART to
52463 NULL. Otherwise, when no partition map is registered, this returns
52466 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52468 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52469 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52472 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52474 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52475 information on each device, if it does not have partitions. Print
52476 "Device" instead of "Disk", because this function is not specific
52479 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52480 static to ensure that it is put on the memory rather than a
52483 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52485 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52486 (grub_cat_init): Likewise.
52487 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52488 (options): Likewise.
52489 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52490 (grub_configfile_init): Likewise.
52491 * font/manager.c (GRUB_MOD_INIT): Likewise.
52492 * commands/help.c (GRUB_MOD_INIT): Likewise.
52493 (grub_help_init): Likewise.
52494 * normal/command.c (grub_command_init): Likewise.
52495 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52496 * disk/loopback.c (grub_loop_init): Likewise.
52497 (GRUB_MOD_INIT): Likewise.
52498 * commands/ls.c (grub_ls_init): Likewise.
52499 (GRUB_MOD_INIT): Likewise.
52500 (options): Likewise.
52501 * commands/boot.c (grub_boot_init): Likewise.
52502 (GRUB_MOD_INIT): Likewise.
52503 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52504 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52505 (GRUB_MOD_INIT): Likewise.
52506 * commands/cmp.c (grub_cmp_init): Likewise.
52507 (GRUB_MOD_INIT): Likewise.
52509 * normal/arg.c: Use <> instead of "" to include header files.
52510 (SHORT_ARG_HELP): New macro.
52511 (SHORT_ARG_USAGE): Likewise.
52512 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52513 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52515 (find_short): Check if C is 'h' or 'u' explicitly.
52516 (grub_arg_show_help): Use space characters instead of tabs. Treat
52517 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52518 are shown with --help and --usage only if they are not used for
52519 the command itself.
52520 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52523 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52524 const into "longarg". Change the type of "shortarg" to int.
52526 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52528 * boot/i386/pc/boot.S (boot_drive_check): New label.
52530 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52533 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52534 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52536 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52538 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52539 When turning off Gate A20, skip the check and return immediately,
52540 because this is not fatal usually.
52542 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52544 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52545 be 0x7C00 instead of 0x8000.
52547 * boot/i386/pc/pxeboot.S: Rewritten.
52549 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52551 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52554 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52556 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52557 robustness. This routine now supports a BIOS call and System
52558 Control Port A to modify the gate A20.
52560 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52561 Increased to 0x440.
52563 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52565 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52566 device path and resulting ihandle.
52567 (grub_ofdisk_close): dprintf the ihandle being closed.
52568 (grub_ofdisk_read): dprintf function parameters.
52569 * kern/mm.c (grub_mm_init_region): Likewise.
52570 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52571 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52572 size, and boot arguments.
52573 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52574 before loading into memory.
52575 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52576 before loading into memory.
52578 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52580 * kern/mm.c: Added much documentation.
52581 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52582 8, set to 5 instead of 8.
52584 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52586 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52588 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52589 (grub_mkdevicemap_SOURCES): New variable.
52591 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52592 lib/device.c of GRUB Legacy.
52594 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52596 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52597 instead of PATH is NULL.
52599 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52601 * commands/cmp.c (BUFFER_SIZE): New macro.
52602 (grub_cmd_cmp): Close the right file at the right time. Compare
52603 only data just read. Don't report files of different size as
52604 identical. Dynamically allocate buffers. Move variable
52605 declarations at the beginning of function.
52607 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52609 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52612 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52614 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52615 when backspace is pressed at beginning of line.
52617 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52619 * DISTLIST: Added genfslist.sh.
52621 * normal/main.c (fs_module_list): New variable.
52622 (autoload_fs_module): New function.
52623 (read_fs_list): Likewise.
52624 (grub_normal_execute): Call read_fs_list.
52626 * kern/fs.c (grub_fs_autoload_hook): New variable.
52627 (grub_fs_probe): Added support for auto-loading.
52629 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52630 (grub_fs_module_list_t): New type.
52632 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52633 (grub_fs_autoload_hook): New prototype.
52635 * genfslist.sh: New file.
52637 * genmk.rb: Added a rule to generate a filesystem list.
52639 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52641 * configure.ac: Fix the test for cross-compiling.
52643 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52644 define GRUB_UTIL anymore.
52646 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52647 so this function works on other systems than just big endian.
52648 (load_modules): Likewise.
52649 (add_segments): Likewise.
52651 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52653 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52654 contains `l' modifier, get a long from va_arg().
52656 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52658 * kern/mm.c (grub_free): If the next free block which is being
52659 merged is the first free block, set the first block to the block
52661 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52663 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52665 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52666 `grub_ieee1275_chosen'.
52668 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52670 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52671 (grub_ieee1275_chosen): New variable.
52672 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52674 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52675 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52676 Rename first argument to `phandle' for consistency.
52677 (grub_ieee1275_get_property_length): Likewise.
52678 (grub_ieee1275_next_property): Likewise. Change type of first argument
52679 to grub_ieee1275_phandle_t.
52680 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52681 Move export next to declaration.
52682 (grub_ieee1275_chosen): New variable.
52683 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52684 Correct cosmetic typo.
52685 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52686 `grub_ieee1275_chosen'.
52687 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52688 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52689 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52690 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52691 `grub_ieee1275_chosen'.
52693 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52695 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52697 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52698 /chosen/bootargs as "variable=value" pairs.
52700 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52702 * include/grub/misc.h (grub_dprintf): New macro.
52703 (grub_real_dprintf): New prototype.
52704 (grub_strword): Likewise.
52705 (grub_iswordseparator): Likewise.
52706 * kern/misc.c (grub_real_dprintf): New function.
52707 (grub_strword): Likewise.
52708 (grub_iswordseparator): Likewise.
52710 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52712 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52713 (roundup): Remove macro.
52714 (grub_ieee1275_flags): Make static.
52715 (grub_ieee1275_realmode): Remove.
52716 (grub_ieee1275_test_flag): New function.
52717 (grub_ieee1275_set_flag): Likewise.
52718 (find_options): Rename to `grub_ieee1275_find_options'; update
52719 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52720 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52721 (cmain): New prototype.
52722 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52723 `grub_ieee1275_flags' directly.
52724 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52725 machine/biosdisk.h.
52726 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52727 Don't include grub/machine/init.h.
52728 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52729 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52731 (grub_ieee1275_realmode): Likewise.
52732 (grub_ieee1275_flag): New enum.
52733 (grub_ieee1275_test_flag): New prototype.
52734 (grub_ieee1275_set_flag): New prototype.
52735 * include/grub/powerpc/ieee1275/init.h: Remove file.
52736 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52737 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52738 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52739 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52741 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52742 `grub_ieee1275_test_flag'.
52743 (grub_ieee1275_encode_devname): Likewise.
52745 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52747 * include/grub/powerpc/ieee1275/ieee1275.h
52748 (grub_ieee1275_encode_devname): New prototype.
52749 (grub_ieee1275_get_filename): Likewise.
52750 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52752 (grub_set_prefix): Likewise.
52753 (grub_machine_init): Call grub_set_prefix.
52754 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52755 (grub_parse_type): New enum.
52756 (grub_ieee1275_get_devargs): New function.
52757 (grub_ieee1275_get_devname): Likewise.
52758 (grub_ieee1275_parse_args): Likewise.
52759 (grub_ieee1275_get_filename): Likewise.
52760 (grub_ieee1275_encode_devname): Likewise.
52762 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52764 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52765 `grub_loader_unset'.
52767 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52769 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52770 instead of grub_ieee1275_interpret.
52771 (grub_halt_init): New function.
52772 (grub_halt_fini): Likewise.
52773 (GRUB_MOD_INIT): Correct message grammar.
52774 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52775 instead of grub_ieee1275_interpret.
52776 (grub_reboot_init): New function.
52777 (grub_reboot_fini): Likewise.
52778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52779 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52780 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52781 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52782 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52784 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52786 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52788 (grub_halt): Likewise.
52789 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52790 (cmain): Remove __attribute__((unused)).
52791 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52792 (grub_heap_len): Likewise.
52793 (grub_machine_fini): New function.
52794 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52795 (grub_halt): Likewise.
52796 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52798 * util/powerpc/ieee1275/misc.c: New file.
52800 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52802 * DISTLIST: New file.
52803 * gendistlist.sh: Likewise.
52805 * Makefile.in (COMMON_DISTFILES): Removed.
52806 (BOOT_DISTFILES): Likewise.
52807 (CONF_DISTFILES): Likewise.
52808 (DISK_DISTFILES): Likewise.
52809 (FS_DISTFILES): Likewise.
52810 (INCLUDE_DISTFILES): Likewise.
52811 (KERN_DISTFILES): Likewise.
52812 (LOADER_DISTFILES): Likewise.
52813 (TERM_DISTFILES): Likewise.
52814 (UTIL_DISTFILES): Likewise.
52815 (DISTFILES): Likewise.
52816 (uninstall): Uninstall files in $(pkgdata_DATA).
52817 (DISTLIST): New target.
52818 (distdir): Use the contents of the file DISTLIST to get a list of
52821 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52823 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52824 descriptor. This is ported from GRUB Legacy.
52826 * gencmdlist.sh: Added an extra semicolon to make it work with
52827 old sed versions. Reported by Robert Bihlmeyer
52828 <robbe@orcus.priv.at>.
52830 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52832 Automatic loading of commands is supported.
52834 * normal/main.c (read_command_list): New function.
52835 (grub_normal_execute): Call read_command_list.
52837 * normal/command.c (grub_register_command): Return zero or CMD.
52838 Allocate CMD->NAME from the heap.
52839 Initialize CMD->MODULE_NAME to zero.
52840 Find the same name as well. If the same command is found and it is
52841 a dummy command, overwrite members. If it is not a dummy command,
52843 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52844 (grub_command_find): If a dummy command is found, load a module
52845 and retry to find a command only once.
52847 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52848 make sure that each command is loaded.
52850 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52852 (struct grub_command): Remove const from the member `name'.
52853 Add a new member `module_name'.
52854 (grub_register_command): Return grub_command_t.
52856 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52857 sure that each command is loaded.
52859 * genmk.rb (PModule::rule): Specify a module name without the
52860 suffix ".mod" to gencmdlist.sh.
52862 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52864 * gencmdlist.sh: New file.
52866 * genmk.rb (PModule::rule): Generate a rule for a command list.
52868 Generate command.lst from $(COMMANDFILES).
52870 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52871 (DATA): Added $(pkgdata_DATA).
52872 (install-local): Install files in $(pkgdata_DATA).
52874 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52876 * term/i386/pc/vga.c (debug_command): Removed.
52877 (GRUB_MOD_INIT): Do not register the command "debug".
52879 From Hollis Blanchard:
52880 * commands/configfile.c: New file.
52881 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52882 commands/configfile.c.
52883 (pkgdata_MODULES): Added configfile.mod.
52884 (configfile_mod_SOURCES): New variable.
52885 (configfile_mod_CFLAGS): Likewise.
52886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52887 commands/configfile.c.
52888 (pkgdata_MODULES): Added configfile.mod.
52889 (configfile_mod_SOURCES): New variable.
52890 (configfile_mod_CFLAGS): Likewise.
52891 * util/grub-emu.c (main): Call grub_configfile_init and
52892 grub_configfile_fini.
52893 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52895 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52897 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52899 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52902 * commands/help.c (grub_cmd_help): Do not print newlines after
52903 the last command in print_command_help.
52905 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52907 * commands/default.h: New file.
52908 * commands/timeout.h: Likewise.
52909 * normal/context.c: Likewise.
52911 * util/misc.c: Do not include sys/times.h.
52912 Include sys/time.h and grub/machine/time.h.
52913 (grub_get_rtc): Rewritten with gettimeofday.
52915 * util/grub-emu.c (main): Call grub_default_init and
52916 grub_timeout_init before grub_normal_init, and call
52917 grub_timeout_fini and grub_default_fini after grub_main.
52919 * util/console.c (grub_ncurses_checkkey): Return the read
52922 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52925 * normal/main.c (read_config_file): Push MENU. If this fails,
52926 print an error and wait for a user input.
52927 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52928 If a menu is empty or an error occurs, pop MENU.
52929 (grub_normal_execute): Pop and free MENU after grub_menu_run
52932 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52934 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52936 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52938 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52940 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52943 * include/grub/normal.h (struct grub_menu_list): New struct.
52944 (grub_menu_list_t): New type.
52945 (struct grub_context): New struct.
52946 (grub_context_t): New type.
52947 (grub_register_command): Got rid of EXPORT_FUNC.
52948 (grub_unregister_command): Likewise.
52949 (grub_context_get): New prototype.
52950 (grub_context_get_current_menu): Likewise.
52951 (grub_context_push_menu): Likewise.
52952 (grub_context_pop_menu): Likewise.
52953 [GRUB_UTIL] (grub_default_init): Likewise.
52954 [GRUB_UTIL] (grub_default_fini): Likewise.
52955 [GRUB_UTIL] (grub_timeout_init): Likewise.
52956 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52958 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52959 commands/timeout.c and normal/context.c.
52960 (pkgdata_MODULES): Added default.mod and timeout.mod.
52961 (normal_mod_SOURCES): Added normal/context.c.
52962 (default_mod_SOURCES): New variable.
52963 (default_mod_CFLAGS): Likewise.
52964 (timeout_mod_SOURCES): Likewise.
52965 (timeout_mod_CFLAGS): Likewise.
52966 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52968 (pkgdata_MODULES): Added default.mod and timeout.mod.
52969 (normal_mod_SOURCES): Added normal/context.c.
52970 (default_mod_SOURCES): New variable.
52971 (default_mod_CFLAGS): Likewise.
52972 (timeout_mod_SOURCES): Likewise.
52973 (timeout_mod_CFLAGS): Likewise.
52975 * Makefile.in (all-local): Added $(MKFILES).
52977 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
52979 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
52980 (grub_emu_SOURCES): Likewise.
52981 (pkgdata_MODULES): Add `sun.mod'.
52982 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52983 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52985 (pkgdata_MODULES): Add `sun.mod'.
52986 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52987 * include/grub/partition.h (grub_sun_partition_map_init): New
52989 (grub_sun_partition_map_fini): Likewise.
52990 * partmap/sun.c: New file.
52991 * util/grub-emu.c (main): Initialize and de-initialize the sun
52992 partitionmap support.
52994 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
52996 This implements an Emacs-like menu entry editor.
52998 * normal/menu_entry.c: New file.
53000 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53001 characters to ASCII.
53002 (saved_char): New variable.
53003 (grub_ncurses_checkkey): Rewritten completely.
53004 (grub_ncurses_getkey): Likewise.
53005 (grub_ncurses_init): Call raw instead of cbreak.
53007 * normal/menu.c (print_entry): Do not put a space.
53008 (init_page): Renamed to ...
53009 (grub_menu_init_page): ... this. All callers changed.
53010 (edit_menu_entry): Removed.
53011 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53013 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53015 * kern/misc.c (grub_vprintf): Call grub_refresh.
53017 * normal/menu.c (DISP_LEFT): Renamed to ...
53018 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53019 * normal/menu.c (DISP_UP): Renamed to ...
53020 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53021 * normal/menu.c (DISP_RIGHT): Renamed to ...
53022 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53023 * normal/menu.c (DISP_DOWN): Renamed to ...
53024 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53025 * normal/menu.c (DISP_HLINE): Renamed to ...
53026 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53027 * normal/menu.c (DISP_VLINE): Renamed to ...
53028 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53029 * normal/menu.c (DISP_UL): Renamed to ...
53030 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53031 * normal/menu.c (DISP_UR): Renamed to ...
53032 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53033 * normal/menu.c (DISP_LL): Renamed to ...
53034 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53035 * normal/menu.c (DISP_LR): Renamed to ...
53036 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53037 * normal/menu.c (TERM_WIDTH): Renamed to ...
53038 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53039 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53040 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53041 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53042 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53043 * normal/menu.c (TERM_MARGIN): Renamed to ...
53044 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53045 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53046 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53047 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53048 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53049 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53050 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53051 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53052 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53053 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53054 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53055 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53056 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53057 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53058 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53059 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53060 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53061 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53062 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53063 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53064 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53065 All callers changed.
53067 * include/grub/normal.h: New prototype.
53069 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53070 normal/menu_entry.c.
53071 (normal_mod_SOURCES): Likewise.
53072 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53073 (normal_mod_SOURCES): Likewise.
53075 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53077 * include/grub/normal.h (grub_halt_init): New prototype.
53078 (grub_halt_fini): Likewise.
53079 (grub_reboot_init): Likewise.
53080 (grub_reboot_fini): Likewise.
53082 * util/grub-emu.c: Include signal.h.
53083 (main_env): New global variable.
53084 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53086 (grub_machine_fini): New function.
53087 (main): Call grub_halt_init and grub_reboot_init before
53088 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53089 Call setjmp with MAIN_ENV to go back afterwards.
53090 Call grub_machine_fini right before return.
53092 * include/grub/util/misc.h: Include setjmp.h.
53093 (main_env): New prototype.
53095 * include/grub/kernel.h (grub_machine_fini): New prototype.
53096 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53097 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53099 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53100 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53101 * term/i386/pc/console.c (grub_console_fini): Likewise.
53103 * util/i386/pc/misc.c: New file.
53105 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53106 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53107 commands/i386/pc/reboot.c.
53109 2005-02-14 Guillem Jover <guillem@hadrons.org>
53111 * include/grub/dl.h (grub_dl_check_header): New prototype.
53112 (grub_arch_dl_check_header): Change return type to grub_err_t,
53113 remove size parameter and export function. Update all callers.
53114 * kern/dl.c (grub_dl_check_header): New function.
53115 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53116 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53117 are inside the core.
53118 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53119 independent ELF header checks.
53120 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53121 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53122 `grub_dl_check_header' instead of explicit checks. Check for the
53124 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53125 `grub_dl_check_header' instead of explicit checks. Remove arch
53126 specific ELF header checks.
53128 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53131 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53133 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53134 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53136 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53138 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53139 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53140 (part_map_iterate): Clear `grub_errno' and return 0 if
53141 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53142 * partmap/amiga.c (amiga_partition_map_iterate): Return
53143 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53144 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53146 2005-02-01 Guillem Jover <guillem@hadrons.org>
53148 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53151 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53153 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53155 (grub_rescue_cmd_linux): New prototype.
53156 (grub_rescue_cmd_initrd): Likewise.
53157 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53159 (grub_linux_release_mem): Release the memory for the initrd.
53160 (grub_load_linux): Renamed from this...
53161 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53162 Changed `entry' not to be static. Loop over memory regions to
53163 find another one when the default fails.
53164 (grub_rescue_cmd_initrd): New function.
53165 (grub_linux_init): Remove function.
53166 (grub_linux_fini): Likewise.
53167 (GRUB_MOD_INIT): Register `initrd'.
53168 (GRUB_MOD_FINI): Unregister `initrd'.
53169 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53171 (grub_linux_normal_fini): Likewise.
53172 (GRUB_MOD_INIT): Register `initrd'.
53173 (GRUB_MOD_FINI): Unregister `initrd'.
53175 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53177 * commands/help.c: New file.
53178 * normal/arg.c (show_help): Renamed to...
53179 (grub_arg_show_help): ... this.
53180 * commands/i386/pc/halt.c: New file.
53181 * commands/i386/pc/reboot.c: Likewise.
53182 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53183 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53184 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53185 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53189 (pkgdata_MODULES): Add `help.mod'.
53190 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53191 * grub/i386/pc/init.h (grub_reboot): New prototype.
53192 (grub_halt): Likewise.
53193 * include/grub/normal.h (grub_arg_show_help): New prototype.
53194 (grub_help_init): Likewise.
53195 (grub_help_fini): Likewise.
53196 * util/grub-emu.c (main): Initialize and deinitialize the help
53199 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53201 * normal/command.c (grub_command_init): Fixed the description of
53202 the `set' and `unset' commands.
53204 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53206 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53208 * commands/ieee1275/halt.c: New file.
53209 * commands/ieee1275/reboot.c: Likewise.
53210 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53211 `__attribute__ ((unused))'. Some GCS related fixed.
53212 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53213 (grub_suspend_fini): Likewise.
53214 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53216 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53217 (halt_mod_CFLAGS): New variables.
53218 * include/grub/powerpc/ieee1275/ieee1275.h
53219 (grub_ieee1275_interpret): New prototype.
53221 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53223 * include/grub/misc.h (memmove): New prototype.
53224 (memcpy): Likewise.
53226 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53228 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53229 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53231 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53233 * kern/misc.c (grub_strndup): Function rewritten.
53235 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53237 * normal/menu.c (TERM_WIDTH): Macro redefined.
53238 (TERM_TOP_BORDER_Y): Likewise.
53239 (draw_border): Replaced while-loop by a for-loop. Make the number
53240 of lines consistent with the number of lines displayed in
53241 print_entries. Added a margin below the rectangle.
53242 (print_entry): Make the entry fit in the rectangle.
53243 (print_entries): Display the scroll arrows next to the right
53246 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53248 * fs/minix.c (grub_minix_find_file): Reserve more space for
53249 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53250 `grub_strncpy' to copy `path' into it.
53252 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53254 Add the loopback device, a device via which files can be accessed
53257 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53258 (pkgdata_MODULES): Add loopback.mod.
53259 (loopback_mod_SOURCES): New variable.
53260 (loopback_mod_CFLAGS): Likewise.
53261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53263 (pkgdata_MODULES): Add loopback.mod.
53264 (loopback_mod_SOURCES): New variable.
53265 (loopback_mod_CFLAGS): Likewise.
53266 * disk/loopback.c: new file.
53267 * include/grub/normal.h (grub_loop_init): New prototype.
53268 (grub_loop_fini): New prototype.
53269 * util/grub-emu.c (main): Initialize and de-initialize loopback
53271 * include/grub/disk.h (grub_disk_dev_id): Add
53272 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53274 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53276 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53278 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53279 (suspend_mod_SOURCES): New variable.
53280 (suspend_mod_CFLAGS): Likewise.
53281 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53283 * commands/ieee1275/suspend.c: New file.
53285 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53287 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53288 ((unused))' to `__attribute__ ((used))'.
53289 (GRUB_MOD_FINI): Likewise.
53290 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53291 * genmk.rb (PModule): Assign space to common symbols when linking
53294 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53296 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53297 `unsigned' arguments to `grub_size_t'.
53298 (grub_malloc): Likewise.
53299 (grub_realloc): Likewise.
53300 (grub_memalign): Likewise.
53301 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53302 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53303 * util/misc.c (grub_malloc): Likewise.
53304 (grub_realloc): Likewise.
53305 * kern/mm.c (get_header_from_pointer): Change the casts to
53306 `unsigned' into a cast to `grub_size_t'.
53308 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53309 point to `currnode' when `currnode' is changed.
53311 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53312 Schottelius <nico-linux@schottelius.org>.
53314 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53316 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53317 (note_path): Remove variable.
53318 (GRUB_IEEE1275_NOTE_NAME): New macro.
53319 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53320 (grub_ieee1275_note_hdr): New structure.
53321 (grub_ieee1275_note_desc): Likewise.
53322 (grub_ieee1275_note): Likewise.
53323 (load_note): Remove `dir' argument. All callers updated. Remove
53324 `note_img' and `path'. Do not load a file from `note_path'.
53325 Initialize a struct grub_ieee1275_note and write that to `out'.
53326 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53328 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53330 * util/misc.c (grub_util_read_image): Revert last change. It
53331 called `grub_util_read_at', which seeks from the beginning of the
53334 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53336 * TODO: Add note about endianness in grub-mkimage.
53337 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53339 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53340 (grub_mkimage_SOURCES): New target.
53341 * include/grub/kernel.h (grub_start_addr): Remove variable.
53342 (grub_end_addr): Likewise.
53343 (grub_total_module_size): Likewise.
53344 (grub_kernel_image_size): Likewise.
53345 (GRUB_MODULE_MAGIC): New constant.
53346 (grub_module_info): New structure.
53347 (grub_arch_modules_addr): New prototype.
53348 (grub_get_end_addr): Remove prototype.
53349 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53350 * include/grub/powerpc/ieee1275/kernel.h: New file.
53351 * include/grub/util/misc.h (grub_util_get_fp_size): New
53353 (grub_util_read_at): Likewise.
53354 (grub_util_write_image_at): Likewise.
53355 * kern/main.c (grub_get_end_addr): Remove function.
53356 (grub_load_modules): Call grub_arch_modules_addr instead of using
53357 grub_end_addr. Look for a grub_module_info struct in memory. Use
53358 the grub_module_info fields instead of calling grub_get_end_addr
53359 as loop conditions. Move grub_add_unused_region code here.
53360 (grub_add_unused_region): Remove function.
53361 * kern/i386/pc/init.c: Include grub/cache.h.
53362 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53363 one call to add_mem_region.
53364 (grub_arch_modules_addr): New function.
53365 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53366 (grub_total_module_size): Likewise.
53367 Include grub/machine/kernel.h.
53368 (grub_arch_modules_addr): New function.
53369 * util/grub-emu.c (grub_end_addr): Remove variable.
53370 (grub_total_module_size): Likewise.
53371 (grub_arch_modules_addr): New function.
53372 * util/misc.c: Include unistd.h.
53373 (grub_util_get_fp_size): New function.
53374 (grub_util_read_at): Likewise.
53375 (grub_util_write_image_at): Likewise.
53376 (grub_util_read_image): Call grub_util_read_at.
53377 (grub_util_write_image): Call grub_util_write_image_at.
53378 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53379 additional memory in kernel_img for a struct grub_module_info.
53380 Fill in that grub_module_info.
53381 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53383 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53385 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53387 * include/grub/powerpc/ieee1275/ieee1275.h
53388 (grub_ieee1275_milliseconds): New prototype.
53389 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53391 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53392 grub_ieee1275_milliseconds.
53394 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53396 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53398 (find_options): New function.
53399 (cmain): Call find_options.
53400 * include/grub/powerpc/ieee1275/ieee1275.h
53401 (grub_ieee1275_realmode): New extern variable.
53402 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53403 grub_map if grub_ieee1275_realmode is false.
53405 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53407 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53408 lines are inserted and make it work like readline. Reported by
53409 Vincent Pelletier <subdino2004@yahoo.fr>.
53411 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53413 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53416 `kern/powerpc/cache.S'.
53418 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53420 * genmk.rb: Handle the `Program' class in the main loop. Written
53421 by Johan Rydberg <jrydberg@gnu.org>.
53422 (Program): New class.
53423 (programs): New variable.
53424 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53425 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53426 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53427 (help_arch): Function removed.
53428 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53429 `powerpc/libgcc.h' and `loader.h'.
53430 (pkgdata_PROGRAMS): New variable.
53431 (sbin_UTILITIES): Variable removed.
53432 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53433 (grubof_SOURCES): Variable re-defined so it only includes the
53434 core functionality.
53435 (grubof_CFLAGS): Remove `-DGRUBOF'.
53436 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53437 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53438 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53439 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53440 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53441 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53442 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53443 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53444 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53445 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53446 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53447 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53448 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53449 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53450 (pc_mod_CFLAGS): New variables.
53451 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53452 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53453 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53454 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53456 * include/grub/i386/pc/init.h (grub_os_area_addr)
53457 (rub_os_area_size): ... to here.
53458 * include/grub/powerpc/ieee1275/ieee1275.h
53459 (grub_ieee1275_entry_fn): Export symbol.
53460 * include/grub/powerpc/ieee1275/init.h: New file.
53461 * include/grub/powerpc/libgcc.h: Likewise.
53462 * include/grub/cache.h: Likewise.
53463 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53464 <hollis@penguinppc.org>.
53465 * kern/dl.c: Include <grub/cache.h>.
53466 (grub_dl_flush_cache): New function.
53467 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53469 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53470 (grub_console_init): Removed prototypes.
53471 (grub_machine_init): Don't initialize the modules anymore.
53472 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53474 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53475 Macro undef removed.
53476 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53477 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53478 relocation `R_PPC_REL32'. Return an error when the relocation is
53480 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53481 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53482 * util/misc.c (grub_arch_sync_caches): Likewise.
53484 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53486 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53487 `symlist.c', add `grubof_symlist.c'.
53488 (symlist.c): Variable removed.
53489 (grubof_HEADERS): Variable added.
53490 (grubof_symlist.c): New target.
53491 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53492 `kernel_img_HEADERS'.
53493 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53494 * kern/powerpc/dl.c: New file.
53495 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53497 (grub_arch_dl_relocate_symbols): Likewise.
53498 (grub_register_exported_symbols): Likewise.
53500 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53502 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53503 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53504 to fail instead. Reported by Vincent Pelletier
53505 <subdino2004@yahoo.fr>.
53507 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53508 it is not allocated. Reported by Vincent Pelletier
53509 <subdino2004@yahoo.fr>.
53511 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53512 output so the output looks better.
53514 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53516 Modulize the partition map support and add support for the amiga
53519 * commands/ls.c: Include <grub/partition.h> instead of
53520 <grub/machine/partition.h>.
53521 * kern/disk.c: Likewise.
53522 * kern/rescue.c: Likewise.
53523 * loader/i386/pc/chainloader.c: Likewise.
53524 * normal/cmdline.c: Likewise.
53525 * kern/powerpc/ieee1275/init.c: Likewise.
53526 (grub_machine_init): Call `grub_pc_partition_map_init',
53527 `grub_amiga_partition_map_init' and
53528 `grub_apple_partition_map_init'.
53529 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53530 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53531 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53532 `partition.h' and `pc_partition.h'.
53533 (grub_setup_SOURCES): Remove
53534 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53535 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53536 (grub_emu_SOURCES): Likewise.
53537 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53538 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53539 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53541 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53542 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53543 (grubof_SOURCES): Likewise.
53544 * disk/i386/pc/partition.c: File removed.
53545 * disk/powerpc/ieee1275/partition.c: Likewise.
53546 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53547 * include/grub/i386/pc/partition.h: Likewise.
53548 * kern/partition.c: New file.
53549 * partmap/amiga.c: Likewise.
53550 * partmap/apple.c: Likewise.
53551 * partmap/pc.c: Likewise.
53552 * include/grub/partition.h: Likewise..
53553 * include/grub/pc_partition.h: Likewise.
53554 * util/grub-emu.c: Include <grub/partition.h> instead of
53555 <grub/machine/partition.h>.
53556 (main): Call `grub_pc_partition_map_init',
53557 `grub_amiga_partition_map_init' and
53558 `grub_apple_partition_map_init' and deinitialize afterwards.
53559 * util/i386/pc/biosdisk.c: Include `#include
53560 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53561 `<grub/machine/partition.h>'.
53562 * util/i386/pc/grub-setup.c: Likewise.
53563 * util/i386/pc/biosdisk.c: Likewise.
53564 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53565 partition information in case of a PC partition.
53566 * util/i386/pc/grub-setup.c: Include `#include
53567 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53568 `<grub/machine/partition.h>'.
53569 (setup): Only access the PC specific partition information in case
53572 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53574 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53575 (grub_longjmp): Likewise.
53576 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53578 * normal/powerpc/setjmp.S: New file.
53579 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53580 `normal/powerpc/setjmp.S'.
53581 (grubof_CFLAGS): Add `-DGRUBOF'.
53582 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53583 [GRUB_UTIL && !GRUBOF].
53585 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53587 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53588 property named `name'. Correctly handle the error returned by
53589 `grub_ieee1275_finddevice' if a device can not be opened.
53591 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53593 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53594 `actual' for negativity.
53595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53598 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53600 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53601 (PAGE_OFFSET): New macro.
53602 (CRTC_ADDR_PORT): Likewise.
53603 (CRTC_DATA_PORT): Likewise.
53604 (START_ADDR_HIGH_REGISTER): Likewise.
53605 (START_ADDR_LOW_REGISTER): Likewise.
53606 (GRAPHICS_ADDR_PORT): Likewise.
53607 (GRAPHICS_DATA_PORT): Likewise.
53608 (READ_MAP_REGISTER): Likewise.
53609 (INPUT_STATUS1_REGISTER): Likewise.
53610 (INPUT_STATUS1_VERTR_BIT): Likewise.
53611 (page): New variable.
53612 (wait_vretrace): New function.
53613 (set_read_map): Likewise.
53614 (set_start_address): Likewise.
53615 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53617 (check_vga_mem): Take the page into account.
53618 (write_char): Likewise.
53619 (write_cursor): Likewise.
53620 (scroll_up): Likewise. Copy the page to the page that is not
53621 shown and switch between both pages.
53622 (grub_vga_putchar): Fix off by one error.
53623 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53626 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53628 Add support for iso9660 (including rockridge).
53630 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53631 (iso9660_mod_SOURCES): New variable.
53632 (iso9660_mod_CFLAGS): Likewise.
53633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53634 * include/grub/fs.h (grub_iso9660_init): New prototype.
53635 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53636 * fs/iso9660.c: New file.
53638 * include/grub/misc.h (grub_strncat): New prototype.
53639 * kern/misc.c (grub_strncat): New function.
53641 * fs/hfs.c (grub_hfs_mount): Translate the error
53642 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53643 * fs/jfs.c (grub_jfs_mount): Likewise.
53644 * fs/ufs.c (grub_ufs_mount): Likewise.
53646 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53648 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53649 which initialized BAT registers.
53650 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53651 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53653 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53654 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53656 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53657 (grub_mapclaim): Likewise.
53658 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53659 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53662 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53664 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53665 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53666 -ffreestanding and -msoft-float.
53668 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53670 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53671 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53672 set in grub_ieee1275_flags.
53674 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53676 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53678 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53679 grub_console_init first.
53680 Change the memory range used for grub_ieee1275_claim and
53681 grub_mm_init_region.
53682 Print an error message if the claim fails.
53683 Include <grub/misc.h>.
53685 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53687 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53688 Call grub_children_iterate for device nodes of type `scsi',
53690 (grub_ofdisk_open): Remove manual device alias resolution.
53691 Fix memory leak when device cannot be opened.
53692 * include/grub/powerpc/ieee1275/ieee1275.h
53693 (grub_children_iterate): New prototype.
53694 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53696 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53697 Return -1 if args.size was -1.
53699 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53701 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53702 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53703 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53704 Open Firmware's memory for it; claim memory from _start to _end.
53705 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53706 (_end): New extern.
53707 (_start): Zero BSS from __bss_start to _end.
53708 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53710 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53712 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53714 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53715 -1 if args.base was -1.
53717 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53719 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53720 escape sequence instead of a literal ^L. Also call
53721 grub_ofconsole_gotoxy.
53723 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53725 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53726 void * arguments to grub_addr_t. All callers updated. Also make
53727 the `result' argument optional.
53728 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53729 All callers updated.
53731 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53733 * commands/ls.c (grub_ls_list_files): Use the string following the
53734 initial ')', if present, as the filesystem path.
53735 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53737 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53739 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53741 Make the source code of the menu interface more readable.
53743 * normal/menu.c: Include grub/mm.h.
53744 (TERM_WIDTH): New macro.
53745 (TERM_HEIGHT): Likewise.
53746 (TERM_INFO_HEIGHT): Likewise.
53747 (TERM_MARGIN): Likewise.
53748 (TERM_SCROLL_WIDTH): Likewise.
53749 (TERM_TOP_BORDER_Y): Likewise.
53750 (TERM_LEFT_BORDER_X): Likewise.
53751 (TERM_BORDER_WIDTH): Likewise.
53752 (TERM_MESSAGE_HEIGHT): Likewise.
53753 (TERM_BORDER_HEIGHT): Likewise.
53754 (TERM_NUM_ENTRIES): Likewise.
53755 (TERM_FIRST_ENTRY_Y): Likewise.
53756 (TERM_ENTRY_WIDTH): Likewise.
53757 (TERM_CURSOR_X): Likewise.
53758 (draw_border): Use macros instead of magic numbers.
53759 (print_entry): Likewise.
53760 (print_entries): Likewise.
53761 (run_menu): Likewise. Also, handle the key 'e'.
53762 (run_menu_entry): Ignore empty command lines.
53763 (print_message): Added a new argument EDIT. If EDIT is true,
53764 print a different message.
53765 (init_page): Likewise.
53766 (edit_menu_entry): New function. Not implemented yet.
53768 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53770 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53771 can be loaded from normal mode.
53773 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53775 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53776 (multiboot_mod_CFLAGS): New variables.
53777 * loader/i386/pc/linux_normal.c: New file.
53778 * loader/i386/pc/multiboot_normal.c: Likewise.
53780 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53781 attribute `unused'.
53783 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53784 `fdiro' to read the mode information from instead of `diro'.
53786 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53787 looking up a symlink.
53789 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53791 * normal/command.c (grub_command_execute): Don't parse the
53792 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53793 flags of the command.
53795 * normal/menu.c (grub_menu_run): Fix typo.
53797 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53799 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53801 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53802 `y + 1' instead of `y - 1'.
53804 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53806 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53808 From Hollis Blanchard <hollis@penguinppc.org>:
53809 * kern/misc.c (memmove): New alias for grub_memmove.
53810 (memcmp): New alias for grub_memcmp.
53811 (memset): New alias for grub_memset.
53812 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53813 Change "int handle" to "grub_ieee1275_phandle_t handle".
53814 * include/grub/powerpc/ieee1275/ieee1275.h
53815 (grub_ieee1275_get_property): Likewise.
53817 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53819 Added normal mode command `chainloader' as module chain.mod, which
53820 depends on normal.mod and _chain.mod.
53822 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53823 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53824 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53826 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53827 but arguments parsing moved to ...
53828 (grub_chainloader_cmd): ... here. New function.
53829 * include/grub/i386/pc/chainloader.h: New file.
53830 * loader/i386/pc/chainloader_normal.c: Likewise.
53832 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53834 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53835 (grub_mkimage_LDFLAGS): Likewise.
53836 (grub_emu_SOURCES): Likewise.
53837 (kernel_img_HEADERS): Added fshelp.h.
53838 * fs/ext2.c: Include <grub/fshelp.h>.
53839 (FILETYPE_REG): New macro.
53840 (FILETYPE_INO_REG): Likewise.
53841 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53843 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53845 (grub_fshelp_node): New struct.
53846 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53848 (grub_ext2_get_file_block): Removed function.
53849 (grub_ext2_read_block): New function.
53850 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53851 This function was written.
53852 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53853 (grub_ext2_find_file): Removed function.
53854 (grub_ext2_read_symlink): New function.
53855 (grub_ext2_iterate_dir): Likewise.
53856 (grub_ext2_open): Rewritten.
53857 (grub_ext2_dir): Rewritten.
53858 * include/grub/fshelp.h: New file.
53859 * fs/fshelp.c: Likewise.
53861 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53863 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53864 (print_message): Add a missing newline.
53865 (run_menu): Added timeout support.
53866 (run_menu_entry): New local function.
53867 (grub_menu_run): Added support for booting.
53869 * kern/loader.c (grub_loader_is_loaded): New function.
53871 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53872 (grub_get_rtc): Exported.
53874 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53875 (grub_get_rtc): Exported.
53877 * include/grub/normal.h (struct grub_command_list): Remove
53878 constant from the member `command'.
53880 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53882 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53884 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53886 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53888 Add support for the JFS filesystem.
53890 * fs/jfs.c: New file.
53891 * include/grub/fs.h (grub_jfs_init): New prototype.
53892 (grub_jfs_fini): New prototype.
53893 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53894 (grub_emu_SOURCES): Likewise.
53895 (pkgdata_MODULES): Add jfs.mod.
53896 (jfs_mod_SOURCES): New variable.
53897 (jfs_mod_CFLAGS): Likewise.
53898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53899 (grubof_SOURCES): Likewise.
53900 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53902 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53903 endian to the host endian.
53904 (grub_fat_utf16_to_utf8): Move function from there...
53905 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53906 the endianness of the source string anymore.
53907 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53909 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53911 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53912 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53913 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53914 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53916 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53917 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53918 for `node_found' and `it_dir'.
53919 (grub_hfs_dir): Add prototype for `dir_hook'.
53921 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53922 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53923 and `indir32' to silence a gcc warning.
53925 * include/grub/fs.h (grub_hfs_init): New prototype.
53926 (grub_hfs_fini): Likewise.
53929 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53931 Each disk device has its own id now. This is useful to make use
53932 of multiple disk devices.
53934 * include/grub/disk.h (grub_disk_dev_id): New enum.
53935 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53936 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53938 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53939 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53941 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53942 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53944 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53945 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53947 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53948 "id" which is used by the cache manager.
53950 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53953 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53955 * fs/hfs.c: New file.
53956 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53957 (grub_emu_SOURCES): Likewise.
53958 (pkgdata_MODULES): Add hfs.mod.
53959 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53960 (grubof_SOURCES): Likewise.
53961 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53963 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53964 * kern/misc.c (grub_strncasecmp): Add function.
53966 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53968 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53971 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53972 (grub_ext2_dir): In case the directory entry type is unknown, read
53975 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53977 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
53978 grub_load_linux instead of grub_rescue_cmd_linux as second
53979 argument of grub_rescue_register_command.
53981 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
53983 2004-07-27 Marco Gerards <metgerards@student.han.nl>
53985 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
53987 * commands/boot.c: Remove the check for `GRUB_UTIL'.
53988 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53989 `loader/powerpc/ieee1275/linux.c',
53990 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
53991 * include/grub/powerpc/ieee1275/ieee1275.h
53992 (grub_ieee1275_release): New prototype.
53993 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
53994 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
53995 normal, boot, linux and linux_normal.
53996 * loader/powerpc/ieee1275/linux.c: New file.
53997 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
53999 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54001 * normal/arg.c (grub_arg_parse): Correct error handling after
54002 reallocating the argumentlist (check if `argl' is not null instead
54003 of checking if `args' is not null).
54004 * kern/mm.c (grub_realloc): Return the same pointer when using the
54005 same region, instead of returning the header address.
54007 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54009 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54010 one block instead of two when looking for the initial partition.
54011 (grub_partition_probe): Initialize the local variable `p' with 0.
54012 Use base 10 for the grub_strtoul call.
54013 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54014 need for one local variable.
54015 (grub_strtoul): Don't add the new value to `num', instead of that
54018 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54020 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54021 (pxeboot_img_SOURCES): New variable.
54022 (pxeboot_img_ASFLAGS): Likewise.
54023 (pxeboot_img_LDFLAGS): Likewise.
54024 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54025 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54026 <lode_leroy@hotmail.com>.
54028 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54030 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54031 there was no input.
54033 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54035 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54036 the history buffer logic.
54038 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54040 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54041 (FILETYPE_INO_SYMLINK): New macros.
54042 (grub_ext2_find_file): Check if the node is a directory using the
54043 inode stat information instead of using the filetype in the
54044 dirent. Exclude the first character of an absolute symlink.
54045 (grub_ext2_dir): Mask out the filetype part of the mode member of
54048 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54050 Add support for UFS version 1 and 2. Add support for the minix
54051 filesystem version 1 and 2, both the variants with 14 and 30 long
54054 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54056 (grub_emu_SOURCES): Likewise.
54057 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54058 (ufs_mod_SOURCES): New variable.
54059 (ufs_mod_CFLAGS): Likewise.
54060 (minix_mod_SOURCES): Likewise.
54061 (minix_mod_CFLAGS): Likewise.
54062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54064 (grubof_SOURCES): Likewise.
54065 * fs/ufs.c: New file.
54066 * fs/minix.c: New file.
54067 * include/grub/fs.h (grub_ufs_init): New prototype.
54068 (grub_ufs_fini): Likewise.
54069 (grub_minix_init): Likewise.
54070 (grub_minix_fini): Likewise.
54071 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54074 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54077 commands/ls.c, commands/terminal.c, commands/boot.c,
54078 commands/cmp.c and commands/cat.c.
54079 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54081 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54084 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54086 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54087 and grub_, respectively. Because the conversion is trivial and
54088 mechanical, I omit the details here. Please refer to the CVS
54089 if you need more information.
54091 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54093 * include/pupa: Renamed to ...
54094 * include/grub: ... this.
54095 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54096 * util/i386/pc/grub-mkimage.c: ... this.
54097 * util/i386/pc/pupa-setup.c: Renamed to ...
54098 * util/i386/pc/grub-setup.c: ... this.
54099 * util/pupa-emu.c: Renamed to ...
54100 * util/grub-emu.c: ... this.
54102 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54104 Add support for the newworld apple macintosh (PPC). This has been
54105 tested on the powerbook 2000 only. It only adds support for
54106 generic ieee1275 functions, console and disk support. This should
54107 be easy to port to other architectures with support for Open
54110 * configure.ac: Accept the powerpc as host_cpu. In the case of
54111 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54112 specific tests are only executed while building for the i386.
54113 Inverse test for crosscompile.
54114 * genmk.rb (Utility): Allow assembler files.
54115 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54116 * conf/powerpc-ieee1275.rmk: New file.
54117 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54118 * disk/powerpc/ieee1275/partition.c: Likewise.
54119 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54120 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54121 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54122 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54123 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54124 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54125 * include/pupa/powerpc/ieee1275/loader.h
54126 * include/pupa/powerpc/setjmp.h: Likewise.
54127 * include/pupa/powerpc/types.h: Likewise.
54128 * kern/powerpc/ieee1275/init.c: Likewise.
54129 * kern/powerpc/ieee1275/openfw.c: Likewise.
54130 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54132 These files were written by Johan Rydberg
54133 (jrydberg@night.trouble.net) and I only modified them slightly.
54135 * boot/powerpc/ieee1275/cmain.c: New file.
54136 * boot/powerpc/ieee1275/crt0.S: Likewise.
54137 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54138 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54140 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54142 * Makefile.in: Update copyright.
54143 * genmodsrc.sh: Likewise.
54144 * gensymlist.sh: Likewise.
54145 * term/i386/pc/vga.c: Indent correctly.
54147 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54148 bugreporting address.
54149 * util/i386/pc/pupa-setup.c (usage): Likewise,
54150 (main): Call pupa_ext2_init and pupa_ext2_fini.
54152 * fs/fat.c (log2): Renamed to ...
54153 (fat_log2): ... this.
54154 All callers changed.
54155 * kern/misc.c (memcpy): Alias to pupa_memmove.
54156 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54158 * util/console.c (pupa_ncurses_fini): Return 0.
54160 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54161 Move fail label here.
54162 [__GNU__]: Don't warn when using stat.
54163 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54164 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54165 long int. Use strtol instead of strtoul.
54167 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54169 * commands/boot.c: New file.
54170 * commands/cat.c: Likewise.
54171 * commands/cmp.c: Likewise.
54172 * commands/ls.c: Likewise.
54173 * commands/terminal.c: Likewise.
54174 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54175 (pupa_register_command): Changed interface to match the new
54177 (pupa_command_execute): Changed (almost rewritten) so it uses
54178 pupa_split_command. Added support for setting variables using the
54180 (rescue_command): Changed to work with the new argument parser.
54181 (terminal_command): Moved from here to commands/terminal.c.
54182 (set_command): New function.
54183 (unset_command): New function.
54184 (insmod_command): New function.
54185 (rmmod_command): New function.
54186 (lsmod_command): New function.
54187 (pupa_command_init): Don't initialize the command terminal
54188 anymore. Initialize the commands set, unset, insmod, rmmod and
54190 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54191 (kernel_img_HEADERS): Add arg.h and env.h.
54192 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54193 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54194 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54196 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54198 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54199 (boot_mod_SOURCES): New variable.
54200 (terminal_mod_SOURCES): Likewise.
54201 (ls_mod_SOURCES): Likewise.
54202 (cmp_mod_SOURCES): Likewise.
54203 (cat_mod_SOURCES): Likewise.
54205 * normal/arg.c: New file.
54206 * kern/env.c: Likewise.
54207 * include/pupa/arg.h: Likewise.
54208 * include/pupa/env.h: Likewise.
54209 * font/manager.c (font_command): Changed to match argument parsing
54211 (PUPA_MOD_INIT): Likewise.
54212 * hello/hello.c (pupa_cmd_hello): Likewise.
54213 (PUPA_MOD_INIT): Likewise.
54214 * include/pupa/disk.h: Include <pupa/device.h>.
54215 (pupa_print_partinfo): New prototype.
54216 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54217 (pupa_dl_get_prefix): Likewise.
54218 * include/pupa/misc.h: Include <pupa/err.h>.
54219 (pupa_isgraph): New prototype.
54220 (pupa_isdigit): Likewise.
54221 (pupa_split_cmdline): Likewise.
54222 * include/pupa/normal.h: Include <pupa/arg.h>.
54223 (pupa_command): Changed the prototype of the member `func' to
54224 match the argument parsing interface. Added member `options'.
54225 (pupa_register_command): Updated to match function.
54226 (pupa_arg_parse): New prototype.
54227 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54228 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54229 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54230 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54231 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54232 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54233 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54234 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54235 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54236 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54237 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54238 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54239 * kern/disk.c: Include <pupa/file.h>.
54240 (pupa_print_partinfo): New function.
54241 * kern/dl.c: Include <pupa/env.h>.
54242 (pupa_dl_dir): Variable removed.
54243 (pupa_dl_load): Use the environment variable `prefix' instead of
54244 the variable pupa_dl_dir.
54245 (pupa_dl_set_prefix): Function removed.
54246 (pupa_dl_get_prefix): Likewise.
54247 * kern/i386/pc/init.c: Include <pupa/env.h>.
54248 (pupa_machine_init): Use the environment variable `prefix' instead of
54249 using pupa_dl_set_prefix to set the prefix.
54250 * kern/main.c: Include <pupa/env.h>.
54251 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54252 using pupa_dl_get_prefix to get the prefix.
54253 * kern/misc.c: Include <pupa/env.h>.
54254 (pupa_isdigit): New function.
54255 (pupa_isgraph): Likewise.
54256 (pupa_ftoa): Likewise.
54257 (pupa_vsprintf): Added support for printing values of the type
54258 `double'. Make it possible to format variable output when using
54259 formatting like `%1.2%f'.
54260 (pupa_split_cmdline): New function.
54261 * kern/rescue.c: Include <pupa/env.h>.
54262 (next_word): Removed function.
54263 (pupa_rescue_cmd_prefix): Likewise.
54264 (pupa_rescue_cmd_set): New function.
54265 (pupa_rescue_cmd_unset): New function.
54266 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54267 split the command line instead of splitting it here. Added
54268 support for setting variables using the syntax `foo=bar'. Don't
54269 initialize the prefix command anymore. Initialized the set and
54271 * normal/cmdline.c: Include <pupa/env.h>.
54272 (pupa_tab_complete): Added prototypes for print_simple_completion,
54273 print_partition_completion, add_completion, iterate_commands,
54274 iterate_dev, iterate_part and iterate_dir. Moved code to print
54275 partition information from here to kern/disk.c.
54276 (pupa_cmdline_run): Don't check if the function exists anymore.
54277 * normal/main.c: Include <pupa/env.h>.
54278 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54279 instead of using pupa_dl_get_prefix to get the prefix.
54280 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54281 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54283 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54284 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54285 ((unused))' to silence a gcc warning.
54286 (pupa_vga_setcolor): Likewise.
54287 (debug_command): Changed to match argument parsing
54289 * util/pupa-emu.c: Include <pupa/env.h>.
54290 (options): Added 0's for unused fields to silence a gcc warning.
54292 (main): Use the environment variable `prefix' instead of using
54293 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54294 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54297 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54298 * util/misc.c: Include <malloc.h>.
54299 (pupa_malloc): Rewritten so errors are correctly reported.
54300 (pupa_realloc): Likewise.
54301 (pupa_memalign): Likewise.
54302 (pupa_mm_init_region): Declare unused variables with
54303 `__attribute__ ((unused))' to silence a gcc warning.
54304 * normal/i386/setjmp.S: Remove tab at the end of the file to
54305 silence a gcc warning.
54306 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54307 variables with `__attribute__ ((unused))' to silence a gcc
54309 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54310 local variable i unsigned to silence a gcc warning.
54312 * kern/term.c: Include <pupa/misc.h>.
54313 (pupa_more_lines): New variable.
54314 (pupa_more): Likewise.
54315 (pupa_putcode): When the pager is active pause at the end of every
54317 (pupa_set_more): New function.
54318 * include/pupa/term.h (pupa_set_more): New prototype.
54321 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54323 Now this project is GRUB 2 rather than PUPA. The location of
54324 the CVS repository was moved to GRUB's.
54326 * configure.ac: Use bug-grub as the reporting address.
54327 Use GRUB instead of PUPA.
54328 Change the version number to 1.90.
54330 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54332 * genkernsyms.sh: Updated copyright information.
54333 * genmk.rb: Likewise.
54334 * genmodsrc.sh: Likewise.
54335 * gensymlist.sh: Likewise.
54336 * boot/i386/pc/boot.S: Likewise.
54337 * boot/i386/pc/diskboot.S: Likewise.
54338 * disk/i386/pc/biosdisk.c: Likewise.
54339 * disk/i386/pc/partition.c: Likewise.
54340 * font/manager.c: Likewise.
54341 * fs/ext2.c: Likewise.
54342 * fs/fat.c: Likewise.
54343 * include/pupa/boot.h: Likewise.
54344 * include/pupa/device.h: Likewise.
54345 * include/pupa/disk.h: Likewise.
54346 * include/pupa/dl.h: Likewise.
54347 * include/pupa/elf.h: Likewise.
54348 * include/pupa/err.h: Likewise.
54349 * include/pupa/file.h: Likewise.
54350 * include/pupa/font.h: Likewise.
54351 * include/pupa/fs.h: Likewise.
54352 * include/pupa/kernel.h: Likewise.
54353 * include/pupa/loader.h: Likewise.
54354 * include/pupa/misc.h: Likewise.
54355 * include/pupa/mm.h: Likewise.
54356 * include/pupa/net.h: Likewise.
54357 * include/pupa/normal.h: Likewise.
54358 * include/pupa/rescue.h: Likewise.
54359 * include/pupa/setjmp.h: Likewise.
54360 * include/pupa/symbol.h: Likewise.
54361 * include/pupa/term.h: Likewise.
54362 * include/pupa/types.h: Likewise.
54363 * include/pupa/i386/setjmp.h: Likewise.
54364 * include/pupa/i386/types.h: Likewise.
54365 * include/pupa/i386/pc/biosdisk.h: Likewise.
54366 * include/pupa/i386/pc/boot.h: Likewise.
54367 * include/pupa/i386/pc/console.h: Likewise.
54368 * include/pupa/i386/pc/init.h: Likewise.
54369 * include/pupa/i386/pc/kernel.h: Likewise.
54370 * include/pupa/i386/pc/linux.h: Likewise.
54371 * include/pupa/i386/pc/loader.h: Likewise.
54372 * include/pupa/i386/pc/memory.h: Likewise.
54373 * include/pupa/i386/pc/multiboot.h: Likewise.
54374 * include/pupa/i386/pc/partition.h: Likewise.
54375 * include/pupa/i386/pc/time.h: Likewise.
54376 * include/pupa/i386/pc/vga.h: Likewise.
54377 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54378 * include/pupa/util/getroot.h: Likewise.
54379 * include/pupa/util/misc.h: Likewise.
54380 * include/pupa/util/resolve.h: Likewise.
54381 * kern/device.c: Likewise.
54382 * kern/disk.c: Likewise.
54383 * kern/dl.c: Likewise.
54384 * kern/err.c: Likewise.
54385 * kern/file.c: Likewise.
54386 * kern/fs.c: Likewise.
54387 * kern/loader.c: Likewise.
54388 * kern/main.c: Likewise.
54389 * kern/misc.c: Likewise.
54390 * kern/mm.c: Likewise.
54391 * kern/rescue.c: Likewise.
54392 * kern/term.c: Likewise.
54393 * kern/i386/dl.c: Likewise.
54394 * kern/i386/pc/init.c: Likewise.
54395 * kern/i386/pc/lzo1x.S: Likewise.
54396 * kern/i386/pc/startup.S: Likewise.
54397 * loader/i386/pc/chainloader.c: Likewise.
54398 * loader/i386/pc/linux.c: Likewise.
54399 * loader/i386/pc/multiboot.c: Likewise.
54400 * normal/cmdline.c: Likewise.
54401 * normal/command.c: Likewise.
54402 * normal/main.c: Likewise.
54403 * normal/menu.c: Likewise.
54404 * normal/i386/setjmp.S: Likewise.
54405 * term/i386/pc/console.c: Likewise.
54406 * term/i386/pc/vga.c: Likewise.
54407 * util/console.c: Likewise.
54408 * util/genmoddep.c: Likewise.
54409 * util/misc.c: Likewise.
54410 * util/pupa-emu.c: Likewise.
54411 * util/resolve.c: Likewise.
54412 * util/unifont2pff.rb: Likewise.
54413 * util/i386/pc/biosdisk.c: Likewise.
54414 * util/i386/pc/getroot.c: Likewise.
54415 * util/i386/pc/pupa-mkimage.c: Likewise.
54416 * util/i386/pc/pupa-setup.c: Likewise.
54418 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54420 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54421 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54422 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54423 reading and reset it after reading.
54424 (pupa_ext2_close): Return PUPA_ERR_NONE.
54426 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54428 (struct linux_kernel_header): Add kernel_version and
54430 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54431 pupa_file_read succeeds.
54432 (pupa_rescue_cmd_initrd): Implement.
54434 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54436 * fs/ext2.c (pupa_ext2_label): New function.
54437 (pupa_ext2_fs): Added label.
54438 * fs/fat.c (pupa_fat_label): New function.
54439 (pupa_fat_fs): Added label.
54440 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54442 * kern/misc.c (pupa_strndup): New function.
54443 * include/pupa/misc.h (pupa_strndup): New prototype.
54445 * include/pupa/normal.h: Include <pupa/err.h>.
54446 (pupa_set_history): New prototype.
54447 (pupa_iterate_commands): New prototype.
54448 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54449 <pupa/disk.h>, <pupa/file.h>.
54450 (hist_size): New variable.
54451 (hist_lines): Likewise.
54452 (hist_end): Likewise.
54453 (hist_used): Likewise.
54454 (pupa_set_history): New function.
54455 (pupa_history_get): Likewise.
54456 (pupa_history_add): Likewise.
54457 (pupa_history_replace): Likewise.
54458 (pupa_tab_complete): Likewise.
54459 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54460 completion shows partitionnames while completing partitions, this
54461 feature was suggested by Jeff Bailey.
54462 * normal/command.c (pupa_iterate_commands): New function.
54463 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54464 (pupa_normal_init): Initialize history buffer.
54465 (PUPA_MOD_INIT): Likewise.
54466 (pupa_normal_fini): Free the history buffer.
54467 (PUPA_MOD_FINI): Likewise.
54469 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54472 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54473 * configure.ac [i386]: Check for regparam bug.
54474 (NESTED_FUNC_ATTR) [! i386]: Defined.
54476 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54478 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54479 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54480 (pupa_emu_SOURCES): New variable.
54481 (pupa_emu_LDFLAGS): Likewise.
54482 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54483 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54484 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54485 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54486 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54487 (pupa_jmp_buf): New typedef.
54488 (pupa_setjmp) [PUPA_UTIL]: New macro.
54489 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54490 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54491 (pupa_refresh): New prototype.
54492 * include/pupa/util/getroot.h: New file.
54493 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54495 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54496 (pupa_rescue_cmd_cat): Likewise.
54497 (pupa_rescue_cmd_ls): Likewise.
54498 (pupa_rescue_cmd_testload): Likewise.
54499 (pupa_rescue_cmd_lsmod): Likewise.
54500 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54501 * normal/menu.c (run_menu): Likewise.
54502 * kern/term.c (pupa_cls): Likewise.
54503 (pupa_refresh): New function.
54504 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54505 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54506 * util/console.c: New file.
54508 * util/i386/pc/getroot.c: New file.
54509 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54510 (pupa_putchar): New function.
54511 (pupa_refresh): Likewise.
54512 (xgetcwd): Function moved to ...
54513 (strip_extra_slashes): Likewise.
54514 (get_prefix): Likewise.
54515 * util/i386/pc/getroot.c: ... here.
54516 (find_root_device): Function moved and renamed to...
54517 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54518 Changed all callers.
54519 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54521 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54522 Changed all callers.
54523 * util/misc.c (pupa_memalign): New function.
54524 (pupa_mm_init_region): Likewise.
54525 (pupa_register_exported_symbols): Likewise.
54526 (pupa_putchar): Function removed.
54527 * util/pupa-emu.c: New file.
54529 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54531 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54532 (_multiboot_mod_SOURCES): New variable.
54533 (_multiboot_mod_CFLAGS): Likewise.
54534 * loader/i386/pc/multiboot.c: New file.
54535 * include/pupa/i386/pc/multiboot.h: Likewise.
54536 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54537 (pupa_multiboot_real_boot): New function.
54538 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54539 (pupa_multiboot_real_boot): New prototype.
54540 (pupa_rescue_cmd_multiboot): Likewise
54541 (pupa_rescue_cmd_module): Likewise.
54543 * kern/loader.c (pupa_loader_set): Continue when
54544 pupa_loader_unload_func() fails.
54545 (pupa_loader_unset): New function.
54546 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54548 * kern/misc.c (pupa_stpcpy): New function.
54549 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54551 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54553 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54554 for available extensions.
54556 * include/pupa/i386/pc/time.h: New file.
54557 * kern/disk.c: Include <pupa/machine/time.h>.
54558 (PUPA_CACHE_TIMEOUT): New macro.
54559 (pupa_last_time): New variable.
54560 (pupa_disk_open): Flush the cache when there was a timeout.
54561 (pupa_disk_close): Reset the timer.
54562 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54564 * util/misc.c: Include <sys/times.h>
54565 (pupa_get_rtc): New function.
54567 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54569 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54571 (pupa_ext2_get_file_block): Use blocks member.
54573 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54574 first block. Return -1 instead of pupa_errno on error.
54576 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54578 * README: In the pupa-mkimage example use _chain instead of chain
54579 and ext2 instead of fat.
54580 * TODO: Replace ext2fs with jfs as an example. Add an item for
54581 adding journal playback for ext2fs.
54582 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54583 (pkgdata_MODULES): Added ext2.mod.
54584 (ext2_mod_SOURCES): New variable.
54585 (ext2_mod_CFLAGS): Likewise.
54586 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54587 * include/pupa/misc.h (pupa_strncpy): New prototype.
54588 (pupa_strcat): Likewise.
54589 (pupa_strncmp): Likewise.
54590 * kern/misc.c (pupa_strcat): Enable function.
54591 (pupa_strncpy): New function.
54592 (pupa_strncmp): Likewise.
54593 * fs/ext2.c: New file.
54595 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54596 when the read failed before retrying.
54597 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54598 (_FILE_OFFSET_BITS): Likewise.
54599 * configure.ac: Added AC_SYS_LARGEFILE.
54601 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54603 * genmk.rb (PModule#rule): Make sure to get only symbol names
54604 from the output of nm.
54605 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54607 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54609 I forgot to check in these changes for a long time. This adds
54610 incomplete support for VGA console, and this is still very
54611 buggy. Also, a lot of consideration is required for I18N,
54612 UNICODE, and VGA font issues. Therefore, assume that this is
54613 such that "better than nothing".
54615 * font/manager.c: New file.
54616 * include/pupa/font.h: Likewise.
54617 * include/pupa/i386/pc/vga.h: Likewise.
54618 * term/i386/pc/vga.c: Likewise.
54619 * util/unifont2pff.rb: Likewise.
54621 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54622 (pkgdata_MODULES): Added vga.mod and font.mod.
54623 (vga_mod_SOURCES): New variables.
54624 (vga_mod_CFLAGS): Likewise.
54625 (font_mod_SOURCES): Likewise.
54626 (font_mod_CFLAGS): Likewise.
54628 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54630 * include/pupa/term.h: Include pupa/err.h.
54631 (struct pupa_term): Added init and fini.
54632 Changed the argument of putchar to pupa_uint32_t.
54634 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54635 (pupa_console_real_putchar): New prototype.
54636 (pupa_console_putchar): Removed.
54637 (pupa_console_checkkey): Exported.
54638 (pupa_console_getkey): Likewise.
54640 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54643 * kern/term.c (pupa_term_set_current): Rewritten.
54644 (pupa_putchar): Likewise.
54645 (pupa_putcode): New function.
54647 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54648 (pupa_console_real_putchar): ... this.
54649 (pupa_vga_set_mode): New function.
54650 (pupa_vga_get_font): Likewise.
54652 * normal/command.c: Include pupa/term.h.
54653 (terminal_command): New function.
54654 (pupa_command_init): Register the command "terminal".
54656 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54657 (DISP_UP): Likewise.
54658 (DISP_RIGHT): Likewise.
54659 (DISP_DOWN): Likewise.
54660 (DISP_HLINE): Likewise.
54661 (DISP_VLINE): Likewise.
54662 (DISP_UL): Likewise.
54663 (DISP_UR): Likewise.
54664 (DISP_LL): Likewise.
54665 (DISP_LR): Likewise.
54667 * term/i386/pc/console.c (pupa_console_putchar): New function.
54669 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54671 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54672 FIX. Reverse the path_list.
54674 * include/pupa/normal.h: Export pupa_register_command and
54675 pupa_unregister_command.
54677 * hello/hello.c (pupa_cmd_hello): New module.
54678 * conf/i386-pc.rmk: Added hello.mod.
54680 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54682 * kern/i386/pc/lzo1x.S: New file.
54684 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54685 (compress_kernel): New variable.
54686 (generate_image): Heavily modified to support compressing a
54687 large part of the core image.
54689 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54691 (pupa_util_load_image): New function.
54693 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54694 (pupa_compressed_size): New variable.
54695 (codestart): Enable Gate A20 here.
54696 Decompress the compressed part of the core image.
54697 Rearrange the code to put functions and variables which are
54698 required for initialization in the non-compressed part.
54701 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54704 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54706 * include/pupa/i386/pc/kernel.h
54707 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54708 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54709 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54710 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54711 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54713 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54715 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54716 (Utility#rule): Likewise.
54718 * configure.ac: Check if LZO is available.
54720 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54722 * include/pupa/normal.h: New file.
54723 * include/pupa/setjmp.h: Likewise.
54724 * include/pupa/i386/setjmp.h: Likewise.
54725 * normal/cmdline.c: Likewise.
54726 * normal/command.c: Likewise.
54727 * normal/main.c: Likewise.
54728 * normal/menu.c: Likewise.
54729 * normal/i386/setjmp.S: Likewise.
54731 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54732 (pupa_rescue_cmd_initrd): Likewise.
54734 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54737 * kern/i386/pc/startup.S (translation_table): New variable.
54738 (translate_keycode): New function.
54739 (pupa_console_getkey): Call translate_keycode.
54741 * kern/rescue.c (attempt_normal_mode): New function.
54742 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54743 it failed, print a message.
54745 * kern/mm.c (pupa_real_malloc): Print more information when a
54746 free magic is broken.
54747 (pupa_free): If the first free header is not free actually, set
54750 * kern/main.c (pupa_load_normal_mode): Just load the module
54752 (pupa_main): Don't print the message
54753 "Entering into rescue mode..." here.
54755 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54757 (pupa_rescue_cmd_initrd): Likewise.
54758 (pupa_rescue_cmd_initrd): Likewise.
54760 * include/pupa/symbol.h (FUNCTION): Specify the type.
54761 (VARIABLE): Likewise.
54763 * include/pupa/err.h (pupa_err_t): Added
54764 PUPA_ERR_UNKNOWN_COMMAND.
54766 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54767 (pupa_dl_get_prefix): Likewise.
54769 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54770 Added _chain.mod and _linux.mod instead of chain.mod and
54772 (chain_mod_SOURCES): Renamed to ...
54773 (_chain_mod_SOURCES): ... this.
54774 (chain_mod_CFLAGS): Renamed to ...
54775 (_chain_mod_CFLAGS): ... this.
54776 (linux_mod_SOURCES): Renamed to ...
54777 (_linux_mod_SOURCES): ... this.
54778 (linux_mod_CFLAGS): Renamed to ...
54779 (_linux_mod_CFLAGS): ... this.
54780 (normal_mod_SOURCES): New variable.
54781 (normal_mod_CFLAGS): Likewise.
54782 (normal_mod_ASFLAGS): Likewise.
54784 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54786 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54789 * kern/dl.c (pupa_dl_ref): Refer depending modules
54791 (pupa_dl_unref): Unrefer depending modules recursively.
54792 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54793 a module is unloaded before one depending on that module is
54795 (pupa_dl_unload): Unload depending modules explicitly,
54798 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54800 * include/pupa/i386/pc/linux.h: New file.
54801 * loader/i386/pc/linux.c: Likewise.
54803 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54805 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54806 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54807 of PUPA_CHAINLOADER_BOOT_SECTOR.
54809 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54810 (pupa_linux_prot_size): New variable.
54811 (pupa_linux_tmp_addr): Likewise.
54812 (pupa_linux_real_addr): Likewise.
54813 (pupa_linux_boot_zimage): New function.
54814 (pupa_linux_boot_bzimage): Likewise.
54816 * kern/i386/pc/init.c (struct mem_region): New structure.
54817 (MAX_REGIONS): New macro.
54818 (mem_regions): New variable.
54819 (num_regions): Likewise.
54820 (pupa_os_area_addr): Likewise.
54821 (pupa_os_area_size): Likewise.
54822 (pupa_lower_mem): Likewise.
54823 (pupa_upper_mem): Likewise.
54824 (add_mem_region): New function.
54825 (compact_mem_regions): Likewise.
54826 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54827 the size of the conventional memory and that of so-called upper
54828 memory (before the first memory hole).
54829 Instead of adding each found region to free memory, use
54830 add_mem_region and add them after removing overlaps.
54831 Also, add only 1/4 of the upper memory to free memory. The rest
54832 is used for loading OS images. Maybe this is ad hoc, but this
54833 makes it much easier to relocate OS images when booting.
54835 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54836 (pupa_enter_rescue_mode): Don't register initrd and module.
54838 * kern/mm.c: Include pupa/dl.h.
54840 * kern/main.c: Include pupa/file.h and pupa/device.h.
54842 * kern/loader.c (pupa_loader_load_module_func): Removed.
54843 (pupa_loader_load_module): Likewise.
54845 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54848 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54849 (pupa_linux_tmp_addr): Likewise.
54850 (pupa_linux_real_addr): Likewise.
54851 (pupa_linux_boot_zimage): Likewise.
54852 (pupa_linux_boot_bzimage): Likewise.
54854 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54855 (pupa_upper_mem): Likewise.
54856 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54857 module is too dangerous.
54859 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54860 (pupa_os_area_size): Likewise.
54861 (pupa_loader_set): Remove the first argument. Loader doesn't
54862 manage modules or initrd any longer.
54863 (pupa_loader_load_module): Removed.
54865 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54866 (linux_mod_SOURCES): New variable.
54867 (linux_mod_CFLAGS): Likewise.
54869 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54871 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54872 the length of a blocklist correctly.
54874 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54875 Use ioctl only if the OS file is a block device.
54876 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54877 not very useful for normal files.
54879 * kern/main.c (pupa_set_root_dev): New function.
54880 (pupa_load_normal_mode): Likewise.
54881 (pupa_main): Call those above.
54883 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54886 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54888 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54890 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54891 (setup): Configure the installed partition information and the
54894 * loader/i386/pc/chainloader.c (my_mod): New variable.
54895 (pupa_chainloader_unload): New function.
54896 (pupa_rescue_cmd_chainloader): Refer itself.
54897 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54899 * kern/i386/pc/startup.S (install_partition): Removed.
54900 (version_string): Likewise.
54901 (config_file): Likewise.
54902 (pupa_install_dos_part): New variable.
54903 (pupa_install_bsd_part): Likewise.
54904 (pupa_prefix): Likewise.
54905 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54907 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54909 (make_install_device): New function.
54910 (pupa_machine_init): Set the dl prefix.
54912 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54913 (buf): Renamed to ...
54914 (linebuf): ... this.
54915 (pupa_rescue_cmd_prefix): New function.
54916 (pupa_rescue_cmd_insmod): Likewise.
54917 (pupa_rescue_cmd_rmmod): Likewise.
54918 (pupa_rescue_cmd_lsmod): Likewise.
54919 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54922 * kern/mm.c (pupa_memalign): If failed even after invalidating
54923 disk caches, unload unneeded modules and retry.
54925 * kern/misc.c (pupa_memmove): New function.
54926 (pupa_memcpy): Removed.
54927 (pupa_strcpy): New function.
54928 (pupa_itoa): Made static.
54930 * kern/dl.c (pupa_dl_iterate): New function.
54931 (pupa_dl_ref): Likewise.
54932 (pupa_dl_unref): Likewise.
54933 (pupa_dl_unload): Return if succeeded or not.
54934 (pupa_dl_unload_unneeded): New function.
54935 (pupa_dl_unload_all): Likewise.
54936 (pupa_dl_init): Renamed to ...
54937 (pupa_dl_set_prefix): ... this.
54938 (pupa_dl_get_prefix): New function.
54940 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54941 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54942 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54943 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54944 (pupa_install_dos_part): Declared.
54945 (pupa_install_bsd_part): Likewise.
54946 (pupa_prefix): Likewise.
54947 (pupa_boot_drive): Likewise.
54949 * include/pupa/types.h: Fix a typo.
54951 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54953 (pupa_memmove): Declared.
54954 (pupa_strcpy): Likewise.
54956 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54957 pupa_mod_init takes one argument, its own module.
54958 (pupa_dl_unload_unneeded): Declared.
54959 (pupa_dl_unload_all): Likewise.
54960 (pupa_dl_ref): Likewise.
54961 (pupa_dl_unref): Likewise.
54962 (pupa_dl_iterate): Likewise.
54963 (pupa_dl_init): Renamed to ...
54964 (pupa_dl_set_prefix): ... this.
54965 (pupa_dl_get_prefix): Declared.
54967 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54968 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54970 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54971 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54973 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54974 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54976 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54978 * util/i386/pc/pupa-setup.c (setup): Define the internal
54979 function find_first_partition_start at the top level, because GCC
54980 3.0.x cannot compile internal functions in deeper scopes
54982 (find_root_device): Use lstat instead of stat.
54983 Don't follow symbolic links.
54984 Fix the path-constructing code.
54986 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
54987 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
54988 by a BLKGETSIZE ioctl first, because block devices don't fill
54989 the member st_mode of the structure stat on Linux.
54990 [__linux__] (linux_find_partition): Use a temporary buffer
54991 REAL_DEV for the working space. Copy it to DEV before returning.
54992 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
54993 buffer cache consistent.
54994 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
54995 strncmp. The previous value was merely wrong.
54996 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
54998 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
54999 FAT size is 12. The previous value was merely wrong.
55001 * kern/main.c (pupa_main): Don't split the starting message from
55004 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55005 LF, because BIOS goes crazy about character attributes in this
55008 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55010 * include/i386/pc/util/biosdisk.h: New file.
55011 * util/i386/pc/biosdisk.c: Likewise.
55012 * util/i386/pc/pupa-setup.c: Likewise.
55014 * Makefile.in (INCLUDE_DISTFILES): Added
55015 include/pupa/i386/pc/util/biosdisk.h.
55016 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55017 directory util/i386/pc.
55018 (install-local): Added a rule for sbin_UTILITIES.
55019 (uninstall): Likewise.
55021 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55023 * util/misc.c (xrealloc): New function.
55024 (pupa_malloc): Likewise.
55025 (pupa_free): Likewise.
55026 (pupa_realloc): Likewise.
55027 (pupa_stop): Likewise.
55028 (pupa_putchar): Likewise.
55030 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55032 * include/pupa/util/misc.h (xrealloc): Declared.
55034 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55036 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55037 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55039 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55040 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55042 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55043 way should be implemented.
55044 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55046 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55047 the size of NAME for safety.
55048 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55051 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55052 (pupa_setup_SOURCES): Likewise.
55054 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55056 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55058 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55059 bunch of pushl's from pusha, because this destroys the return
55062 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55064 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55065 This means that any missing prototypes could be fatal. Also, you
55066 must take care when writing assembly code. See the comments at
55067 the beginning of startup.S, for more details.
55069 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55070 compilation mechanism.
55071 (pupa_chainloader_real_boot): Likewise.
55072 (pupa_biosdisk_rw_int13_extensions): Likewise.
55073 (pupa_biosdisk_rw_standard): Likewise.
55074 (pupa_biosdisk_check_int13_extensions): Likewise.
55075 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55076 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55077 (pupa_get_memsize): Likewise.
55078 (pupa_get_mmap_entry): Likewise.
55079 (pupa_console_putchar): Likewise.
55080 (pupa_console_setcursor): Likewise.
55081 (pupa_getrtsecs): Use pushl instead of push.
55083 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55084 memory instead of the stack for a mmap entry, because some
55085 BIOSes may ignore the maximum size and overflow.
55087 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55089 * genmk.rb (PModule#rule): Compile automatically generated
55090 sources with module-specific CFLAGS as well as other sources.
55092 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55094 * configure.ac: Check ld.
55095 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55096 respectively, before checking endianness and sizes.
55098 * Makefile.in (LD): New variable.
55100 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55102 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55104 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55106 * Changelog: New file.