1 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
5 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6 file_get_storage_info to implement grub_guess_root_device.
8 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
10 Fix build with GNU gold.
12 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
13 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
14 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
16 * aclocal.m4: Likewise.
18 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
20 * configure.ac (AC_PREREQ): Bump to 2.59d.
21 * INSTALL: Make it more clear when Autoconf and Ruby are
22 needed and when to run `./autogen.sh'.
24 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
29 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
33 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
36 giving it to GNU Mach.
38 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
40 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
41 GNU partition number to get internal GRUB partition number.
43 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
45 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
46 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
48 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
50 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
51 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
54 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
56 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
58 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
62 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
63 `-isystem=$(srcdir)/include'.
65 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
67 * util/i386/pc/grub-install.in: Remove hint that device.map should be
68 checked (grub-install doesn't currently rely on it).
70 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
74 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
75 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
76 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
77 * conf/i386-ieee1275.rmk: Likewise.
78 * conf/i386-pc.rmk: Likewise.
79 * conf/powerpc-ieee1275.rmk: Likewise.
80 * conf/sparc64-ieee1275.rmk: Likewise.
81 * conf/x86_64-efi.rmk: Likewise.
83 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
85 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
87 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
89 * include/grub/misc.h: Stop checking for APPLE_CC.
91 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
93 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
94 doesn't cause an infinite call loop.
96 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
98 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
101 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
103 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
105 * Makefile.in: Likewise.
107 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
109 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
111 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
113 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
115 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
117 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
119 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
121 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
123 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
125 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
127 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
128 in $(MAKEINFO) invocation. This makes it clear in output that
129 errors are being ignored.
131 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
133 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
135 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
136 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
137 * conf/i386-ieee1275.rmk: Likewise.
138 * conf/i386-pc.rmk: Likewise.
139 * conf/powerpc-ieee1275.rmk: Likewise.
140 * conf/sparc64-ieee1275.rmk: Likewise.
141 * conf/x86_64-efi.rmk: Likewise.
143 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
145 * util/grub-editenv.c (main): If only a command is given, use
146 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
147 (usage): FILENAME is now optional and has a default.
149 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
151 Improve grub-mkconfig performance when there are several menu
152 entries on a single filesystem.
154 * util/grub.d/10_linux.in (linux_entry): Cache the output of
155 prepare_grub_to_access_device.
156 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
157 * util/grub.d/30_os-prober.in: Likewise.
159 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
161 * util/grub.d/10_freebsd.in: Remove.
162 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
163 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
165 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
167 * docs/grub.cfg: Fix example usage of *BSD loaders.
169 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
171 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
172 grub_util_error() call.
174 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
176 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
177 `reserved_first_sector' member.
178 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
179 `reserved_first_sector' to 1.
180 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
181 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
182 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
183 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
184 filesystems which begin at first sector.
185 (options): New option --skip-fs-probe.
186 (main): Handle --skip-fs-probe and pass it to setup().
188 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
190 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
191 (memset): Fix function prototype.
193 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
194 2009-10-25 Vasily Averin <vvs@parallels.com>
196 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
197 `dirent.direntlen == 0'.
199 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
201 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
203 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
205 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
207 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
208 `__trampoline_setup' and `__ucmpdi2'.
209 * include/grub/powerpc/libgcc.h: Only export symbols for functions
210 that libgcc provides.
212 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
214 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
215 * include/grub/sparc64/libgcc.h (memset): Likewise.
216 * include/grub/misc.h (memset, memcmp): New function prototypes.
218 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
220 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
222 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
224 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
226 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
227 * docs/grub.cfg: Compensate for recent change in multiboot
228 loader (since 2009-08-14 it won't pass filename to payload).
229 * util/grub.d/10_hurd.in: Likewise.
231 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
233 * config.guess: Update to latest version from config git
235 * config.sub: Likewise.
237 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
239 Fix build on sparc64.
241 * configure.ac: Perform checks for libgcc symbols before
242 adding `-nostdlib' to LDFLAGS.
244 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
246 Let user specify OpenBSD root device.
248 * loader/i386/bsd.c (openbsd_root): New variable.
249 (openbsd_opts): New option 'root'.
250 (OPENBSD_ROOT_ARG): New macro.
251 (grub_openbsd_boot): Use 'openbsd_root'.
252 (grub_cmd_openbsd): Fill 'openbsd_root'.
254 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
256 * NEWS: Misc adjustments.
258 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
260 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
262 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
264 * configure.ac: Bump version to 1.97.
266 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
268 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
269 -mno-3dnow on x86 architectures. Some toolchains enable these
270 features by default, but they rely on registers that aren't enabled
271 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
273 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
275 Make entry text a bit more readable.
277 * util/grub.d/10_linux.in: Add `with' before `Linux'.
279 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
281 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
283 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
285 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
288 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
290 * configure.ac: Add missing dollar.
292 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
294 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
296 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
297 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
299 * include/grub/sparc64/libgcc.h: Likewise. Use
300 preprocessor conditionals.
302 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
304 * conf/common.rmk (grub-dumpbios): Remove rule.
305 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
306 * util/grub-dumpbios.in: Remove file.
308 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
310 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
311 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
313 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
314 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
317 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
318 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
319 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
320 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
323 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
325 * term/tparm.c: Switch to GPLv3.
327 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
329 * include/grub/i386/cpuid.h: Add header protection.
331 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
333 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
335 * include/grub/i386/cpuid.h: New file.
336 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
337 (has_longmode): Rename to ...
338 (grub_cpuid_has_longmode): ... this. Update all users. Remove
340 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
341 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
342 on a CPU that doesn't implement AMD64 instruction set.
344 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
346 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
347 that version.texi is rebuilt on version number changes.
349 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
351 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
354 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
356 * util/i386/pc/grub-install.in: Source
357 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
358 that the --grub-probe option will work.
359 * util/sparc64/ieee1275/grub-install.in: Likewise.
361 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
363 * configure.ac: Bump version to 1.97~beta4.
365 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
367 Resync grub-mkdevicemap in x86_64-efi.
369 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
370 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
373 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
375 * util/grub-editenv.c (create_envblk_file): Write new block with a
376 .new suffix and then rename it into place, to ensure atomic
379 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
381 Do not automatically install headers.
383 * Makefile.in (include_DATA): Remove. Update all users.
385 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
387 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
388 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
390 * util/osdetect.lua: Remove.
391 * script/lua/lauxlib.c: Likewise.
392 * script/lua/ldebug.c: Likewise.
393 * script/lua/grub_main.c: Likewise.
394 * script/lua/lauxlib.h: Likewise.
395 * script/lua/ldebug.h: Likewise.
396 * script/lua/ltablib.c: Likewise.
397 * script/lua/liolib.c: Likewise.
398 * script/lua/lstrlib.c: Likewise.
399 * script/lua/lualib.h: Likewise.
400 * script/lua/ldo.c: Likewise.
401 * script/lua/ldump.c: Likewise.
402 * script/lua/ldo.h: Likewise.
403 * script/lua/loslib.c: Likewise.
404 * script/lua/lundump.c: Likewise.
405 * script/lua/grub_lib.c: Likewise.
406 * script/lua/ldblib.c: Likewise.
407 * script/lua/lundump.h: Likewise.
408 * script/lua/lmem.c: Likewise.
409 * script/lua/grub_lib.h: Likewise.
410 * script/lua/lmathlib.c: Likewise.
411 * script/lua/lstate.c: Likewise.
412 * script/lua/ltm.c: Likewise.
413 * script/lua/lvm.c: Likewise.
414 * script/lua/lmem.h: Likewise.
415 * script/lua/lstate.h: Likewise.
416 * script/lua/ltm.h: Likewise.
417 * script/lua/ltable.c: Likewise.
418 * script/lua/lvm.h: Likewise.
419 * script/lua/llex.c: Likewise.
420 * script/lua/lgc.c: Likewise.
421 * script/lua/grub_lua.h: Likewise.
422 * script/lua/loadlib.c: Likewise.
423 * script/lua/lfunc.c: Likewise.
424 * script/lua/lopcodes.c: Likewise.
425 * script/lua/lparser.c: Likewise.
426 * script/lua/ltable.h: Likewise.
427 * script/lua/llex.h: Likewise.
428 * script/lua/lgc.h: Likewise.
429 * script/lua/lfunc.h: Likewise.
430 * script/lua/lbaselib.c: Likewise.
431 * script/lua/lopcodes.h: Likewise.
432 * script/lua/lparser.h: Likewise.
433 * script/lua/lzio.c: Likewise.
434 * script/lua/linit.c: Likewise.
435 * script/lua/lobject.c: Likewise.
436 * script/lua/llimits.h: Likewise.
437 * script/lua/lstring.c: Likewise.
438 * script/lua/lzio.h: Likewise.
439 * script/lua/lapi.c: Likewise.
440 * script/lua/lcode.c: Likewise.
441 * script/lua/lua.h: Likewise.
442 * script/lua/lobject.h: Likewise.
443 * script/lua/lstring.h: Likewise.
444 * script/lua/lapi.h: Likewise.
445 * script/lua/lcode.h: Likewise.
446 * script/lua/luaconf.h: Likewise.
448 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
450 * docs/grub.texi (Command-line and menu entry commands): Document
451 date and echo commands.
453 2009-09-24 Pavel Roskin <proski@gnu.org>
455 * include/grub/kernel.h (struct grub_module_header): Remove
456 `grub_module_header_types'. Make `type' unsigned. Make `size'
457 32-bit on all platforms.
458 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
459 8-bit field. Use grub_host_to_target32() for `size'.
460 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
461 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
462 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
464 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
466 Fix "lost keypress" bug in at_keyboard.
468 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
469 Checks for readyness of input buffer (without flushing it).
470 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
471 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
473 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
475 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
476 size check within GRUB_MACHINE_PCBIOS section.
478 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
480 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
482 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
483 KEYBOARD_ISREADY check.
484 (grub_at_keyboard_checkkey): Rename to ...
485 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
486 Remove gratuitous cast.
488 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
490 * configure.ac: Call AC_PROG_MKDIR_P.
491 * Makefile.in (docs/stamp-vti): Create docs directory. Create
492 version.texi in $(builddir) rather than $(srcdir).
493 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
494 to makeinfo's @include search path.
496 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
498 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
500 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
502 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
505 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
507 Build info documentation. Some code borrowed from Automake.
509 * configure.ac: Check for makeinfo.
510 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
511 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
513 (MOSTLYCLEANFILES): Add vti.tmp.
514 (docs/version.texi, docs/stamp-vti): Update automatically.
515 (docs/grub.info): Build info documentation. Use --force and ignore
517 (all-local): Add $(INFOS).
518 (install-local): Install info files.
519 (uninstall): Uninstall info files.
520 * docs/version.texi: Remove from revision control. This file is
521 automatically generated on build now.
522 * gendistlist.sh: Add `*.info'.
524 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
526 * kern/term.c: Fix indentation.
528 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
530 * util/hostdisk.c: Fix a comment.
532 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
534 Fix regression introduced in r2539.
536 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
539 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
541 * util/grub.d/30_os-prober.in: Don't throw away stderr from
542 os-prober. Under normal operation, it does not print anything to
543 stderr; if it does, we need to debug it, and throwing away stderr
544 makes that excessively difficult.
546 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
548 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
550 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
552 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
553 AC_LANG_PROGRAM from autoconf.
554 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
555 prototypes (fixes warning).
557 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
558 `--disable-werror' was used.
560 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
562 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
563 uninitialized `lastaddr'.
565 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
567 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
569 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
571 * commands/test.c (get_fileinfo): Return immediately if
574 2009-09-14 José MartÃnez <xosemp@gmail.com>
576 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
578 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
580 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
583 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
585 * configure.ac: Remove --enable-grub-pe2elf. Only build
586 grub-pe2elf when needed by the build system itself.
587 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
589 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
591 * configure.ac: Bump version to 1.97~beta3.
592 * docs/version.texi: Likewise.
594 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
596 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
597 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
599 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
600 (grub_linux_setup_video): ... to here (with some adjustments).
602 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
604 Fix memory corruption issue (spotted by Colin Watson).
606 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
607 causing returned size to be stored in an incorrect memory location.
608 Fix use of uninitialized value when storing the returned size.
610 2009-09-12 Yves Blusseau <blusseau@zetam.org>
612 Change clean rules to properly remove files
614 * genmk.rb: add new clean rules
615 * Makefile.in (clean): add the new targets
616 (mostlyclean): likewise
618 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
620 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
622 * fs/ntfs.c (init_file): Understand 64-bit sizes for
625 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
627 * configure.ac: Don't look for help2man when cross-compiling. Fixes
630 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
632 * util/grub-mkconfig.in: Make the created config mode 400 and
633 print a warning if it fails.
635 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
637 * util/grub.d/40_custom.in: Ask user to type custom entries below
638 comment, rather than below 'exec tail' line.
640 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
642 * util/grub.d/40_custom.in: Make sure that the explanatory text is
645 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
647 * util/grub.d/40_custom.in: Make it a little clearer how to use this
650 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
652 * docs/grub.cfg: Add an example menu entry for memtest86+.
654 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
656 * config.guess: Update to latest version from config git.
657 * config.sub: Likewise.
659 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
661 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
662 unknown-command case. Fixes bug #27320.
664 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
666 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
667 `help' if the command exists.
669 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
671 * INSTALL: Require GCC 4.1.3 or later.
673 2009-09-06 Yves Blusseau <blusseau@zetam.org>
675 * Makefile.in (RMKFILES): add i386-qemu.rmk
676 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
679 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
681 * util/grub-probe.c (probe): Comment out buggy codepath, which
682 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
683 should be re-enabled after 1.97.
685 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
687 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
690 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
692 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
693 unnecessary calls to grub_error.
695 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
697 * NEWS: Mention `keystatus' and Unicode fonts.
699 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
701 * configure.ac: Bump version to 1.97~beta2.
702 * docs/version.texi: Likewise.
704 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
706 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
707 containing unwind information in some cases where it previously did
708 not. Use -fno-dwarf2-cfi-asm if available to restore the old
709 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
712 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
714 Embedding loadenv module into grub-emu
716 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
718 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
719 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
720 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
721 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
722 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
723 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
725 2009-09-03 Magnus Granberg <zorry@ume.nu>
727 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
728 include -fPIE in the default specs.
729 * configure.ac: Check if pie_possible is yes and add -fno-PIE
732 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
734 * INSTALL: Note that GNU Bison 2.3 or later is required.
736 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
738 * kern/i386/pc/startup.S: Fix typo.
740 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
742 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
745 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
747 * docs/grub.texi (Naming convention): Describe one-based partition
749 (Device syntax): Likewise.
750 (File name syntax): Likewise.
751 (Block list syntax): Likewise.
752 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
754 (File name syntax): Likewise.
755 (Command-line and menu entry commands): Document acpi, blocklist,
756 crc, export, insmod, keystatus, ls, set, and unset commands.
758 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
760 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
761 to avoid implying that only one of --shift, --ctrl, or --alt may be
764 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
766 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
767 rather than comparing against S_IFREG, which will almost never work.
769 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
771 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
772 (write_blocklists): Likewise.
774 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
776 * script/lua/grub_lua.h (fputs): Supply a format string as the first
777 argument to grub_printf.
779 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
781 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
784 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
786 * kern/file.c (grub_file_read): Spelling fix
788 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
790 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
791 loading of headers in some cases.
793 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
795 * configure.ac: Bump version to 1.97~beta1.
796 * docs/version.texi: Likewise.
798 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
800 * include/grub/i386/xnu.h: Add license header.
801 include grub/err.h explicitly.
803 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
805 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
806 to `ufs' in the vfs.root.mountfrom kernel parameter.
808 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
810 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
812 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
813 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
815 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
818 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
820 * kern/file.c (grub_file_read): Check offset.
821 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
822 * fs/jfs.c (grub_jfs_read_file): Likewise.
823 * fs/ntfs.c (grub_ntfs_read): Likewise.
824 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
825 * fs/minix.c (grub_minix_read_file): Correct offset check.
826 * fs/ufs.c (grub_ufs_read_file): Likewise.
828 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
830 * term/i386/pc/console.c (bios_data_area): Cast
831 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
833 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
835 1-bit optimised blitters.
837 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
839 (grub_video_fbblit_replace_24bit_1bit): Likewise.
840 (grub_video_fbblit_replace_16bit_1bit): Likewise.
841 (grub_video_fbblit_replace_8bit_1bit): Likewise.
842 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
843 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
844 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
845 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
847 (grub_video_fbblit_replace_24bit_1bit): Likewise.
848 (grub_video_fbblit_replace_16bit_1bit): Likewise.
849 (grub_video_fbblit_replace_8bit_1bit): Likewise.
850 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
851 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
852 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
853 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
855 * video/video.c (grub_video_get_blit_format): Return
856 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
858 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
860 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
861 the first argument to grub_printf.
863 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
864 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
866 Add `getkeystatus' terminal method. Add a new `keystatus' command
869 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
870 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
871 modifier key bitmasks.
872 (struct grub_term_input): Add `getkeystatus' member.
873 (grub_getkeystatus): Add prototype.
874 * kern/term.c (grub_getkeystatus): New function.
876 * include/grub/i386/pc/memory.h
877 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
878 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
880 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
881 (grub_console_term_input): Set `getkeystatus' member.
882 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
884 (grub_usb_keyboard_getreport): Likewise.
885 (grub_usb_keyboard_checkkey): Likewise.
886 (grub_usb_keyboard_getkeystatus): New function.
887 (grub_usb_keyboard_term): Set `getkeystatus' member.
889 * commands/keystatus.c: New file.
890 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
891 (keystatus_mod_SOURCES): New variable.
892 (keystatus_mod_CFLAGS): Likewise.
893 (keystatus_mod_LDFLAGS): Likewise.
894 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
895 commands/keystatus.c.
896 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
897 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
898 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
899 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
900 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
901 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
903 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
905 Split befs.mod and afs.mod into *_be.mod and *.mod
907 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
908 (grub_fstest_SOURCES): Likewise.
909 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
910 (afs_be_mod_SOURCES): New variable.
911 (afs_be_mod_CFLAGS): Likewise.
912 (afs_be_mod_LDFLAGS): Likewise.
913 (befs_be_mod_SOURCES): Likewise.
914 (befs_be_mod_CFLAGS): Likewise.
915 (befs_be_mod_LDFLAGS): Likewise.
916 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
917 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
918 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
919 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
920 (grub_emu_SOURCES): Likewise.
921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
922 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
923 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
924 * fs/afs_be.c: New file.
925 * fs/befs_be.c: New file.
926 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
927 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
928 (U16): Replaced with ...
929 (grub_afs_to_cpu16): ...this. All users updated.
930 (U32): Replaced with ...
931 (grub_afs_to_cpu32): ...this. All users updated.
932 (U64): Replaced with ...
933 (grub_afs_to_cpu64): ...this. All users updated.
934 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
935 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
936 (grub_afs_validate_sblock): Check only one endianness.
937 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
938 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
939 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
940 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
941 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
942 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
943 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
944 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
946 2009-08-26 Bean <bean123ch@gmail.com>
948 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
950 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
951 (grub_xfs_inode_block): Change return type to grub_uint64_t.
952 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
954 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
956 NetBSD memory map support.
958 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
959 (grub_netbsd_btinfo_mmap_header): New structure.
960 (grub_netbsd_btinfo_mmap_entry): Likewise.
961 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
963 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
965 Enable bsd.mod on coreboot.
967 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
968 (bsd_mod_SOURCES): New variable.
969 (bsd_mod_CFLAGS): Likewise.
970 (bsd_mod_LDFLAGS): Likewise.
971 (bsd_mod_ASFLAGS): Likewise.
972 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
973 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
975 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
977 Cleanup NetBSD root support.
979 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
983 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
985 * util/grub.d/00_header.in: Move check for the video backend of
986 gfxterm from here ...
987 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
988 a suitable video backend.
990 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
992 Fix breakage in grub-setup.
994 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
995 "msdos_partition_map".
997 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
999 Fix breakage in normal/auth.c.
1001 * normal/auth.c (grub_iswordseparator): New function.
1003 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1005 Authentication support.
1007 * commands/password.c: New file.
1008 * conf/common.rmk (pkglib_MODULES): Add password.mod.
1009 (password_mod_SOURCES): New variable.
1010 (password_mod_CFLAGS): Likewise.
1011 (password_mod_LDFLAGS): Likewise.
1012 (normal_mod_SOURCES): Add normal/auth.c.
1013 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
1015 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1016 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1017 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1019 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1020 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1021 * include/grub/auth.h: New file.
1022 * include/grub/err.h (grub_err_t): New enum value
1023 GRUB_ERR_ACCESS_DENIED.
1024 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
1026 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
1027 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
1029 * normal/auth.c: New file.
1030 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
1031 (grub_cmdline_run): Don't allow to go to command line without
1033 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
1034 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
1035 menuentry without superuser rights.
1036 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
1037 user isn't a superuser.
1039 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1041 Save space by inlining misc.c functions.
1043 * kern/misc.c (grub_iswordseparator): Made static.
1044 * kern/misc.c (grub_strcat): Moved from here ...
1045 * include/grub/misc.h (grub_strcat): ... here. Inlined.
1046 * kern/misc.c (grub_strncat): Moved from here ...
1047 * include/grub/misc.h (grub_strncat): ... here. Inlined.
1048 * kern/misc.c (grub_strcasecmp): Moved from here ...
1049 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
1050 * kern/misc.c (grub_strncasecmp): Moved from here ...
1051 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
1052 * kern/misc.c (grub_isalpha): Moved from here ...
1053 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
1054 * kern/misc.c (grub_isdigit): Moved from here ...
1055 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
1056 * kern/misc.c (grub_isgraph): Moved from here ...
1057 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
1058 * kern/misc.c (grub_tolower): Moved from here ...
1059 * include/grub/misc.h (grub_tolower): ... here. Inlined.
1061 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1063 * script/sh/function.c (grub_script_function_find): Cut error message
1064 not to flood terminal.
1065 * script/sh/lexer.c (grub_script_yylex): Remove command line length
1067 * script/sh/script.c (grub_script_arg_add): Duplicate string.
1069 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
1071 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
1072 `report' grub_uint8_t *.
1073 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
1074 Use a 50-millisecond timeout rather than just repeating
1075 grub_usb_keyboard_getreport 50 times.
1076 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
1078 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1080 Rename *_partition_map to part_*
1082 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1083 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1084 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1085 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1087 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1089 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1090 * util/grub-probe.c (probe_partmap): Don't transform partition name
1093 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1095 Fix OpenBSD and NetBSD support.
1097 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1098 memory address conflict.
1099 (OPENBSD_MMAP_ACPI): New definition.
1100 (OPENBSD_MMAP_NVS): Likewise.
1101 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1102 and OPENBSD_MMAP_NVS.
1103 Add memory map terminator
1104 Explicit cast when calling grub_unix_real_boot.
1105 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1107 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1109 Let user specify NetBSD root device.
1111 * loader/i386/bsd.c (netbsd_root): New variable.
1112 (netbsd_opts): New option 'root'.
1113 (NETBSD_ROOT_ARG): New macro.
1114 (grub_netbsd_boot): Use 'netbsd_root'.
1115 (grub_bsd_unload): Free 'netbsd_root'.
1116 (grub_cmd_netbsd): Fill 'netbsd_root'.
1118 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1120 Support for 64-bit NetBSD.
1122 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1123 point when booting non-FreeBSD.
1125 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1127 Support --no-smp and --no-acpi for NetBSD.
1129 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1130 (NETBSD_AB_NOACPI): Likewise.
1131 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1132 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1134 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1136 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1138 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1139 errors. Call grub_error when needed.
1141 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1143 * commands/search.c (search_fs): Try searching without autoload first.
1144 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1145 filesystem module explicitly for faster booting.
1147 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1149 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1151 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1153 * util/grub.d/30_os-prober.in: Disable os-prober if
1154 `GRUB_DISABLE_OS_PROBER' was set to true.
1156 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1158 * partmap/pc.c: Rename to ...
1159 * partmap/msdos.c: ... this. Update all users.
1160 (grub_pc_partition_map): Rename to ...
1161 (grub_msdos_partition_map): ... this. Update all users.
1163 * parttool/pcpart.c: Rename to ...
1164 * parttool/msdospart.c: ... this. Update all users.
1166 * include/grub/pc_partition.h: Rename to ...
1167 * include/grub/msdos_partition.h: ... this. Update all users.
1168 (grub_pc_partition_bsd_entry): Rename to ...
1169 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1170 (grub_pc_partition_disk_label): Rename to ...
1171 (grub_msdos_partition_disk_label): ... this. Update all users.
1172 (grub_pc_partition_entry): Rename to ...
1173 (grub_msdos_partition_entry): ... this. Update all users.
1174 (grub_pc_partition_mbr): Rename to ...
1175 (grub_msdos_partition_mbr): ... this. Update all users.
1176 (grub_pc_partition): Rename to ...
1177 (grub_msdos_partition): ... this. Update all users.
1178 (grub_pc_partition_is_empty): Rename to ...
1179 (grub_msdos_partition_is_empty): ... this. Update all users.
1180 (grub_pc_partition_is_extended): Rename to ...
1181 (grub_msdos_partition_is_extended): ... this. Update all users.
1182 (grub_pc_partition_is_bsd): Rename to ...
1183 (grub_msdos_partition_is_bsd): ... this. Update all users.
1185 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1186 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1187 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1188 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1189 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1190 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1191 (gpt_mod_LDFLAGS): Rename to ...
1192 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1193 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1194 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1195 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1196 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1197 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1198 (part_gpt_mod_LDFLAGS): ... this.
1199 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1200 `pcpart.mod' to `msdospart.mod'.
1201 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1203 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1204 (msdospart_mod_LDFLAGS): ... this.
1206 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1208 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1209 (openbsd_opts): Likewise.
1210 (netbsd_opts): Likewise.
1211 (freebsd_flags): Added 0 terminator.
1212 (openbsd_flags): Likewise.
1213 (netbsd_flags): Likewise.
1214 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1215 (grub_cmd_freebsd): Transformed into extended command.
1216 (grub_cmd_openbsd): Likewise.
1217 (grub_cmd_netbsd): Likewise.
1218 (cmd_freebsd): Changed type to grub_extcmd_t.
1219 (cmd_openbsd): Likewise.
1220 (cmd_netbsd): Likewise.
1221 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1222 grub_cmd_openbsd as extended commands.
1223 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1224 cmd_netbsd and cmd_openbsd
1226 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1228 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1230 2009-08-21 Pavel Roskin <proski@gnu.org>
1232 * Makefile.in (install-local): When checking if a file is in the
1233 build directory, use "test -e" to detect symlinks.
1235 * Makefile.in (install-local): Remove all files in
1236 $(DESTDIR)$(pkglibdir) before installing new files there.
1238 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1240 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1243 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1245 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1246 explicitly specified by the user.
1248 2009-08-18 Pavel Roskin <proski@gnu.org>
1250 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1251 grub_uint8_t pointer for data.
1252 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1254 * video/fb/fbutil.c: Remove unnecessary casts.
1256 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1260 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1261 (grub_vbe_set_video_mode): Save active mode info
1262 only after setting the mode.
1263 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1266 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1268 Rename variables for clarity.
1270 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1271 (active_vbe_mode_info): ... this. All users updated.
1272 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1274 (initial_mode): Rename to ...
1275 (initial_vbe_mode): ... this. All users updated.
1276 (mode_in_use): Rename to ..
1277 (vbe_mode_in_use): ... this. All users updated.
1278 (mode_list): Rename to ..
1279 (vbe_mode_list): ... this. All users updated.
1280 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1281 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1282 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1283 'mode_list_size' to 'vbe_mode_list_size'.
1284 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1285 'best_mode_info' to 'best_vbe_mode_info' and
1286 'best_mode' to 'best_vbe_mode'
1288 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1290 Remove duplicate grub_video_fb_get_video_ptr.
1292 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1293 (grub_video_fb_get_video_ptr): ... this.
1294 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1295 * video/fb/fbutil.c: Add comment about addressing.
1296 (get_data_ptr): Rename to ...
1297 (grub_video_fb_get_video_ptr): ... this. All users updated.
1298 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1300 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1302 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1303 grub_dprintf() that was just added.
1305 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1307 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1308 (DEFAULT_VIDEO_MODE): Remove macros.
1309 (grub_linux_boot): Remove assumption that Linux has FB support,
1310 and use "text" as default video mode.
1312 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1314 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1316 * fs/fat.c (grub_fat_read_data): Likewise.
1318 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1320 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1322 (grub_module): Likewise.
1324 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1326 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1327 mbi->cmdline but free playground.
1329 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1331 Handle group offset on UFS1.
1333 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1334 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1336 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1338 Split ufs.mod into ufs1.mod and ufs2.mod.
1340 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1341 (grub_fstest_SOURCES): Likewise.
1342 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1343 (ufs_mod_SOURCES): Remove.
1344 (ufs_mod_CFLAGS): Likewise.
1345 (ufs_mod_LDFLAGS): Likewise.
1346 (ufs1_mod_SOURCES): New variable.
1347 (ufs1_mod_CFLAGS): Likewise.
1348 (ufs1_mod_LDFLAGS): Likewise.
1349 (ufs2_mod_SOURCES): New variable.
1350 (ufs2_mod_CFLAGS): Likewise.
1351 (ufs2_mod_LDFLAGS): Likewise.
1352 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1353 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1355 (grub_emu_SOURCES): Likewise.
1356 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1357 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1358 (grub_setup_SOURCES): Likewise.
1359 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1360 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1361 (grub_setup_SOURCES): Likewise.
1362 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1364 * fs/ufs2.c: New file.
1365 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1367 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1371 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1372 subsystem at the end.
1373 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1374 (video_fb_mod_SOURCES): New variable.
1375 (video_fb_mod_CFLAGS): Likewise.
1376 (video_fb_mod_LDFLAGS): Likewise.
1377 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1378 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1379 * video/i386/pc/vbeblit.c: Moved from here ...
1380 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1381 * video/i386/pc/vbefill.c: Moved from here ...
1382 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1383 * video/i386/pc/vbeutil.c: Moved from here ...
1384 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1385 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1386 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1387 * include/grub/i386/pc/vbefill.h: Moved from here ...
1388 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1389 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1390 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1391 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1392 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1393 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1394 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1395 (grub_video_adapter): Added 'get_info_and_fini'.
1396 (grub_video_get_info_and_fini): New prototype.
1397 (grub_video_set_mode): make modestring const char *.
1398 * loader/i386/linux.c (grub_linux_setup_video): Use
1399 grub_video_get_info_and_fini.
1400 (grub_linux_boot): Move modesetting just before booting.
1401 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1402 grub_video_get_info_and_fini.
1403 * video/i386/pc/vbe.c: Moved framebuffer part ...
1404 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1405 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1406 grub_video_fbstd_colors and grub_video_fb_set_palette.
1407 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1409 (grub_video_vbe_fini): Use grub_video_fb_fini.
1410 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1411 render_target and use grub_video_fb_set_active_render_target and
1412 grub_video_fb_set_palette.
1413 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1414 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1415 (grub_video_vbe_adapter): Use framebuffer.
1416 * video/video.c (grub_video_get_info_and_fini): New function.
1417 (grub_video_set_mode): Make modestring const char *.
1418 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1419 values are already initialised.
1421 2009-08-14 Pavel Roskin <proski@gnu.org>
1423 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1425 * boot/i386/pc/diskboot.S: Likewise.
1426 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1427 sectors allow compilation on MacOSX.
1428 * conf/i386-pc.rmk: Enable unconditional compilation of
1431 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1433 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1434 * util/grub.d/00_header.in: Enter interruptible sleep if
1435 GRUB_HIDDEN_TIMEOUT is set.
1437 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1439 * include/grub/symbol.h: Add the LOCAL macro.
1440 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1443 2009-08-13 Pavel Roskin <proski@gnu.org>
1445 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1446 any modern compilers we support.
1448 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1449 Use local labels starting with "L_" so that Apple assembler
1450 knows they are local.
1452 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1454 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1455 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1456 (bsd_kernel_types): ... this enum.
1458 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1459 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1460 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1462 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1463 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1464 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1467 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1469 * util/grub-dumpdevtree: Moved from here ...
1470 * util/i386/efi/grub-dumpdevtree: ... to here.
1471 (hexify): New function. Converts a string to its hex version.
1472 Generate hex versions of "efi" and "device-properties" by calling
1473 hexify() on the ASCII strings rather than by hardcoding numbers.
1475 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1477 * fs/jfs.c: Update copyright year.
1479 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1481 * util/grub.d/00_header.in: Fix a comment.
1482 * util/grub.d/10_linux.in: Likewise.
1483 * util/grub.d/10_windows.in: Likewise.
1484 * util/grub.d/10_hurd.in: Likewise.
1486 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1488 * util/grub-mkconfig.in: Allow the user to specify the used font
1491 2009-08-08 Pavel Roskin <proski@gnu.org>
1493 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1494 available, xfs.mod needs it now.
1496 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1497 the "g" modifier in sed when the intention is to strip something
1498 once. This fixes comparison of kernels with multiple dashes.
1500 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1501 on it. Add missing space before closing bracket. Fix
1502 misleading formatting.
1504 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1506 * docs/grub.texi: Major overhaul. Remove all sections that are
1507 specific to GRUB Legacy, or mostly composed of Legacy-specific
1510 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1512 * docs/version.texi: New file. Provides version information for
1515 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1517 * docs/grub.texi: Update CVS information to SVN.
1518 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1520 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1522 * util/grub-mkconfig.in: Remove a wrong `fi'.
1524 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1526 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1527 (grub_jfs_uuid): New function.
1528 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1530 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1532 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1534 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1535 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1537 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1539 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1540 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1543 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1544 not just "vmlinu[zx]".
1546 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1549 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1550 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1553 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1555 * util/grub.d/10_freebsd.in: Use an absolute device path for
1556 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1558 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1560 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1561 handling of multiple abstraction modules.
1563 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1565 Fix a bug resulting in black screen when loading Linux using a
1568 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1571 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1572 (grub_vbe_bios_getset_dac_palette_width): New function.
1573 (grub_vbe_bios_get_dac_palette_width)
1574 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1575 grub_vbe_bios_getset_dac_palette_width()).
1577 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1578 check for return status.
1579 (grub_vbe_get_video_mode_info): When getting information for a packed
1580 mode (<= 8 bpp), obtain DAC palette width using
1581 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1582 {red,green,blue}_mark_size.
1584 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1586 * commands/search.c (options): Fix help output to match actual code.
1588 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1590 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1593 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1595 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1598 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1600 Support Apple partition map with sector size different from 512 bytes.
1602 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1603 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1604 and 'apart.partmap_size'.
1606 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1607 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1611 * commands/i386/cpuid.c (options): New variable.
1612 (grub_cmd_cpuid): Return real error.
1613 (GRUB_MOD_INIT(cpuid)): Declare options.
1615 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1617 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1620 2009-07-31 Bean <bean123ch@gmail.com>
1622 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1624 (grub_fshelp_node): Move inode field to the end.
1625 (grub_xfs_data): Remove inode field.
1626 (grub_xfs_inode_block): Calculate inode size using sblock.
1627 (grub_xfs_inode_offset): Likewise.
1628 (grub_xfs_read_inode): Calculate inode size using sblock.
1629 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1630 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1631 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1632 to match inode size.
1633 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1634 not accessible when data is null.
1635 (grub_xfs_open): Likewise.
1637 2009-07-31 Bean <bean123ch@gmail.com>
1639 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1640 Don't change pv->disk if it's already set.
1642 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1643 (grub_raid_register): ... here.
1644 (grub_raid_rescan): Removed.
1646 * include/grub/raid.h (grub_raid_rescan): Removed.
1648 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1649 (fstest): Replace grub_raid_rescan with module fini function followed
1652 * util/grub-probe.c: Add include file <grub/raid.h>.
1653 (probe_raid_level): New function.
1654 (probe): Detect abstraction by walking the disk device, support two
1655 level of abstraction (LVM on RAID) when detecting partition map.
1657 2009-07-31 Pavel Roskin <proski@gnu.org>
1659 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1660 to grub_zalloc(), it was erroneous.
1661 Reported by Bean <bean123ch@gmail.com>
1663 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1665 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1666 embedding zone, not only the first one.
1668 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1670 * term/gfxterm.c (clear_char): New function.
1671 (grub_virtual_screen_setup): Use clear_char.
1672 (scroll_up): Likewise.
1673 (grub_virtual_screen_cls): Likewise.
1675 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1677 * util/deviceiter.c (get_acceleraid_disk_name): New static
1679 (grub_util_iterate_devices): Handle Accelraid devices.
1680 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1682 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1684 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1685 separator for the suggested gfxpayload string (';' collides with the
1686 parser and needs escaping).
1688 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1690 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1691 Clear direction flag before jumping to OS.
1692 (grub_multiboot2_real_boot): Likewise.
1694 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1696 * util/i386/pc/grub-install: Fix parsing of --disk-module
1699 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1701 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1704 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1706 * util/grub-mkconfig.in (package_version): New variable.
1707 Use it do display the version.
1709 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1711 * kern/file.c (grub_file_open): Revert to previous check with
1714 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1716 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1717 from help line. It's out of sync with code.
1719 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1721 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1722 entries on failed boot.
1724 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1726 * kern/file.c (grub_file_open): Fix an error check.
1728 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1730 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1731 partition map couldn't be identified.
1733 2009-07-23 Pavel Roskin <proski@gnu.org>
1735 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1736 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1737 case of little endian words becomes just an optimization.
1738 Respect const modifier.
1739 (md5_final): Use code that doesn't depend on endianness.
1741 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1742 to avoid loss of upper bits if align is unsigned and shorter
1745 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1747 UUID support for UFS
1749 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1750 (grub_ufs_uuid): New function.
1751 (grub_ufs_fs): add .uuid
1753 2009-07-21 Pavel Roskin <proski@gnu.org>
1755 * kern/dl.c (grub_dl_check_header): Make static.
1757 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1759 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1760 add drivemap for Vista. It breaks Windows 7.
1762 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1764 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1767 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1771 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1772 (grub_fstest_SOURCES): Likewise.
1773 (pkglib_MODULES): Add befs.mod.
1774 (befs_mod_SOURCES): New variable.
1775 (befs_mod_CFLAGS): Likewise.
1776 (befs_mod_LDFLAGS): Likewise.
1777 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1778 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1779 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1780 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1781 (grub_setup_SOURCES): Likewise.
1782 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1783 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1784 (grub_setup_SOURCES): Likewise.
1785 * fs/befs.c: New file.
1786 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1787 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1788 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1789 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1790 (B_KEY_INDEX_ALIGN): New declaration.
1791 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1792 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1793 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1794 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1795 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1796 (grub_afs_mount) [MODE_BFS]: Likewise.
1797 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1798 (grub_afs_fs): Use GRUB_AFS_FSNAME
1799 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1800 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1801 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1802 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1804 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1806 * util/getroot.c (find_root_device): Add support for MacOSX.
1807 * util/hostdisk.c: Likewise.
1809 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1811 * font/font.c (find_glyph): Check whether a font is present to avoid
1814 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1816 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1818 2009-07-20 Pavel Roskin <proski@gnu.org>
1820 * configure.ac: Trim excessively wordy excuses.
1822 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1824 Add symlink, mtime and label support to AtheFS.
1826 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1827 (grub_afs_iterate_dir): Handle symlinks.
1828 (grub_afs_open): Use grub_afs_read_symlink.
1829 (grub_afs_dir): Likewise.
1831 (grub_afs_label): New function.
1832 (grub_afs_fs): Add grub_afs_label.
1833 (grub_afs_read_symlink): New function.
1835 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1839 * fs/afs.c: Fix comments style.
1840 (grub_afs_blockrun): Declare as packed.
1841 (grub_afs_datastream): Likewise.
1842 (grub_afs_bnode): Likewise.
1843 (grub_afs_btree): Likewise.
1844 (grub_afs_sblock): Likewise.
1845 Declare `name' as char.
1846 (grub_afs_inode): Declare as packed.
1847 Change void *vnode to grub_uint32_t unused.
1848 (grub_afs_iterate_dir): Check that key_size is positive.
1849 (grub_afs_mount): Don't read superblock twice.
1850 (grub_afs_dir): Don't free node in case of error,
1851 grub_fshelp_find_file already handles this.
1852 (grub_afs_open): Likewise.
1854 2009-07-19 Pavel Roskin <proski@gnu.org>
1856 * Makefile.in: Remove LIBLZO and enable_lzo.
1857 * conf/i386-pc.rmk: Remove lzo support.
1858 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1859 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1861 * kern/i386/pc/lzo1x.S: Remove.
1862 * kern/i386/pc/startup.S: Remove lzo support.
1863 * util/i386/pc/grub-mkimage.c: Likewise.
1865 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1867 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1868 * fs/xfs.c (grub_xfs_dir): Likewise.
1869 * fs/afs.c (grub_afs_dir): Likewise.
1870 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1871 (grub_iso9660_open): Likewise.
1872 * fs/jfs.c (grub_jfs_open): Likewise.
1873 * fs/ext2.c (grub_ext2_dir): Likewise.
1874 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1875 * script/sh/lexer.c (grub_script_yylex): Likewise.
1877 2009-07-16 Pavel Roskin <proski@gnu.org>
1879 * configure.ac: Never add "-c" to CFLAGS.
1881 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1883 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1884 grub_cv_cc_efiemu should be used.
1886 * configure.ac: Typo fixes.
1888 * kern/mm.c (grub_zalloc): New function.
1889 (grub_debug_zalloc): Likewise.
1890 * include/grub/mm.h: Declare grub_zalloc() and
1891 grub_debug_zalloc().
1892 * util/misc.c (grub_zalloc): New function.
1893 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1894 instead of grub_malloc(), remove unneeded initializations.
1895 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1896 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1897 * commands/parttool.c (grub_cmd_parttool): Likewise.
1898 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1899 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1900 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1901 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1902 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1903 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1904 (grub_cmd_efiemu_pnvram): Likewise.
1905 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1906 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1907 (grub_iso9660_iterate_dir): Likewise.
1908 * fs/jfs.c (grub_jfs_opendir): Likewise.
1909 * fs/ntfs.c (list_file): Likewise.
1910 (grub_ntfs_mount): Likewise.
1911 * kern/disk.c (grub_disk_open): Likewise.
1912 * kern/dl.c (grub_dl_load_core): Likewise.
1913 * kern/elf.c (grub_elf_file): Likewise.
1914 * kern/env.c (grub_env_context_open): Likewise.
1915 (grub_env_set): Likewise.
1916 (grub_env_set_data_slot): Likewise.
1917 * kern/file.c (grub_file_open): Likewise.
1918 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1919 * loader/i386/multiboot.c (grub_module): Likewise.
1920 * loader/xnu.c (grub_xnu_create_key): Likewise.
1921 (grub_xnu_create_value): Likewise.
1922 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1923 (read_config_file): Likewise.
1924 * normal/menu_entry.c (make_screen): Likewise.
1925 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1926 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1927 * script/sh/script.c (grub_script_parse): Likewise.
1928 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1929 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1930 * video/readers/png.c (grub_png_output_byte): Likewise.
1931 (grub_video_reader_png): Likewise.
1933 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1935 Enable all targets that can be built by default
1937 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1938 grub-mkfont and grub-fstest if they can be built
1940 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1942 Fix hang and segmentation fault in grub-emu-usb
1944 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1945 * util/usb.c (grub_libusb_devices): likewise
1946 (grub_libusb_init): rename to ...
1947 (GRUB_MOD_INIT (libusb)):...this
1948 (grub_libusb_fini): rename to ..
1949 (GRUB_MOD_FINI (libusb)):...this
1950 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1951 * include/grub/disk.h (grub_raid_init): removed, it's useless
1952 (grub_raid_fini): likewise
1953 (grub_lvm_init): likewise
1954 (grub_lvm_fini): likewise
1955 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1958 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1962 * Makefile.in (LIBUSB): new macro
1963 * genmk.rb (Utility/print_tail): new method
1964 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1965 (top level): call util.print_tail at the end.
1967 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1969 Make FreeBSD accept zpool.cache
1971 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1972 type is /boot/zfs/zpool.cache
1974 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1978 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1979 correct wrong typedef
1980 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1982 2009-07-15 Pavel Roskin <proski@gnu.org>
1984 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1985 * kern/disk.c (struct grub_disk_cache): Likewise.
1987 * commands/probe.c (options): Typo fix.
1989 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1990 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1992 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1994 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1995 the end of "Error" to make the message more readable.
1997 * boot/i386/pc/boot.S (kernel_segment): Remove.
1998 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
2001 * boot/i386/pc/boot.S (boot_version): Remove.
2002 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2005 * include/grub/i386/pc/boot.h: Sort all offsets.
2006 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
2007 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
2008 * boot/i386/pc/boot.S: Assert location of every offset listed in
2009 include/grub/i386/pc/boot.h.
2011 2009-07-13 Pavel Roskin <proski@gnu.org>
2013 * include/grub/i386/coreboot/machine.h: Rename
2014 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
2015 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
2016 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
2018 * kern/dl.c: Force native word size to suppress warnings when
2021 * kern/device.c (grub_device_iterate): Change struct part_ent to
2022 hold the name, not a pointer to it. Use one grub_malloc() per
2023 partition, not two. Free partition_name if grub_malloc() fails.
2024 Set ents to NULL only before grub_partition_iterate() is called.
2026 2009-07-11 Bean <bean123ch@gmail.com>
2028 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
2031 2009-07-10 Bean <bean123ch@gmail.com>
2032 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
2034 * kern/ieee1275/openfw.c (grub_children_iterate)
2035 (grub_devalias_iterate): Fix size evaluation for property or path
2036 strings, which was broken since r2132.
2038 2009-07-07 Pavel Roskin <proski@gnu.org>
2040 * commands/search.c (search_file): Merge into ...
2041 (search_fs): ... this. Accept search type as argument.
2042 (grub_cmd_search): Pass search type to search_fs().
2044 * include/grub/util/console.h: New file.
2045 * util/console.c: Use it instead of grub/machine/console.h.
2046 * util/grub-emu.c: Likewise.
2048 * lib/arg.c (find_long_option): Remove.
2049 (find_long): Add `len' argument, make `s' const char *.
2050 (grub_arg_parse): Parse long options in place, not in a
2053 2009-07-06 Pavel Roskin <proski@gnu.org>
2055 * commands/search.c (search_fs): Fix potential NULL pointer
2058 * commands/search.c (search_fs): Replace QUID macro with quid_fn
2061 2009-07-06 Daniel Mierswa <impulze@impulze.org>
2063 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
2066 2009-07-05 Pavel Roskin <proski@gnu.org>
2068 * include/grub/i386/linux.h (struct linux_kernel_params):
2069 Restore padding3, it's still needed.
2071 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
2073 * util/osdetect.lua: Likewise.
2075 2009-07-05 Bean <bean123ch@gmail.com>
2077 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
2079 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
2080 (grub_lua_getenv): Likewise.
2081 (grub_lua_setenv): Likewise.
2082 (save_errno): New function.
2083 (push_result): Likewise.
2084 (grub_lua_enum_device): Likewise.
2085 (grub_lua_enum_file): Likewise.
2086 (grub_lua_file_open): Likewise.
2087 (grub_lua_file_close): Likewise.
2088 (grub_lua_file_seek): Likewise.
2089 (grub_lua_file_read): Likewise.
2090 (grub_lua_file_getline): Likewise.
2091 (grub_lua_file_getsize): Likewise.
2092 (grub_lua_file_getpos): Likewise.
2093 (grub_lua_file_eof): Likewise.
2094 (grub_lua_file_exist): Likewise.
2095 (grub_lua_add_menu): Likewise.
2097 * script/lua/grub_lua.h (isupper): New inline function.
2098 (islower): Likewise.
2099 (ispunct): Likewise.
2100 (isxdigit): Likewise.
2101 (strcspn): Change to normal function.
2102 (strpbkr): New function declaration.
2105 * script/lua/grub_main.c (scan_str): New function.
2106 (strcspn): Likewise.
2107 (strpbrk): Likewise.
2110 * script/lua/linit.c (lualibs): Enable the string library.
2112 * util/osdetect.lua: New file.
2114 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2116 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2117 `capabilities' member.
2119 2009-07-02 Pavel Roskin <proski@gnu.org>
2121 * genparttoollist.sh: Add missing newline at the end.
2123 2009-07-01 Pavel Roskin <proski@gnu.org>
2125 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2127 * util/hostdisk.c (open_device): Remove `const' from
2128 `sysctl_size', as sysctlbyname() can change it (in this case it
2129 doesn't actually happen).
2131 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2132 using signed long int constants.
2134 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2135 constant to avoid a warning on FreeBSD.
2137 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2140 * Makefile.in: Install include/grub/machine symlink.
2142 * Makefile.in: When installing symlinks, use "cp -fR", which
2143 works on FreeBSD and MacOSX.
2144 From Yves Blusseau <cl7m42e02@sneakemail.com>
2146 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2147 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2149 * util/misc.c: Move grub_reboot() and grub_halt() ...
2150 * util/grub-emu.c: ... here. Make main_env static.
2151 * include/grub/util/misc.h: Remove main_env.
2153 * kern/mm.c: Use correct format to print size_t.
2155 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2156 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2157 * kern/powerpc/dl.c: Likewise.
2158 * kern/sparc64/dl.c: Likewise.
2159 * kern/x86_64/dl.c: Likewise.
2161 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2163 Fix grub-emu build on sparc64-ieee1275.
2165 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2168 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2170 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2171 (grub_reboot, grub_halt): New functions.
2173 * util/i386/pc/misc.c: Delete. Update all users.
2174 * util/sparc64/ieee1275/misc.c: Likewise.
2175 * util/powerpc/ieee1275/misc.c: Likewise.
2177 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2179 * conf/i386.rmk (setjmp_mod_SOURCES)
2180 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2181 * conf/common.rmk (setjmp_mod_SOURCES)
2182 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2183 to use $(target_cpu).
2184 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2185 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2186 * conf/powerpc-ieee1275.rmk: Likewise.
2187 * conf/sparc64-ieee1275.rmk: Likewise.
2189 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2190 $(target_cpu) for kern/$(target_cpu)/dl.c.
2191 * conf/i386-efi.rmk: Likewise.
2192 * conf/i386-ieee1275.rmk: Likewise.
2193 * conf/x86_64-efi.rmk: Likewise.
2194 * conf/i386-coreboot.rmk: Likewise.
2195 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2196 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2197 kern/$(target_cpu)/cache.S.
2198 * conf/sparc64-ieee1275.rmk: Likewise.
2200 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2202 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2203 type to `grub_uint8_t', and adjust `padding9' accordingly.
2205 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2207 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2209 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2210 assembly in final jump, using register constraints.
2212 (grub_linux_boot): For text mode, initialize `have_vga' using
2213 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2215 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2216 right before the final jump.
2218 Set `video_mode' to 0x3.
2220 Document initialization of `video_page', `video_mode' and
2223 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2225 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2226 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2227 and set GRUB_LINUX_FLAG_QUIET appropriately.
2229 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2231 Fix build on Debian / sparc.
2233 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2235 2009-06-28 Pavel Roskin <proski@gnu.org>
2237 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2240 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2242 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2244 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2247 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2251 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2252 file can't be opened. grub_file_open() is already supposed to set
2253 grub_errno / grub_errmsg appropriately.
2254 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2256 2009-06-27 Pavel Roskin <proski@gnu.org>
2257 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2259 * include/grub/dl.h: Include grub/elf.h.
2260 (struct grub_dl): Add symtab field.
2261 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2262 GRUB_MODULES_MACHINE_READONLY.
2263 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2264 of the header for read-only modules.
2265 (grub_dl_unload): Free mod->symtab for read-only modules.
2266 * kern/i386/dl.c: Use mod->symtab.
2267 * kern/powerpc/dl.c: Likewise.
2268 * kern/sparc64/dl.c: Likewise.
2269 * kern/x86_64/dl.c: Likewise.
2271 * conf/i386-qemu.rmk: New file.
2272 * kern/i386/qemu/startup.S: Likewise.
2273 * kern/i386/qemu/mmap.c: Likewise.
2274 * boot/i386/qemu/boot.S: Likewise.
2275 * include/grub/i386/qemu/time.h: Likewise.
2276 * include/grub/i386/qemu/serial.h: Likewise.
2277 * include/grub/i386/qemu/kernel.h: Likewise.
2278 * include/grub/i386/qemu/console.h: Likewise.
2279 * include/grub/i386/qemu/boot.h: Likewise.
2280 * include/grub/i386/qemu/init.h: Likewise.
2281 * include/grub/i386/qemu/machine.h: Likewise.
2282 * include/grub/i386/qemu/loader.h: Likewise.
2283 * include/grub/i386/qemu/memory.h: Likewise.
2285 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2286 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2287 [qemu] (pkglib_IMAGES): Add `boot.img'.
2288 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2289 [qemu] (boot_img_FORMAT): New variables.
2290 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2291 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2292 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2293 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2294 [qemu] (kernel_img_FORMAT): New variables.
2296 * configure.ac: Recognise `i386-qemu'.
2298 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2299 (for no compression).
2300 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2301 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2302 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2303 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2306 2009-06-27 Pavel Roskin <proski@gnu.org>
2308 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2310 * efiemu/prepare32.c: Likewise.
2311 * efiemu/prepare64.c: Likewise.
2313 2009-06-26 Pavel Roskin <proski@gnu.org>
2315 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2316 * include/grub/elf.h: Define symbols without "32" or "64" based
2317 on GRUB_TARGET_WORDSIZE.
2318 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2319 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2321 * efiemu/loadcore64.c: Likewise.
2322 * loader/i386/bsd32.c: Likewise.
2323 * loader/i386/bsd64.c: Likewise.
2324 * kern/dl.c: Remove own ELF definitions.
2325 * util/i386/efi/grub-mkimage.c: Likewise.
2327 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2329 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2330 segment 0x0 unconditionally, because the reference generated by
2331 GAS is an absolute address.
2333 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2335 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2336 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2338 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2340 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2341 indexes. Check for -f explicitly.
2342 (search_file): Improve error message.
2343 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2345 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2347 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2348 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2350 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2352 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2353 * conf/i386-ieee1275.rmk: Likewise.
2354 * conf/i386-coreboot.rmk: Likewise.
2356 * kern/i386/pc/startup.S (grub_stop): Remove function.
2357 * kern/i386/ieee1275/startup.S: Likewise.
2358 * kern/i386/coreboot/startup.S: Likewise.
2359 * kern/i386/misc.S (grub_stop): New function.
2361 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2363 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2364 * kern/i386/realmode.S (real_to_prot): ... to here.
2366 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2368 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2370 (kernel_elf_SOURCES): Rename to ...
2371 (kernel_img_SOURCES): ... this.
2372 (kernel_elf_HEADERS): Rename to ...
2373 (kernel_img_HEADERS): ... this. Update all users.
2374 (kernel_elf_ASFLAGS): Rename to ...
2375 (kernel_img_ASFLAGS): ... this.
2376 (kernel_elf_CFLAGS): Rename to ...
2377 (kernel_img_CFLAGS): ... this.
2378 (kernel_elf_LDFLAGS): Rename to ...
2379 (kernel_img_LDFLAGS): ... this.
2380 * conf/i386-coreboot.rmk: Likewise.
2381 * conf/powerpc-ieee1275.rmk: Likewise.
2383 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2386 2009-06-21 Pavel Roskin <proski@gnu.org>
2388 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2389 to match nested functions.
2390 * loader/sparc64/ieee1275/linux.c: Likewise.
2392 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2394 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2396 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2399 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2401 Fix asm file handling on ELF, and remove workarounds.
2403 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2404 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2405 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2406 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2408 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2410 Load BSD ELF modules
2412 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2413 and loader/i386/bsd64.c
2414 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2415 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2416 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2417 (grub_freebsd_load_elfmodule32): New declaration
2418 (grub_freebsd_load_elfmoduleobj64): Likewise
2419 (grub_freebsd_load_elf_meta32): Likewise
2420 (grub_freebsd_load_elf_meta64): Likewise
2421 (grub_freebsd_add_meta): Likewise
2422 (grub_freebsd_add_meta_module): Likewise
2423 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2424 (grub_freebsd_add_meta_module): Likewise and move module-specific
2425 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2426 (grub_cmd_freebsd): Add elf-kernel specific parts
2427 based on grub_freebsd_add_meta_module
2428 (grub_cmd_freebsd_module): Add type parsing moved from
2429 grub_freebsd_add_meta_module
2430 (grub_cmd_freebsd_module_elf): New function
2431 (cmd_freebsd_module_elf): New variable
2432 (GRUB_MOD_INIT): Register freebsd_module_elf
2433 * loader/i386/bsd32.c: New file
2434 * loader/i386/bsd64.c: Likewise
2435 * loader/i386/bsdXX.c: Likewise
2436 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2437 (grub_elf64_load): Likewise
2438 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2440 (grub_elf64_load_hook_t): Likewise
2442 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2444 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2446 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2447 don't write a menu entry for recovery mode.
2449 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2451 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2452 after it's no longer needed.
2454 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2456 * include/grub/i386/loader.h (grub_linux_prot_size)
2457 (grub_linux_tmp_addr, grub_linux_real_addr)
2458 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2459 GRUB_MACHINE_PCBIOS.
2460 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2461 common grub_util_info() call to ...
2462 (generate_image): ... here.
2463 Fix use of uninitialized memory, comparison of signed with
2464 unsigned integers and memory leak.
2465 Remove bogus module address message.
2467 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2469 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2471 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2473 2009-06-19 Pavel Roskin <proski@gnu.org>
2475 * configure.ac: Remove stray AC_MSG_CHECKING.
2477 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2479 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2481 2009-06-18 Pavel Roskin <proski@gnu.org>
2483 * conf/common.rmk: Add fs_file.mod.
2484 * disk/fs_file.c: New file.
2485 * include/grub/disk.h (enum grub_disk_dev_id): Add
2486 GRUB_DISK_DEVICE_FILE_ID.
2488 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2490 Fix build with Apple's toolchain. Part 2
2492 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2495 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2497 Fix build with Apple's toolchain. Part 1
2499 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2501 * configure.ac: remove a leftover AC_MSG_RESULT
2502 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2505 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2509 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2510 (decomp_block): initialize ch
2511 use grub_memcpy instead of memcpy
2513 2009-06-17 Pavel Roskin <proski@gnu.org>
2515 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2516 version, use declarations needed to use vga_text as the startup
2519 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2520 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2522 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2523 and grub_at_keyboard_fini(), it's done on module load and
2526 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2528 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2529 file can't be found.
2530 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2532 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2534 Fix newline handling
2536 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2537 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2538 (grub_script_yylex): don't segfault on unterminated script
2539 newline terminates command and variable
2541 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2543 avoid double grub_adjust_range call. Bug reported by David Simner
2545 * kern/disk.c (grub_disk_write): change to raw disk access before
2548 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2550 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2551 spaces, for the benefit of help2man.
2552 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2554 2009-06-16 Pavel Roskin <proski@gnu.org>
2556 * kern/i386/halt.c: Include grub/machine/init.h.
2557 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2559 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2561 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2564 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2566 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2569 2009-06-16 Pavel Roskin <proski@gnu.org>
2571 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2572 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2573 save %dx, we only need %dl and we never change it.
2574 * boot/i386/pc/cdboot.S: Don't set the root drive.
2575 * boot/i386/pc/pxeboot.S: Likewise.
2576 * include/grub/i386/pc/boot.h: Remove
2577 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2578 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2579 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2580 * kern/i386/pc/init.c (make_install_device): Remove references
2582 * kern/i386/pc/startup.S: Likewise.
2583 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2585 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2589 * commands/xnu_uuid.c: new file
2590 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2591 (xnu_uuid_mod_SOURCES): new variable
2592 (xnu_uuid_mod_CFLAGS): likewise
2593 (xnu_uuid_mod_LDFLAGS): likewise
2594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2595 * conf/i386-ieee1275.rmk: likewise
2596 * conf/i386-pc.rmk: likewise
2597 * conf/powerpc-ieee1275.rmk: likewise
2598 * conf/sparc64-ieee1275.rmk: likewise
2599 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2601 2009-06-16 Pavel Roskin <proski@gnu.org>
2603 * configure.ac: Avoid '==' in test command, it's not portable.
2605 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2609 * commands/probe.c: new file
2610 * conf/common.rmk (pkglib_MODULES): add probe.mod
2611 (probe_mod_SOURCES): new variable
2612 (probe_mod_CFLAGS): likewise
2613 (probe_mod_LDFLAGS): likewise
2614 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2615 * conf/i386-ieee1275.rmk: likewise
2616 * conf/i386-pc.rmk: likewise
2617 * conf/powerpc-ieee1275.rmk: likewise
2618 * conf/sparc64-ieee1275.rmk: likewise
2620 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2622 Fix handling of string like \"hello\" and "a
2625 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2626 (grub_script_yylex): fix parsing of quoting, escaping and newline
2628 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2630 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2633 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2635 * util/grub-mkconfig.in: Fix parsing of --output option.
2637 2009-06-12 Pavel Roskin <proski@gnu.org>
2639 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2640 genmk.rb don't need to be generated or installed.
2642 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2644 * commands/i386/pc/drivemap_int13h.S: add more comments
2646 2009-06-11 Pavel Roskin <proski@gnu.org>
2648 * Makefile.in (uninstall): Uninstall manuals.
2650 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2651 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2652 and update-grub_lib in two places.
2653 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2655 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2658 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2659 `entry_lo' to fix variable shadowing.
2661 2009-06-11 Christian Franke <franke@computer.org>
2663 * kern/misc.c (__enable_execute_stack): Add missing return type
2664 to prevent gcc warning.
2666 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2668 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2670 2009-06-11 Pavel Roskin <proski@gnu.org>
2672 * Makefile.in: Don't rely on any scripts being executable.
2673 Always use $(SHELL) to run shell scripts.
2675 * configure.ac: Always define ___main if using -nostdlib. This
2676 fixes tests on Cygwin.
2678 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2682 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2683 is in bytes and not in blocks
2685 2009-06-11 Pavel Roskin <proski@gnu.org>
2687 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2690 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2692 * util/grub.d/30_os-prober.in: Fix a comment. Source
2693 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2694 to set the root device. Place drivemap command in the generated
2697 2009-06-11 Pavel Roskin <proski@gnu.org>
2699 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2700 have long been resolved.
2702 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2704 * util/grub.d/10_linux.in: Capitalise "Linux".
2706 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2708 2009-06-11 Pavel Roskin <proski@gnu.org>
2710 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2711 fix a gcc warning and ensure that the function won't ever exit.
2713 * kern/i386/ieee1275/init.c: Add missing prototype for
2716 * loader/ieee1275/multiboot2.c [__i386__]: Include
2717 grub/cpu/multiboot.h.
2719 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2720 casts to short - they are not portable and cause warnings. Fix
2721 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2723 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2727 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2729 (grub_get_root_biosnumber_saved): new variable
2730 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2731 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2732 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2733 %dx after the call if necessary
2734 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2735 (boot_mod_SOURCES): remove
2736 (boot_mod_CFLAGS): remove
2737 (boot_mod_LDFLAGS): remove
2738 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2739 (boot_mod_SOURCES): new variable
2740 (boot_mod_CFLAGS): likewise
2741 (boot_mod_LDFLAGS): likewise
2742 * conf/i386-efi.rmk: likewise
2743 * conf/i386-ieee1275.rmk: likewise
2744 * conf/i386-pc.rmk: likewise
2745 * conf/powerpc-ieee1275.rmk: likewise
2746 * conf/sparc64-ieee1275.rmk: likewise
2747 * conf/x86_64-efi.rmk: likewise
2748 * include/grub/i386/pc/biosnum.h: new file
2749 * lib/i386/pc/biosnum.c: likewise
2750 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2751 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2752 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2754 2009-06-10 Pavel Roskin <proski@gnu.org>
2756 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2757 Use separate variables. Read only the file size at the end, but
2758 not the checksum that we don't use.
2760 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2763 * kern/ieee1275/openfw.c: Remove libc includes.
2764 * kern/ieee1275/cmain.c: Likewise.
2765 * include/grub/ieee1275/ieee1275.h: Likewise.
2767 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2770 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2772 * Makefile.in: Remove all trailing whitespace.
2773 * conf/i386-pc.rmk: Likewise.
2774 * conf/powerpc-ieee1275.rmk: Likewise.
2775 * conf/sparc64-ieee1275.rmk: Likewise.
2776 * docs/grub.texi: Likewise.
2777 * docs/texinfo.tex: Likewise.
2778 * disk/fs_uuid.c: Likewise.
2779 * disk/lvm.c: Likewise.
2780 * disk/scsi.c: Likewise.
2781 * disk/ata.c: Likewise.
2782 * disk/ieee1275/ofdisk.c: Likewise.
2783 * disk/i386/pc/biosdisk.c: Likewise.
2784 * disk/host.c: Likewise.
2785 * disk/raid.c: Likewise.
2786 * disk/efi/efidisk.c: Likewise.
2787 * disk/usbms.c: Likewise.
2788 * disk/memdisk.c: Likewise.
2789 * disk/loopback.c: Likewise.
2790 * kern/powerpc/dl.c: Likewise.
2791 * kern/device.c: Likewise.
2792 * kern/dl.c: Likewise.
2793 * kern/sparc64/dl.c: Likewise.
2794 * kern/ieee1275/ieee1275.c: Likewise.
2795 * kern/term.c: Likewise.
2796 * kern/fs.c: Likewise.
2797 * kern/i386/dl.c: Likewise.
2798 * kern/i386/pc/startup.S: Likewise.
2799 * kern/i386/pc/init.c: Likewise.
2800 * kern/i386/pc/mmap.c: Likewise.
2801 * kern/i386/pc/lzo1x.S: Likewise.
2802 * kern/i386/ieee1275/init.c: Likewise.
2803 * kern/i386/realmode.S: Likewise.
2804 * kern/i386/tsc.c: Likewise.
2805 * kern/partition.c: Likewise.
2806 * kern/corecmd.c: Likewise.
2807 * kern/file.c: Likewise.
2808 * kern/efi/efi.c: Likewise.
2809 * kern/efi/init.c: Likewise.
2810 * kern/efi/mm.c: Likewise.
2811 * kern/main.c: Likewise.
2812 * kern/err.c: Likewise.
2813 * kern/env.c: Likewise.
2814 * kern/disk.c: Likewise.
2815 * kern/generic/millisleep.c: Likewise.
2816 * kern/generic/rtc_get_time_ms.c: Likewise.
2817 * kern/misc.c: Likewise.
2818 * kern/parser.c: Likewise.
2819 * genmk.rb: Likewise.
2820 * configure.ac: Likewise.
2821 * boot/i386/pc/diskboot.S: Likewise.
2822 * boot/i386/pc/pxeboot.S: Likewise.
2823 * boot/i386/pc/boot.S: Likewise.
2824 * boot/i386/pc/lnxboot.S: Likewise.
2825 * boot/i386/pc/cdboot.S: Likewise.
2826 * parttool/pcpart.c: Likewise.
2827 * video/readers/tga.c: Likewise.
2828 * video/video.c: Likewise.
2829 * video/bitmap.c: Likewise.
2830 * lib/envblk.c: Likewise.
2831 * lib/i386/setjmp.S: Likewise.
2832 * fs/xfs.c: Likewise.
2833 * fs/afs.c: Likewise.
2834 * fs/fat.c: Likewise.
2835 * fs/ntfs.c: Likewise.
2836 * fs/udf.c: Likewise.
2837 * fs/affs.c: Likewise.
2838 * fs/iso9660.c: Likewise.
2839 * fs/hfs.c: Likewise.
2840 * fs/fshelp.c: Likewise.
2841 * fs/ext2.c: Likewise.
2842 * fs/jfs.c: Likewise.
2843 * fs/reiserfs.c: Likewise.
2844 * fs/hfsplus.c: Likewise.
2845 * fs/minix.c: Likewise.
2846 * fs/cpio.c: Likewise.
2847 * fs/sfs.c: Likewise.
2848 * fs/ufs.c: Likewise.
2849 * efiemu/prepare.c: Likewise.
2850 * efiemu/loadcore_common.c: Likewise.
2851 * efiemu/runtime/efiemu.sh: Likewise.
2852 * efiemu/runtime/efiemu.S: Likewise.
2853 * efiemu/runtime/efiemu.c: Likewise.
2854 * efiemu/pnvram.c: Likewise.
2855 * efiemu/main.c: Likewise.
2856 * efiemu/i386/pc/cfgtables.c: Likewise.
2857 * efiemu/i386/loadcore64.c: Likewise.
2858 * efiemu/i386/loadcore32.c: Likewise.
2859 * efiemu/loadcore.c: Likewise.
2860 * efiemu/symbols.c: Likewise.
2861 * efiemu/mm.c: Likewise.
2862 * include/grub/autoefi.h: Likewise.
2863 * include/grub/datetime.h: Likewise.
2864 * include/grub/term.h: Likewise.
2865 * include/grub/hfs.h: Likewise.
2866 * include/grub/lvm.h: Likewise.
2867 * include/grub/i386/tsc.h: Likewise.
2868 * include/grub/i386/linux.h: Likewise.
2869 * include/grub/i386/xnu.h: Likewise.
2870 * include/grub/i386/efiemu.h: Likewise.
2871 * include/grub/i386/pc/biosdisk.h: Likewise.
2872 * include/grub/i386/pc/memory.h: Likewise.
2873 * include/grub/i386/pc/vbe.h: Likewise.
2874 * include/grub/parttool.h: Likewise.
2875 * include/grub/video.h: Likewise.
2876 * include/grub/memory.h: Likewise.
2877 * include/grub/fs.h: Likewise.
2878 * include/grub/partition.h: Likewise.
2879 * include/grub/xnu.h: Likewise.
2880 * include/grub/efi/api.h: Likewise.
2881 * include/grub/efi/pe32.h: Likewise.
2882 * include/grub/efi/memory.h: Likewise.
2883 * include/grub/multiboot.h: Likewise.
2884 * include/grub/usbdesc.h: Likewise.
2885 * include/grub/multiboot2.h: Likewise.
2886 * include/grub/acpi.h: Likewise.
2887 * include/grub/efiemu/efiemu.h: Likewise.
2888 * include/grub/disk.h: Likewise.
2889 * include/grub/ieee1275/ieee1275.h: Likewise.
2890 * include/grub/net.h: Likewise.
2891 * include/grub/machoload.h: Likewise.
2892 * include/grub/macho.h: Likewise.
2893 * include/multiboot.h: Likewise.
2894 * genmoddep.awk: Likewise.
2895 * normal/main.c: Likewise.
2896 * normal/menu_entry.c: Likewise.
2897 * normal/menu_viewer.c: Likewise.
2898 * normal/completion.c: Likewise.
2899 * normal/cmdline.c: Likewise.
2900 * normal/misc.c: Likewise.
2901 * normal/datetime.c: Likewise.
2902 * bus/usb/usbtrans.c: Likewise.
2903 * bus/usb/ohci.c: Likewise.
2904 * bus/usb/uhci.c: Likewise.
2905 * bus/usb/usb.c: Likewise.
2906 * mmap/efi/mmap.c: Likewise.
2907 * mmap/i386/pc/mmap_helper.S: Likewise.
2908 * mmap/i386/pc/mmap.c: Likewise.
2909 * mmap/i386/mmap.c: Likewise.
2910 * mmap/i386/uppermem.c: Likewise.
2911 * mmap/mmap.c: Likewise.
2912 * commands/acpi.c: Likewise.
2913 * commands/echo.c: Likewise.
2914 * commands/blocklist.c: Likewise.
2915 * commands/loadenv.c: Likewise.
2916 * commands/usbtest.c: Likewise.
2917 * commands/boot.c: Likewise.
2918 * commands/parttool.c: Likewise.
2919 * commands/search.c: Likewise.
2920 * commands/cat.c: Likewise.
2921 * commands/i386/pc/play.c: Likewise.
2922 * commands/i386/pc/drivemap.c: Likewise.
2923 * commands/i386/pc/vbeinfo.c: Likewise.
2924 * commands/i386/pc/acpi.c: Likewise.
2925 * commands/i386/pc/vbetest.c: Likewise.
2926 * commands/ls.c: Likewise.
2927 * commands/cmp.c: Likewise.
2928 * commands/test.c: Likewise.
2929 * commands/efi/acpi.c: Likewise.
2930 * commands/gptsync.c: Likewise.
2931 * commands/help.c: Likewise.
2932 * partmap/amiga.c: Likewise.
2933 * partmap/apple.c: Likewise.
2934 * partmap/acorn.c: Likewise.
2935 * partmap/pc.c: Likewise.
2936 * partmap/sun.c: Likewise.
2937 * partmap/gpt.c: Likewise.
2938 * script/sh/lexer.c: Likewise.
2939 * script/sh/function.c: Likewise.
2940 * font/font.c: Likewise.
2941 * font/font_cmd.c: Likewise.
2942 * loader/powerpc/ieee1275/linux.c: Likewise.
2943 * loader/efi/chainloader.c: Likewise.
2944 * loader/multiboot_loader.c: Likewise.
2945 * loader/macho.c: Likewise.
2946 * loader/i386/multiboot.c: Likewise.
2947 * loader/i386/linux.c: Likewise.
2948 * loader/i386/pc/linux.c: Likewise.
2949 * loader/i386/pc/multiboot2.c: Likewise.
2950 * loader/i386/pc/chainloader.c: Likewise.
2951 * loader/i386/pc/xnu.c: Likewise.
2952 * loader/i386/bsd_trampoline.S: Likewise.
2953 * loader/i386/efi/linux.c: Likewise.
2954 * loader/i386/multiboot_elfxx.c: Likewise.
2955 * loader/i386/bsd_helper.S: Likewise.
2956 * loader/i386/bsd.c: Likewise.
2957 * loader/i386/linux_trampoline.S: Likewise.
2958 * loader/i386/xnu_helper.S: Likewise.
2959 * loader/i386/xnu.c: Likewise.
2960 * loader/i386/bsd_pagetable.c: Likewise.
2961 * loader/i386/multiboot_helper.S: Likewise.
2962 * loader/xnu.c: Likewise.
2963 * loader/xnu_resume.c: Likewise.
2964 * io/gzio.c: Likewise.
2965 * term/efi/console.c: Likewise.
2966 * term/terminfo.c: Likewise.
2967 * term/ieee1275/ofconsole.c: Likewise.
2968 * term/i386/pc/serial.c: Likewise.
2969 * term/i386/pc/vesafb.c: Likewise.
2970 * term/i386/pc/vga.c: Likewise.
2971 * term/usb_keyboard.c: Likewise.
2972 * term/gfxterm.c: Likewise.
2973 * aclocal.m4: Likewise.
2974 * util/lvm.c: Likewise.
2975 * util/grub.d/30_os-prober.in: Likewise.
2976 * util/grub.d/10_hurd.in: Likewise.
2977 * util/console.c: Likewise.
2978 * util/grub-macho2img.c: Likewise.
2979 * util/grub-probe.c: Likewise.
2980 * util/hostfs.c: Likewise.
2981 * util/i386/pc/grub-mkimage.c: Likewise.
2982 * util/i386/pc/grub-setup.c: Likewise.
2983 * util/i386/efi/grub-mkimage.c: Likewise.
2984 * util/grub-mkconfig.in: Likewise.
2985 * util/raid.c: Likewise.
2986 * util/resolve.c: Likewise.
2987 * util/grub-mkdevicemap.c: Likewise.
2988 * util/grub-emu.c: Likewise.
2989 * util/getroot.c: Likewise.
2990 * util/hostdisk.c: Likewise.
2991 * util/usb.c: Likewise.
2992 * util/grub-editenv.c: Likewise.
2993 * util/misc.c: Likewise.
2995 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2997 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2998 `genparttoollist.sh'.
2999 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
3000 Add `*.sh' to the list find searches for and change `mdate.sh'
3003 2009-06-10 Pavel Roskin <proski@gnu.org>
3005 * include/grub/multiboot2.h: Provide compatibility defines for
3007 * include/multiboot2.h: Include stdint.h only if needed, using
3009 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
3011 * loader/ieee1275/multiboot2.c: Likewise.
3012 * loader/multiboot2.c: Likewise.
3013 * loader/multiboot_loader.c: Likewise.
3015 * configure.ac: Use -nostdlib when probing for the target. It
3016 should not be required to have libc for the target.
3018 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
3019 they fail without libc headers for the target.
3020 * include/grub/powerpc/libgcc.h: Use weak attribute for all
3022 * include/grub/sparc64/libgcc.h: Likewise. Don't use
3023 preprocessor conditionals.
3025 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
3026 build system doesn't need to be aware of the tar.c internals.
3028 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
3030 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
3032 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
3034 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
3035 disk limit to 26 for IDE, Virtio, Xen and SCSI.
3037 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
3039 * util/i386/pc/grub-install.in: Change the error message if UUIDs
3040 aren't available if ata.mod gets used.
3042 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
3044 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
3045 initialising controller.
3046 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3048 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3050 * util/i386/pc/grub-install.in: Add a parameter --disk-module
3051 to choose between ata and biosdisk module on i386-pc.
3053 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
3055 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
3056 Subclass and Programming Interface fields in terms of the 3 byte
3057 Class Code register.
3058 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3060 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
3061 interface is OHCI. Add grub_dprintf for symmetry with
3063 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
3064 interface is UHCI. Add interf variable for programming
3065 interface. Print interface with class/subclass.
3067 * bus/usb/ohci.c: Set interf with correct field.
3069 * bus/usb/uhci.c: Remove unneeded doubled lines.
3070 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
3071 Remove whitespace inside comment.
3073 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
3075 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
3076 as fallback an equivalent option without depth.
3078 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3080 Not fail if unable to retrieve C/H/S on LBA disks
3082 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3083 if unable to retrieve C/H/S on LBA disks
3085 2009-06-08 Pavel Roskin <proski@gnu.org>
3087 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3090 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3092 * Makefile.in (uninstall): Remove all $lib_DATA files.
3094 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3096 Bugfix: install on partitionless device
3098 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3101 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3103 * Makefile.in (uninstall): Remove all $include_DATA files.
3105 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3107 * commands/true.c: New file. Implement the true and false commands.
3108 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3109 (true_mod_SOURCES): New variable.
3110 (true_mod_CFLAGS): Likewise.
3111 (true_mod_LDFLAGS): Likewise.
3113 2009-06-05 Colin D Bennett <colin@gibibit.com>
3115 Optimized font character lookup using binary search instead of linear
3116 search. Fonts now are required to have the character index ordered by
3119 * font/font.c (load_font_index): Verify that fonts have ordered
3121 (find_glyph): Use binary search instead of linear search to find a
3122 character in a font.
3124 2009-06-05 Michael Scherer <misc@mandriva.org>
3126 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3127 uses case sensitive btree.
3128 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3129 only for case insensitive filesystems.
3131 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3133 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3134 * conf/common.rmk (search_mod_CFLAGS): likewise
3136 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3138 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3139 compensate a compiler bug
3141 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3143 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3148 Definitions for creating asm symbols with Apple's CC
3150 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3151 [APPLE_CC] (VARIABLE): likewise
3153 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3155 Disable lnxboot.img when compiled
3158 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3159 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3160 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3161 [! APPLE_CC] (CODE_LENG): skip
3162 [! APPLE_CC] (setup_sects): likewise
3163 [! APPLE_CC]: skip filling
3165 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3167 Address in trampolines based on 32-bit registers when compiled
3170 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3172 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3174 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3176 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3178 * kern/misc.c [APPLE_CC] (memcpy): new function
3179 [APPLE_CC] (memmove): likewise
3180 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3181 (memcpy): define alias conditionally on !APPLE_CC
3184 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3185 APPLE_CC are defined
3186 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3187 (grub_assert_fail): make prototype conditional
3189 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3191 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3193 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3195 (CLEANFILES): add grub-macho2img
3196 (grub_macho2img_SOURCES): new variable
3197 * kern/i386/pc/startup.S (bss_start): new variable
3199 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3200 * util/grub-macho2img.c: new file
3202 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3204 Use objconv when compiling with Apple's CC
3206 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3207 (efiemu64.o): likewise
3208 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3209 when compiling with Apple's CC
3210 (efiemu64_s.o): likewise
3211 * configure.ac: check for objconv when compiling with Apple's CC
3212 * genmk.rb: use objconv for modules when compiled with Apple's CC
3214 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3216 Define segment as well as section when compiling with
3219 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3220 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3221 (efiemu_convert_pointer): likewise
3222 (efiemu_set_virtual_address_map): likewise
3223 (efiemu_convert_pointer): likewise
3224 (efiemu_getcrc32): likewise
3225 (init_crc32_table): likewise
3227 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3228 (GRUB_MOD_DEP): likewise
3230 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3232 Allow a compilation without -mcmodel=large
3234 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3235 when compiled without -mcmodel=large
3236 (filter_memory_map): remove memory post 4 GiB when compiled
3237 without -mcmodel=large
3238 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3239 TARGET_CFLAGS when -mcmodel=large isn't supported
3241 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3243 Remove nested functions in efiemu core
3245 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3247 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3249 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3251 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3253 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3255 (grub_cpu_is_tsc_supported): likewise
3256 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3258 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3260 Absolute addressing through constant with Apple's cc
3262 * kern/i386/pc/startup.S: Define necessary constants
3263 and address through it when using ABS with Apple's CC
3264 * boot/i386/pc/diskboot.S: likewise
3265 * boot/i386/pc/boot.S: likewise
3266 * boot/i386/pc/lnxboot.S: likewise
3267 * boot/i386/pc/cdboot.S: likewise
3268 * mmap/i386/pc/mmap_helper.S: likewise
3269 * commands/i386/pc/drivemap_int13h.S: likewise
3271 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3273 Check if compiler is apple cc
3275 * Makefile.in (ASFLAGS): new variable
3276 (TARGET_ASFLAGS): likewise
3277 (TARGET_MODULE_FORMAT): likewise
3278 (TARGET_APPLE_CC): likewise
3280 (TARGET_IMG_CFLAGS): likewise
3281 (TARGET_CPPFLAGS): add includedir
3282 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3283 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3284 Check for linker script only if compiler isn't Apple's CC
3285 (TARGET_MODULE_FORMAT): set
3286 (TARGET_APPLE_CC): likewise
3287 (TARGET_ASFLAGS): likewise
3289 Check for objcopy only if compiler isn't Apple's CC
3290 Check for BSS symbol only if compiler isn't Apple's CC
3291 * genmk.rb: adapt nm options if we use Apple's utils
3292 * aclocal.m4 (grub_apple_cc): new test
3293 (grub_apple_target_cc): likewise
3295 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3297 Simplify sed expressions and improve awk
3299 * Makefile.in (install-local): simplify sed expression
3300 * gencmdlist.sh: likewise
3301 * genmoddep.awk: avoid adding module as a dependency of itself
3303 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3305 Add missing start symbols
3307 * boot/i386/pc/boot.S: add start
3308 * boot/i386/pc/pxeboot.S: likewise
3310 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3312 Fix wrong assumptions with grub-mkimage on EFI
3314 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3315 (relocate_addresses): consider both r_addend and value at offset
3316 (make_mods_section): zerofill modinfo and header
3317 (convert_elf): write prefix here
3319 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3321 Use .asciz instead of .string
3323 * i386/pc/diskboot.S: use .asciz instead of .string
3324 * i386/pc/boot.S: likewise
3325 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3326 (GRUB_MOD_NAME): likewise
3328 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3332 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3333 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3334 (grub_video_setup): remove
3335 (grub_video_set_mode): new prototype
3336 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3338 (linux_vesafb_res): compile only on PCBIOS
3339 (grub_linux_boot): support gfxpayload
3340 * loader/i386/pc/xnu.c (video_hook): new function
3341 (grub_xnu_set_video): support gfxpayload
3342 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3343 (DEFAULT_VIDEO_HEIGHT): likewise
3344 (DEFAULT_VIDEO_FLAGS): likewise
3345 (DEFAULT_VIDEO_MODE): new definition
3346 (video_hook): new function
3347 (grub_gfxterm_init): use grub_video_set_mode
3348 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3350 * video/video.c (grub_video_setup): removed
3351 (grub_video_set_mode): new function based on grub_gfxterm_init and
3354 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3356 Avoid calling biosdisk in drivemap
3358 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3359 (revparse_biosdisk): likewise
3360 (list_mappings): derive name from id directly
3361 (grub_cmd_drivemap): use tryparse_diskstring
3363 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3367 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3368 (grub_lexer_param): add tokenonhold
3369 (grub_script_create_cmdline): remove cmdline. All callers updated
3370 (grub_script_function_create): make functionname
3371 grub_script_arg. All callers updated
3372 (grub_script_execute_argument_to_string): new prototype
3373 * kern/parser.c (state_transitions): reorder
3374 (grub_parser_cmdline_state): fix a bug and make more compact
3375 * script/sh/execute.c (grub_script_execute_argument_to_string):
3377 (grub_script_execute_cmdline): use new format
3378 * script/sh/function.c (grub_script_function_create): make functionname
3379 grub_script_arg. All callers updated
3380 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3381 (grub_script_yylex): remove
3382 (grub_script_yylex2): renamed to ...
3383 (grub_script_yylex): ...renamed
3384 parse the expressions like a${b}c
3385 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3386 (GRUB_PARSER_TOKEN_VAR): remove
3387 (GRUB_PARSER_TOKEN_NAME): likewise
3388 ("if"): declare as typeless
3390 ("function"): likewise
3395 (argument): likewise
3396 (script): accept empty scripts and make exit on error
3397 (arguments): use GRUB_PARSER_TOKEN_ARG
3398 (function): likewise
3399 (command): move error handling to script
3400 (menuentry): move grub_script_lexer_ref before
3401 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3402 argument. All callers updated
3404 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3406 Prevent GRUB from probing floppies during boot.
3408 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3409 * commands/search.c (options): Add --no-floppy.
3410 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3411 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3412 --no-floppy when searching for UUIDs.
3414 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3416 Simplify the code duplication in commands/search.c.
3418 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3419 (search_fs): ... this. Update all users.
3421 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3423 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3425 2009-05-28 Pavel Roskin <proski@gnu.org>
3427 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3428 Remove the original symlink explicitly.
3430 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3431 just one slash. That's how grub_fshelp_find_file() does it.
3433 2009-05-26 Pavel Roskin <proski@gnu.org>
3435 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3438 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3441 2009-05-25 Christian Franke <franke@computer.org>
3443 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3445 (grub_atapi_identify): Add wait after drive select.
3446 (grub_ata_identify): Do more strict status register check before
3447 calling grub_atapi_identify (). Suppress error message if status
3448 register is 0x00 after command failure. Add status register
3449 check after PIO read to avoid bogus identify due to stuck DRQ.
3450 Thanks to Pavel Roskin for testing.
3451 (grub_device_initialize): Remove unsafe status register check.
3452 Thanks to 'phcoder' for problem report and patch.
3453 Prevent sign extension in debug message.
3455 2009-05-23 Colin D Bennett <colin@gibibit.com>
3457 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3458 definition file, and functions defined in `normal/menu.c' have had
3459 their prototypes moved to `include/grub/menu.h' for consistency.
3461 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
3463 (grub_menu_get_entry): Likewise.
3464 (grub_menu_get_timeout): Likewise.
3465 (grub_menu_set_timeout): Likewise.
3466 (grub_menu_execute_entry): Likewise.
3467 (grub_menu_execute_with_fallback): Likewise.
3468 (grub_menu_entry_run): Likewise.
3470 * include/grub/normal.h: Re-ordered and grouped function
3471 prototypes by file that the function is defined in.
3472 (grub_menu_execute_callback): Removed; moved to menu.h.
3473 (grub_menu_get_entry): Likewise.
3474 (grub_menu_get_timeout): Likewise.
3475 (grub_menu_set_timeout): Likewise.
3476 (grub_menu_execute_entry): Likewise.
3477 (grub_menu_execute_with_fallback): Likewise.
3478 (grub_menu_entry_run): Likewise.
3479 (grub_menu_addentry): Renamed from this ...
3480 (grub_normal_add_menu_entry): ... to this.
3482 * normal/main.c (grub_menu_addentry): Renamed from this ...
3483 (grub_normal_add_menu_entry): ... to this.
3485 * script/sh/execute.c (grub_script_execute_menuentry): Update
3486 reference to renamed grub_menu_addentry function.
3488 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3490 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3492 2009-05-22 Pavel Roskin <proski@gnu.org>
3494 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3495 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3496 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3497 compiling for the i386 targets, but not for the utilities.
3499 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3501 (grub_root_drive): Likewise.
3502 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3504 (grub_root_drive): Change size to byte.
3505 (grub_start_addr): Remove.
3506 (grub_end_addr): Likewise.
3507 (grub_apm_bios_info): Likewise.
3509 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3511 * normal/i386: Remove.
3512 * normal/powerpc: Likewise.
3513 * normal/sparc64: Likewise.
3514 * normal/x86_64: Likewise.
3516 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3518 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3519 * loader/i386/linux_trampoline.S: Fix indentation
3520 * loader/i386/xnu_helper.S: Likewise
3522 2009-05-18 Colin D Bennett <colin@gibibit.com>
3524 Display error messages when parsing a Lua statement fails.
3525 Previously, executing a syntactically invalid statement like
3526 ")foo" or "bar;" would silently fail.
3528 * script/lua/grub_main.c (handle_lua_error): New function.
3529 (grub_lua_parse_line): Improved reporting of Lua parser and
3532 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3534 Remove -Werror which causes build to fail on some systems
3536 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3537 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3538 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3540 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3542 trampoline for linux on 64-bit platform
3544 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3545 loader/i386/efi/linux_trampoline.S
3546 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3548 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3550 * loader/i386/linux_trampoline.S: moved here
3551 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3553 (jumpvector): removed
3554 (grub_linux_trampoline_start): new declaration
3555 (grub_linux_trampoline_end): likewise
3556 (grub_linux_boot): use trampoline when on 64-bit platform
3557 * loader/i386/linux.c: likewise
3559 2009-05-16 Pavel Roskin <proski@gnu.org>
3561 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3562 const to avoid a warning.
3563 (grub_lua_setenv): Likewise.
3564 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3565 lmsg to fix a warning.
3567 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3569 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3570 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3571 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3572 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3573 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3574 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3575 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3576 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3578 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3580 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3582 2009-05-16 Bean <bean123ch@gmail.com>
3584 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3585 (lua_mod_SOURCES): New variable.
3586 (lua_mod_CFLAGS): Likewise.
3587 (lua_mod_LDFLAGS): Likewise.
3589 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3590 (setjmp_mod_SOURCES): New variable.
3591 (setjmp_mod_CFLAGS): Likewise.
3592 (setjmp_LDFLAGS): Likewise.
3594 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3595 (setjmp_mod_SOURCES): New variable.
3596 (setjmp_mod_CFLAGS): Likewise.
3597 (setjmp_LDFLAGS): Likewise.
3599 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3600 (setjmp_mod_SOURCES): New variable.
3601 (setjmp_mod_CFLAGS): Likewise.
3602 (setjmp_LDFLAGS): Likewise.
3604 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3605 (setjmp_mod_SOURCES): New variable.
3606 (setjmp_mod_CFLAGS): Likewise.
3607 (setjmp_LDFLAGS): Likewise.
3609 * normal/i386/setjmp.S: Moved from here ...
3610 * lib/i386/setjmp.S: ... Moved here
3611 * normal/x86_64/setjmp.S: Moved from here ...
3612 * lib/x86_64/setjmp.S: ... Moved here
3613 * normal/powerpc/setjmp.S: Moved from here ...
3614 * lib/powerpc/setjmp.S: ... Moved here
3615 * normal/sparc64/setjmp.S: Moved from here ...
3616 * lib/sparc64/setjmp.S: ... Moved here
3618 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3619 returns_twice in mingw.
3621 * script/lua/grub_lib.c: New file.
3622 * script/lua/grub_lib.h: Likewise.
3623 * script/lua/grub_lua.h: Likewise.
3624 * script/lua/grub_main.c: Likewise.
3625 * script/lua/lapi.c: Likewise.
3626 * script/lua/lapi.h: Likewise.
3627 * script/lua/lauxlib.c: Likewise.
3628 * script/lua/lauxlib.h: Likewise.
3629 * script/lua/lbaselib.c: Likewise.
3630 * script/lua/lcode.c: Likewise.
3631 * script/lua/lcode.h: Likewise.
3632 * script/lua/ldblib.c: Likewise.
3633 * script/lua/ldebug.c: Likewise.
3634 * script/lua/ldebug.h: Likewise.
3635 * script/lua/ldo.c: Likewise.
3636 * script/lua/ldo.h: Likewise.
3637 * script/lua/ldump.c: Likewise.
3638 * script/lua/lfunc.c: Likewise.
3639 * script/lua/lfunc.h: Likewise.
3640 * script/lua/lgc.c: Likewise.
3641 * script/lua/lgc.h: Likewise.
3642 * script/lua/linit.c: Likewise.
3643 * script/lua/liolib.c: Likewise.
3644 * script/lua/llex.c: Likewise.
3645 * script/lua/llex.h: Likewise.
3646 * script/lua/llimits.h: Likewise.
3647 * script/lua/lmathlib.c: Likewise.
3648 * script/lua/lmem.c: Likewise.
3649 * script/lua/lmem.h: Likewise.
3650 * script/lua/loadlib.c: Likewise.
3651 * script/lua/lobject.c: Likewise.
3652 * script/lua/lobject.h: Likewise.
3653 * script/lua/lopcodes.c: Likewise.
3654 * script/lua/lopcodes.h: Likewise.
3655 * script/lua/loslib.c: Likewise.
3656 * script/lua/lparser.c: Likewise.
3657 * script/lua/lparser.h: Likewise.
3658 * script/lua/lstate.c: Likewise.
3659 * script/lua/lstate.h: Likewise.
3660 * script/lua/lstring.c: Likewise.
3661 * script/lua/lstring.h: Likewise.
3662 * script/lua/lstrlib.c: Likewise.
3663 * script/lua/ltable.c: Likewise.
3664 * script/lua/ltable.h: Likewise.
3665 * script/lua/ltablib.c: Likewise.
3666 * script/lua/ltm.c: Likewise.
3667 * script/lua/ltm.h: Likewise.
3668 * script/lua/lua.h: Likewise.
3669 * script/lua/luaconf.h: Likewise.
3670 * script/lua/lualib.h: Likewise.
3671 * script/lua/lundump.c: Likewise.
3672 * script/lua/lundump.h: Likewise.
3673 * script/lua/lvm.c: Likewise.
3674 * script/lua/lvm.h: Likewise.
3675 * script/lua/lzio.c: Likewise.
3676 * script/lua/lzio.h: Likewise.
3678 2009-05-16 Bean <bean123ch@gmail.com>
3680 * include/grub/kernel.h (grub_module_header_types): Add type
3683 * kern/main.c (grub_load_config): New function.
3684 (grub_main): Call grub_load_config to read boot config.
3686 * grub-mkimage (generate_image): New parameter config_path.
3687 (options): New option --config.
3688 (main): Parse --config option, and pass it to generate_image.
3690 2009-05-14 Christian Franke <franke@computer.org>
3692 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3693 This fixes build on Cygwin.
3695 2009-05-14 Pavel Roskin <proski@gnu.org>
3697 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3698 jump. This saves two bytes, so the typical case of 2 swapped
3699 drives would fit 32 bytes.
3701 2009-05-13 Pavel Roskin <proski@gnu.org>
3703 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3704 grub_uint32_t to avoid a warning.
3706 * loader/i386/linux.c (allocate_pages): When assigning
3707 real_mode_mem, cast through grub_size_t to fix a warning. The
3708 code already makes sure that the value would fit a pointer.
3709 (grub_linux_setup_video): Cast render_target->data to
3710 grub_size_t to fix a warning.
3712 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3714 * commands/i386/pc/drivemap.c: New file - implement drivemap
3716 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3717 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3719 2009-05-13 Pavel Roskin <proski@gnu.org>
3721 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3722 embedding_area_exists.
3724 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3726 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3727 it easier to understand / work with.
3728 Improve warning messages for cases where there's no embedding area,
3729 or when it is too small (or core.img too large).
3731 2009-05-13 Pavel Roskin <proski@gnu.org>
3733 * loader/i386/pc/multiboot2.c: Add necessary includes for
3734 grub_multiboot2_real_boot().
3736 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3737 PX record is always little-endian. We only need the lower 2
3740 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3741 facilitate code reuse.
3742 (grub_cpio_mount): Use "struct head", not a char buffer. This
3743 fixes a warning reported by gcc 4.4.
3745 * kernel/disk.c (grub_disk_read): Use void pointer for the
3747 (grub_disk_write): Use const void pointer for the buffer.
3748 Adjust all callers. Remove unnecessary casts.
3750 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3752 * util/i386/pc/grub-install.in: Update copyright year.
3754 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3758 * commands/gptsync.c: new file
3759 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3760 (gptsync_mod_SOURCES): new variable
3761 (gptsync_mod_CFLAGS): likewise
3762 (gptsync_mod_LDFLAGS): likewise
3763 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3765 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3766 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3767 * conf/i386-ieee1275.rmk: likewise
3768 * conf/i386-pc.rmk: likewise
3769 * conf/powerpc-ieee1275.rmk: likewise
3771 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3775 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3776 (grub_dl_ref): likewise
3778 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3780 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3781 split in two functions (one for msdos and one for gpt).
3783 2009-05-08 Pavel Roskin <proski@gnu.org>
3785 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3788 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3789 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3790 Initialize them with -1. Add sanity check for bad1. Eliminate
3793 2009-05-08 David S. Miller <davem@davemloft.net>
3795 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3797 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3799 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3802 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3804 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3805 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3807 2009-05-05 David S. Miller <davem@davemloft.net>
3809 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3811 2009-05-05 Pavel Roskin <proski@gnu.org>
3813 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3814 of grub_dl_ref() and grub_dl_unref().
3815 * commands/parttool.c: Remove preprocessor conditionals around
3816 grub_dl_ref() and grub_dl_unref().
3817 * fs/affs.c: Likewise.
3818 * fs/afs.c: Likewise.
3819 * fs/cpio.c: Likewise.
3820 * fs/ext2.c: Likewise.
3821 * fs/fat.c: Likewise.
3822 * fs/hfs.c: Likewise.
3823 * fs/hfsplus.c: Likewise.
3824 * fs/iso9660.c: Likewise.
3825 * fs/jfs.c: Likewise.
3826 * fs/minix.c: Likewise.
3827 * fs/ntfs.c: Likewise.
3828 * fs/reiserfs.c: Likewise.
3829 * fs/sfs.c: Likewise.
3830 * fs/udf.c: Likewise.
3831 * fs/ufs.c: Likewise.
3832 * fs/xfs.c: Likewise.
3833 * include/grub/dl.h: Likewise.
3834 * loader/xnu.c: Likewise.
3836 2009-05-04 Pavel Roskin <proski@gnu.org>
3838 * commands/acpi.c: Remove unused variable my_mod.
3839 * partmap/amiga.c: Likewise.
3840 * partmap/apple.c: Likewise.
3841 * partmap/gpt.c: Likewise.
3842 * partmap/pc.c: Likewise.
3843 * partmap/sun.c: Likewise.
3844 * term/gfxterm.c: Likewise.
3845 * term/i386/pc/vesafb.c: Likewise.
3846 * term/i386/pc/vga.c: Likewise.
3848 2009-05-04 David S. Miller <davem@davemloft.net>
3850 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3851 pointer args to grub_ieee1275_get_property().
3853 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3855 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3856 devices, and do not traverse down under controller nodes.
3858 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3859 (grub_ofdisk_open): Use it to un-escape "," characters.
3860 * kern/disk.c (find_part_sep): New.
3861 (grub_disk_open): Use it to find the first non-escaped ','
3862 character in the disk name.
3863 * util/ieee1275/devicemap.c (escape_of_path): New.
3864 (grub_util_emit_devicemap_entry): Use it.
3865 * util/sparc64/ieee1275/grub-install.in: Update script to
3866 strip partition specifiers properly by not triggering on
3867 '\' escaped ',' characters.
3869 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3871 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3873 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3875 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3876 on documentation from Wikipedia).
3878 2009-05-04 Pavel Roskin <proski@gnu.org>
3880 * disk/ata.c: Spelling fixes.
3881 * disk/raid.c: Likewise.
3882 * disk/usbms.c: Likewise.
3883 * disk/dmraid_nvidia.c: Likewise.
3884 * kern/ieee1275/openfw.c: Likewise.
3885 * kern/ieee1275/init.c: Likewise.
3886 * kern/ieee1275/cmain.c: Likewise.
3887 * boot/i386/pc/cdboot.S: Likewise.
3888 * video/readers/png.c: Likewise.
3889 * video/i386/pc/vbe.c: Likewise.
3890 * fs/udf.c: Likewise.
3891 * fs/hfs.c: Likewise.
3892 * fs/reiserfs.c: Likewise.
3893 * efiemu/runtime/efiemu.c: Likewise.
3894 * efiemu/main.c: Likewise.
3895 * efiemu/mm.c: Likewise.
3896 * include/grub/elf.h: Likewise.
3897 * include/grub/xnu.h: Likewise.
3898 * include/grub/usbdesc.h: Likewise.
3899 * include/grub/usb.h: Likewise.
3900 * include/grub/script_sh.h: Likewise.
3901 * include/grub/lib/LzmaEnc.h: Likewise.
3902 * include/grub/efiemu/efiemu.h: Likewise.
3903 * include/grub/command.h: Likewise.
3904 * normal/menu.c: Likewise.
3905 * normal/main.c: Likewise.
3906 * normal/datetime.c: Likewise.
3907 * bus/usb/uhci.c: Likewise.
3908 * mmap/i386/uppermem.c: Likewise.
3909 * mmap/mmap.c: Likewise.
3910 * commands/acpi.c: Likewise.
3911 * commands/test.c: Likewise.
3912 * partmap/apple.c: Likewise.
3913 * font/font.c: Likewise.
3914 * loader/sparc64/ieee1275/linux.c: Likewise.
3915 * loader/macho.c: Likewise.
3916 * loader/i386/bsd_trampoline.S: Likewise.
3917 * loader/i386/bsd.c: Likewise.
3918 * loader/xnu.c: Likewise.
3919 * term/i386/pc/vesafb.c: Likewise.
3920 * term/usb_keyboard.c: Likewise.
3921 * util/resolve.c: Likewise.
3922 * util/getroot.c: Likewise.
3924 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3926 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3928 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3930 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3933 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3935 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3936 parameter only available on BIOS.
3938 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3940 Removed wrong semicolon in declaration
3942 * grub/misc.h (grub_dprintf): remove semicolon
3944 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3946 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3947 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3948 is done by grub_cmd_linux() now).
3949 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3950 restore video to text mode.
3951 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3952 indicates lack of "vga=" parameter. "vga=0" is mapped to
3953 `GRUB_LINUX_VID_MODE_NORMAL'.
3955 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3957 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3958 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3959 and `normal/script.c'. Add `kern/rescue_reader.c',
3960 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3961 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3962 `grub_script.tab.c'.
3964 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3965 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3966 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3967 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3968 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3970 * Makefile.in: Remove duplicated 2008 in Copyright line.
3972 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3974 * util/misc.c (grub_util_warn): New function. Emits a warning
3976 * include/grub/util/misc.h (grub_util_warn): New declaration.
3978 * util/i386/pc/grub-install.in: Understand --force and pass it down
3981 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3983 (setup): Improve error messages and add warnings when requested to
3984 install in odd layouts. Refuse to install using blocklists unless
3987 2009-05-04 martin f. krafft <madduck@madduck.net>
3989 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3991 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3993 Updated copyright year
3995 * fs/hfsplus.c: updated copyright year
3997 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4001 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
4002 in the space previously used by unused3
4003 (grub_hfsplus_uuid): new function
4004 (grub_hfsplus_fs): added uuid field
4006 2009-05-03 Pavel Roskin <proski@gnu.org>
4008 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
4009 suppress warnings. It's no longer needed.
4010 * disk/host.c: Likewise.
4011 * disk/ata_pthru.c: Likewise.
4012 * disk/loopback.c: Likewise.
4013 * hook/datehook.c: Likewise.
4014 * parttool/pcpart.c: Likewise.
4015 * fs/i386/pc/pxe.c: Likewise.
4016 * fs/ntfscomp.c: Likewise.
4017 * efiemu/main.c: Likewise.
4018 * mmap/mmap.c: Likewise.
4019 * commands/crc.c: Likewise.
4020 * commands/hexdump.c: Likewise.
4021 * commands/hdparm.c: Likewise.
4022 * commands/acpi.c: Likewise.
4023 * commands/echo.c: Likewise.
4024 * commands/minicmd.c: Likewise.
4025 * commands/blocklist.c: Likewise.
4026 * commands/memrw.c: Likewise.
4027 * commands/loadenv.c: Likewise.
4028 * commands/usbtest.c: Likewise.
4029 * commands/lsmmap.c: Likewise.
4030 * commands/boot.c: Likewise.
4031 * commands/parttool.c: Likewise.
4032 * commands/configfile.c: Likewise.
4033 * commands/search.c: Likewise.
4034 * commands/ieee1275/suspend.c: Likewise.
4035 * commands/cat.c: Likewise.
4036 * commands/i386/pc/pxecmd.c: Likewise.
4037 * commands/i386/pc/play.c: Likewise.
4038 * commands/i386/pc/halt.c: Likewise.
4039 * commands/i386/pc/vbeinfo.c: Likewise.
4040 * commands/i386/pc/vbetest.c: Likewise.
4041 * commands/lspci.c: Likewise.
4042 * commands/date.c: Likewise.
4043 * commands/handler.c: Likewise.
4044 * commands/ls.c: Likewise.
4045 * commands/test.c: Likewise.
4046 * commands/cmp.c: Likewise.
4047 * commands/efi/loadbios.c: Likewise.
4048 * commands/efi/fixvideo.c: Likewise.
4049 * commands/halt.c: Likewise.
4050 * commands/help.c: Likewise.
4051 * commands/reboot.c: Likewise.
4052 * hello/hello.c: Likewise.
4053 * script/sh/main.c: Likewise.
4054 * loader/xnu.c: Likewise.
4055 * term/terminfo.c: Likewise.
4056 * term/i386/pc/serial.c: Likewise.
4057 * term/usb_keyboard.c: Likewise.
4059 2009-05-03 David S. Miller <davem@davemloft.net>
4061 * normal/menu.c: Include grub/parser.h
4063 2009-05-03 Pavel Roskin <proski@gnu.org>
4065 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
4067 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
4068 Suggested by Javier MartÃn <lordhabbit@gmail.com>
4070 * util/i386/pc/grub-mkrescue.in: Allow for the case when
4071 efiemu??.o doesn't exist.
4072 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
4075 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
4077 FreeBSD 64-bit support
4079 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
4080 and loader/i386/bsd_trampoline.S
4081 (bsd_mod_ASFLAGS): new variable
4082 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4083 (FREEBSD_MODTYPE_KERNEL64): likewise
4084 (grub_bsd64_trampoline_start): likewise
4085 (grub_bsd64_trampoline_end): likewise
4086 (grub_bsd64_trampoline_selfjump): likewise
4087 (grub_bsd64_trampoline_gdt): likewise
4088 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4089 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4090 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4091 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4092 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4094 * loader/i386/bsd_pagetable.c: new file
4095 * loader/i386/bsd_trampoline.S: likewise
4096 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4097 (ALIGN_VAR): likewise
4098 (entry_hi): new variable
4099 (kern_end_mdofs): likewise
4100 (is_64bit): likewise
4101 (grub_freebsd_add_meta): use ALIGN_VAR
4102 (grub_e820_mmap): new declaration
4103 (grub_freebsd_add_mmap): new function
4104 (grub_freebsd_add_meta_module): support 64 bit kernels
4105 (grub_freebsd_list_modules): use ALIGN_VAR
4106 (gdt_descriptor): new declaration
4107 (grub_freebsd_boot): support 64 bit kernels
4108 (grub_bsd_elf64_hook): new function
4109 (grub_bsd_load_elf): support elf64
4111 2009-05-03 Bean <bean123ch@gmail.com>
4113 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4114 after we get the result of if statement.
4116 2009-05-03 Bean <bean123ch@gmail.com>
4118 * Makefile.in (enable_efiemu): New variable.
4120 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4122 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4124 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4125 path, add -mno-red-zone option.
4126 (efiemu64_s.o): Likewise.
4127 (efiemu64.o): Use macro $^ for source file.
4129 * configure.ac (--enable-efiemu): New option.
4131 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4135 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4136 (pkglib_MODULES): add xnu.mod
4137 (xnu_mod_SOURCES): new variable
4138 (xnu_mod_CFLAGS): likewise
4139 (xnu_mod_LDFLAGS): likewise
4140 (xnu_mod_ASFLAGS): likewise
4141 * conf/i386-pc.rmk: likewise
4142 * conf/x86_64-efi.rmk: likewise
4143 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4145 * include/grub/i386/macho.h: new file
4146 * include/grub/i386/xnu.h: likewise
4147 * include/grub/macho.h: likewise
4148 * include/grub/machoload.h: likewise
4149 * include/grub/x86_64/macho.h: likewise
4150 * include/grub/x86_64/xnu.h: likewise
4151 * include/grub/xnu.h: likewise
4152 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4153 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4154 * loader/i386/efi/xnu.c: new file
4155 * loader/i386/pc/xnu.c: likewise
4156 * loader/i386/xnu.c: likewise
4157 * loader/i386/xnu_helper.S: likewise
4158 * loader/macho.c: likewise
4159 * loader/xnu.c: likewise
4160 * loader/xnu_resume.c: likewise
4161 * util/grub-dumpdevtree: likewise
4162 * include/grub/i386/pit.h: include grub/err.h
4163 (grub_pit_wait): export
4164 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4166 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4170 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4171 _linux_efi, linux_efi.
4172 new files in grub-emu
4173 new targets efiemu32.o and efiemu64.o
4174 * loader/linux_normal_efiemu.c: likewise
4175 * loader/i386/efi/linux.c: added preliminary efiemu support
4176 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4178 * include/grub/autoefi.h: new file
4179 * include/grub/i386/efiemu.h: likewise
4180 * include/grub/i386/pc/efiemu.h: likewise
4181 * include/grub/efi/api.h: add LL suffix when necessary
4182 new definitions relating to tables
4183 * include/grub/efiemu/efiemu.h: new file
4184 * include/grub/efiemu/runtime.h: likewise
4185 * efiemu/prepare.c: likewise
4186 * efiemu/loadcore_common.c: likewise
4187 * efiemu/loadcore64.c: likewise
4188 * efiemu/runtime/efiemu.sh: likewise
4189 * efiemu/runtime/efiemu.S: likewise
4190 * efiemu/runtime/efiemu.c: likewise
4191 * efiemu/runtime/config.h: likewise
4192 * efiemu/prepare32.c: likewise
4193 * efiemu/main.c: likewise
4194 * efiemu/modules/pnvram.c: likewise
4195 * efiemu/modules/i386: likewise
4196 * efiemu/modules/i386/pc: likewise
4197 * efiemu/modules/acpi.c: likewise
4198 * efiemu/i386/pc/cfgtables.c: likewise
4199 * efiemu/i386/loadcore64.c: likewise
4200 * efiemu/i386/loadcore32.c: likewise
4201 * efiemu/prepare64.c: likewise
4202 * efiemu/loadcore.c: likewise
4203 * efiemu/symbols.c: likewise
4204 * efiemu/mm.c: likewise
4205 * efiemu/loadcore32.c: likewise
4207 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4211 * commands/acpi.c: new file
4212 * commands/i386/pc/acpi.c: likewise
4213 * commands/efi/acpi.c: likewise
4214 * include/grub/acpi.h: likewise
4215 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4216 (acpi_mod_SOURCES): new variable
4217 (acpi_mod_CFLAGS): likewise
4218 (acpi_mod_LDFLAGS): likewise
4219 * conf/i386-efi.rmk: likewise
4220 * conf/x86_64-efi.rmk: likewise
4222 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4224 Missing part from mmap patch
4226 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4227 (grub_mmap_unregister)
4228 (grub_mmap_free_and_unregister): use grub_mmap_register
4230 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4234 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4235 * loader/i386/linux.c (find_mmap_size): likewise
4236 (allocate_pages): likewise
4237 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4238 (grub_fill_multiboot_mmap): likewise
4239 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4240 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4241 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4242 (OPENBSD_MMAP_RESERVED): likewise
4243 * include/grub/i386/pc/memory.h: include grub/memory.h
4244 (grub_lower_mem): removed
4245 (grub_upper_mem): likewise
4246 (GRUB_MACHINE_MEMORY_ACPI): new definition
4247 (GRUB_MACHINE_MEMORY_NVS): likewise
4248 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4249 (GRUB_MACHINE_MEMORY_HOLE): likewise
4250 (grub_machine_mmap_register): likewise
4251 (grub_machine_mmap_unregister): likewise
4252 (grub_machine_get_upper): likewise
4253 (grub_machine_get_lower): likewise
4254 (grub_machine_get_post64): likewise
4255 * include/grub/i386/efi/memory.h: new file
4256 * include/grub/x86_64/efi/memory.h: likewise
4257 * include/grub/efi/memory.h: likewise
4258 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4259 (mmap_mod_SOURCES): new variable
4260 (mmap_mod_LDFLAGS): likewise
4261 (mmap_mod_ASFLAGS): likewise
4262 * conf/i386-coreboot.rmk: likewise
4263 * conf/i386-ieee1275.rmk: likewise
4264 * conf/i386-efi.rmk: likewise
4265 * conf/x86_64-efi.rmk: likewise
4266 * include/grub/types.h (UINT_TO_PTR): new macro
4267 (PTR_TO_UINT32): likewise
4268 (PTR_TO_UINT64): likewise
4269 * include/grub/memory.h: new file
4270 * mmap/i386/pc/mmap.c: likewise
4271 * mmap/i386/pc/mmap_helper.S: likewise
4272 * mmap/i386/uppermem.c: likewise
4273 * mmap/mmap.c: likewise
4274 * mmap/efi/mmap.c: likewise
4275 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4277 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4278 (grub_upper_mem): likewise
4279 (grub_machine_init): don't use grub_upper_mem,
4280 make grub_lower_mem local
4281 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4282 grub_mmap_iterate and grub_mmap_get_upper
4283 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4285 2009-05-02 Bean <bean123ch@gmail.com>
4287 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4289 (pkglib_MODULES): Add normal.mod and sh.mod.
4290 (normal_SOURCES): New variable.
4291 (normal_mod_CFLAGS): Likewise.
4292 (normal_mod_LDFLAGS): Likewise.
4293 (sh_mod_SOURCES): Likewise.
4294 (sh_mod_CFLAGS): Likewise.
4295 (sh_mod_LDFLAGS): Likewise.
4297 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4298 script/sh/lexer.c_DEPENDENCIES.
4299 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4300 kern/rescue_reader.c and kern/rescue_parser.c.
4301 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4302 (grub_emu_SOURCES): Change source files.
4303 (pkglib_MODULES): Remove normal.mod.
4304 (normal_SOURCES): Removed.
4305 (normal_mod_CFLAGS): Likewise.
4306 (normal_mod_LDFLAGS): Likewise.
4307 * conf/i386-coreboot.rmk: Likewise.
4308 * conf/i386-efi.rmk: Likewise.
4309 * conf/i386-ieee1276.rmk: Likewise.
4310 * conf/powerpc-ieee1275.rmk: Likewise.
4311 * conf/sparc64-ieee1275.rmk: Likewise.
4312 * conf/x86_64-efi.rmk: Likewise.
4314 * include/grub/command.h (grub_command_execute): New inline function.
4316 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4318 * include/grub/normal.h: Remove <grub/setjmp.h>.
4319 (grub_fs_module_list): Moved to normal/autofs.c.
4320 (grub_exit_env): Removed.
4321 (grub_command_execute): Likewise.
4322 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4324 (read_command_list): New function declaration.
4325 (read_fs_list): Likewise.
4327 * include/parser.h: Include <grub/reader.h>.
4328 (grub_parser_split_cmdline): Change type of getline parameter.
4329 (grub_parser): New structure.
4330 (grub_parser_class): New variable.
4331 (grub_parser_execute): New function declaration.
4332 (grub_register_rescue_parser): Likewise.
4333 (grub_parser_register): New inline function.
4334 (grub_parser_unregister): Likewise.
4335 (grub_parser_get_current): Likewise.
4336 (grub_parser_set_current): Likewise.
4338 * include/grub/reader.h: New file.
4339 * kern/reader.c: Likewise.
4340 * kern/rescue_parser.c: Likewise.
4341 * kern/rescue_reader.c: Likewise.
4342 * normal/autofs.c: Likewise.
4343 * normal/dyncmd.c: Likewise.
4345 * include/grub/rescue.h: Removed.
4346 * normal/command.h: Likewise.
4348 * include/grub/script.h: Moved to ...
4349 * include/grub/script_sh.h: ... Moved here.
4350 * normal/execute.c: Moved to ...
4351 * script/sh/execute.c: ... Moved here.
4352 * normal/function.c: Moved to ...
4353 * script/sh/function.c: ... Moved here.
4354 * normal/lexer.c: Moved to ...
4355 * script/sh/lexer.c: ... Moved here.
4356 * normal/parser.y: Moved to ...
4357 * script/sh/parser.y: ... Moved here.
4358 * normal/script.c: Moved to ...
4359 * script/sh/script.c: ... Moved here.
4361 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4363 (grub_exit_env): Removed.
4364 (fs_module_list): Moved to normal/autofs.c.
4365 (grub_file_getline): Don't handle comment here.
4366 (free_menu): Skip removed field entry->commands.
4367 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4369 (read_config_file): Removed nested parameter, change getline function.
4370 (grub_enter_normal_mode): Removed.
4371 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4372 (read_command_list): Likewise.
4373 (autoload_fs_module): Moved to normal/autofs.c.
4374 (read_fs_list): Likewise.
4375 (reader_nested): New variable.
4376 (grub_normal_execute): Run parser.sh to switch to sh parser.
4377 (grub_cmd_rescue): Removed.
4378 (cmd_normal): Removed.
4379 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4381 (grub_cmdline_run): New function.
4382 (grub_normal_reader_init): Likewise.
4383 (grub_normal_read_line): Likewise.
4384 (grub_env_write_pager): Likewise.
4385 (cmdline): New variable.
4386 (grub_normal_reader): Likewise.
4387 (GRUB_MOD_INIT): Register normal reader and set as current, register
4388 pager hook, register normal command with grub_register_command_prio,
4389 so that it won't show up in command.lst.
4390 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4391 grub_fs_autoload_hook.
4393 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4394 (grub_menu_execute_entry): Replace grub_script_execute with
4395 grub_parser_execute, change parameter to grub_command_execute.
4397 * normal/menu_text.c: Remove <grub/script.h>.
4399 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4400 and <grub/parser.h>.
4401 (run): Change editor_getline to use new parser interface. Change
4402 parameter to grub_command_execute.
4404 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4405 <grub/reader.h> and <grub/parser.h>.
4406 (grub_load_normal_mode): Execute normal command.
4407 (grub_main): Call grub_register_core_commands,
4408 grub_register_rescue_parser and grub_register_rescue_reader, use
4409 grub_reader_loop to enter input loop.
4411 * kern/parser.c (grub_parser_split_cmdline): Change type of
4413 (grub_parser_class): New variable.
4414 (grub_parser_execute): New function.
4416 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4417 * loader/multiboot2.c: Likewise.
4418 * loader/sparc64/ieee1275/linux.c: Likewise.
4420 * util/grub-emu.c (read_command_list): New dummy function.
4422 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4424 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4425 count to 16 for CCISS and IDA.
4427 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4429 * normal/menu_text.c (grub_wait_after_message): Print a newline
4430 after waiting for user input.
4432 * loader/i386/linux.c: Include `<grub/normal.h>'.
4433 (grub_cmd_linux): Improve the error message about `ask' mode, by
4434 waiting for user input so it's not missed (we can do this, since
4435 user requested interaction).
4437 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4439 Added missing lst to grub-mkrescue
4441 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4442 and ${input_dir}/parttool.lst
4444 2009-04-30 David S. Miller <davem@davemloft.net>
4446 * util/hostdisk.c (device_is_wholedisk): New function.
4447 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4448 zero only if device_is_wholedisk() returns true.
4450 * util/hostdisk.c (convert_system_partition_to_system_disk):
4451 Handle virtual disk devices named /dev/vdiskX as found on sparc
4454 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4455 lettered partition specifier is found, convert to numbered.
4457 2009-04-29 David S. Miller <davem@davemloft.net>
4459 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4460 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4462 * normal/command.c: Add missing newline at end of file.
4464 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4466 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4467 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4468 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4469 ihandles have a 32-bit type but need to be stored in a "void *".
4471 2009-04-28 Pavel Roskin <proski@gnu.org>
4473 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4474 not disk. Adjust all dependencies.
4475 (grub_fs_uuid_close): Use grub_device_close(), not
4478 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4479 parent's partition, don't copy it by reference, as it gets freed
4482 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4484 Preboot hooks support
4486 * commands/boot.c (struct grub_preboot_t): new declaration
4487 (preboots_head): new variable
4488 (preboots_tail): likewise
4489 (grub_loader_register_preboot_hook): new function
4490 (grub_loader_unregister_preboot_hook): likewise
4491 (grub_loader_set): launch preboot hooks
4492 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4493 (grub_loader_register_preboot_hook): new declaration
4494 (grub_loader_unregister_preboot_hook): likewise
4496 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4500 * disk/scsi.c (grub_scsi_open): added missing cast when
4501 calling grub_dprintf
4503 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4505 Bug and warning fixes
4507 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4509 * commands/test.c (test_parse): fixed bug with file tests and corrected
4510 declaration of find_file
4512 2009-04-26 Pavel Roskin <proski@gnu.org>
4514 * Makefile.in: Don't install empty manual pages if help2man is
4515 missing. Use help2man option for output, not shell redirection.
4517 2009-04-26 David S. Miller <davem@davemloft.net>
4519 * util/grub-mkdevicemap.c (make_device_map): Add missing
4520 NESTED_FUNC_ATTR to process_device().
4522 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4526 * commands/test.c: rewritten to use bash-like test
4528 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4530 Parttool autoloading and improvements
4532 * Makefile.in (pkglib_DATA): add parttool.lst
4533 (parttool.lst): new target
4534 * genmk.rb: generate parttool-*
4535 (CLEANFILES): add #{parttool}
4536 (PARTTOOLFILES): new variable
4537 * genparttoollist.sh: new file
4538 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4539 (grub_pcpart_type): likewise
4540 * commands/parttool.c (helpmsg): new variable
4541 (grub_cmd_parttool): output help if not enough arguments are supplied
4543 (GRUB_MOD_INIT(parttool)): use helpmsg
4545 2009-04-24 David S. Miller <davem@davemloft.net>
4547 Avoiding opening same device multiple times in device iterator.
4549 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4550 and use it to build a list of partitions in iterate_disk() and
4551 iterate_partition().
4553 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4556 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4557 grub_devalias_iterate() result instead of unconditional 0.
4558 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4559 Also, capture hook return value, either directly or via
4560 grub_children_iterate(), and propagate to caller.
4561 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4562 grub_children_iterate): Return value is now 'int' instead of
4564 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4565 like a proper iterator, stopping when hooks return non-zero.
4566 (grub_devalias_iterate): Likewise.
4568 2009-04-23 David S. Miller <davem@davemloft.net>
4570 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4572 2009-04-22 David S. Miller <davem@davemloft.net>
4574 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4575 is larger than address_cells, use that value for address_cells too.
4577 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4578 IEEE1275_MAX_PATH_LEN): Define.
4579 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4580 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4581 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4582 'devtype'. Explicitly NULL terminate devalias expansion.
4584 * util/sparc64/ieee1275/misc.c: New file.
4585 * util/sparc64/ieee1275/grub-setup.c: New file.
4586 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4587 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4588 * util/sparc64/ieee1275/grub-install.in: New file.
4589 * util/ieee1275/ofpath.c: New file.
4590 * util/ieee1275/devicemap.c: New file.
4591 * util/devicemap.c: New file.
4592 * util/deviceiter.c: New file.
4593 * kern/sparc64/ieee1275/init.c: New file.
4594 * include/grub/util/ofpath.h: New file.
4595 * include/grub/util/deviceiter.h: New file.
4596 * util/grub-mkdevicemap.c: Include deviceiter.h.
4597 Implement using grub_util_emit_devicemap_entry and
4598 grub_util_iterate_devices.
4599 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4600 util/devicemap.c into grub-mkdevicemap
4601 * conf/i386-efi.rmk: Likewise.
4602 * conf/i386-ieee1275.rmk: Likewise.
4603 * conf/i386-pc.rmk: Likewise.
4604 * conf/powerpc-ieee1275.rmk: Likewise.
4605 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4606 images and installation utilities. Build kernel as image
4607 instead of as elf binary. Use common rules as much as possible.
4609 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4611 Correct GPT definition
4613 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4616 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4618 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4620 2009-04-19 David S. Miller <davem@davemloft.net>
4622 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4623 (grub_rescue_cmd_linux): Rename to...
4624 (grub_cmd_linux): and fix prototype.
4625 (grub_rescue_cmd_initrd): Rename to...
4626 (grub_cmd_initrd): and fix prototype.
4627 (cmd_linux, cmd_initrd): New.
4628 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4629 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4631 2009-04-17 Pavel Roskin <proski@gnu.org>
4633 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4635 (grub_ohci_transfer): Likewise.
4637 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4639 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4640 return without a value. Fix inconsistent indentation.
4642 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4643 match struct grub_fs.
4645 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4646 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4647 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4648 * commands/lspci.c (grub_lspci_iter): Likewise.
4650 2009-04-16 Bean <bean123ch@gmail.com>
4652 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4655 2009-04-15 Pavel Roskin <proski@gnu.org>
4657 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4658 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4659 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4662 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4664 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4665 that no multiple data or metadata areas are supported and `Unknown
4668 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4670 Move loader out of the kernel
4672 * kern/loader.c: moved to ...
4673 * commands/boot.c: ... moved here
4674 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4675 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4676 * include/grub/kernel.h (grub_machine_fini): export
4677 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4678 (grub_loader_set): likewise
4679 (grub_loader_unset): likewise
4680 (grub_loader_boot): likewise
4681 * conf/common.rmk: new module boot.mod
4682 (pkglib_MODULES): add boot.mod
4683 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4684 (grub_emu_SOURCES): likewise
4685 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4686 (grub_emu_SOURCES): likewise
4687 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4688 (grub_emu_SOURCES): likewise
4689 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4690 (grub_emu_SOURCES): likewise
4691 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4692 (grub_emu_SOURCES): likewise
4693 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4694 (grub_emu_SOURCES): likewise
4695 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4696 (grub_emu_SOURCES): likewise
4698 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4700 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4702 * kern/misc.c (grub_itoa): Removed function
4703 (grub_ltoa): likewise
4704 (grub_vsprintf): use grub_lltoa
4706 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4710 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4711 * conf/i386-coreboot.rmk: likewise
4712 * conf/i386-ieee1275.rmk: likewise
4713 * conf/powerpc-ieee1275.rmk: likewise
4715 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4717 * INSTALL: Add that `./autogen.sh' needs to be run before
4720 2009-04-14 Bean <bean123ch@gmail.com>
4722 * Makefile.in (pkglib_DATA): Add handler.lst.
4723 (handler.lst): New rule.
4725 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4726 * conf/i386-coreboot.rmk: Likewise.
4727 * conf/i386-ieee1275.rmk: Likewise.
4728 * conf/i386-efi.rmk: Likewise.
4729 * conf/x86_64-efi.rmk: Likewise.
4730 * conf/powerpc-ieee1275.rmk: Likewise.
4731 * conf/sparc64-ieee1275.rmk: Likewise.
4733 * genhandlerlist.sh: New file.
4735 * genmk.rb: Add rules to generate handler.lst.
4737 * include/grub/normal.h (grub_file_getline): New function definition.
4738 (read_handler_list): Likewise.
4739 (free_handler_list): Likewise.
4741 * include/grub/term.h (grub_term_register_input): Add name parameter
4742 for auto generation of handler.lst.
4743 (grub_term_register_output): Likewise.
4745 * normal/handler.c: New file.
4747 * normal/main.c (get_line): Renamed to grub_file_getline.
4748 (read_config_file): Use the newly renamed grub_file_getline.
4749 (read_command_list): Likewise.
4750 (read_fs_list): Likewise.
4751 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4752 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4754 * term/efi/console.c (grub_console_init): Add name parameter for auto
4755 generation of handler.lst.
4756 * term/gfxterm.c: Likewise.
4757 * term/i386/pc/at_keyboard.c: Likewise.
4758 * term/i386/pc/console.c: Likewise.
4759 * term/i386/pc/serial.c: Likewise.
4760 * term/i386/pc/vesafb.c: Likewise.
4761 * term/i386/pc/vga.c: Likewise.
4762 * term/i386/pc/vga_text.c: Likewise.
4763 * term/ieee1275/ofconsole.c: Likewise.
4764 * term/usb_keyboard.c: Likewise.
4766 2009-04-14 Bean <bean123ch@gmail.com>
4768 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4769 properly with null character.
4771 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4773 * configure: Remove.
4774 * config.h.in: Likewise.
4775 * stamp-h.in: Likewise.
4776 * DISTLIST: Likewise.
4777 * conf/common.mk: Likewise.
4778 * conf/i386-coreboot.mk: Likewise.
4779 * conf/i386-efi.mk: Likewise.
4780 * conf/i386-ieee1275.mk: Likewise.
4781 * conf/i386.mk: Likewise.
4782 * conf/i386-pc.mk: Likewise.
4783 * conf/powerpc-ieee1275.mk: Likewise.
4784 * conf/sparc64-ieee1275.mk: Likewise.
4785 * conf/x86_64-efi.mk: Likewise.
4787 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4790 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4791 David S. Miller <davem@davemloft.net>
4793 * util/hostdisk.c (make_device_name): Fix buffer length
4796 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4798 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4799 <sys/param.h> and <sys/sysctl.h>.
4800 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4801 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4802 opening the device and reset them afterwards.
4804 2009-04-13 Pavel Roskin <proski@gnu.org>
4806 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4807 Reported by John Stanley <jpsinthemix@verizon.net>
4809 2009-04-13 Robert Millan <rmh@aybabtu.com>
4811 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4812 that name for menuentries when appropriate.
4814 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4816 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4818 2009-04-13 Robert Millan <rmh@aybabtu.com>
4820 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4821 to Linux, simply abort telling the user it's no longer supported.
4823 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4825 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4826 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4827 `freebsd_loadenv' only when devices.hints exist.
4829 2009-04-13 Pavel Roskin <proski@gnu.org>
4831 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4833 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4835 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4837 (grub_drive): Likewise.
4839 2009-04-13 David S. Miller <davem@davemloft.net>
4841 * kern/sparc64/ieee1275/ieee1275.c: New file.
4842 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4843 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4844 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4845 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4846 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4847 grub_ieee1275_alloc_physmem): Declare new exported functions.
4849 * include/grub/sparc64/ieee1275/loader.h: New file.
4850 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4851 * include/grub/sparc64/kernel.h: Likewise.
4852 * loader/sparc64/ieee1275/linux.c: Likewise.
4854 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4855 (grub_fstest_SOURCES): Likewise.
4857 * util/hostdisk.c (make_device_name): Do not make any assumptions
4858 about the length of drive names.
4860 * kern/dl.c (grub_dl_load_file): Close file immediately when
4861 we are done using it.
4863 2009-04-12 David S. Miller <davem@davemloft.net>
4865 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4866 values. Noticed by Pavel Roskin.
4868 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4871 * genmk.rb: Add more flexible image type specification, also
4872 pass --strip-unneeded to objcopy.
4873 * conf/i386-pc.rmk: Use *_FORMAT.
4874 * conf/i386-pc.mk: Rebuilt.
4876 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4877 (OFDISK_HASH_SZ): Define.
4878 (ofdisk_hash): New hash table.
4879 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4880 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4881 instead of device phandle which is not unique.
4883 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4884 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4885 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4886 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4887 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4888 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4889 GRUB_KERNEL_MACHINE_DATA_END): Define.
4890 (grub_kernel_image_size, grub_total_module_size): Declare.
4892 2009-04-12 Pavel Roskin <proski@gnu.org>
4894 * configure.ac: Change the logic when we check for target tools.
4895 Do it when the target is specified and it's different from the
4896 specified value of the host.
4898 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4900 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4901 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4902 GNU/kFreeBSD. Check if a device is a character device. Use
4903 DIOCGMEDIASIZE to get the size.
4904 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4905 support for GNU/kFreeBSD.
4906 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4907 is a character device instead of a block device. Add support for
4908 FreeBSD device names.
4910 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4911 is a character device instead of a block device.
4913 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4914 is a character device instead of a block device.
4916 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4918 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4919 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4920 FreeBSD. Check if a device is a character device. Use
4921 DIOCGMEDIASIZE to get the size.
4922 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4923 support for FreeBSD.
4924 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4925 is a character device instead of a block device. Add support for
4926 FreeBSD device names.
4928 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4929 a character device instead of a block device.
4930 (grub_util_check_char_device): New function.
4932 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4933 a character device instead of a block device.
4935 * include/grub/util/getroot.h (grub_util_check_char_device): New
4938 2009-04-11 David S. Miller <davem@davemloft.net>
4940 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4942 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4943 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4944 function, if present.
4945 (__bswapdi2): Likewise.
4947 * include/grub/sparc64/ieee1275/boot.h: New file.
4948 * boot/sparc64/ieee1275/boot.S: Likewise.
4949 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4951 * kern/misc.c (grub_ltoa): New function.
4952 (grub_vsprintf): Use it to format 'long' integers.
4954 2009-04-10 David S. Miller <davem@davemloft.net>
4956 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4957 slots are of type grub_ieee1275_cell_t.
4958 (grub_nand_read): Likewise.
4959 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4960 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4961 macros are used to compare values in arg/ret block of the call.
4962 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4963 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4964 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4965 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4966 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4967 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4968 grub_ieee1275_close, grub_ieee1275_set_property,
4969 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4970 grub_ieee1275_cell_t.
4971 * kern/ieee1275/openfw.c (grub_map): Likewise.
4972 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4973 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4975 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4976 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4977 (grub_devalias_iterate): Likewise.
4979 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4983 * fs/ufs.c (INODE_NBLOCKS): new definition
4984 (struct grub_ufs_dirent): added fields for non-BSD dirents
4985 (grub_ufs_get_file_block): fixed double indirect handling
4986 (grub_ufs_lookup_symlink): use more robust way to determine whether
4988 (grub_ufs_find_file): support for non-BSD dirents
4989 (grub_ufs_dir): support for non-BSD dirents
4991 2009-04-10 Bean <bean123ch@gnail.com>
4993 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4994 attribute, otherwise the size would be wrong for i386 platform.
4996 * include/grub/pci.h (grub_pci_read_word): New inline function.
4997 (grub_pci_read_byte): Likewise.
4998 (grub_pci_write): Likewise.
4999 (grub_pci_write_word): Likewise.
5000 (grub_pci_write_byte): Likewise.
5002 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
5004 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
5005 (find_framebuf): Scan pci to locate the frame buffer address.
5007 * commands/efi/fixvideo.c: New file.
5009 * commands/efi/loadbios.c: Likewise.
5011 * commands/memrw.c: Likewise.
5013 * util/grub-dumpbios.in: Likewise.
5015 * conf/common.rmk (grub-dumpbios): New utility.
5016 (pkglib_MODULES): New module memrw.mod.
5017 (memrw_mod_SOURCE): New macro.
5018 (memrw_mod_CFLAGS): Likewise.
5019 (memrw_mod_LDFLAGS): Likewise.
5021 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
5023 (loadbios_mod_SOURCE): New macro.
5024 (loadbios_mod_CFLAGS): Likewise.
5025 (loadbios_mod_LDFLAGS): Likewise.
5026 (fixvideo_mod_SOURCE): Likewise.
5027 (fixvideo_mod_CFLAGS): Likewise.
5028 (fixvideo_mod_LDFLAGS): Likewise.
5030 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
5032 (loadbios_mod_SOURCE): New macro.
5033 (loadbios_mod_CFLAGS): Likewise.
5034 (loadbios_mod_LDFLAGS): Likewise.
5035 (fixvideo_mod_SOURCE): Likewise.
5036 (fixvideo_mod_CFLAGS): Likewise.
5037 (fixvideo_mod_LDFLAGS): Likewise.
5039 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
5041 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
5043 2009-04-07 David S. Miller <davem@davemloft.net>
5045 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
5046 support for R_SPARC_OLO10 relocations. Fix compile warning for
5047 R_SPARC_WDISP30 case.
5048 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
5050 2009-04-06 Pavel Roskin <proski@gnu.org>
5052 * include/grub/misc.h (ARRAY_SIZE): New macro.
5053 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
5055 * loader/i386/linux.c (allocate_pages): Use free_pages().
5056 (grub_linux_unload): Don't use free_pages().
5057 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
5058 wrong index. Treat all other modes as text modes.
5059 (grub_cmd_linux): Initialize vid_mode unconditionally to
5060 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
5062 * commands/help.c (print_command_help): Use cmd->prio, not
5063 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
5065 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5069 * parttool/pcpart.c: new file
5070 * commands/parttool.c: likewise
5071 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
5072 (parttool_mod_SOURCES): new variable
5073 (parttool_mod_CFLAGS): likewise
5074 (parttool_mod_LDFLAGS): likewise
5075 (pcpart_mod_SOURCES): likewise
5076 (pcpart_mod_CFLAGS): likewise
5077 (pcpart_mod_LDFLAGS): likewise
5078 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
5079 and parttool/pcpart.c
5080 * conf/i386-efi.rmk: likewise
5081 * conf/i386-ieee1275.rmk: likewise
5082 * conf/i386-pc.rmk: likewise
5083 * conf/powerpc-ieee1275.rmk: likewise
5084 * conf/sparc64-ieee1275.rmk: likewise
5085 * conf/x86_64-ieee1275.rmk: likewise
5087 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5089 Support for mtime and further expandability of dir command
5091 * include/grub/lib/datetime.h: moved to ...
5092 * include/grub/datetime.h: ... moved here and added
5093 declaration of grub_unixtime2datetime. All users updated
5094 * include/grub/fs.h: new syntax for dir and mtime functions in
5096 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5097 and GRUB_FSHELP_FLAGS_MASK
5098 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5099 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5100 (grub_ext2_mtime): new function
5101 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5102 (grub_hfsplus_mtime): new function
5103 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5104 (GRUB_UFS_ATTR_FILE): likewise
5105 (GRUB_UFS_ATTR_LNK): likewise
5106 (struct grub_ufs_sblock): new fields mtime
5107 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5109 (grub_ufs_dir): mtime support
5110 (grub_ufs_mtime): new function
5111 * fs/affs.c (grub_affs_dir): use new dir syntax
5112 * fs/afs.c (grub_afs_dir): likewise
5113 * fs/cpio.c (grub_cpio_dir): likewise
5114 * fs/fat.c (grub_fat_find_dir): likewise
5115 * fs/hfs.c (grub_hfs_dir): likewise
5116 * fs/iso9660.c (grub_iso9660_dir): likewise
5117 * fs/jfs.c (grub_jfs_dir): likewise
5118 * fs/minix.c (grub_minix_dir): likewise
5119 * fs/ntfs.c (grub_ntfs_dir): likewise
5120 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5121 * fs/sfs.c (grub_sfs_dir): likewise
5122 * fs/xfs.c (grub_xfs_dir): likewise
5123 * util/hostfs.c (grub_hostfs_dir): likewise
5124 * lib/datetime.c: moved to ...
5125 * normal/datetime.c: ... moved here
5126 (grub_unixtime2datetime): new function
5127 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5128 * normal/completion.c (iterate_dir): use new dir syntax
5129 * normal/misc.c (grub_normal_print_device_info): tell the
5130 last modification time of a volume
5131 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5132 * conf/common.rmk: added lib/datetime.c to ls.mod
5133 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5134 (normal_mod_SOURCES): likewise
5135 (datetime_mod_SOURCES): Removed lib/datetime.c
5136 * conf/i386-efi.rmk: likewise
5137 * conf/i386-ieee1275.rmk: likewise
5138 * conf/i386-pc.rmk: likewise
5139 * conf/powerpc-ieee1275.rmk: likewise
5140 * conf/sparc64-ieee1275.rmk: likewise
5141 * conf/x86_64-efi.rmk: likewise
5143 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5145 Trim trailing spaces in FAT label and support mtools-like labels
5147 * fs/fat.c (grub_fat_iterate_dir): New function based
5148 on grub_fat_find_dir
5149 (grub_fat_find_dir): use grub_fat_iterate_dir
5150 (grub_fat_label): likewise
5152 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5154 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5156 remove extraneous kernel_elf_HEADERS
5158 2009-04-04 Bean <bean123ch@gnail.com>
5160 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5162 * util/misc.c: Likewise.
5164 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5166 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5167 instead of grub_printf.
5169 2009-04-03 Robert Millan <rmh@aybabtu.com>
5171 * loader/i386/linux.c (grub_linux_setup_video): Fill
5172 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5173 values from `mode info' structure instead of hardcoded
5176 2009-04-01 Pavel Roskin <proski@gnu.org>
5178 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5180 * genmk.rb: Likewise.
5181 * configure.ac: Likewise.
5183 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5185 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5186 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5188 2009-04-01 David S. Miller <davem@davemloft.net>
5190 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5191 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5192 (grub_setjmp): Mark with 'returns_twice' attribute.
5193 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5194 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5195 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5197 2009-04-01 Robert Millan <rmh@aybabtu.com>
5199 Reapply fix from 2008-07-28 which was accidentally reverted; also
5200 perform the same fix to a similar check in same function.
5202 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5203 with the same number are found, just use issue a warning with
5204 grub_dprintf(), as this error has been reported to be non-fatal.
5206 2009-03-31 Pavel Roskin <proski@gnu.org>
5208 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5209 for cross-compilation.
5211 2009-03-30 Robert Millan <rmh@aybabtu.com>
5213 Fix i386-ieee1275 build.
5215 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5218 2009-03-30 Pavel Roskin <proski@gnu.org>
5220 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5221 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5222 zero-terminated, rely only on the strlen value. Fix comparison
5223 of strings differing in length.
5225 2009-03-30 Robert Millan <rmh@aybabtu.com>
5227 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5228 checking for abi version. Improve error messages on BIOS to notify
5229 user about `linux16' command.
5231 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5235 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5236 in case of collision
5237 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5239 2009-03-29 Robert Millan <rmh@aybabtu.com>
5241 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5242 set `vid_mode' accordingly.
5243 (grub_linux_boot): Process `vid_mode' and set video mode.
5245 2009-03-29 Robert Millan <rmh@aybabtu.com>
5247 * util/grub.d/10_linux.in (linux_entry): New function.
5248 Factorize generation of Linux boot entries.
5250 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5252 Make the format of Environment Block plain text. The boot loader
5253 part is not tested well yet.
5255 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5258 (usage): Remove "info" and "clear". Add "unset". Update the
5259 description of "set", as this does not delete variables any
5261 (create_envblk_file): Complete rewrite.
5262 (open_envblk_file): Likewise.
5263 (cmd_info): Removed.
5264 (cmd_list): Likewise.
5265 (cmd_set): Likewise.
5266 (cmd_clear): Likewise.
5267 (list_variables): New function.
5268 (write_envblk): Likewise.
5269 (set_variables): Likewise.
5270 (unset_variables): Likewise.
5271 (main): Complete rewrite.
5273 * commands/loadenv.c (buffer): Removed.
5275 (open_envblk_file): New function.
5276 (read_envblk_file): Complete rewrite.
5277 (grub_cmd_load_env): Likewise.
5278 (grub_cmd_list_env): Likewise.
5279 (struct blocklist): New struct.
5280 (free_blocklists): New function.
5281 (check_blocklists): Likewise.
5282 (write_blocklists): Likewise.
5283 (grub_cmd_save_env): Complete rewrite.
5285 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5286 a plain text signature.
5287 (GRUB_ENVBLK_MAXLEN): Removed.
5288 (struct grub_envblk): Complete rewrite.
5289 (grub_envblk_find): Removed.
5290 (grub_envblk_insert): Likewise.
5291 (grub_envblk_open): New prototype.
5292 (grub_envblk_set): Likewise.
5293 (grub_envblk_delete): Put const to VALUE.
5294 (grub_envblk_iterate): Put const to NAME and VALUE.
5295 (grub_envblk_close): New prototype.
5296 (grub_envblk_buffer): New inline function.
5297 (grub_envblk_size): Likewise.
5299 * lib/envblk.c: Include grub/mm.h.
5300 (grub_env_find): Removed.
5301 (grub_envblk_open): New function.
5302 (grub_envblk_close): Likewise.
5303 (escaped_value_len): Likewise.
5304 (find_next_line): Likewise.
5305 (grub_envblk_insert): Removed.
5306 (grub_envblk_set): New function.
5307 (grub_envblk_delete): Complete rewrite.
5308 (grub_envblk_iterate): Likewise.
5310 2009-03-28 Robert Millan <rmh@aybabtu.com>
5312 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5313 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5314 variables. Use 16-bit loader.
5315 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5317 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5318 (grub_linux16_boot): ... this. Update all users.
5319 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5320 (grub_linux_boot): ... this. Update all users.
5322 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5323 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5324 commands to `linux16' and `initrd16'.
5325 (GRUB_MOD_FINI(linux)): Rename to ...
5326 (GRUB_MOD_FINI(linux16)): ... this.
5328 2009-03-24 Pavel Roskin <proski@gnu.org>
5330 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5331 not just for compilation.
5333 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5335 Move multiboot helper out of kernel
5337 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5338 `loader/i386/multiboot_helper.S'.
5339 * conf/i386-coreboot.rmk: Likewise
5340 * conf/i386-ieee1275.rmk: Likewise
5342 * kern/i386/loader.S: Move multiboot helpers from here...
5343 * loader/i386/multiboot_helper.S: ...moved here
5344 * include/grub/i386/loader.h: Move declarations of multiboot
5345 helpers from here...
5346 * include/grub/i386/multiboot.h: ...moved here
5347 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5349 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5351 * kern/env.c (grub_env_context_open): Added an argument to specify
5352 whether a new context inherits exported variables from current
5353 one. This is useful when making a sandbox to interpret a config
5355 All callers updated.
5357 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5359 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5361 * kern/env.c (grub_env_context_close): Fix memory leaks.
5363 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5365 * normal/main.c (grub_normal_execute): Added an argument
5366 BATCH to specify if an interactive interface should be provided
5367 after reading a config file.
5368 All callers updated.
5369 (read_command_list): Prevent being executed twice.
5370 (read_fs_list): Likewise.
5372 * include/grub/normal.h (grub_normal_execute): Updated the
5375 2009-03-22 Pavel Roskin <proski@gno.org>
5377 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5379 * kern/i386/pc/startup.S: Likewise.
5380 * kern/i386/efi/startup.S: Likewise.
5381 * kern/i386/ieee1275/startup.S: Likewise.
5382 * kern/i386/coreboot/startup.S: Likewise.
5383 * kern/x86_64/efi/startup.S: Likewise.
5385 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5386 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5387 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5389 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5391 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5393 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5395 Use vaddr of correct segment for entry_point.
5397 2009-03-21 Bean <bean123ch@gmail.com>
5399 * commands/blocklist.c: Add include file <grub/command.h>, remove
5400 <grub/normal.h> and <grub/arg.h>.
5401 (grub_cmd_blocklist): Use the new command interface.
5402 (GRUB_MOD_INIT): Likewise.
5403 (GRUB_MOD_FINI): Likewise.
5404 * commands/boot.c: Likewise.
5405 * commands/cat.c: Likewise.
5406 * commands/cmp.c: Likewise.
5407 * commands/configfile.c: Likewise.
5408 * commands/crc.c: Likewise.
5409 * commands/echo.c: Likewise.
5410 * commands/halt.c: Likewise.
5411 * commands/handler.c: Likewise.
5412 * commands/hdparm.c: Likewise.
5413 * commands/help.c: Likewise.
5414 * commands/hexdump.c: Likewise.
5415 * commands/loadenv.c: Likewise.
5416 * commands/ls.c: Likewise.
5417 * commands/lsmmap.c: Likewise.
5418 * commands/lspci.c: Likewise.
5419 * commands/loadenv.c: Likewise.
5420 * commands/read.c: Likewise.
5421 * commands/reboot.c: Likewise.
5422 * commands/search.c: Likewise.
5423 * commands/sleep.c: Likewise.
5424 * commands/test.c: Likewise.
5425 * commands/usbtest.c: Likewise.
5426 * commands/videotest.c: Likewise.
5427 * commands/i386/cpuid.c: Likewise.
5428 * commands/i386/pc/halt.c: Likewise.
5429 * commands/i386/pc/play.c: Likewise.
5430 * commands/i386/pc/pxecmd.c: Likewise.
5431 * commands/i386/pc/vbeinfo.c: Likewise.
5432 * commands/i386/pc/vbetest.c: Likewise.
5433 * commands/ieee1275/suspend.c: Likewise.
5434 * disk/loopback.c: Likewise.
5435 * font/font_cmd.c: Likewise.
5436 * hello/hello.c: Likewise.
5437 * loader/efi/appleloader.c: Likewise.
5438 * loader/efi/chainloader.c: Likewise.
5439 * loader/i386/bsd.c: Likewise.
5440 * loader/i386/efi/linux.c: Likewise.
5441 * loader/i386/ieee1275/linux.c: Likewise.
5442 * loader/i386/linux.c: Likewise.
5443 * loader/i386/pc/chainloader.c: Likewise.
5444 * loader/i386/pc/linux.c: Likewise.
5445 * loader/powerpc/ieee1275/linux.c: Likewise.
5446 * loader/multiboot_loader.c: Likewise.
5447 * term/gfxterm.c: Likewise.
5448 * term/i386/pc/serial.c: Likewise.
5449 * term/terminfo.c: Likewise.
5451 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5452 * term/i386/pc/vga.c: Likewise.
5453 * video/readers/jpeg.c: Likewise.
5454 * video/readers/png.c: Likewise.
5455 * video/readers/tga.c: Likewise.
5457 * util/grub-fstest (cmd_loopback): Removed.
5458 (cmd_blocklist): Likewise.
5460 (grub_register_command): Likewise.
5461 (grub_unregister_command): Likewise.
5462 (execute_command): Use grub_command_find to locate command and execute
5465 * include/grub/efi/chainloader.h: Removed.
5466 * loader/efi/chainloader_normal.c: Likewise.
5467 * loader/i386/bsd_normal.c: Likewise.
5468 * loader/i386/pc/chainloader_normal.c: Likewise.
5469 * loader/i386/pc/multiboot_normal.c: Likewise.
5470 * loader/linux_normal.c: Likewise.
5471 * loader/multiboot_loader_normal.c: Likewise.
5472 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5474 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5475 and grub_register_command_p1.
5477 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5478 kern/command.c, lib/arg.c and commands/extcmd.c.
5479 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5480 (minicmd_mod_SOURCES): New variable.
5481 (minicmd_mod_CFLAGS): Likewise.
5482 (minicmd_mod_LDFLAGS): Likewise.
5483 (extcmd_mod_SOURCES): Likewise.
5484 (extcmd_mod_CFLAGS): Likewise.
5485 (extcmd_mod_LDFLAGS): Likewise.
5486 (boot_mod_SOURCES): Removed.
5487 (boot_mod_CFLAGS): Likewise.
5488 (boot_mod_LDFLAGS): Likewise.
5490 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5492 (kernel_img_HEADERS): Add command.h.
5493 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5494 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5496 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5497 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5498 remove the corresponding normal mode command.
5499 (normal_mod_SOURCES): Remove normal/arg.c.
5500 * conf/i386-coreboot.rmk: Likewise.
5501 * conf/i386-efi.rmk: Likewise.
5502 * conf/i386-ieee1275.rmk: Likewise.
5503 * conf/powerpc-ieee1275.rmk: Likewise.
5504 * conf/x86_64-efi.rmk: Likewise.
5506 * include/grub/arg.h: Move from here ...
5507 * include/grub/lib/arg.h: ... to here.
5509 * normal/arg.c: Move from here ...
5510 * lib/arg.c: ... to here.
5512 * commands/extcmd.c: New file.
5513 * commands/minicmd.c: Likewise.
5514 * include/grub/command.h: Likewise.
5515 * include/grub/extcmd.h: Likewise.
5516 * kern/command.c: Likewise.
5517 * kern/corecmd.c: Likewise.
5519 * kern/list.c (grub_list_iterate): Return int instead of void.
5520 (grub_list_insert): New function.
5521 (grub_prio_list_insert): Likewise.
5523 * kern/rescue.c (grub_rescue_command): Removed.
5524 (grub_rescue_command_list): Likewise.
5525 (grub_rescue_register_command): Likewise.
5526 (grub_rescue_unregister_command): Likewise.
5527 (grub_rescue_cmd_boot): Move to minicmd.c
5528 (grub_rescue_cmd_help): Likewise.
5529 (grub_rescue_cmd_info): Likewise.
5530 (grub_rescue_cmd_boot): Likewise.
5531 (grub_rescue_cmd_testload): Likewise.
5532 (grub_rescue_cmd_dump): Likewise.
5533 (grub_rescue_cmd_rmmod): Likewise.
5534 (grub_rescue_cmd_lsmod): Likewise.
5535 (grub_rescue_cmd_exit): Likewise.
5536 (grub_rescue_print_devices): Moved to corecmd.c.
5537 (grub_rescue_print_files): Likewise.
5538 (grub_rescue_cmd_ls): Likewise.
5539 (grub_rescue_cmd_insmod): Likewise.
5540 (grub_rescue_cmd_set): Likewise.
5541 (grub_rescue_cmd_unset): Likewise.
5542 (attempt_normal_mode): Use grub_command_find to get normal module.
5543 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5544 commands, remove grub_rescue_register_command calls.
5546 * normal/command.c (grub_register_command): Removed.
5547 (grub_unregister_command): Likewise.
5548 (grub_command_find): Likewise.
5549 (grub_iterate_commands): Likewise.
5550 (rescue_command): Likewise.
5551 (export_command): Moved to corecmd.c.
5552 (set_command): Removed.
5553 (unset_command): Likewise.
5554 (insmod_command): Likewise.
5555 (rmmod_command): Likewise.
5556 (lsmod_command): Likewise.
5557 (grub_command_init): Likewise.
5559 * normal/completion.c (iterate_command): Use cmd->prio to check for
5561 (complete_arguments): Use grub_extcmd_t structure to find options.
5562 (grub_normal_do_completion): Change function grub_iterate_commands to
5563 grub_command_iterate.
5565 * normal/execute.c (grub_script_execute_cmd): No need to parse
5568 * normal/main.c (grub_dyncmd_dispatcher): New function.
5569 (read_command_list): Register unload commands as dyncmd.
5570 (grub_cmd_normal): Use new command interface, register rescue,
5571 unregister normal at entry, register normal, unregister rescue at exit.
5573 * include/grub/list.h (grub_list_test_t): New type.
5574 (grub_list_iterate): Return int instead of void.
5575 (grub_list_insert): New function.
5576 (GRUB_AS_NAMED_LIST_P): New macro.
5577 (GRUB_AS_PRIO_LIST): Likewise.
5578 (GRUB_AS_PRIO_LIST_P): Likewise.
5579 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5580 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5581 (grub_prio_list): New structure.
5582 (grub_prio_list_insert): New function.
5583 (grub_prio_list_remove): New inline function.
5585 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5586 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5587 (GRUB_COMMAND_FLAG_MENU): Likewise.
5588 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5589 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5590 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5591 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5592 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5593 (grub_command): Likewise.
5594 (grub_register_command): Likewise.
5595 (grub_command_find): Likewise.
5596 (grub_iterate_commands): Likewise.
5597 (grub_command_init): Likewise.
5598 (grub_arg_parse): Likewise.
5599 (grub_arg_show_help): Likewise.
5601 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5602 (grub_rescue_unregister_command): Likewise.
5604 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5605 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5606 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5608 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5609 grub_rescue_cmd_initrd.
5610 * include/grub/i386/loader.h: Likewise.
5611 * include/grub/x86_64/loader.h: Likewise.
5613 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5615 2009-03-21 Bean <bean123ch@gmail.com>
5617 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5618 instead of stat in mingw environment.
5620 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5622 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5624 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5627 2009-03-21 Bean <bean123ch@gmail.com>
5629 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5632 2009-03-18 Michel Dänzer <michel@daenzer.net>
5634 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5635 checking inode flags for EXT4_EXTENTS_FLAG.
5637 2009-03-18 Robert Millan <rmh@aybabtu.com>
5639 * loader/i386/linux.c: Include `<grub/video.h>' and
5640 `<grub/i386/pc/vbe.h>'..
5641 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5642 (grub_linux32_boot): Attempt to configure video settings with
5643 grub_linux_setup_video().
5644 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5645 to avoid grub_console_fini() which would step out of graphical mode
5648 2009-03-14 Robert Millan <rmh@aybabtu.com>
5650 Fix build on powerpc.
5651 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5653 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5655 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5656 background image command.
5658 2009-03-12 Colin D Bennett <colin@gibibit.com>
5660 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5661 (grub_gfxterm_putchar): Extract pairs of identical calls to
5662 draw_cursor out of conditional blocks.
5664 2009-03-11 Pavel Roskin <proski@gnu.org>
5666 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5667 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5669 2009-03-11 Robert Millan <rmh@aybabtu.com>
5671 * loader/i386/multiboot_elfxx.c
5672 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5674 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5676 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5679 2009-03-11 Robert Millan <rmh@aybabtu.com>
5681 * loader/i386/multiboot.c (code_size): New variable.
5682 (grub_multiboot): Define offsets by adding to `code_size' rather
5683 than subtracting from `grub_multiboot_payload_size'. Provide
5684 4-byte alignment to MBI and others by increasing
5685 `boot_loader_name_length' appropriately.
5687 * loader/i386/multiboot_elfxx.c
5688 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5690 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5692 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5695 2009-03-08 Robert Millan <rmh@aybabtu.com>
5697 Make loader/i386/linux.c usable on i386-pc again.
5699 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5701 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5704 2009-03-07 Bean <bean123ch@gmail.com>
5706 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5709 2009-03-06 Robert Millan <rmh@aybabtu.com>
5711 Fix display issue on terminals with screen size other than 80x25
5712 (e.g. gfxterm with resolution higher than 640x480).
5714 * normal/main.c (grub_normal_init_page): Display title text in a
5715 position relative to the center of the terminal instead of relying
5716 on a hardcoded offset.
5718 2009-03-04 Robert Millan <rmh@aybabtu.com>
5720 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5723 * Makefile.in (host_kernel): New variable.
5724 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5725 scripts instead of just the windows one.
5726 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5728 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5730 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5732 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5733 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5734 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5736 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5737 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5739 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5741 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5742 or if there's no space for the disk label and print the partition number on a
5745 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5747 * util/misc.c: Include <time.h>.
5748 (grub_millisleep): New function.
5750 2009-03-04 Bean <bean123ch@gmail.com>
5752 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5753 another option -mno-red-zone.
5755 * commands/handler.c: Change module description.
5757 * kern/handler.c: Add missing space at the end of description line.
5759 * kern/list.c: Likewise.
5761 2009-03-03 Robert Millan <rmh@aybabtu.com>
5763 Move more components to the relocation area, and fix mbi pointer
5764 handling to use the destination rather than the origin (thanks to
5765 Vladimir Serbinenko for spotting).
5767 * loader/i386/multiboot.c (mbi_dest): New variable.
5768 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5769 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5772 2009-03-01 Bean <bean123ch@gmail.com>
5774 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5775 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5776 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5777 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5779 * loader/i386/efi/linux.c (acpi_guid): New variable.
5780 (acpi_guid): Likewise.
5781 (EBDA_SEG_ADDR): New constant.
5782 (LOW_MEM_ADDR): Likewise.
5783 (FAKE_EBDA_SEG): Likewise.
5784 (fake_bios_data): New function.
5785 (grub_linux_boot): Call fake_bios_data.
5787 2009-03-01 Bean <bean123ch@gmail.com>
5789 * commands/terminal.c: Removed.
5791 * commands/handler.c: New file.
5793 * include/grub/list.h: Likewise.
5795 * include/grub/handler.h: Likewise.
5797 * kern/list.c: Likewise.
5799 * kern/handler.c: Likewise.
5801 * kern/term.h: Include header file <grub/handler.h>.
5802 (grub_term_input): Move next field to the beginning.
5803 (grub_term_output): Likewise.
5804 (grub_term_input_class): New variable.
5805 (grub_term_output_class): Likewise.
5806 (grub_term_register_input): Changed to inline function.
5807 (grub_term_register_output): Likewise.
5808 (grub_term_unregister_input): Likewise.
5809 (grub_term_unregister_output): Likewise.
5810 (grub_term_set_current_input): Likewise.
5811 (grub_term_set_current_output): Likewise.
5812 (grub_term_get_current_input): Likewise.
5813 (grub_term_get_current_output): Likewise.
5814 (grub_term_iterate_input): Removed.
5815 (grub_term_iterate_output): Likewise.
5817 * kern/term.c (grub_term_list_input): Removed.
5818 (grub_term_list_output): Likewise.
5819 (grub_term_input_class): New variable.
5820 (grub_term_output_class): Likewise.
5821 (grub_cur_term_input): Change variable as macro.
5822 (grub_cur_term_output): Likewise.
5823 (grub_term_register_input): Removed.
5824 (grub_term_register_output): Likewise.
5825 (grub_term_unregister_input): Likewise.
5826 (grub_term_unregister_output): Likewise.
5827 (grub_term_set_current_input): Likewise.
5828 (grub_term_set_current_output): Likewise.
5829 (grub_term_iterate_input): Likewise.
5830 (grub_term_iterate_output): Likewise.
5831 (grub_term_get_current_input): Likewise.
5832 (grub_term_get_current_output): Likewise.
5834 * util/grub-editenv.c: Include header file <grub/handler.h>.
5835 (grub_term_get_current_input): Removed.
5836 (grub_term_get_current_output): Likewise.
5837 (grub_term_input_class): New variable.
5838 (grub_term_output_class): Likewise.
5840 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5841 (grub_term_get_current_output): Likewise.
5842 (grub_term_input_class): New variable.
5843 (grub_term_output_class): Likewise.
5845 * util/grub-probe.c (grub_term_get_current_input): Removed.
5846 (grub_term_get_current_output): Likewise.
5847 (grub_term_input_class): New variable.
5848 (grub_term_output_class): Likewise.
5850 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5851 (grub_term_get_current_output): Likewise.
5852 (grub_term_input_class): New variable.
5853 (grub_term_output_class): Likewise.
5855 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5856 (terminal_mod_SOURCES): Likewise.
5857 (terminal_mod_CFLAGS): Likewise.
5858 (terminal_mod_LDFLAGS): Likewise.
5860 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5862 (kernel_img_SOURCES): Add list.c and handler.c.
5863 (kernel_img_HEADERS): Add list.h and handler.h.
5865 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5867 (kernel_mod_SOURCES): Add list.c and handler.c.
5868 (kernel_mod_HEADERS): Add list.h and handler.h.
5870 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5872 (kernel_elf_SOURCES): Add list.c and handler.c.
5873 (kernel_elf_HEADERS): Add list.h and handler.h.
5875 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5877 (kernel_elf_SOURCES): Add list.c and handler.c.
5878 (kernel_elf_HEADERS): Add list.h and handler.h.
5880 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5882 (kernel_mod_SOURCES): Add list.c and handler.c.
5883 (kernel_mod_HEADERS): Add list.h and handler.h.
5885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5887 (kernel_elf_SOURCES): Add list.c and handler.c.
5888 (kernel_elf_HEADERS): Add list.h and handler.h.
5890 2009-02-27 Robert Millan <rmh@aybabtu.com>
5892 Factorize elf32 / elf64 code in Multiboot loader. This will
5893 prevent it from getting out of sync again.
5895 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5896 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5897 grub_multiboot_load_elf64): Move from here ...
5898 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5899 grub_multiboot_load_elf): ... to here (new file).
5901 2009-02-27 Robert Millan <rmh@aybabtu.com>
5903 * util/grub.d/10_linux.in: Rename "single-user mode" to
5906 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5908 Don't leak in SCSI code.
5909 * disk/scsi.c (grub_scsi_close): free `scsi'.
5911 2009-02-27 Robert Millan <rmh@aybabtu.com>
5913 * loader/i386/pc/multiboot.c: Move from here ...
5914 * loader/i386/multiboot.c: ... to here. Update all users.
5916 2009-02-27 Robert Millan <rmh@aybabtu.com>
5918 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5919 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5921 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5923 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5926 2009-02-27 Robert Millan <rmh@aybabtu.com>
5928 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5929 `0x' qualifier as 0 when base is specified as parameter).
5931 2009-02-24 Bean <bean123ch@gmail.com>
5933 * configure.ac: Check for -mcmodel=large in x86_64 target.
5935 * include/grub/efi/api.h (efi_call_10): New macro.
5936 (efi_wrap_10): New function.
5938 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5939 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5940 (GRUB_PE32_REL_BASED_LOW): Likewise.
5941 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5942 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5943 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5944 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5945 (GRUB_PE32_REL_BASED_REL): Likewise.
5946 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5947 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5948 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5950 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5953 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5954 (efi_wrap_10): New function.
5956 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5958 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5959 MB/MBP model (NV chipset).
5960 (devdata_devs): Add devpath_5 to the list.
5962 * load/i386/efi/linux.c (video_base): Remove variable.
5963 (RGB_MASK): New macro.
5964 (RGB_MAGIC): Likewise.
5965 (LINE_MIN): Likewise.
5966 (LINE_MAX): Likewise.
5967 (FBTEST_STEP): Likewise.
5968 (FBTEST_COUNT): Likewise.
5969 (fb_list): New variable.
5970 (grub_find_video_card): Remove function.
5971 (find_framebuf): New function.
5972 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5975 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5978 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5980 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5982 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5985 2009-02-22 Robert Millan <rmh@aybabtu.com>
5987 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5988 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5989 in our relocation, instead of using it directly from heap. Also
5990 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5992 2009-02-21 Robert Millan <rmh@aybabtu.com>
5994 Implement USB keyboard support (based on patch by Marco Gerards)
5996 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5997 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5998 (usb_keyboard_mod_LDFLAGS): New variables.
6000 * term/usb_keyboard.c: New file.
6002 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6004 Corrected wrong declaration
6006 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
6008 2009-02-14 Christian Franke <franke@computer.org>
6010 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
6011 (grub_lspci_iter): Print class code and programming interface byte.
6013 2009-02-14 Christian Franke <franke@computer.org>
6015 * gendistlist.sh: Ignore `.svn' directories.
6017 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
6019 * fs/fat.c: Add 2009 to Copyright line.
6021 2009-02-14 Christian Franke <franke@computer.org>
6023 * commands/hdparm.c: New file. Provides `hdparm' command
6024 which sends ATA commands via grub_disk_ata_pass_through ().
6026 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
6028 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
6029 and <grub/cpu/io.h> to include/grub/ata.h.
6030 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
6031 (GRUB_CDROM_SECTOR_SIZE): Remove.
6032 (GRUB_ATA_*): Move to include/grub/ata.h.
6033 (GRUB_ATAPI_*): Likewise.
6034 (enum grub_ata_commands): Likewise.
6035 (enum grub_ata_timeout_milliseconds): Likewise.
6036 (struct grub_ata_device): Likewise.
6037 (grub_ata_regset): Likewise.
6038 (grub_ata_regget): Likewise.
6039 (grub_ata_regset2): Likewise.
6040 (grub_ata_regget2): Likewise.
6041 (grub_ata_check_ready): Likewise.
6042 (grub_ata_wait_not_busy): Remove static, exported in
6044 (grub_ata_wait_drq): Likewise.
6045 (grub_ata_pio_read): Likewise.
6047 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
6048 function for hdparm.mod.
6050 * include/grub/ata.h: New file, contains declarations from
6052 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
6054 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
6055 (grub_disk_ata_pass_through): New exported variable.
6057 * kern/disk.c (grub_disk_ata_pass_through): New variable.
6059 2009-02-13 Colin D Bennett <colin@gibibit.com>
6061 Support multiple fallback entries, and provide an API to support
6062 executing default+fallback menu entries. Renamed the `terminal' menu
6065 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
6066 variable declaration.
6067 (grub_menu_execute_callback): New structure declaration.
6068 (grub_menu_execute_callback_t): New typedef.
6069 (grub_menu_execute_with_fallback): New function declaration.
6070 (grub_menu_get_entry): Likewise.
6071 (grub_menu_get_timeout): Likewise.
6072 (grub_menu_set_timeout): Likewise.
6074 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
6076 * normal/menu.c (grub_wait_after_message): Moved to
6077 `normal/menu_text.c'.
6078 (draw_border): Likewise.
6079 (print_message): Likewise.
6080 (print_entry): Likewise.
6081 (print_entries): Likewise.
6082 (grub_menu_init_page): Likewise.
6083 (get_entry_number): Likewise.
6084 (print_timeout): Likewise.
6085 (run_menu): Likewise.
6086 (grub_menu_execute_entry): Likewise.
6087 (show_text_menu): Likewise.
6088 (get_and_remove_first_entry_number): New function.
6089 (grub_menu_execute_with_fallback): Likewise.
6090 (get_entry): Renamed to ...
6091 (grub_menu_get_entry): .. this and made it global.
6092 (get_timeout): Renamed to ...
6093 (grub_menu_get_timeout): ... this and made it global.
6094 (set_timeout): Renamed to ...
6095 (grub_menu_set_timeout): ... this and made it global.
6096 (grub_normal_terminal_menu_viewer): Renamed to ...
6097 (grub_normal_text_menu_viewer): ... this.
6099 * normal/menu_text.c: New file. Extracted text-menu-specific code
6102 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6103 (normal_mod_SOURCES): Likewise.
6105 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6106 (normal_mod_SOURCES): Likewise.
6108 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6109 (normal_mod_SOURCES): Likewise.
6111 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6112 (normal_mod_SOURCES): Likewise.
6114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6115 (normal_mod_SOURCES): Likewise.
6117 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6118 (normal_mod_SOURCES): Likewise.
6120 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6121 (normal_mod_SOURCES): Likewise.
6123 2009-02-11 Robert Millan <rmh@aybabtu.com>
6125 * util/grub.d/00_header.in: Update old reference to `font' command.
6127 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6129 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6131 Based on patch from Javier MartÃn.
6133 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6135 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6136 to avoid false positives with FAT.
6137 (grub_fstest_SOURCES): Likewise.
6138 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6139 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6141 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6142 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6143 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6145 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6147 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6148 bpb.version_specific.fat12_or_fat16.fstype and
6149 bpb.version_specific.fat32.fstype.
6151 2009-02-08 Robert Millan <rmh@aybabtu.com>
6153 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6155 2009-02-08 Robert Millan <rmh@aybabtu.com>
6157 * Makefile.in (host_os, host_cpu): New variables.
6158 (target_os): Remove. Update all users.
6160 2009-02-08 Marco Gerards <marco@gnu.org>
6162 * Makefile.in (enable_grub_emu_usb): New variable.
6163 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6164 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6165 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6166 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6167 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6168 `usbtest.mod' and `usbms.mod'.
6169 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6170 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6171 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6172 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6173 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6176 * disk/usbms.c: New file.
6178 * include/grub/usb.h: Likewise.
6180 * include/grub/usbtrans.h: Likewise.
6182 * include/grub/usbdesc.h: Likewise.
6184 * bus/usb/usbtrans.c: Likewise.
6186 * bus/usb/ohci.c: Likewise.
6188 * bus/usb/uhci.c: Likewise.
6190 * bus/usb/usbhub.c: Likewise.
6192 * bus/usb/usb.c: Likewise.
6194 * commands/usbtest.c: Likewise.
6196 * util/usb.c: Likewise.
6198 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6200 * configure.ac: Test for libusb presence.
6202 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6204 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6206 * kern/mm.c: Add more comments.
6208 2009-02-08 Robert Millan <rmh@aybabtu.com>
6210 Patch from Javier MartÃn.
6211 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6212 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6214 2009-02-08 Robert Millan <rmh@aybabtu.com>
6216 * fs/cpio.c: Split tar functionality to ...
6217 * fs/tar.c: ... here (new file). Update all users.
6219 2009-02-07 Robert Millan <rmh@aybabtu.com>
6221 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6222 backward-incompatible features.
6224 Based on patch from Javier MartÃn, with some adjustments.
6226 2009-02-07 Michael Scherer <misc@mandriva.org>
6228 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6230 2009-02-07 Robert Millan <rmh@aybabtu.com>
6232 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6233 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6234 after the RAID stuff.
6236 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6238 Fixes problem when running vbetest command as reported by
6239 Vladimir Serbinenko <phcoder@gmail.com>.
6241 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6243 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6245 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6246 /dev/md/NpN style mdraid devices.
6248 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6250 * util/unifont2pff.rb: Remove.
6252 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6254 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6257 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6259 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6260 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6261 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6262 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6263 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6264 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6265 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6267 2009-02-02 Christian Franke <franke@computer.org>
6269 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6271 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6273 * INSTALL: Note that we now require at least autoconf 2.59 and
6274 that LZO is optional.
6276 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6278 Base on patch on bug #24154 created by Tomas Tintera
6281 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6283 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6285 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6286 <bero@arklinux.org>.
6288 * normal/parser.y (script_init): Add missing semicolon.
6290 2009-01-31 Colin D Bennett <colin@gibibit.com>
6292 * normal/main.c: Add include to grub/menu_viewer.h.
6293 (free_menu_entry_classes): Added.
6294 (grub_normal_menu_addentry): Added class property handling.
6295 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6296 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6298 * normal/menu_viewer.c: New file.
6300 * normal/menu.c (run_menu_entry): Renamed to ...
6301 (grub_menu_execute_entry): ... this and made it as global.
6302 (grub_menu_run): Renamed to ...
6303 (show_text_menu): ... this and made it local.
6304 (show_text_menu): Adapt to new function names.
6305 (grub_normal_terminal_menu_viewer): New global variable.
6307 * include/grub/menu.h: New file.
6309 * include/grub/menu_viewer.h: New file.
6311 * include/grub/normal.h: Added include to grub/menu.h.
6312 (grub_menu_entry): Moved to include/grub/menu.h.
6313 (grub_menu_entry_t): Likewise.
6314 (grub_menu): Likewise.
6315 (grub_menu_t): Likewise.
6316 (grub_normal_terminal_menu_viewer): Added.
6317 (grub_menu_execute_entry): Likewise.
6318 (grub_menu_run): Removed.
6320 * DISTLIST: Added include/grub/menu.h.
6321 Added include/grub/menu_viewer.h.
6322 Added normal/menu_viewer.c.
6324 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6326 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6327 arglist for menutitle arguments.
6329 * normal/main.c (grub_normal_menu_addentry): Likewise.
6331 * normal/parser.y (menuentry): Likewise.
6333 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6335 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6336 (grub_script_create_cmdmenu): Likewise.
6338 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6340 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6343 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6345 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6347 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6349 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6351 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6353 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6355 2009-01-30 Christian Franke <franke@computer.org>
6357 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6358 in option help text.
6360 2009-01-27 Pavel Roskin <proski@gnu.org>
6362 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6364 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6366 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6368 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6370 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6371 unregister function.
6373 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6375 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6377 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6379 * util/grub-mkfont.c (usage): Fix typo.
6381 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6383 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6385 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6387 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6389 * kern/misc.c (grub_strcasecmp): New function.
6390 (grub_strcasecmp): Use grub_size_t instead of int for length.
6392 * include/grub/misc.h: Update function prototypes.
6394 2009-01-26 Robert Millan <rmh@aybabtu.com>
6396 * configure.ac: Fix cross-compilation check.
6398 2009-01-22 Christian Franke <franke@computer.org>
6400 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6401 (precision) digit string. Allow `.format2' without `format1' (width).
6402 Limit input chars for `%s' output to `format2' if specified. This is
6403 compatible with standard printf ().
6405 2009-01-22 Christian Franke <franke@computer.org>
6407 * disk/ata.c (grub_ata_wait_status): Replace by ...
6408 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6409 other status bits may be invalid while BSY is asserted.
6410 (grub_ata_check_ready): New function.
6411 (grub_ata_cmd): Removed.
6412 (grub_ata_wait_drq): New function.
6413 (grub_ata_strncpy): Remove inline.
6414 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6415 and error check now done by grub_ata_wait_drq ().
6416 (grub_ata_pio_write): Likewise.
6417 (grub_atapi_identify): Set DEV before check for !BSY. Use
6418 grub_ata_wait_drq () to wait for data.
6419 (grub_ata_device_initialize): Add status register check to
6420 detect missing SATA slave devices. Add debug messages.
6421 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6422 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6423 transfer loop by grub_ata_pio_write ().
6424 (grub_ata_identify): Set DEV before check for !BSY. Use
6425 grub_ata_wait_drq () to wait for data.
6426 (grub_ata_setaddress): Set DEV before check for !BSY.
6427 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6428 read/write in one loop. Fix invalid command on write. Fix incomplete
6429 command on (size % batch) == 0. Add missing error check after write of
6430 last block. Add debug messages.
6431 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6433 2009-01-19 Christian Franke <franke@computer.org>
6435 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6436 (GRUB_ATAPI_IREASON_*): Likewise.
6437 (grub_ata_pio_write): Fix timeout error return.
6438 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6439 (grub_atapi_wait_drq): New function.
6440 (grub_atapi_packet): New parameter `size'.
6441 Use grub_atapi_wait_drq () and direct write instead of
6442 grub_ata_pio_write ().
6443 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6444 reads the number of bytes requested by the device for each DRQ
6446 (grub_atapi_write): Remove old implementation, return not
6447 implemented instead.
6449 2009-01-19 Christian Franke <franke@computer.org>
6451 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6452 of 512 to calculate data size.
6453 (grub_scsi_read12): Likewise.
6454 (grub_scsi_write10): Likewise.
6455 (grub_scsi_write12): Likewise.
6456 (grub_scsi_read): Adjust size according to blocksize.
6457 Add checks for invalid blocksize and unaligned transfer.
6459 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6461 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6463 * term/gfxterm.c (write_char): Fix background rendering for wide
6466 2009-01-19 Robert Millan <rmh@aybabtu.com>
6468 * config.guess: Update to latest version from config git.
6469 * config.sub: Likewise.
6471 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6473 * Makefile.in: Change font compilation to use new grub-mkfont instead
6476 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6477 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6478 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6479 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6480 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6481 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6482 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6483 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6484 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6486 2009-01-16 Christian Franke <franke@computer.org>
6488 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6489 (enum grub_ata_timeout_milliseconds): New enum.
6490 (grub_ata_wait_status): Add parameter milliseconds.
6491 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6492 recovery from timed-out commands.
6493 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6494 return grub_errno instead of REG_ERROR.
6495 (grub_ata_pio_write): Add parameter milliseconds.
6496 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6497 Pass milliseconds to grub_ata_wait_status () and
6498 grub_ata_pio_read ().
6499 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6500 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6501 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6502 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6503 It is not suitable for device detection, because DEV bit is ignored,
6504 the command may run too long, and not all devices set the signature
6506 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6507 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6508 Fix device selection, DEV bit must be set first to address the registers
6509 of the correct device.
6510 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6511 grub_ata_pio_read/write ().
6512 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6513 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6515 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6517 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6519 2009-01-13 Bean <bean123ch@gmail.com>
6521 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6523 2009-01-13 Bean <bean123ch@gmail.com>
6525 * Makefile.in: (enable_grub_mkfont): New variable.
6526 (freetype_cflags): Likewise.
6527 (freetype_libs): Likewise.
6529 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6530 (grub_mkfont_SOURCES): New variable.
6531 (grub_mkfont_CFLAGS): Likewise.
6532 (grub_mkfont_LDFLAGS): Likewise.
6534 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6535 library if `--enable-grub-mkfont' is requested.
6536 (enable_grub_mkfont): New variable.
6537 (freetype_cflags): Likewise.
6538 (freetype_libs): Likewise.
6540 * util/grub-mkfont.c: New file.
6542 2009-01-12 Christian Franke <franke@computer.org>
6544 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6545 mode check. Fix setting of compat_use[].
6547 2009-01-10 Robert Millan <rmh@aybabtu.com>
6549 Update a few copyright years which we forgot to do in 2008 (only for
6550 files whose changes made in 2008 were copyright-significant)
6552 * Makefile.in: Add 2008 to Copyright line.
6553 * disk/ieee1275/ofdisk.c: Likewise.
6554 * disk/efi/efidisk.c: Likewise.
6555 * kern/dl.c: Likewise.
6556 * kern/sparc64/ieee1275/init.c: Likewise.
6557 * kern/mm.c: Likewise.
6558 * kern/efi/mm.c: Likewise.
6559 * boot/i386/pc/boot.S: Likewise.
6560 * genfslist.sh: Likewise.
6561 * fs/iso9660.c: Likewise.
6562 * fs/hfs.c: Likewise.
6563 * fs/jfs.c: Likewise.
6564 * fs/minix.c: Likewise.
6565 * fs/ufs.c: Likewise.
6566 * gensymlist.sh.in: Likewise.
6567 * genkernsyms.sh.in: Likewise.
6568 * include/grub/misc.h: Likewise.
6569 * include/grub/types.h: Likewise.
6570 * include/grub/symbol.h: Likewise.
6571 * include/grub/elf.h: Likewise.
6572 * include/grub/kernel.h: Likewise.
6573 * include/grub/disk.h: Likewise.
6574 * include/grub/dl.h: Likewise.
6575 * include/grub/i386/linux.h: Likewise.
6576 * include/grub/i386/pc/biosdisk.h: Likewise.
6577 * include/grub/efi/api.h: Likewise.
6578 * include/grub/efi/pe32.h: Likewise.
6579 * include/grub/util/misc.h: Likewise.
6580 * normal/execute.c: Likewise.
6581 * normal/arg.c: Likewise.
6582 * normal/completion.c: Likewise.
6583 * normal/lexer.c: Likewise.
6584 * normal/parser.y: Likewise.
6585 * normal/misc.c: Likewise.
6586 * commands/i386/pc/vbeinfo.c: Likewise.
6587 * commands/hexdump.c: Likewise.
6588 * commands/terminal.c: Likewise.
6589 * commands/ls.c: Likewise.
6590 * commands/help.c: Likewise.
6591 * partmap/pc.c: Likewise.
6592 * loader/efi/chainloader.c: Likewise.
6593 * loader/multiboot_loader.c: Likewise.
6594 * loader/i386/pc/multiboot2.c: Likewise.
6595 * term/efi/console.c: Likewise.
6596 * term/i386/pc/serial.c: Likewise.
6597 * util/lvm.c: Likewise.
6598 * util/console.c: Likewise.
6599 * util/i386/efi/grub-mkimage.c: Likewise.
6600 * util/raid.c: Likewise.
6602 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6604 * commands/videotest.c: Removed include to grub/machine/memory.h.
6606 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6607 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6608 (video_mod_SOURCES): Removed.
6609 (video_mod_CFLAGS): Likewise.
6610 (video_mod_LDFLAGS): Likewise.
6611 (gfxterm_mod_SOURCES): Likewise.
6612 (gfxterm_mod_CFLAGS): Likewise.
6613 (gfxterm_mod_LDFLAGS): Likewise.
6614 (videotest_mod_SOURCES): Likewise.
6615 (videotest_mod_CFLAGS): Likewise.
6616 (videotest_mod_LDFLAGS): Likewise.
6617 (bitmap_mod_SOURCES): Likewise.
6618 (bitmap_mod_CFLAGS): Likewise.
6619 (bitmap_mod_LDFLAGS): Likewise.
6620 (tga_mod_SOURCES): Likewise.
6621 (tga_mod_CFLAGS): Likewise.
6622 (tga_mod_LDFLAGS): Likewise.
6623 (jpeg_mod_SOURCES): Likewise.
6624 (jpeg_mod_CFLAGS): Likewise.
6625 (jpeg_mod_LDFLAGS): Likewise.
6626 (png_mod_SOURCES): Likewise.
6627 (png_mod_CFLAGS): Likewise.
6628 (png_mod_LDFLAGS): Likewise.
6630 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6631 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6632 (video_mod_SOURCES): Added.
6633 (video_mod_CFLAGS): Likewise.
6634 (video_mod_LDFLAGS): Likewise.
6635 (videotest_mod_SOURCES): Likewise.
6636 (videotest_mod_CFLAGS): Likewise.
6637 (videotest_mod_LDFLAGS): Likewise.
6638 (bitmap_mod_SOURCES): Likewise.
6639 (bitmap_mod_CFLAGS): Likewise.
6640 (bitmap_mod_LDFLAGS): Likewise.
6641 (tga_mod_SOURCES): Likewise.
6642 (tga_mod_CFLAGS): Likewise.
6643 (tga_mod_LDFLAGS): Likewise.
6644 (jpeg_mod_SOURCES): Likewise.
6645 (jpeg_mod_CFLAGS): Likewise.
6646 (jpeg_mod_LDFLAGS): Likewise.
6647 (png_mod_SOURCES): Likewise.
6648 (png_mod_CFLAGS): Likewise.
6649 (png_mod_LDFLAGS): Likewise.
6650 (gfxterm_mod_SOURCES): Likewise.
6651 (gfxterm_mod_CFLAGS): Likewise.
6652 (gfxterm_mod_LDFLAGS): Likewise.
6654 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6655 grub/machine/console.h.
6657 2009-01-04 Jerone Young <jerone@gmail.com>
6659 Make on screen instructions clearer
6661 Based on patch created by Jidanni <jidanni@jidanni.org>
6663 * normal/menu.c: print clearer instructions on the screen
6665 2009-01-02 Colin D Bennett <colin@gibibit.com>
6669 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6670 build system and fixed gfxterm.c to work with different sized fonts.
6672 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6674 * configure: Re-generated.
6676 * DISTLIST: Removed font/manager.c.
6678 Added font/font_cmd.c.
6680 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6683 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6685 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6687 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6689 * normal/menu.c: Likewise.
6691 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6692 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6694 * include/grub/font.h: Replaced with new file.
6696 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6697 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6698 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6699 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6700 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6701 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6702 fg_red, fg_green, fg_blue, fg_alpha.
6703 (grub_video_adapter): Removed blit_glyph.
6704 (grub_video_blit_glyph): Removed.
6706 * font/manager.c: Removed file.
6708 * font/font.c: New file.
6710 * font/font_cmd.c: Likewise.
6712 * video/video.c (grub_video_blit_glyph): Removed.
6714 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6715 (grub_video_vbe_map_rgba): Likewise.
6716 (grub_video_vbe_unmap_color_int): Likewise.
6717 (grub_video_vbe_blit_glyph): Removed.
6718 (grub_video_vbe_adapter): Removed blit_glyph.
6720 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6721 (get_pixel): Likewise.
6722 (set_pixel): Likewise.
6724 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6726 * term/gfxterm.c: Adapted to new font engine.
6728 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6730 * term/i386/pc/vga.c: Likewise.
6732 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6734 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6736 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6738 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6740 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6742 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6744 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6746 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6748 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6750 * util/grub.d/00_header.in: Changed to use new loadfont command.
6752 * util/grub-mkconfig_lib.in: Changed font extension.
6754 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6756 * util/getroot.c (grub_util_get_grub_dev): Add support for
6757 /dev/md/dNNpNN style partitionable mdraid devices.
6759 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6761 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6762 at a time limit of the PXE TFTP API correctly.
6763 (grub_pxefs_close): Likewise.
6765 2008-11-29 Robert Millan <rmh@aybabtu.com>
6767 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6768 grub_ata_device_initialize() calls.
6770 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6772 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6774 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6776 2008-11-28 Robert Millan <rmh@aybabtu.com>
6778 Fix build on powerpc-ieee1275. Based on patch created by
6779 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6780 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6781 `kern/ieee1275/mmap.c'.
6782 * include/grub/powerpc/ieee1275/memory.h: New file.
6784 Provide grub-install on coreboot.
6785 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6786 (grub_install_SOURCES): New variable.
6787 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6790 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6792 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6793 to `grub_term_input_t'.
6794 (grub_term_get_current_output): Change return type to
6795 `grub_term_output_t'.
6797 2008-11-22 Robert Millan <rmh@aybabtu.com>
6799 Fix breakage on coreboot due to declaration mismatch.
6800 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6801 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6802 grub_vga_text_cls().
6804 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6805 comments. Avoid copying one more byte than necessary (just in case).
6807 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6808 to 0x200000 (avoids trouble with some OFW implementations, and matches
6809 with the one in Yaboot).
6810 Reported by Manoel Abranches
6812 2008-11-20 Robert Millan <rmh@aybabtu.com>
6814 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6815 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6817 * util/grub-mkconfig_lib.in (grub_warn): New function.
6818 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6819 warnings, to obtain consistent formatting.
6820 * util/grub.d/00_header.in: Likewise.
6821 * util/update-grub_lib.in: Likewise.
6823 * loader/i386/linux.c (allocate_pages): Fix a warning.
6824 Move comment text to `#error' stanza.
6826 Harmonize ieee1275's grub_available_iterate() with the generic
6827 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6828 build problem on i386-ieee1275):
6829 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6830 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6831 parameter `type'. Update all users of this function.
6832 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6833 `kern/ieee1275/mmap.c'.
6834 * kern/ieee1275/init.c
6835 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6837 (grub_machine_mmap_iterate): ... this.
6838 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6839 return type to `grub_err_t'. Update all implementations of this
6841 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6844 Add `lsmmap' command (lists firmware-provided memory map):
6845 * commands/lsmmap.c: New file.
6846 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6847 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6849 * conf/powerpc-ieee1275.rmk: Likewise.
6850 * conf/i386-coreboot.rmk: Likewise.
6851 * conf/i386-ieee1275.rmk: Likewise.
6853 2008-11-19 Robert Millan <rmh@aybabtu.com>
6855 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6856 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6857 constraints to initrd allocation (based on code from
6858 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6859 for Linux to find it.
6861 2008-11-14 Robert Millan <rmh@aybabtu.com>
6863 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6864 order to cope with duplicate slashes.
6866 2008-11-14 Robert Millan <rmh@aybabtu.com>
6868 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6869 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6870 don't want to mess with lower memory, because it is used in the Linux
6873 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6874 an appropriate place in lower memory, between 0x10000 and 0x90000,
6875 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6876 is in our heap (probably as a result of it being corrupted during
6877 decompression). Add #error instance with comment to explain why this
6878 loader isn't currently usable on PC/BIOS.
6880 2008-11-14 Robert Millan <rmh@aybabtu.com>
6882 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6883 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6885 2008-11-12 Robert Millan <rmh@aybabtu.com>
6887 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6889 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6890 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6892 * include/grub/i386/pc/memory.h: ... to here.
6894 2008-11-12 Robert Millan <rmh@aybabtu.com>
6896 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6899 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6900 (grub_console_cur_color, grub_console_real_putchar)
6901 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6902 (grub_console_setcolorstate, grub_console_setcolor)
6903 (grub_console_getcolor): Move from here ...
6904 * include/grub/i386/vga_common.h: ... to here (new file).
6906 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6907 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6909 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6910 `<grub/i386/vga_common.h>'.
6912 2008-11-12 Robert Millan <rmh@aybabtu.com>
6914 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6915 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6916 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6918 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6919 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6921 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6922 grub_console_init() with call to grub_vga_text_init().
6923 (grub_machine_fini): Replace call to
6924 grub_console_fini() with call to grub_vga_text_fini() and
6925 grub_at_keyboard_fini().
6927 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6928 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6929 (grub_console_setcolorstate, grub_console_setcolor)
6930 (grub_console_getcolor): New function prototypes.
6932 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6933 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6934 (grub_vga_text_setcursor): Static-ize.
6935 (grub_vga_text_term): New structure.
6936 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6938 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6939 (grub_console_cur_color, grub_console_standard_color)
6940 (grub_console_normal_color, grub_console_highlight_color)
6941 (map_char, grub_console_putchar, grub_console_getcharwidth)
6942 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6943 (grub_console_getcolor): Move from here ...
6944 * term/i386/vga_common.c: ... to here (same function names).
6946 2008-11-12 Robert Millan <rmh@aybabtu.com>
6948 Use newly-added Multiboot support in coreboot.
6950 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6951 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6953 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6954 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6955 (codestart): Store the MBI in `startup_multiboot_info' when we're
6956 being loaded using Multiboot.
6958 * kern/i386/coreboot/init.c (grub_machine_init): Move
6959 grub_at_keyboard_init() call to beginning of function (useful for
6960 debugging). Call grub_machine_mmap_init() before attempting to use
6961 grub_machine_mmap_iterate().
6962 (grub_lower_mem, grub_upper_mem): Move from here ...
6963 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6966 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6969 2008-11-12 Robert Millan <rmh@aybabtu.com>
6971 Fix a regression introduced by the at_keyboard.mod split. Because
6972 some terminals are default on some platforms and non-default on
6973 others, the first terminal being registered determines which is
6974 going to be default.
6976 * kern/term.c (grub_term_register_input): If this is the first
6977 terminal being registered, set it as the current one.
6978 (grub_term_register_output): Likewise.
6980 * term/efi/console.c (grub_console_init): Do not call
6981 grub_term_set_current_output() or grub_term_set_current_input().
6982 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6983 * term/i386/pc/console.c (grub_console_init): Likewise.
6984 (grub_console_fini): Do not call grub_term_set_current_input()
6985 (but leave grub_term_set_current_output() to restore text mode).
6987 2008-11-10 Robert Millan <rmh@aybabtu.com>
6989 * util/grub.d/00_header.in: Add backward compatibility check for
6990 versions of terminal.mod that don't understand `terminal_input' or
6993 2008-11-09 Robert Millan <rmh@aybabtu.com>
6995 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6996 `terminal_input' / `terminal_output', not `terminal'.
6998 2008-11-08 Robert Millan <rmh@aybabtu.com>
7000 * Makefile.in (include_DATA): Fix srcdir=. assumption.
7001 (DISTCLEANFILES): Add `build_env.mk'.
7003 2008-11-08 Robert Millan <rmh@aybabtu.com>
7005 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
7006 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7007 members. Update all users.
7008 * util/console.c (grub_ncurses_term): Split in ...
7009 (grub_ncurses_term_input): ... this, and ...
7010 (grub_ncurses_term_output): ... this. Update all users.
7011 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
7013 2008-11-08 Robert Millan <rmh@aybabtu.com>
7015 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
7016 (PKGDATA): Add $(pkgdata_SRCDIR).
7017 (pkglib_BUILDDIR): New variable.
7018 (pkgdata_SRCDIR): New variable.
7019 (build_env.mk): New target.
7020 (include_DATA): New variable.
7021 (install-local): Install $(include_DATA) files in $(includedir).
7023 2008-11-07 Pavel Roskin <proski@gnu.org>
7025 * gendistlist.sh: Use C locale for sorting to ensure consistent
7026 output on all systems.
7028 * util/grub.d/00_header.in: Remove incorrect space before
7031 2008-11-07 Robert Millan <rmh@aybabtu.com>
7033 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
7035 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
7036 * loader/multiboot_loader.c (find_multi_boot2_header): New function
7037 (based on find_multi_boot1_header).
7038 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
7039 using find_multi_boot2_header(), and abort if neither Multiboot or
7040 Multiboot headers were found.
7042 2008-11-07 Robert Millan <rmh@aybabtu.com>
7044 Modularize at_keyboard.mod:
7046 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
7047 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
7048 (at_keyboard_mod_LDFLAGS): New variables.
7050 Actual terminal split:
7052 * include/grub/term.h (struct grub_term): Split in ...
7053 (struct grub_term_input): ... this, and ...
7054 (struct grub_term_output): ... this. Update all users.
7055 (grub_term_set_current): Split in ...
7056 (grub_term_set_current_input): ... this, and ...
7057 (grub_term_set_current_output): ... this.
7058 (grub_term_get_current): Split in ...
7059 (grub_term_get_current_input): ... this, and ...
7060 (grub_term_get_current_output): ... this.
7061 (grub_term_register): Split in ...
7062 (grub_term_register_input): ... this, and ...
7063 (grub_term_register_output): ... this.
7064 (grub_term_unregister): Split in ...
7065 (grub_term_unregister_input): ... this, and ...
7066 (grub_term_unregister_output): ... this.
7067 (grub_term_iterate): Split in ...
7068 (grub_term_iterate_input): ... this, and ...
7069 (grub_term_iterate_output): ... this.
7071 * kern/term.c (grub_term_list): Split in ...
7072 (grub_term_list_input): ... this, and ...
7073 (grub_term_list_output): ... this. Update all users.
7074 (grub_cur_term): Split in ...
7075 (grub_cur_term_input): ... this, and ...
7076 (grub_cur_term_output): ... this. Update all users.
7077 (grub_term_set_current): Split in ...
7078 (grub_term_set_current_input): ... this, and ...
7079 (grub_term_set_current_output): ... this.
7080 (grub_term_get_current): Split in ...
7081 (grub_term_get_current_input): ... this, and ...
7082 (grub_term_get_current_output): ... this.
7083 (grub_term_register): Split in ...
7084 (grub_term_register_input): ... this, and ...
7085 (grub_term_register_output): ... this.
7086 (grub_term_unregister): Split in ...
7087 (grub_term_unregister_input): ... this, and ...
7088 (grub_term_unregister_output): ... this.
7089 (grub_term_iterate): Split in ...
7090 (grub_term_iterate_input): ... this, and ...
7091 (grub_term_iterate_output): ... this.
7093 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7094 a check for input and one for output (and only attempt to get keys
7095 from user when input works).
7097 * util/grub-probe.c (grub_term_get_current): Split in ...
7098 (grub_term_get_current_input): ... this, and ...
7099 (grub_term_get_current_output): ... this.
7100 * util/grub-fstest.c: Likewise.
7101 * util/i386/pc/grub-setup.c: Likewise.
7102 * util/grub-editenv.c: Likewise.
7104 Portability adjustments:
7106 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7107 `term/i386/pc/at_keyboard.c'.
7108 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7109 grub_keyboard_controller_init() (now handled by terminal .init).
7110 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7111 grub_at_keyboard_init().
7112 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7113 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7114 at_keyboard.mod via input terminal interface).
7115 * include/grub/i386/coreboot/console.h: Convert into a stub for
7116 `<grub/i386/pc/console.h>'.
7118 Migrate full terminals to new API:
7120 * term/efi/console.c (grub_console_term): Split into ...
7121 (grub_console_term_input): ... this, and ...
7122 (grub_console_term_output): ... this. Update all users.
7123 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7124 (grub_ofconsole_init): Split into ...
7125 (grub_ofconsole_init_input): ... this, and ...
7126 (grub_ofconsole_init_output): ... this.
7127 (grub_ofconsole_term): Split into ...
7128 (grub_ofconsole_term_input): ... this, and ...
7129 (grub_ofconsole_term_output): ... this. Update all users.
7130 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7131 (grub_serial_term_input): ... this, and ...
7132 (grub_serial_term_output): ... this. Update all users.
7133 * term/i386/pc/console.c (grub_console_term): Split into ...
7134 (grub_console_term_input): ... this, and ...
7135 (grub_console_term_output): ... this. Update all users.
7136 (grub_console_term_input): Only enable it on PC/BIOS platform.
7137 (grub_console_init): Remove grub_keyboard_controller_init() call.
7139 Migrate input terminals to new API:
7141 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7142 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7143 i386-specific anyway).
7144 (grub_console_checkkey): Rename to ...
7145 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7147 (grub_keyboard_controller_orig): New variable.
7148 (grub_console_getkey): Rename to ...
7149 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7151 (grub_keyboard_controller_init): Static-ize. Save original
7152 controller value so that it can be restored ...
7153 (grub_keyboard_controller_fini): ... here (new function).
7154 (grub_at_keyboard_term): New structure.
7155 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7158 Migrate output terminals to new API:
7160 * term/i386/pc/vga.c (grub_vga_term): Change type to
7161 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7162 members. Update all users.
7163 * term/gfxterm.c (grub_video_term): Change type to
7164 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7165 members. Update all users.
7166 * include/grub/i386/pc/console.h (grub_console_checkkey)
7167 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7170 Migrate `terminal' command and userland tools to new API:
7172 * commands/terminal.c (grub_cmd_terminal): Split into ...
7173 (grub_cmd_terminal_input): ... this, and ...
7174 (grub_cmd_terminal_output): ... this.
7175 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7176 `terminal_input' and `terminal_output'.
7177 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7178 `terminal_input' / `terminal_output' API.
7179 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7180 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7181 provided ${GRUB_TERMINAL}, convert it).
7183 2008-11-04 Robert Millan <rmh@aybabtu.com>
7185 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7187 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7189 2008-11-03 Bean <bean123ch@gmail.com>
7191 * kern/elf.c (grub_elf32_load): Revert to previous code.
7192 (grub_elf64_load): Likewise.
7194 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7196 2008-11-01 Robert Millan <rmh@aybabtu.com>
7198 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7199 (TARGET_CPPFLAGS): Likewise.
7200 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7202 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7204 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7206 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7208 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7209 addition of objects until the code is not going to be able to fail.
7211 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7213 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7214 (add a missing NULL check, and correct them by moving the pointer
7215 operations after the actual check).
7217 2008-10-29 Robert Millan <rmh@aybabtu.com>
7219 * util/i386/pc/grub-install.in: Handle empty string as output from
7220 make_system_path_relative_to_its_root().
7222 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7224 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7225 circular metadata worst case scenario. If the metadata is circular
7226 then copy the wrap in place.
7227 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7228 project lib/format_text/layout.h
7229 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7231 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7233 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7235 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7237 * util/update-grub_lib.in: Mention filename in warning message.
7239 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7241 * NEWS: Update for rename of update-grub to grub-mkconfig.
7243 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7245 * util/update-grub_lib.in: Copy to ...
7246 * util/grub-mkconfig_lib.in: ... this. Update all users.
7247 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7248 * util/update-grub.in: Rename to ...
7249 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7250 option. Add `--output' option to allow users to specify the generated
7251 configuration file. Default to stdout.
7252 (update_grub_dir): Rename to ...
7253 (grub_mkconfig_dir): ... this.
7254 (grub_cfg): Default to an empty string.
7255 * conf/common.rmk (update-grub): Rename to ...
7256 (grub-mkconfig): ... this.
7257 (update-grub_lib): Copy to ...
7258 (grub-mkconfig_lib): ... this.
7259 (update-grub_SCRIPTS): Copy to ...
7260 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7261 (update-grub_DATA): Rename to ...
7262 (grub-mkconfig_DATA): ... this.
7264 2008-09-28 Robert Millan <rmh@aybabtu.com>
7266 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7267 to `modified'. Add the real `created' field.
7268 (grub_iso9660_uuid): Use `modified' rather than `created' for
7269 constructing the UUID.
7271 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7273 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7274 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7276 2008-09-28 Bean <bean123ch@gmail.com>
7278 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7279 Thanks to Christian Franke for finding this bug.
7281 2008-09-25 Robert Millan <rmh@aybabtu.com>
7283 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7284 instances of grub_util_get_disk_name() (see previous commit).
7286 2008-09-25 Robert Millan <rmh@aybabtu.com>
7288 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7289 `util/i386/get_disk_name.c'.
7290 * conf/i386-efi.rmk: Likewise.
7291 * conf/x86_64-efi.rmk: Likewise.
7292 * conf/i386-coreboot.rmk: Likewise.
7293 * conf/i386-ieee1275.rmk: Likewise.
7294 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7295 `util/ieee1275/get_disk_name.c'.
7296 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7297 * util/ieee1275/get_disk_name.c: Remove file.
7298 * util/i386/get_disk_name.c: Remove file.
7299 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7300 "hd%d" for device.map entries, rather than using
7301 grub_util_get_disk_name().
7303 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7305 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7307 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7309 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7311 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7313 (GRUB_TERM_PPAGE): Changed to 0x4900.
7315 2008-09-24 Robert Millan <rmh@aybabtu.com>
7317 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7318 macros (they were i386-pc specific).
7319 * include/grub/sparc64/ieee1275/console.h: Likewise.
7320 * include/grub/efi/console.h: Likewise.
7322 2008-09-22 Bean <bean123ch@gmail.com>
7324 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7325 resident and in attribute list.
7327 * include/grub/ntfs.h (BMP_LEN): Removed.
7329 2008-09-22 Bean <bean123ch@gmail.com>
7331 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7332 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7334 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7335 error occurs, as grub_disk_open will call grub_disk_close, which will
7336 call p->close (scsi).
7338 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7340 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7341 (AC_PREREQ): Bumped to 2.59.
7342 (AC_TRY_COMPILE): Replace obsolete macro with ...
7343 (AC_COMPILE_IFELSE): ... this.
7344 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7345 (AC_LINK_IFELSE): ... this.
7347 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7349 * autogen.sh: Add a call to `gendistlist.sh'.
7351 2008-09-19 Christian Franke <franke@computer.org>
7353 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7354 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7355 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7356 Export __enable_execute_stack() to modules.
7357 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7360 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7362 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7365 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7367 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7368 #include <grub/util/hostdisk.h>.
7370 2008-09-08 Robert Millan <rmh@aybabtu.com>
7372 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7373 segments when their filesz is zero (grub_file_read() interprets
7374 zero-size as "read until EOF", which results in memory corruption).
7375 Use `lowest_segment' rather than 0 for calculating the current
7376 segment load address.
7378 2008-09-08 Robert Millan <rmh@aybabtu.com>
7380 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7381 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7382 clobbered useful information.
7384 2008-09-08 Robert Millan <rmh@aybabtu.com>
7386 * include/grub/util/biosdisk.h: Move to ...
7387 * include/grub/util/hostdisk.h: ... here. Update all users.
7388 * util/biosdisk.c: Move to ...
7389 * util/hostdisk.c: ... here. Update all users.
7391 2008-09-07 Robert Millan <rmh@aybabtu.com>
7393 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7395 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7396 and length can be stored directly in the `mbi->mmap_addr' and
7397 `mbi->mmap_length' struct fields.
7399 2008-09-07 Robert Millan <rmh@aybabtu.com>
7401 * conf/i386.rmk: New file. Provides declaration for building
7403 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7404 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7406 Include `conf/i386.mk'.
7407 * conf/i386-efi.rmk: Likewise.
7408 * conf/x86_64-efi.rmk: Likewise.
7409 * conf/i386-coreboot.rmk: Likewise.
7410 * conf/i386-ieee1275.rmk: Likewise.
7412 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7414 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7415 Adds optimization support for BGR based modes.
7417 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7418 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7419 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7420 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7421 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7422 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7423 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7424 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7425 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7426 (grub_video_i386_vbeblit_index_index): Likewise.
7427 (grub_video_i386_vbeblit_replace_directN): Added.
7428 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7429 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7430 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7431 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7432 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7433 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7434 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7435 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7436 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7437 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7438 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7439 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7440 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7442 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7443 (grub_video_i386_vbefill_R8G8B8): Likewise.
7444 (grub_video_i386_vbefill_index): Likewise.
7445 (grub_video_i386_vbefill_direct32): Added.
7446 (grub_video_i386_vbefill_direct24): Likewise.
7447 (grub_video_i386_vbefill_direct16): Likewise.
7448 (grub_video_i386_vbefill_direct8): Likewise.
7450 * include/grub/video.h (grub_video_blit_format): Removed
7451 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7452 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7453 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7454 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7455 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7457 * video/video.c (grub_video_get_blit_format): Updated to use new
7458 blit formats. Added handling for 16 bit color modes.
7460 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7462 (common_blitter): Updated to use new blitters.
7464 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7466 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7467 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7468 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7469 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7470 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7471 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7472 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7473 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7474 (grub_video_i386_vbeblit_index_index): Likewise.
7475 (grub_video_i386_vbeblit_replace_directN): Added.
7476 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7477 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7478 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7479 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7480 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7481 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7482 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7483 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7484 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7485 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7486 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7487 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7488 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7490 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7491 (grub_video_i386_vbefill_R8G8B8): Likewise.
7492 (grub_video_i386_vbefill_index): Likewise.
7493 (grub_video_i386_vbefill_direct32): Added.
7494 (grub_video_i386_vbefill_direct24): Likewise.
7495 (grub_video_i386_vbefill_direct16): Likewise.
7496 (grub_video_i386_vbefill_direct8): Likewise.
7498 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7501 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7504 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7507 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7510 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7512 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7515 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7517 * fs/iso9660.c (grub_iso9660_date): New structure.
7518 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7519 (grub_iso9660_uuid): New function.
7521 2008-09-05 Bean <bean123ch@gmail.com>
7523 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7525 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7526 insensitive bit for names in Win32 and Win32 & DOS namespace.
7528 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7530 * include/grub/types.h (LONG_MAX): Likewise.
7532 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7534 * util/getroot.c: Include <config.h>.
7535 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7536 add support for /dev/md/N devices and handle LVM double dash escaping.
7538 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7540 * config.guess: Update to latest version from config git.
7541 * config.sub: Likewise.
7543 2008-09-03 Robert Millan <rmh@aybabtu.com>
7545 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7546 `disk->total_sectors'.
7548 2008-09-01 Colin D Bennett <colin@gibibit.com>
7550 * include/grub/normal.h: Fixed incorrect comment for
7551 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7553 2008-09-01 Colin D Bennett <colin@gibibit.com>
7555 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7556 values with defines.
7558 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7559 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7560 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7561 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7562 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7563 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7564 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7565 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7566 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7567 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7568 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7569 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7570 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7571 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7572 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7573 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7574 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7575 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7576 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7578 2008-08-31 Robert Millan <rmh@aybabtu.com>
7580 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7582 (grub_multiboot): Fix a few warnings.
7584 2008-08-31 Robert Millan <rmh@aybabtu.com>
7586 * loader/i386/pc/multiboot.c: Update comment not to say that
7587 boot_device support is unimplemented.
7589 2008-08-31 Robert Millan <rmh@aybabtu.com>
7591 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7592 or memory map support are unimplemented.
7594 2008-08-31 Colin D Bennett <colin@gibibit.com>
7596 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7598 2008-08-31 Colin D Bennett <colin@gibibit.com>
7600 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7601 total video memory in 'vbeinfo' output; show color format details for
7604 2008-08-30 Pavel Roskin <proski@gnu.org>
7606 * util/genmoddep.c: Remove for real this time.
7607 * DISTLIST: Remove util/genmoddep.c.
7609 2008-08-30 Robert Millan <rmh@aybabtu.com>
7611 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7612 as required by Multiboot spec (it was already 4-byte aligned, but
7615 2008-08-29 Pavel Roskin <proski@gnu.org>
7617 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7618 * kern/powerpc/ieee1275/startup.S: ... this.
7619 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7620 * DISTLIST: Likewise.
7622 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7623 grub/cpu/kernel.h. Add start label for consistency with other
7624 platforms. Add grub_prefix immediately after start. Add jump
7625 to the code after grub_prefix.
7626 * include/grub/powerpc/kernel.h: Provide valid values for
7627 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7629 2008-08-29 Bean <bean123ch@gmail.com>
7631 * configure.ac: Change host_os to cygwin for mingw.
7632 (asprintf): New check for function.
7634 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7635 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7637 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7638 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7639 sync, sleep and grub_util_get_disk_size for mingw.
7641 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7642 to get size in mingw.
7643 (open_device): Use flag O_BINARY if it's defined.
7644 (find_root_device): Add dummy code for mingw.
7646 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7647 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7648 (get_scsi_disk_name): Return 0 for mingw.
7650 * util/hostfs.c: #include <grub/util/misc.h>.
7651 (grub_hostfs_open): Use "rb" flag to open file, use
7652 grub_util_get_disk_size to get disk size for mingw.
7654 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7655 (asprintf): New function if HAVE_ASPRINTF is not set.
7656 (sync): New function for mingw.
7658 (grub_util_get_disk_size): Likewise.
7660 2008-08-28 Pavel Roskin <proski@gnu.org>
7662 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7665 2008-08-28 Robert Millan <rmh@aybabtu.com>
7667 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7669 2008-08-28 Robert Millan <rmh@aybabtu.com>
7671 Change find_grub_drive() syntax so it doesn't prevent it from
7672 detecting NULL names as errors.
7674 * util/biosdisk.c (find_grub_drive): Move free slot search code
7676 (find_free_slot): ... to here.
7677 (read_device_map): Use find_free_slot() to search for free slots.
7679 2008-08-27 Marco Gerards <marco@gnu.org>
7681 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7682 (scsi_mod_SOURCES): New variable.
7683 (scsi_mod_CFLAGS): Likewise
7684 (scsi_mod_LDFLAGS): Likewise.
7686 * disk/scsi.c: New file.
7688 * include/grub/scsi.h: Likewise.
7690 * include/grub/scsicmd.h: Likewise.
7692 * disk/ata.c: Include <grub/scsi.h>.
7693 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7695 (grub_ata_iterate): Skip ATAPI devices.
7696 (grub_ata_open): Only handle ATAPI devices.
7697 (struct grub_atapi_read): Removed.
7698 (grub_atapi_readsector): Likewise.
7699 (grub_ata_read): No longer handle ATAPI devices.
7700 (grub_ata_write): Likewise.
7701 (grub_atapi_iterate): New function.
7702 (grub_atapi_read): Likewise.
7703 (grub_atapi_write): Likewise.
7704 (grub_atapi_open): Likewise.
7705 (grub_atapi_close): Likewise.
7706 (grub_atapi_dev): New variable.
7707 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7708 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7710 * include/grub/disk.h (enum grub_disk_dev_id): Add
7711 `GRUB_DISK_DEVICE_SCSI_ID'.
7713 2008-08-26 Robert Millan <rmh@aybabtu.com>
7715 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7716 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7719 2008-08-23 Bean <bean123ch@gmail.com>
7721 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7722 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7723 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7724 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7726 (raid5rec_mod_SOURCES): New macro.
7727 (raid5rec_mod_CFLAGS): Likewise.
7728 (raid5rec_mod_LDFLAGS): Likewise.
7729 (raid6rec_mod_SOURCES): Likewise.
7730 (raid6rec_mod_CFLAGS): Likewise.
7731 (raid6rec_mod_LDFLAGS): Likewise.
7732 (mdraid_mod_SOURCES): Likewise.
7733 (mdraid_mod_CFLAGS): Likewise.
7734 (mdraid_mod_LDFLAGS): Likewise.
7735 (dm_nv_mod_SOURCES): Likewise.
7736 (dm_nv_mod_CFLAGS): Likewise.
7737 (dm_nv_mod_LDFLAGS): Likewise.
7739 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7740 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7741 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7743 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7744 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7746 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7748 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7750 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7754 * disk/raid5_recover.c: New file.
7756 * disk/raid6_recover.c: Likewise.
7758 * disk/mdraid_linux.c: Likewise.
7760 * disk/dmraid_nvidia.c: Likewise.
7762 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7765 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7766 calculate the size of raid device.
7767 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7768 different layout of raid5.
7769 (grub_raid_scan_device): Remove code specific to mdraid.
7770 (grub_raid_list): New variable.
7771 (free_array): New function.
7772 (grub_raid_register): Likewise.
7773 (grub_raid_unregister): Likewise.
7774 (grub_raid_rescan): Likewise.
7775 (GRUB_MOD_INIT): Don't iterate device here.
7776 (GRUB_MOD_FINI): Use free_array to release resource.
7778 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7779 (grub_raid5_recover_func_t): New function variable type.
7780 (grub_raid6_recover_func_t): Likewise.
7781 (grub_raid5_recover_func): New variable.
7782 (grub_raid6_recover_func): Likewise.
7783 (grub_raid_register): New function.
7784 (grub_raid_unregister): Likewise.
7785 (grub_raid_rescan): Likewise.
7786 (grub_raid_block_xor): Likewise.
7788 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7789 (CMD_CRC): New macro.
7791 (read_file): Handle device as well as file.
7792 (cmd_crc): New function.
7793 (fstest): Handle multiple disks.
7794 (options): Remove part, raw and long, add root and diskcount.
7795 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7796 (main): Find the first non option entry and ignore subsequent options,
7797 add handling for the new options, support multiple disks.
7799 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7801 2008-08-23 Bean <bean123ch@gmail.com>
7803 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7805 * genfslist.sh: Ignore kernel.mod.
7807 * genpartmaplist.sh: Likewise.
7809 2008-08-23 Robert Millan <rmh@aybabtu.com>
7811 * util/getroot.c (find_root_device): Skip anything that starts with
7812 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7814 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7816 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7817 * util/grub.d/00_header.in: Allow the administrator to change default
7818 gfxmode via ${GRUB_GFXMODE}.
7820 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7822 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7824 2008-08-21 Robert Millan <rmh@aybabtu.com>
7826 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7828 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7829 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7831 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7833 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7834 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7836 2008-08-19 Robert Millan <rmh@aybabtu.com>
7838 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7839 (struct grub_virtual_screen): Remove `cursor_color'.
7840 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7842 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7844 2008-08-18 Robert Millan <rmh@aybabtu.com>
7846 Unify (identical) linux_normal.c files.
7847 * loader/i386/efi/linux_normal.c: Move from here ...
7848 * loader/linux_normal.c: ... to here. Update all users.
7849 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7850 * loader/i386/ieee1275/linux_normal.c: Likewise.
7852 2008-08-18 Robert Millan <rmh@aybabtu.com>
7854 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7855 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7856 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7857 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7858 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7860 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7861 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7862 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7863 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7864 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7865 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7866 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7867 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7868 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7869 portably using grub_getxy().
7870 Replace `-EFI' with `-bzImage' in boot message.
7872 2008-08-17 Robert Millan <rmh@aybabtu.com>
7874 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7876 2008-08-17 Robert Millan <rmh@aybabtu.com>
7878 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7880 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7881 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7882 (grub_machine_mmap_iterate): New function declaration.
7883 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7885 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7888 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7889 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7890 Move e820 parsing from here ...
7891 * kern/i386/pc/mmap.c: New file.
7892 (grub_machine_mmap_iterate): ... to here.
7894 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7895 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7896 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7897 (grub_available_iterate): Redeclare to return `void', and redeclare
7898 its hook to use grub_uint64_t as addr and size parameters, and rename
7900 (grub_machine_mmap_iterate): ... this. Update all users.
7902 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7903 to make it more readable. Rename to ...
7904 (grub_machine_mmap_iterate): ... this.
7906 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7907 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7908 (grub_multiboot): Allocate an extra region after the payload, and fill
7909 it with a Multiboot memory map. Adjust a.out loader to calculate size
7910 with the extra space.
7911 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7912 with the extra space.
7914 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7916 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7918 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7920 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7921 mdate-sh to the list `find' searches for.
7922 * DISTLIST: Regenerated.
7924 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7926 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7927 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7928 genmoddep.awk, gensymlist.sh.in.
7929 (DISTDIRS): Add bus, docs, hook, lib.
7930 * DISTLIST: Regenerated.
7931 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7933 2008-08-16 Robert Millan <rmh@aybabtu.com>
7935 * disk/raid.c (grub_raid_init): Handle/report errors set by
7936 grub_device_iterate().
7937 * disk/lvm.c (grub_lvm_init): Likewise.
7939 2008-08-15 Bean <bean123ch@gmail.com>
7941 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7943 (datetime_mod_SOURCES): New macro.
7944 (datetime_mod_CFLAGS): Likewise.
7945 (datetime_mod_LDFLAGS): Likewise.
7946 (date_mod_SOURCES): Likewise.
7947 (date_mod_CFLAGS): Likewise.
7948 (date_mod_LDFLAGS): Likewise.
7949 (datehook_mod_SOURCES): Likewise.
7950 (datehook_mod_CFLAGS): Likewise.
7951 (datehook_mod_LDFLAGS): Likewise.
7953 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7955 (datetime_mod_SOURCES): New macro.
7956 (datetime_mod_CFLAGS): Likewise.
7957 (datetime_mod_LDFLAGS): Likewise.
7958 (date_mod_SOURCES): Likewise.
7959 (date_mod_CFLAGS): Likewise.
7960 (date_mod_LDFLAGS): Likewise.
7961 (datehook_mod_SOURCES): Likewise.
7962 (datehook_mod_CFLAGS): Likewise.
7963 (datehook_mod_LDFLAGS): Likewise.
7965 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7967 (datetime_mod_SOURCES): New macro.
7968 (datetime_mod_CFLAGS): Likewise.
7969 (datetime_mod_LDFLAGS): Likewise.
7970 (date_mod_SOURCES): Likewise.
7971 (date_mod_CFLAGS): Likewise.
7972 (date_mod_LDFLAGS): Likewise.
7973 (datehook_mod_SOURCES): Likewise.
7974 (datehook_mod_CFLAGS): Likewise.
7975 (datehook_mod_LDFLAGS): Likewise.
7977 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7979 (datetime_mod_SOURCES): New macro.
7980 (datetime_mod_CFLAGS): Likewise.
7981 (datetime_mod_LDFLAGS): Likewise.
7982 (date_mod_SOURCES): Likewise.
7983 (date_mod_CFLAGS): Likewise.
7984 (date_mod_LDFLAGS): Likewise.
7985 (datehook_mod_SOURCES): Likewise.
7986 (datehook_mod_CFLAGS): Likewise.
7987 (datehook_mod_LDFLAGS): Likewise.
7989 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7991 (datetime_mod_SOURCES): New macro.
7992 (datetime_mod_CFLAGS): Likewise.
7993 (datetime_mod_LDFLAGS): Likewise.
7994 (date_mod_SOURCES): Likewise.
7995 (date_mod_CFLAGS): Likewise.
7996 (date_mod_LDFLAGS): Likewise.
7997 (datehook_mod_SOURCES): Likewise.
7998 (datehook_mod_CFLAGS): Likewise.
7999 (datehook_mod_LDFLAGS): Likewise.
8001 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
8003 * commands/date.c: New file.
8005 * hook/datehook.c: Likewise.
8007 * include/grub/lib/datetime.h: Likewise.
8009 * include/grub/i386/cmos.h: Likewise.
8011 * lib/datetime.c: Likewise.
8013 * lib/i386/datetime.c: Likewise.
8015 * lib/efi/datetime.c: Likewise.
8017 2008-08-14 Robert Millan <rmh@aybabtu.com>
8019 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
8020 (grub_mkelfimage_SOURCES): New variable.
8021 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
8023 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
8024 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
8025 * conf/powerpc-ieee1275.rmk: Likewise.
8026 * conf/i386-ieee1275.rmk: Likewise.
8028 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
8029 * kern/i386/coreboot/init.c: Likewise.
8031 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
8032 with `<grub/cpu/kernel.h>'.
8033 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
8035 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
8036 * kern/i386/coreboot/startup.S: Likewise.
8038 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
8039 (GRUB_MOD_GAP): Remove.
8040 * include/grub/powerpc/kernel.h: New file.
8041 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
8042 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8043 * include/grub/i386/kernel.h: New file.
8044 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
8045 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
8046 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8048 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
8050 Use --directory when invoking grub_mkimage.
8052 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
8053 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
8054 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
8055 and GRUB_KERNEL_CPU_PREFIX.
8057 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
8059 * include/grub/err.h (grub_err_printf): New function prototype.
8060 * util/misc.c (grub_err_printf): New function.
8061 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
8063 * kern/err.c (grub_print_error): Use grub_err_printf.
8065 2008-08-13 Robert Millan <rmh@aybabtu.com>
8067 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
8069 2008-08-13 Robert Millan <rmh@aybabtu.com>
8071 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
8074 2008-08-12 Robert Millan <rmh@aybabtu.com>
8076 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
8077 of the relocation code from here ...
8078 (grub_multiboot): ... to here.
8079 (forward_relocator, backward_relocator): Move from here ...
8080 * kern/i386/loader.S (grub_multiboot_forward_relocator)
8081 (grub_multiboot_backward_relocator): ... to here.
8082 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8083 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8084 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8085 (grub_multiboot_forward_relocator_end)
8086 (grub_multiboot_backward_relocator)
8087 (grub_multiboot_backward_relocator_end): New variables.
8089 2008-08-12 Bean <bean123ch@gmail.com>
8091 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8093 2008-08-11 Robert Millan <rmh@aybabtu.com>
8095 * kern/i386/linuxbios/startup.S: Move from here ...
8096 * kern/i386/coreboot/startup.S: ... to here.
8098 * kern/i386/linuxbios/init.c: Move from here ...
8099 * kern/i386/coreboot/init.c: ... to here.
8101 * kern/i386/linuxbios/table.c: Move from here ...
8102 * kern/i386/coreboot/mmap.c: ... to here.
8104 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8106 2008-08-11 Robert Millan <rmh@aybabtu.com>
8108 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8109 errors. Leave it to the upper layer to handle them.
8111 2008-08-09 Christian Franke <franke@computer.org>
8113 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8114 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8115 Install `grub.d/10_windows' only on Cygwin.
8116 * configure.ac: Add subst of `target_os'.
8117 Check `target_os' also before setting TARGET_OBJ2ELF.
8118 Add `--enable-grub-pe2elf'.
8120 2008-08-08 Robert Millan <rmh@aybabtu.com>
8122 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8123 (grub_last_time): Change type to grub_uint64_t.
8124 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8125 (grub_disk_close): Likewise.
8127 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8128 (run_menu): Migrate code from to using grub_get_time_ms().
8130 * util/misc.c (grub_get_time_ms): New function.
8132 2008-08-08 Marco Gerards <marco@gnu.org>
8134 * disk/ata.c (grub_ata_regget): Change return type to
8136 (grub_ata_regget2): Likewise.
8137 (grub_ata_wait_status): New function.
8138 (grub_ata_wait_busy): Removed function, updated all users to use
8139 `grub_ata_wait_status'.
8140 (grub_ata_wait_drq): Likewise.
8141 (grub_ata_cmd): New function.
8142 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8144 (grub_ata_pio_write): Add error handling.
8145 (grub_atapi_identify): Likewise.
8146 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8148 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8149 handling. Actually use the detected registers. Reorder the
8150 detection logic such that it is easier to read.
8151 (grub_ata_pciinit): Do not assign the same ID to each controller.
8152 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8154 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8156 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8158 2008-08-08 Marco Gerards <marco@gnu.org>
8162 2008-08-07 Bean <bean123ch@gmail.com>
8164 * include/grub/x86_64/pci.h: New file.
8166 2008-08-07 Christian Franke <franke@computer.org>
8168 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8169 (TIMER2_GATE): Likewise.
8170 (grub_pit_wait): Add enable/disable of the timer2 gate
8171 bit of port 0x61. This fixes a possible infinite loop.
8173 2008-08-07 Bean <bean123ch@gmail.com>
8175 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8176 kern/i386/tsc.c and kern/i386/pit.c.
8178 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8181 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8184 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8186 2008-08-07 Bean <bean123ch@gmail.com>
8188 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8190 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8192 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8193 multiple inclusion. Add #include <grub/types.h>.
8195 2008-08-06 Christian Franke <franke@computer.org>
8197 * conf/common.rmk: Build and install `10_windows'.
8198 * util/grub.d/10_windows.in: New script.
8200 2008-08-06 Pavel Roskin <proski@gnu.org>
8202 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8204 2008-08-06 Robert Millan <rmh@aybabtu.com>
8206 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8207 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8209 2008-08-06 Bean <bean123ch@gmail.com>
8211 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8212 (grub_pxefs_fs_int): Remove dummy definition.
8213 (grub_pxefs_open): Use data->block_size to store the current block
8215 (grub_pxefs_read): Use block size stored in data->block_size. As the
8216 value of grub_pxe_blksize can be changed after the file is opened.
8218 2008-08-06 Bean <bean123ch@gmail.com>
8220 * fs/i386/pc/pxe.c (curr_file): new variable.
8221 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8222 require the dummy internal file system anymore.
8223 (grub_pxefs_read): Removed.
8224 (grub_pxefs_close): Likewise.
8225 (grub_pxefs_fs_int): Likewise.
8226 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8227 connection when we switch file.
8228 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8230 2008-08-06 Robert Millan <rmh@aybabtu.com>
8232 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8234 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8235 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8237 * kern/i386/halt.c: New file.
8238 * kern/i386/reboot.c: Likewise.
8239 * include/grub/i386/reboot.h: Likewise.
8240 * include/grub/i386/halt.h: Likewise.
8242 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8243 Include `<grub/cpu/halt.h>'.
8244 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8245 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8247 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8248 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8249 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8250 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8251 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8252 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8254 * include/grub/i386/at_keyboard.h: ... to here.
8256 2008-08-05 Robert Millan <rmh@aybabtu.com>
8258 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8259 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8260 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8261 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8262 `kern/generic/millisleep.c'.
8264 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8265 instead of grub_get_rtc().
8266 (grub_tsc_init): Initialize `tsc_boot_time'.
8268 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8269 (grub_machine_init): Use grub_tsc_init() rather than
8270 installing an RTC-based handler via grub_install_get_time_ms().
8272 * kern/i386/pit.c: New file.
8273 * include/grub/i386/pit.h: Likewise.
8275 2008-08-05 Bean <bean123ch@gmail.com>
8277 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8279 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8280 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8281 (pxe_mod_SOURCES): New macro.
8282 (pxe_mod_CFLAGS): Likewise.
8283 (pxe_mod_LDFLAGS): Likewise.
8284 (pxecmd_mod_SOURCES): Likewise.
8285 (pxecmd_mod_CFLAGS): Likewise.
8286 (pxecmd_mod_LDFLAGS): Likewise.
8288 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8289 (grub_pxe_call): Likewise.
8291 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8293 * commands/i386/pc/pxecmd.c: New file.
8295 * fs/i386/pc/pxe.c: Likewise.
8297 * include/grub/i386/pc/pxe.h: Likewise.
8299 2008-08-05 Bean <bean123ch@gmail.com>
8301 * util/console.c (grub_console_cur_color): New variable.
8302 (grub_console_standard_color): Likewise.
8303 (grub_console_normal_color): Likewise.
8304 (grub_console_highlight_color): Likewise.
8305 (color_map): Likewise.
8306 (use_color): Likewise.
8307 (NUM_COLORS): New macro.
8308 (grub_ncurses_setcolorstate): Handle color properly.
8309 (grub_ncurses_setcolor): Don't change color here, just remember the
8310 settings, color will be set in grub_ncurses_setcolorstate.
8311 (grub_ncurses_getcolor): New function.
8312 (grub_ncurses_init): Initialize color pairs.
8313 (grub_ncurses_term): New member grub_ncurses_getcolor.
8315 2008-08-05 Colin D Bennett <colin@gibibit.com>
8317 High resolution timer support. Implemented for x86 CPUs using TSC.
8318 Extracted generic grub_millisleep() so it's linked in only as needed.
8319 This requires a Pentium compatible CPU; if the RDTSC instruction is
8320 not supported, then it falls back on the generic grub_get_time_ms()
8321 implementation that uses the machine's RTC.
8323 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8324 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8325 `kern/generic/millisleep.c'.
8327 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8328 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8330 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8331 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8333 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8335 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8336 `kern/generic/millisleep.c'.
8338 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8340 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8342 * kern/generic/rtc_get_time_ms.c: New file.
8344 * kern/generic/millisleep.c: New file.
8346 * kern/misc.c: Don't include
8347 <kern/time.h> anymore.
8348 (grub_millisleep_generic): Removed.
8350 * commands/sleep.c (grub_interruptible_millisleep): Uses
8351 grub_get_time_ms() instead of grub_get_rtc().
8353 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8355 (grub_cpu_is_cpuid_supported): New inline function.
8356 (grub_cpu_is_tsc_supported): New inline function.
8357 (grub_tsc_init): New function prototype.
8358 (grub_tsc_get_time_ms): New function prototype.
8360 * kern/i386/tsc.c (grub_get_time_ms): New file.
8362 * include/grub/time.h: Include <grub/types.h.
8363 (grub_millisleep_generic): Removed.
8364 (grub_get_time_ms): New prototype.
8365 (grub_install_get_time_ms): New prototype.
8366 (grub_rtc_get_time_ms): New prototype.
8368 * kern/time.c (grub_get_time_ms): New function.
8369 (grub_install_get_time_ms): New function.
8371 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8372 <grub/time.h> anymore.
8373 (grub_millisleep): Removed.
8374 (grub_machine_init): Call grub_tsc_init.
8376 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8377 get_time_ms() implementation.
8379 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8380 (ieee1275_get_time_ms): New function.
8381 (grub_machine_init): Install get_time_ms() implementation.
8383 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8384 (grub_machine_init): Call grub_tsc_init().
8385 (grub_millisleep): Removed.
8387 * kern/ieee1275/init.c (grub_millisleep): Removed.
8388 (grub_machine_init): Install ieee1275_get_time_ms()
8390 (ieee1275_get_time_ms): New function.
8391 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8394 2008-08-05 Marco Gerards <marco@gnu.org>
8396 * disk/ata.c: Include <grub/pci.h>.
8397 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8398 (grub_ata_initialize): Rewritten.
8399 (grub_ata_device_initialize): New function.
8401 2008-08-04 Pavel Roskin <proski@gnu.org>
8403 * kern/main.c: Include grub/mm.h.
8405 2008-08-04 Robert Millan <rmh@aybabtu.com>
8407 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8408 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8409 corruption problem).
8411 2008-08-04 Robert Millan <rmh@aybabtu.com>
8413 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8414 warnings introduced in my last commit.
8416 2008-08-03 Robert Millan <rmh@aybabtu.com>
8418 Make PCI available on all i386 architectures.
8420 * include/grub/i386/pc/pci.h: Move from here ...
8421 * include/grub/i386/pci.h: ... to here.
8423 * include/grub/i386/pc/pci.h: Remove.
8424 * include/grub/i386/efi/pci.h: Remove.
8425 * include/grub/x86_64/efi/pci.h: Remove.
8427 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8430 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8431 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8432 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8434 * conf/i386-ieee1275.rmk: Likewise.
8436 2008-08-03 Robert Millan <rmh@aybabtu.com>
8438 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8439 (grub_console_setcursor): Make it possible to set cursor off.
8441 2008-08-03 Robert Millan <rmh@aybabtu.com>
8443 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8444 of modules instead of assuming which platform provides what.
8445 * util/update-grub.in: Likewise.
8447 2008-08-03 Robert Millan <rmh@aybabtu.com>
8449 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8450 instead of `grub_install_dos_part' to determine whether a drive needs
8451 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8452 because it can be overridden when loading GRUB via Multiboot).
8454 2008-08-02 Robert Millan <rmh@aybabtu.com>
8456 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8458 2008-08-02 Robert Millan <rmh@aybabtu.com>
8460 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8461 of informational grub_dprintf() calls.
8463 2008-08-02 Robert Millan <rmh@aybabtu.com>
8465 * disk/memdisk.c (memdisk_size): Don't initialize.
8466 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8468 * include/grub/i386/pc/kernel.h
8469 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8470 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8471 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8472 (grub_arch_memdisk_size): Remove.
8474 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8475 field (was only used to transfer a constant). Add `type' field to
8476 support multiple module types.
8477 (grub_module_iterate): New function.
8479 * kern/device.c (grub_device_open): Do not hide error messages
8480 when grub_disk_open() fails. Use grub_print_error() instead.
8482 * kern/i386/pc/init.c (grub_arch_modules_addr)
8483 (grub_arch_memdisk_size): Remove functions.
8484 (grub_arch_modules_addr): Return the module address in high memory
8485 (now that it isn't copied anymore).
8487 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8488 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8489 decompression routine (grub_total_module_size already includes that
8490 now). Don't copy modules back to low memory.
8492 * kern/main.c: Include `<grub/mm.h>'.
8493 (grub_load_modules): Split out (and use) ...
8494 (grub_module_iterate): ... this function, which iterates through
8495 module objects and runs a hook.
8496 Comment out grub_mm_init_region() call, as it would cause non-ELF
8497 modules to be overwritten.
8499 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8500 the memdisk image in its own region, make it part of the module list.
8501 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8502 (main): Parse --memdisk|-m option, and pass user-provided path as
8503 parameter to generate_image().
8504 (add_segments): Pass `memdisk_path' down to load_modules().
8505 (load_modules): Embed memdisk image in module section when requested.
8506 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8507 `header.type' instead of `header.offset'.
8509 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8510 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8511 (memdisk_mod_LDFLAGS): New variables.
8512 * conf/i386-coreboot.rmk: Likewise.
8513 * conf/i386-ieee1275.rmk: Likewise.
8515 2008-08-02 Robert Millan <rmh@aybabtu.com>
8517 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8518 (backward_relocator): New variables. Used to allocate and relocate
8519 the payload, respectively.
8520 (grub_multiboot_load_elf32): Load into heap instead of requested
8521 address, install the appropriate relocator code in each bound of
8522 the payload, and set the entry point such that
8523 grub_multiboot_real_boot() will jump to one of them.
8525 * kern/i386/loader.S (grub_multiboot_payload_size)
8526 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8527 (grub_multiboot_payload_entry_offset): New variables.
8528 (grub_multiboot_real_boot): Set cpu context to what the relocator
8529 expects, and jump to the relocator instead of the payload.
8531 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8532 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8533 (grub_multiboot_payload_entry_offset): Export.
8535 2008-08-01 Bean <bean123ch@gmail.com>
8537 * normal/menu_entry.c (editor_getline): Don't return the original
8538 string as result, as it will be released by lexer once it has done
8541 2008-08-01 Robert Millan <rmh@aybabtu.com>
8543 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8544 within menuentries, not before them.
8545 util/grub.d/10_hurd.in: Likewise.
8547 2008-08-01 Bean <bean123ch@gmail.com>
8549 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8550 (bufio_mod_SOURCES): New macro.
8551 (bufio_mod_CFLAGS): Likewise.
8552 (bufio_mod_LDFLAGS): Likewise.
8554 * include/grub/bufio.h: New file.
8556 * io/bufio.c: Likewise.
8558 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8559 (grub_video_reader_png): Use grub_buffile_open to open file.
8561 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8562 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8564 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8565 (grub_video_reader_tga): Use grub_buffile_open to open file.
8567 * font/manager.c: Include <grub/bufio.h>.
8568 (add_font): Use grub_buffile_open to open file.
8570 2008-07-31 Robert Millan <rmh@aybabtu.com>
8572 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8573 ELF segments, use a macro for arbitrarily accessing any of them instead
8574 of preparing a pointer that allows access to one at a time.
8575 (grub_multiboot_load_elf64): Likewise.
8577 2008-07-31 Bean <bean123ch@gmail.com>
8579 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8580 GRUB_KERNEL_MACHINE_DATA_END.
8582 2008-07-30 Robert Millan <rmh@aybabtu.com>
8584 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8585 Increase from 0x50 to 0x60.
8586 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8587 use UUIDs to identify the root drive for them. If that's not
8589 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8590 check, for cross-disk installs.
8592 2008-07-30 Robert Millan <rmh@aybabtu.com>
8594 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8595 is non-empty, use it to set the `prefix' environment variable instead
8596 of the usual approach.
8597 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8598 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8599 environment variable instead of dummy make_install_device().
8601 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8602 (start): Insert a data section, with `grub_prefix' variable.
8603 * kern/i386/linuxbios/startup.S: Likewise.
8605 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8606 New variable reference.
8607 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8608 New macro. Defines offset of `grub_prefix' within startup.S (relative
8610 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8611 section within startup.S (relative to `start').
8612 * include/grub/i386/coreboot/kernel.h: Likewise.
8614 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8615 Overwrite grub_prefix with its contents, at the beginning of the
8617 (main): Understand -p|--prefix.
8619 2008-07-30 Robert Millan <rmh@aybabtu.com>
8621 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8623 2008-07-30 Robert Millan <rmh@aybabtu.com>
8625 * term/i386/pc/vga_text.c (grub_console_cls): Use
8626 grub_console_gotoxy() to go back to beginning of the screen.
8627 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8629 2008-07-29 Christian Franke <franke@computer.org>
8631 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8632 Add conversion of emulated mount points on Cygwin.
8634 2008-07-29 Christian Franke <franke@computer.org>
8636 * util/update-grub.in: Add a check for admin
8638 Remove old `grub.cfg.new' before creation.
8639 Add `-f' to `mv' to handle the different filesystem
8640 semantics of Windows.
8642 2008-07-29 Bean <bean123ch@gmail.com>
8644 * normal/main.c (get_line): Fix buffer overflow bug.
8646 2008-07-28 Robert Millan <rmh@aybabtu.com>
8648 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8649 (struct grub_apple_header): New struct. Describes the layout of
8651 (apple_partition_map_iterate): Check the header magic as well as the
8652 partition magic (which was already being checked).
8654 2008-07-28 Pavel Roskin <proski@gnu.org>
8656 * genmk.rb: Add a warning to the beginning of the output that
8657 it's a generated file and should not be edited.
8659 2008-07-28 Robert Millan <rmh@aybabtu.com>
8661 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8662 with the same number are found, just use issue a warning with
8663 grub_dprintf(), as this error has been reported to be non-fatal.
8665 2008-07-27 Robert Millan <rmh@aybabtu.com>
8667 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8670 2008-07-27 Bean <bean123ch@gmail.com>
8672 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8673 (grub_fat_find_dir): Ignore case when comparing filename.
8675 2008-07-27 Bean <bean123ch@gmail.com>
8677 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8678 smallino, as it's more descriptive, and i8count can be confused with
8679 the other field count.
8680 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8683 2008-07-27 Bean <bean123ch@gmail.com>
8685 * commands/crc.c: New file.
8687 * lib/crc.c: Likewise.
8689 * include/grub/lib/crc.h: Likewise.
8691 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8693 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8694 (hexdump): Move this function to ...
8696 * lib/hexdump.c: ... here.
8698 * include/grub/hexdump.h: Renamed to ...
8700 * include/grub/lib/hexdump.h: ... this.
8702 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8704 * util/grub-editenv.c: Likewise.
8706 * include/envblk.h: Renamed to ...
8708 * include/lib/envblk.h: ... this.
8710 * util/envblk.c: Renamed to ...
8712 * lib/envblk.c: ... this.
8714 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8716 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8717 (pkglib_MODULES): Add crc.mod.
8718 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8719 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8720 (crc_mod_SOURCES): New macro.
8721 (crc_mod_CFLAGS): Likewise.
8722 (crc_mod_LDFLAGS): Likewise.
8724 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8726 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8728 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8732 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8734 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8736 * commands/help.c: Include <grub/term.h>.
8737 (TERM_WIDTH): Removed. Updated all users.
8739 2008-07-27 Pavel Roskin <proski@gnu.org>
8741 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8742 spurious warnings about a comment within a comment.
8744 2008-07-25 Robert Millan <rmh@aybabtu.com>
8746 * util/getroot.c (find_root_device): Skip devices that match
8747 /dev/dm-[0-9]. This lets the real device be found for any type of
8748 abstraction (LVM, EVMS, RAID..).
8749 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8750 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8751 device is found first, find_root_device() will now skip it.
8753 2008-07-24 Pavel Roskin <proski@gnu.org>
8755 * include/grub/types.h: Use __builtin_bswap32() and
8756 __builtin_bswap64() with gcc 4.3 and newer.
8758 2008-07-24 Christian Franke <franke@computer.org>
8760 * util/i386/pc/grub-install.in: If `--debug' is specified,
8761 pass `--verbose' to grub-setup.
8762 Abort script if make_system_path_relative_to_its_root() fails.
8764 2008-07-24 Bean <bean123ch@gmail.com>
8766 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8767 variable `target_platform' should be `platform'.
8769 2008-07-24 Bean <bean123ch@gmail.com>
8771 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8772 (grub_png_init_fixed_block): New function.
8773 (grub_png_decode_image_data): Handle fixed huffman code compression.
8775 2008-07-24 Bean <bean123ch@gmail.com>
8777 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8778 (grub_pe2elf_SOURCES): New macro.
8779 (CLEANFILES): Add grub-pe2elf.
8781 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8782 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8783 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8784 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8785 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8786 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8787 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8788 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8789 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8790 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8791 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8792 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8793 (GRUB_PE32_DT_FUNCTION): Likewise.
8794 (GRUB_PE32_REL_I386_DIR32): Likewise.
8795 (GRUB_PE32_REL_I386_REL32): Likewise.
8796 (grub_pe32_symbol): New structure.
8797 (grub_pe32_reloc): Likewise.
8799 * util/grub-pe2elf.c: New file.
8801 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8802 start symbol in non pc platform.
8804 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8806 The following patches are from Christian Franke.
8808 * include/grub/dl.h: Remove .previous, gas supports this only
8811 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8812 Remove .type, gas supports this only for ELF format.
8814 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8815 nullbytes in symbol table. This fixes an infinite loop if table is
8818 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8819 TARGET_IMG_LDFLAGS and EXEEXT.
8821 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8822 TARGET_IMG_LDFLAGS_AC.
8823 (grub_CHECK_STACK_ARG_PROBE): New function.
8825 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8827 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8829 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8830 to set TARGET_IMG_LD* accordingly.
8831 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8832 Add call to grub_CHECK_STACK_ARG_PROBE.
8833 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8835 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8837 * genmk.rb: Add EXEEXT to CLEANFILES.
8839 2008-07-23 Robert Millan <rmh@aybabtu.com>
8841 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8842 define the codes for arrows and lines used for the menu).
8843 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8846 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8847 fonts, because the latter are too slow.
8849 2008-07-21 Bean <bean123ch@gmail.com>
8851 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8852 a20. Run keyboard test last, as it will cause macbook to halt.
8854 2008-07-18 Pavel Roskin <proski@gnu.org>
8856 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8857 load foreign architecture modules correctly anyway. Keep
8858 support for loading host architecture modules, whether we
8859 compile them or not.
8861 2008-07-17 Pavel Roskin <proski@gnu.org>
8863 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8864 change target_cpu. The compiler default can mismatch target_cpu
8867 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8868 * kern/efi/efi.c: Likewise.
8870 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8871 target compiler is functional.
8872 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8875 * configure.ac: Default to efi platform for x86_64-apple. Allow
8876 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8877 adjustments from the rest, only do them if target is not
8878 explicitly given. Merge other adjustments with the final sanity
8879 check. Remove an extraneous check for supported CPU. Be
8880 specific which CPU and which platform is not supported.
8882 * configure.ac: Default to pc platform for x86_64.
8884 2008-07-17 Robert Millan <rmh@aybabtu.com>
8886 Partial LinuxBIOS -> Coreboot rename.
8888 * conf/i386-linuxbios.rmk: Renamed to ...
8889 * conf/i386-coreboot.rmk: ... this.
8890 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8891 * configure.ac: Accept "coreboot" as input platform (but maintain
8892 compatibility with "linuxbios").
8893 * include/grub/i386/linuxbios: Renamed to ...
8894 * include/grub/i386/coreboot: ... this.
8896 2008-07-17 Bean <bean123ch@gmail.com>
8898 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8899 (appleldr_mod_SOURCE): New variable.
8900 (appleldr_mod_CFLAGS): Likewise.
8901 (appleldr_mod_LDFLAGS): Likewise.
8902 (pci_mod_SOURCES): Likewise.
8903 (pci_mod_CFLAGS): Likewise.
8904 (pci_mod_LDFLAGS): Likewise.
8905 (lspci_mod_SOURCES): Likewise.
8906 (lspci_mod_CFLAGS): Likewise.
8907 (lspci_mod_LDFLAGS): Likewise.
8909 * conf/x86_64-efi.rmk: New file.
8911 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8913 (grub_efidisk_write): Likewise.
8915 * include/efi/api.h (efi_call_0): New macro.
8916 (efi_call_1): Likewise.
8917 (efi_call_2): Likewise.
8918 (efi_call_3): Likewise.
8919 (efi_call_4): Likewise.
8920 (efi_call_5): Likewise.
8921 (efi_call_6): Likewise.
8923 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8924 grub_rescue_cmd_chainloader.
8926 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8927 (grub_pe32_optional_header): Change some fields based on i386 or
8929 (GRUB_PE32_PE32_MAGIC): Likewise.
8931 * include/grub/efi/uga_draw.h: New file.
8933 * include/grub/elf.h (STN_ABS): New constant.
8934 (R_X86_64_NONE): Relocation constant for x86_64.
8935 (R_X86_64_64): Likewise.
8936 (R_X86_64_PC32): Likewise.
8937 (R_X86_64_GOT32): Likewise.
8938 (R_X86_64_PLT32): Likewise.
8939 (R_X86_64_COPY): Likewise.
8940 (R_X86_64_GLOB_DAT): Likewise.
8941 (R_X86_64_JUMP_SLOT): Likewise.
8942 (R_X86_64_RELATIVE): Likewise.
8943 (R_X86_64_GOTPCREL): Likewise.
8944 (R_X86_64_32): Likewise.
8945 (R_X86_64_32S): Likewise.
8946 (R_X86_64_16): Likewise.
8947 (R_X86_64_PC16): Likewise.
8948 (R_X86_64_8): Likewise.
8949 (R_X86_64_PC8): Likewise.
8951 * include/grub/i386/efi/pci.h: New file.
8953 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8954 Change it value based on platform.
8955 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8956 (GRUB_E820_RAM): Likewise.
8957 (GRUB_E820_RESERVED): Likewise.
8958 (GRUB_E820_ACPI): Likewise.
8959 (GRUB_E820_NVS): Likewise.
8960 (GRUB_E820_EXEC_CODE): Likewise.
8961 (GRUB_E820_MAX_ENTRY): Likewise.
8962 (grub_e820_mmap): New structure.
8963 (linux_kernel_header): Change the efi field according to different
8964 kernel version, also field from linux_kernel_header.
8966 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8968 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8969 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8970 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8971 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8972 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8973 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8974 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8975 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8976 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8977 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8979 * include/grub/x86_64/efi/kernel.h: New file.
8981 * include/grub/x86_64/efi/loader.h: Likewise.
8983 * include/grub/x86_64/efi/machine.h: Likewise.
8985 * include/grub/x86_64/efi/pci.h: Likewise.
8987 * include/grub/x86_64/efi/time.h: Likewise.
8989 * include/grub/x86_64/linux.h: Likewise.
8991 * include/grub/x86_64/setjmp.h: Likewise.
8993 * include/grub/x86_64/time.h: Likewise.
8995 * include/grub/x86_64/types.h: Likewise.
8997 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8998 GRUB_TARGET_SIZEOF_VOID_P.
9000 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
9001 (grub_efi_locate_handle): Likewise.
9002 (grub_efi_open_protocol): Likewise.
9003 (grub_efi_set_text_mode): Likewise.
9004 (grub_efi_stall): Likewise.
9005 (grub_exit): Likewise.
9006 (grub_reboot): Likewise.
9007 (grub_halt): Likewise.
9008 (grub_efi_exit_boot_services): Likewise.
9009 (grub_get_rtc): Likewise.
9011 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
9012 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
9013 (grub_efi_allocate_pages): Wrap efi calls.
9014 (grub_efi_free_pages): Wrap efi calls.
9015 (grub_efi_get_memory_map): Wrap efi calls.
9017 * kern/x86_64/dl.c: New file.
9019 * kern/x86_64/efi/callwrap.S: Likewise.
9021 * kern/x86_64/efi/startup.S: Likewise.
9023 * loader/efi/appleloader.c: Likewise.
9025 * loader/efi/chainloader.c (cmdline): New variable.
9026 (grub_chainloader_unload): Wrap efi calls.
9027 (grub_chainloader_boot): Likewise.
9028 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
9031 * loader/efi/chainloader_normal.c (chainloader_command):
9032 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
9035 * loader/i386/efi/linux.c (allocate_pages): Change allocation
9037 (grub_e820_add_region): New function.
9038 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
9040 (grub_find_video_card): New function.
9041 (grub_linux_setup_video): New function.
9042 (grub_rescue_cmd_linux): Probe for video information.
9044 * normal/x86_64/setjmp.S: New file.
9046 * term/efi/console.c (map_char): New function.
9047 (grub_console_putchar): Map unicode char.
9048 (grub_console_checkkey): Wrap efi calls.
9049 (grub_console_getkey): Likewise.
9050 (grub_console_getwh): Likewise.
9051 (grub_console_gotoxy): Likewise.
9052 (grub_console_cls): Likewise.
9053 (grub_console_setcolorstate): Likewise.
9054 (grub_console_setcursor): Likewise.
9056 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
9058 2008-07-16 Pavel Roskin <proski@gnu.org>
9060 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
9063 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
9064 pointer, not an integer. This fixes a warning and prevents
9065 precision loss on 64-bit systems.
9066 (relocate_addresses): Remove unneeded cast.
9068 2008-07-15 Pavel Roskin <proski@gnu.org>
9070 * kern/i386/ieee1275/init.c: Include grub/cache.h.
9072 * term/ieee1275/ofconsole.c: Disable code unused on i386.
9074 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
9075 Fix comparison between signed and unsigned.
9077 * include/grub/i386/ieee1275/console.h: Declare
9078 grub_console_init() and grub_console_fini().
9080 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
9081 It's empty and unused.
9083 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9084 beginning to avoid warnings with some compilers.
9086 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9087 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9089 2008-07-14 Pavel Roskin <proski@gnu.org>
9091 * kern/env.c (grub_register_variable_hook): Don't copy empty
9092 string, it leaks memory. Pass "" to grub_env_set(), it should
9093 handle constant strings.
9095 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9096 * commands/cmp.c (grub_cmd_cmp): Likewise.
9097 * kern/dl.c (grub_dl_flush_cache): Likewise.
9098 (grub_dl_load_core): Likewise.
9099 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9100 (grub_elf64_load_phdrs): Likewise.
9102 2008-07-13 Pavel Roskin <proski@gnu.org>
9104 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9105 between signed and unsigned.
9106 (LzmaEnc_Finish): Fix warning about an unused parameter.
9108 2008-07-13 Bean <bean123ch@gmail.com>
9110 * Makefile.in (enable_lzo): New rule.
9112 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9114 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9116 * boot/i386/pc/lnxboot.S: #include <config.h>.
9118 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9119 its value according to the compression algorithm used, lzo or lzma.
9121 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9122 compression algorithm according to configure macro.
9124 * kern/i386/pc/startup.S (codestart): Likewise.
9126 * kern/i386/pc/lzma_decode.S: New file.
9128 * include/grub/lib/LzFind.h: Likewise.
9130 * include/grub/lib/LzHash.h: Likewise.
9132 * include/grub/lib/LzmaDec.h: Likewise.
9134 * include/grub/lib/LzmaEnc.h: Likewise.
9136 * include/grub/lib/LzmaTypes.h: Likewise.
9138 * lib/LzFind.c: Likewise.
9140 * lib/LzmaDec.c: Likewise.
9142 * lib/LzmaEnc.c: Likewise.
9144 2008-07-13 Bean <bean123ch@gmail.com>
9146 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9147 (grub_ext4_extent_header): New structure.
9148 (grub_ext4_extent): Likewise.
9149 (grub_ext4_extent_idx): Likewise.
9150 (grub_ext4_find_leaf): New function.
9151 (grub_ext2_read_block): Handle extents.
9153 2008-07-12 Robert Millan <rmh@aybabtu.com>
9155 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9157 2008-07-11 Robert Millan <rmh@aybabtu.com>
9159 * util/grub.d/40_custom.in: New file. Example on how to add custom
9160 entries to /etc/grub.d.
9161 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9162 40_custom (implicitly, by merging all the grub.d rules).
9164 2008-07-11 Pavel Roskin <proski@gnu.org>
9166 * commands/read.c (grub_getline): Fix invalid memory access.
9167 Don't add newline to the variable value.
9169 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9170 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9171 (serial_hw_get_port): Check validity of the port number.
9172 (grub_cmd_serial): Check return value of serial_hw_get_port().
9174 2008-07-07 Pavel Roskin <proski@gnu.org>
9176 * boot/i386/pc/diskboot.S (notification_string): Replace
9177 "Loading kernel" with just "loading". This is shorter, less
9178 confusing and saves a few bytes for possible future changes.
9180 2008-07-05 Pavel Roskin <proski@gnu.org>
9182 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9183 size for ATAPI devices, they are undefined. Output sector
9184 number in decimal form.
9186 * disk/ata.c: Use named constants for status bits.
9188 2008-07-04 Pavel Roskin <proski@gnu.org>
9190 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9191 grub_addr_t before casting it to the void pointer to fix a
9192 warning. Non-addressable regions are discarded earlier.
9193 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9194 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9195 (check_signature): Don't shadow table_header.
9196 (grub_linuxbios_table_iterate): Cast numeric constants to
9197 grub_linuxbios_table_header_t.
9198 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9201 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9204 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9205 pointer, which can cause warnings. Support 64-bit addresses.
9207 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9208 of sizeof(long). This fixes PowerPC image generation on x86_64.
9210 2008-07-04 Robert Millan <rmh@aybabtu.com>
9212 This fixes a performance issue when pc & gpt partmap iterators
9213 didn't abort iteration even after our hook found what it was
9214 looking for (often causing expensive probes of non-existent drives).
9216 Some callers relied on previous buggy behaviour, since they would
9217 raise an error when their own hooks caused early abortion of its
9220 * kern/device.c (grub_device_open): Improve error message.
9221 * disk/lvm.c (grub_lvm_open): Likewise.
9222 * disk/raid.c (grub_raid_open): Likewise.
9224 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9225 when hook requests it, independently of grub_errno.
9226 (pc_partition_map_probe): Do not fail when find_func() caused
9227 early abortion of pc_partition_map_iterate().
9229 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9230 when hook requests it, independently of grub_errno.
9231 (gpt_partition_map_probe): Do not fail when find_func() caused
9232 early abortion of gpt_partition_map_iterate().
9234 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9235 when hook requests it, independently of grub_errno. Do not fail when
9236 part_map_iterate_hook() caused early abortion of p->iterate().
9238 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9239 when grub_partition_iterate() returned with non-zero.
9241 2008-07-03 Pavel Roskin <proski@gnu.org>
9243 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9244 like we do in grub_ata_pio_read().
9245 (grub_ata_readwrite): Always write individual sectors. Fix the
9246 sector count for the remainder.
9247 (grub_ata_write): Enable writing to ATA devices. Correctly
9248 report error for ATAPI devices.
9250 2008-07-02 Pavel Roskin <proski@gnu.org>
9252 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9255 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9256 for every read sector, we already increment it for the whole
9257 batch. This fixes reading more than 256 sectors at once.
9259 * util/grub-editenv.c (cmd_info): Cast argument to long
9260 explicitly. ptrdiff_t reduces to int on i386.
9262 * util/grub-editenv.c (main): Be specific which parameter is
9265 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9266 (memdisk): Make memdisk_orig_addr a pointer.
9268 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9269 for file offsets, use grub_off_t instead. Fix printf format
9272 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9273 there. Real unexpected warnings should not drown in the noise
9274 about known problems.
9276 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9277 grub_disk_addr_t for memory addresses.
9279 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9280 explicitly to fix a warning.
9282 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9284 * Makefile.in (MODULE_LDFLAGS): New variable.
9285 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9286 the linker accepts --build-id=none.
9287 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9289 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9291 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9292 those in Linux XFS code. Provide a way to access 64-bit parent
9294 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9295 the end of struct grub_xfs_dir_header.
9297 2008-07-02 Bean <bean123ch@gmail.com>
9299 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9300 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9301 and GRUB_IEEE1275_FLAG_NO_ANSI.
9303 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9304 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9305 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9307 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9308 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9310 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9311 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9313 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9314 esc sequence on non ANSI terminal.
9315 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9317 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9320 2008-07-02 Bean <bean123ch@gmail.com>
9322 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9323 (grub_editenv_SOURCES): New variable.
9324 (pkglib_MODULES): Add loadenv.mod.
9325 (loadenv_mod_SOURCES): New variable.
9326 (loadenv_mod_CFLAGS): Likewise.
9327 (loadenv_mod_LDFLAGS): Likewise.
9329 * include/grub/envblk.h: New file.
9331 * util/envblk.c: New file.
9333 * util/grub-editenv.c: New file.
9335 * commands/loadenv.c: New file.
9337 2008-07-01 Pavel Roskin <proski@gnu.org>
9339 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9340 not unsigned char. This fixes warnings and is consistent with
9343 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9345 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9347 * term/tparm.c (analyze): Always set *popcount.
9349 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9350 cast to fix a warning.
9352 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9353 cast to suppress a warning.
9355 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9356 grub_fshelp_read_file() expects.
9358 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9359 write uuid as a 32-bit value in CPU byte order, so declare and
9362 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9363 long if the format specifier expects it.
9364 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9365 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9366 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9367 long to fix a warning.
9368 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9369 grub_dprintf() arguments to fix warnings.
9371 2008-06-30 Pavel Roskin <proski@gnu.org>
9373 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9374 install_bsd_part immediately before core.img is embedded or
9375 modified on disk. This fixes core.img verification if core.img
9378 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9379 core_path to calculate the blocklist.
9380 Patch from Javier MartÃn <lordhabbit@gmail.com>
9382 2008-06-29 Robert Millan <rmh@aybabtu.com>
9384 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9385 block to disk block.
9386 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9387 Patch from Niels Böhm <bitbucket@arcor.de>
9389 2008-06-29 Robert Millan <rmh@aybabtu.com>
9391 * util/update-grub_lib.in (font_path): Search for fonts in
9392 /boot/grub first, which is more likely to be readable (we aren't
9393 deciding where fonts live, just looking for them).
9395 2008-06-26 Pavel Roskin <proski@gnu.org>
9397 * util/biosdisk.c (read_device_map): Don't leave dead map
9398 entries for devices failing stat() check.
9400 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9401 core_path_dev for the core.img path on the target device.
9403 2008-06-26 Robert Millan <rmh@aybabtu.com>
9405 * disk/fs_uuid.c: New file.
9406 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9407 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9408 (fs_uuid_mod_LDFLAGS): New variables.
9409 * include/grub/disk.h (grub_disk_dev_id): Add
9410 `GRUB_DISK_DEVICE_UUID_ID'.
9411 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9412 implement iterate().
9414 2008-06-26 Robert Millan <rmh@aybabtu.com>
9416 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9417 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9418 Linux image includes no initrd.
9420 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
9422 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9423 call to resolve the core image location that effectively appended the
9426 2008-06-21 Robert Millan <rmh@aybabtu.com>
9428 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9431 * util/grub.d/10_hurd.in: ... to here ...
9432 * util/grub.d/10_linux.in: ... and here.
9434 2008-06-19 Robert Millan <rmh@aybabtu.com>
9436 * kern/main.c (grub_main): Export `prefix' variable immediately
9437 after it has been set by grub_machine_set_prefix().
9439 2008-06-19 Robert Millan <rmh@aybabtu.com>
9441 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9442 search result when not saving to variable, not the other way around.
9443 When saving to variable, abort iteration as soon as a match is found.
9445 2008-06-19 Robert Millan <rmh@aybabtu.com>
9447 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9448 check for partition that provides /boot/grub. Its logic is flawed,
9449 as it prevents prepare_grub_to_access_device() from being called
9452 2008-06-19 Robert Millan <rmh@aybabtu.com>
9454 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9455 "insmod" command directly when abstraction modules are needed,
9456 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9457 since it had already been processed).
9459 2008-06-19 Pavel Roskin <proski@gnu.org>
9461 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9462 changed. This is needed in case GRUB_LIBDIR changes.
9463 * conf/i386-ieee1275.rmk: Likewise.
9464 * conf/i386-linuxbios.rmk: Likewise.
9465 * conf/i386-pc.rmk: Likewise.
9466 * conf/powerpc-ieee1275.rmk: Likewise.
9468 2008-06-18 Pavel Roskin <proski@gnu.org>
9470 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9471 kernel_elf_symlist.c to symlist.c for consistency with other
9472 architectures. Update all users.
9473 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9475 2008-06-18 Robert Millan <rmh@aybabtu.com>
9477 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9480 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9481 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9482 a RAID device, run setup() for all members independently on whether
9483 LVM abstraction is being used.
9484 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9485 If grub-mkimage has set `*install_dos_part == -2', don't override this
9487 Perform *install_dos_part adjustments independently on whether
9488 we're embedding or not.
9489 Clarify error message when image is too big for embedding.
9490 Remove duplicate *install_dos_part stanza.
9492 2008-06-17 Robert Millan <rmh@aybabtu.com>
9494 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9495 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9497 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9498 values in grub_ofconsole_normal_color and
9499 grub_ofconsole_highlight_color (they're not directly related to
9500 background and foreground).
9501 (grub_ofconsole_setcolorstate): Extract background and foreground
9502 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9504 2008-06-17 Robert Millan <rmh@aybabtu.com>
9506 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9507 /boot/grub for the check in last commit, not /boot (they could be
9508 different partitions).
9510 2008-06-16 Robert Millan <rmh@aybabtu.com>
9512 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9513 asked to setup access for the same partition that provides /boot,
9514 don't bother using UUIDs since our root already has the value we
9517 2008-06-16 Robert Millan <rmh@aybabtu.com>
9519 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9521 Patch from Sven Mueller <sven@debian.org>.
9523 2008-06-16 Robert Millan <rmh@aybabtu.com>
9525 * util/update-grub.in: Check for $EUID instead of $UID.
9526 Reported by Vincent Zweije.
9528 2008-06-16 Bean <bean123ch@gmail.com>
9530 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9531 (grub_ext2_read_block): Likewise.
9532 (grub_ext2_read_inode): Likewise.
9533 (grub_ext2_mount): Likewise.
9534 (grub_ext2_close): Likewise.
9535 (grub_ext3_get_journal): Removed.
9537 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9538 (grub_reiserfs_read_symlink): Likewise.
9539 (grub_reiserfs_mount): Likewise.
9540 (grub_reiserfs_open): Likewise.
9541 (grub_reiserfs_read): Likewise.
9542 (grub_reiserfs_close): Likewise.
9543 (grub_reiserfs_get_journal): Removed.
9545 * fs/fshelp.c (grub_fshelp_read): Removed.
9546 (grub_fshelp_map_block): Likewise.
9548 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9549 (grub_fshelp_journal): Likewise.
9550 (grub_fshelp_read): Likewise.
9551 (grub_fshelp_map_block): Likewise.
9553 2008-06-16 Pavel Roskin <proski@gnu.org>
9555 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9556 floating point anymore.
9557 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9559 2008-06-15 Pavel Roskin <proski@gnu.org>
9561 * commands/ls.c (grub_ls_list_files): Use integer calculations
9562 for human readable format, avoid floating point use.
9563 * kern/misc.c (grub_ftoa): Remove.
9564 (grub_vsprintf): Remove floating point support.
9566 2008-06-15 Robert Millan <rmh@aybabtu.com>
9568 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9570 Reported by Max Vozeler.
9572 2008-06-15 Robert Millan <rmh@aybabtu.com>
9574 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9575 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9577 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9578 the beginning of the prefix.
9580 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9581 It is assumed that if we have a memdisk, grub-mkimage has set
9582 grub_prefix to include the "(memdisk)" drive in it.
9584 2008-06-15 Robert Millan <rmh@aybabtu.com>
9586 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9587 Initialize keyboard controller after registering the terminal, so that
9588 grub_printf() can be called from grub_keyboard_controller_init().
9590 2008-06-15 Robert Millan <rmh@aybabtu.com>
9592 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9593 extent-btree which is written as big endian on disk.
9594 Reported by Alain Greppin <al@chilibi.org>.
9596 2008-06-14 Robert Millan <rmh@aybabtu.com>
9598 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9599 * util/i386/pc/grub-install.in (modules): Likewise.
9601 2008-06-13 Pavel Roskin <proski@gnu.org>
9603 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9605 2008-06-13 Bean <bean123ch@gmail.com>
9607 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9609 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9611 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9612 to indicate sparse block.
9614 2008-06-12 Pavel Roskin <proski@gnu.org>
9616 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9617 number, grub_fshelp_read() does it for us.
9619 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9620 linear disk read with journal translation.
9621 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9622 * include/grub/fshelp.h: Declare grub_fshelp_read().
9624 2008-06-09 Pavel Roskin <proski@gnu.org>
9626 * fs/minix.c (grub_minix_mount): Handle error reading
9629 2008-06-08 Robert Millan <rmh@aybabtu.com>
9631 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9632 don't append the RAID prefix afterwards.
9633 Reported by Clint Adams.
9635 2008-06-08 Robert Millan <rmh@aybabtu.com>
9637 Based on description from Pavel:
9638 * kern/disk.c (grub_disk_check_range): Rename to ...
9639 (grub_disk_adjust_range): ... this. Add a comment explaining the
9640 tasks performed by this function.
9642 2008-06-08 Robert Millan <rmh@aybabtu.com>
9644 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9645 `num_serial' (for consistency with other variables).
9646 (struct grub_ntfs_data): Add `uuid' member.
9647 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9648 (grub_ntfs_uuid): New function.
9649 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9651 2008-06-07 Pavel Roskin <proski@gnu.org>
9653 * util/biosdisk.c (open_device): Revert last change to the
9654 function, it broke installation. The sector needs to be
9655 different dependent on which device is opened.
9657 2008-06-06 Robert Millan <rmh@aybabtu.com>
9659 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9660 rest of GRUB, and breakage doesn't happen if its value were modified.
9662 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9663 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9664 a constant (same value).
9665 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9666 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9668 2008-06-06 Robert Millan <rmh@aybabtu.com>
9670 * util/biosdisk.c (open_device): Do not modify sector offset when
9671 accessing a partition. kern/disk.c already handles this for us.
9673 2008-06-06 Robert Millan <rmh@aybabtu.com>
9675 * util/grub-emu.c (grub_machine_init): Move code in this function from
9677 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9678 segfault in case grub_printf() is called).
9680 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9681 grub_probe. Update all users not to explicitly add it again.
9682 (grub_device): New variable; contains corresponding device for grubdir.
9683 (fs_module, partmap_module, devabstraction_module): Pass
9684 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9687 2008-06-05 Robert Millan <rmh@aybabtu.com>
9689 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9690 is found, print it (same layout as with labels).
9692 2008-06-04 Robert Millan <rmh@aybabtu.com>
9694 * util/biosdisk.c (get_drive): Rename to ...
9695 (find_grub_drive): ... this. Update all users.
9697 (get_os_disk): Rename to ...
9698 (convert_system_partition_to_system_disk): ... this. Update all users.
9700 (find_drive): Rename to ...
9701 (find_system_device): ... this. Update all users.
9703 2008-06-04 Robert Millan <rmh@aybabtu.com>
9705 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9706 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9707 (make_device_map): Likewise.
9709 2008-06-01 Robert Millan <rmh@aybabtu.com>
9711 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9712 before dereferencing it.
9714 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9715 union with fat12/fat16-specific ones. Add some new fields, including
9716 `num_serial' for both versions.
9717 (struct grub_fat_data): Add `uuid' member.
9718 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9719 names. Initialize `data->uuid' using `num_serial'.
9720 (grub_fat_uuid): New function.
9721 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9723 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9724 (grub_reiserfs_uuid): New function.
9725 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9728 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9729 (grub_xfs_uuid): New function.
9730 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9732 2008-06-01 Robert Millan <rmh@aybabtu.com>
9734 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9735 code that is backward compatible with pre-uuid search command.
9737 2008-05-31 Robert Millan <rmh@aybabtu.com>
9739 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9740 floppies after everything else, to ensure floppy drive isn't accessed
9741 unnecessarily (patch from Bean).
9743 2008-05-31 Robert Millan <rmh@aybabtu.com>
9745 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9746 not print device names when we were asked to set a variable.
9748 2008-05-31 Robert Millan <rmh@aybabtu.com>
9750 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9751 using "cursor-on" and "cursor-off" commands (understood at least by
9752 the Open Firmware flavour on OLPC).
9754 2008-05-31 Michael Gorven <michael@gorven.za.net>
9756 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9757 on and off sequences.
9759 2008-05-31 Robert Millan <rmh@aybabtu.com>
9761 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9762 * util/update-grub.in: Likewise.
9764 2008-05-30 Pavel Roskin <proski@gnu.org>
9766 * util/biosdisk.c (linux_find_partition): Simplify logic and
9767 make the code more universal. Keep special processing for
9768 devfs, but use a simple rule for all other devices. If the
9769 device ends with a number, append 'p' and the partition number.
9770 Otherwise, append only the partition number.
9772 2008-05-30 Robert Millan <rmh@aybabtu.com>
9774 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9775 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9776 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9777 the `root' parameter to Linux.
9779 2008-05-30 Robert Millan <rmh@aybabtu.com>
9781 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9782 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9783 --fs_uuid with --fs-uuid.
9784 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9785 all filesystems support them).
9787 2008-05-30 Robert Millan <rmh@aybabtu.com>
9789 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9790 grub_printf() flags, since we're printing in units of 2 bytes.
9792 2008-05-30 Robert Millan <rmh@aybabtu.com>
9794 * util/grub.d/00_header.in: Remove obsolete comment referencing
9795 convert_system_path_to_grub_path().
9796 * util/update-grub.in: Likewise.
9797 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9798 (convert_system_path_to_grub_path): Add a warning message explaining
9799 that this function is deprecated. Rely on is_path_readable_by_grub()
9800 for the readability checks.
9801 (font_path): Use is_path_readable_by_grub() for the readability
9802 check rather than convert_system_path_to_grub_path().
9804 2008-05-30 Robert Millan <rmh@aybabtu.com>
9806 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9807 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9808 converting it first.
9809 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9810 grub.cfg for access to font file, and afterwards call it again to set
9813 2008-05-30 Robert Millan <rmh@aybabtu.com>
9815 * commands/search.c (options): Add --fs_uuid option.
9816 (search_fs_uuid): New function.
9817 (grub_cmd_search): Fix --set argument passing.
9818 Use search_fs_uuid() when requested via --fs_uuid.
9819 (grub_search_init): Update help message.
9820 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9821 and redeclare it as an array of 16-bit words.
9822 (grub_ext2_uuid): New function.
9823 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9824 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9825 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9826 (GRUB_DEVICE_BOOT_UUID): New variables.
9827 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9828 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9830 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9831 just assume `root' variable has the right value.
9832 * util/grub.d/10_linux.in: Likewise.
9833 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9835 (main): Recognise `-t fs_uuid' argument.
9837 2008-05-30 Robert Millan <rmh@aybabtu.com>
9839 * util/biosdisk.c (map): Redefine structure to hold information
9840 about GRUB drive name.
9841 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9843 (call_hook): Remove.
9844 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9845 member. Assume drive has partitions.
9846 (grub_util_biosdisk_open): Access device names via `.device' struct
9848 (open_device): Likewise.
9849 (find_drive): Likewise.
9850 (read_device_map): Adjust map[] usage to match the new struct
9851 definition. Don't check for duplicates (still possible, but not cheap
9853 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9854 (make_device_name): Remove assumption of BIOS-like drive names.
9856 2008-05-30 Pavel Roskin <proski@gnu.org>
9858 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9859 compiling execute.c doesn't need grub_script.tab.h anymore.
9860 (normal/command.c_DEPENDENCIES): Likewise.
9861 (normal/function.c_DEPENDENCIES): Likewise.
9862 * conf/i386-ieee1275.rmk: Likewise.
9863 * conf/i386-linuxbios.rmk: Likewise.
9864 * conf/i386-pc.rmk: Likewise.
9865 * conf/powerpc-ieee1275.rmk: Likewise.
9866 * conf/sparc64-ieee1275.rmk: Likewise.
9868 2008-05-29 Pavel Roskin <proski@gnu.org>
9870 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9871 when scanning metadata for volume group name.
9873 * include/grub/script.h: Don't include grub_script.tab.h. It's
9874 a generated file, which may only be included from the files with
9875 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9876 use union YYSTYPE, as the later allows forward declaration.
9877 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9879 2008-05-29 Robert Millan <rmh@aybabtu.com>
9881 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9882 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9883 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9884 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9887 2008-05-29 Robert Millan <rmh@aybabtu.com>
9889 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9890 control key combinations.
9892 2008-05-29 Robert Millan <rmh@aybabtu.com>
9894 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9895 * util/ieee1275/grub-install.in: ... to here.
9896 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9897 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9898 (grub_install_SOURCES): Likewise.
9900 2008-05-29 Robert Millan <rmh@aybabtu.com>
9902 * fs/affs.c: Update copyright year.
9903 * fs/ext2.c: Likewise.
9904 * fs/fshelp.c: Likewise.
9905 * fs/hfsplus.c: Likewise.
9906 * fs/ntfs.c: Likewise.
9907 * fs/xfs.c: Likewise.
9908 * include/grub/fshelp.h: Likewise.
9909 * util/grub-mkdevicemap.c: Likewise.
9911 2008-05-28 Robert Millan <rmh@aybabtu.com>
9913 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9914 might need to be fatfs to support some firmware implementations
9917 2008-05-28 Robert Millan <rmh@aybabtu.com>
9919 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9921 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9922 (make_device_map): Likewise.
9924 2008-05-20 Bean <bean123ch@gmail.com>
9926 * fs/fshelp.c (grub_fshelp_map_block): New function.
9927 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9928 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9930 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9931 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9932 (grub_fshelp_journal): New structure.
9933 (grub_fshelp_map_block): New function prototype.
9934 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9935 (grub_fshelp_map_block): Likewise.
9937 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9938 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9939 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9940 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9941 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9942 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9943 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9944 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9945 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9946 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9947 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9948 (grub_ext2_sblock): New members for journal support.
9949 (grub_ext3_journal_header): New structure.
9950 (grub_ext3_journal_revoke_header): Likewise.
9951 (grub_ext3_journal_block_tag): Likewise.
9952 (grub_ext3_journal_sblock): Likewise.
9953 (grub_fshelp_node): New members logfile and journal.
9954 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9955 grub_fshelp_map_block to get real block number.
9956 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9958 (grub_ext2_read_inode): Likewise.
9959 (grub_ext3_get_journal): New function.
9960 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9961 (grub_ext2_close): Release memory used by journal.
9963 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9964 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9965 (grub_reiserfs_transaction_header): Renamed to
9966 grub_reiserfs_description_block, replace field data with real_blocks.
9967 (grub_reiserfs_commit_block): New structure.
9968 (grub_reiserfs_data): New member journal.
9969 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9971 (grub_reiserfs_read_symlink): Likewise.
9972 (grub_reiserfs_iterate_dir): Likewise.
9973 (grub_reiserfs_open): Likewise.
9974 (grub_reiserfs_read): Likewise.
9975 (grub_reiserfs_get_journal): New function.
9976 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9977 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9978 using grub_reiserfs_get_journal.
9979 (grub_reiserfs_close): Release memory used by journal.
9981 * fs/affs.c (grub_affs_read_block): Change block type to
9982 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9984 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9986 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9988 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9990 * fs/udf.c (grub_udf_read_block): Change block type to
9991 grub_disk_addr_t. Use type cast to avoid warning.
9993 * fs/xfs.c (grub_xfs_read_block): Likewise.
9995 2008-05-16 Christian Franke <franke@computer.org>
9997 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9998 to ensure that break with ESC will always work.
9999 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
10000 Remove ESC from keyboard queue.
10002 2008-05-16 Christian Franke <franke@computer.org>
10004 * util/biosdisk.c: [__CYGWIN__] Add includes.
10005 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
10006 (get_os_disk): Move variable declarations to OS specific
10007 parts to avoid warning.
10008 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
10009 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
10010 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
10012 * util/getroot.c: [__CYGWIN__] Add includes.
10013 (strip_extra_slashes): Fix "/" case.
10014 [__CYGWIN__] (get_win32_path): New function.
10015 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
10016 [__CYGWIN__] (find_root_device): Disable.
10017 [__CYGWIN__] (get_bootsec_serial): New function.
10018 [__CYGWIN__] (find_cygwin_root_device): Likewise.
10019 [__linux__] (grub_guess_root_device): Add early returns to simplify
10021 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
10022 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
10023 check for Linux only.
10025 2008-05-15 Bean <bean123ch@gmail.com>
10027 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
10028 keyboard hang problem in apple's intel mac.
10030 2008-05-09 Robert Millan <rmh@aybabtu.com>
10032 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
10034 * util/grub-mkdevicemap.c (get_virtio_disk_name)
10035 (make_device_map): Likewise.
10036 Reported by Aurelien Jarno <aurel32@debian.org>
10038 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
10040 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
10041 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
10042 (make_device_map): Output entries for xvd type disks.
10044 2008-05-07 Robert Millan <rmh@aybabtu.com>
10046 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
10048 * util/grub-mkdevicemap.c (get_cciss_disk_name)
10049 (make_device_map): Likewise.
10050 Reported by Roland Dreier <rdreier@cisco.com>
10052 2008-05-07 Robert Millan <rmh@aybabtu.com>
10054 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
10055 grub_strstr() call. Correct a few mistakes in failure path handling.
10057 2008-05-06 Robert Millan <rmh@aybabtu.com>
10059 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
10060 Do not print a trailing slash (therefore, the root directory is an
10062 (convert_system_path_to_grub_path): Do not remove trailing slash
10063 from make_system_path_relative_to_its_root() output.
10065 * util/i386/pc/grub-install.in: Add trailing slash to output from
10066 make_system_path_relative_to_its_root().
10068 2008-05-06 Robert Millan <rmh@aybabtu.com>
10070 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
10071 ensures that output lines aren't intermangled with those sent to
10072 stderr (via grub_util_info()).
10073 * util/grub-probe.c (grub_refresh): Likewise.
10074 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
10076 2008-05-05 Christian Franke <franke@computer.org>
10078 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
10079 Add Cygwin device names.
10080 (get_ide_disk_name) [__CYGWIN__]: Likewise.
10081 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10082 (check_device): Return error instead of success on empty name.
10083 (make_device_map): Move label inside linux specific code to
10084 prevent compiler warning.
10086 2008-04-30 Robert Millan <rmh@aybabtu.com>
10088 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10089 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10091 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10093 2008-04-29 Robert Millan <rmh@aybabtu.com>
10095 * docs/grub.cfg: New file (example GRUB configuration).
10097 2008-04-26 Robert Millan <rmh@aybabtu.com>
10099 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10100 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10101 and `disk/ieee1275/nand.c'.
10103 2008-04-25 Bean <bean123ch@gmail.com>
10105 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10108 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10109 change the buffer size to 4096 for cdrom device.
10111 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10113 (_linux_mod_SOURCES): New variable.
10114 (_linux_mod_CFLAGS): Likewise.
10115 (_linux_mod_LDFLAGS): Likewise.
10116 (linux_mod_SOURCES): Likewise.
10117 (linux_mod_CFLAGS): Likewise.
10118 (linux_mod_LDFLAGS): Likewise.
10119 (nand_mod_SOURCES): Likewise.
10120 (nand_mod_CFLAGS): Likewise.
10121 (nand_mod_LDFLAGS): Likewise.
10123 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10124 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10125 type property. (nand device in olpc don't have this property)
10127 * include/grub/disk.h (grub_disk_dev_id): New macro
10128 GRUB_DISK_DEVICE_NAND_ID.
10130 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10131 function prototype.
10132 (grub_rescue_cmd_initrd): Likewise.
10134 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10135 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10136 ofw_cif_handler and ofw_idt, adjust padding number.
10138 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10139 GRUB_MACHINE_IEEE1275 is defined.
10141 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10142 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10144 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10145 on nested function heap_init.
10146 (grub_upper_mem): New variable for i386-ieee1275.
10147 (grub_get_extended_memory): New function for i386-ieee1275.
10148 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10150 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10151 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10154 * loader/i386/ieee1275/linux.c: New file.
10156 * loader/i386/ieee1275/linux_normal.c: New file.
10158 * disk/ieee1275/nand.c: New file.
10160 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10162 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10164 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10166 2008-04-18 Robert Millan <rmh@aybabtu.com>
10168 Restructures early code path on ieee1275 to unify grub_main() as
10169 the first C function that is executed in every platform.
10171 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10172 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10174 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10175 * kern/ieee1275/cmain.c (cmain): Rename to ...
10176 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10177 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10180 2008-04-18 Robert Millan <rmh@aybabtu.com>
10182 * util/update-grub.in: Fix syntax error when setting
10183 `GRUB_PRELOAD_MODULES'.
10184 Reported by Stephane Chazelas <stephane@artesyncp.com>
10186 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10188 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10189 section into account, newer toolchains generate unique build ids
10190 * configure.ac: remove the test for --build-id=none acceptance,
10191 we want build ids to be preserved
10192 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10193 far from other sections don't cause the raw binary images grow
10196 2008-04-15 Robert Millan <rmh@aybabtu.com>
10198 * disk/lvm.c: Update copyright year.
10199 * kern/misc.c: Likewise.
10201 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10203 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10204 there is no memory left for physical volume name.
10206 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10208 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10209 volume name mapping to support bigger than 9 character names properly.
10211 2008-04-13 Robert Millan <rmh@aybabtu.com>
10213 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10214 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10216 2008-04-13 Christian Franke <franke@computer.org>
10218 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10219 to create a floppy emulation boot CD when non emulation mode
10221 Enable Joliet CD filesystem extension.
10223 2008-04-13 Robert Millan <rmh@aybabtu.com>
10225 * kern/misc.c (grub_strncat): Fix off-by-one error.
10226 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10228 * kern/env.c (grub_env_context_close): Clear current context, not
10230 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10232 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10234 2008-04-13 Robert Millan <rmh@aybabtu.com>
10236 Improve robustness when handling LVM.
10238 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10239 (and leave `*p' unmodified).
10240 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10242 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10243 iterating through it.
10244 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10246 (grub_lvm_scan_device): Check the return value (and fail gracefully
10247 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10248 Don't assume `vg->pvs != NULL' when iterating through it.
10250 2008-04-13 Robert Millan <rmh@aybabtu.com>
10252 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10253 * genmk.rb (partmap): New variable.
10254 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10255 (#{partmap}): New target rule.
10256 * genpartmaplist.sh: New file.
10257 * Makefile.in (pkglib_DATA): Add partmap.lst.
10258 (partmap.lst): New target rule.
10259 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10260 modules (including all partition maps), instead of preloading them.
10262 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10264 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10265 `linux-boot-prober' (if installed) to detect other operating
10266 systems which are installed on the computer and add them to
10268 * conf/common.rmk: Build and install 30_os-prober.
10270 2008-04-12 Robert Millan <rmh@aybabtu.com>
10272 * kern/powerpc/ieee1275/init.c: Move from here ...
10273 * kern/ieee1275/init.c: ... to here. Update all users.
10275 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10276 * kern/ieee1275/cmain.c: ... to here. Update all users.
10278 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10279 * kern/ieee1275/openfw.c: ... to here. Update all users.
10281 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10282 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10284 2008-04-10 Pavel Roskin <proski@gnu.org>
10286 * configure.ac: Always use "_cv_" in cache variables for
10287 compatibility with Autoconf 2.62.
10289 2008-04-07 Robert Millan <rmh@aybabtu.com>
10291 Revert grub/machine/init.h addition by Pavel (since it breaks on
10292 i386-ieee1275 and others):
10293 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10294 * util/powerpc/ieee1275/misc.c: Likewise.
10296 2008-04-07 Robert Millan <rmh@aybabtu.com>
10298 * util/grub-probe.c (probe): Improve error message.
10300 2008-04-07 Robert Millan <rmh@aybabtu.com>
10302 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10303 (this prevents the presence of a bogus entry from ruining the whole
10306 2008-04-06 Pavel Roskin <proski@gnu.org>
10308 * util/biosdisk.c: Include grub/util/biosdisk.h.
10309 * util/grub-fstest.c (execute_command): Make static.
10310 * util/grub-mkdevicemap.c (check_device): Likewise.
10311 * util/i386/pc/misc.c: Include grub/machine/init.h.
10312 * util/powerpc/ieee1275/misc.c: Likewise.
10313 * util/lvm.c: Include grub/util/lvm.h.
10314 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10316 * util/raid.c: Include grub/util/raid.h.
10317 (grub_util_getdiskname): Make static.
10319 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10320 grub_hostfs_fini(), as they are called from grub_init_all() and
10321 grub_fini_all() respectively. This fixes an infinite loop in
10322 grub-fstest due to double registration of hostfs.
10323 Reported by Christian Franke <Christian.Franke@t-online.de>
10325 2008-04-05 Pavel Roskin <proski@gnu.org>
10327 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10328 all 8 functions. Otherwise, probe function 0 only.
10330 2008-04-04 Pavel Roskin <proski@gnu.org>
10332 * commands/lspci.c (grub_lspci_iter): Print the bus number
10335 * commands/lspci.c (grub_pci_classes): Fix typos.
10336 (grub_lspci_iter): Don't print func twice. Print vendor ID
10337 before device ID, as it's normally done.
10339 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10340 Fix signedness warnings.
10341 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10343 * util/ieee1275/get_disk_name.c: Include config.h so that
10344 _GNU_SOURCE is defined and getline() is declared. Mark an
10345 unused argument as such. Fix a signedness warning.
10347 2008-04-02 Pavel Roskin <proski@gnu.org>
10349 * genkernsyms.sh.in: Use more robust assignments for CC and
10350 srcdir. Quote srcdir.
10351 * gensymlist.sh.in: Likewise. Assert at the compile time that
10352 the symbol table is not empty.
10354 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10355 * fs/cpio.c (grub_cpio_read): Likewise.
10357 2008-04-01 Pavel Roskin <proski@gnu.org>
10359 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10360 * disk/host.c (grub_host_open): Likewise.
10361 * disk/loopback.c (grub_loopback_open): Likewise.
10362 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10363 disk->id as in disk/host.c, not a multi-character constant.
10365 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10366 later is obsolete, potentially dangerous and sets a bad example.
10367 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10368 * util/misc.c (grub_util_get_image_size): Likewise.
10370 * disk/loopback.c (options): Improve help for "--partitions".
10372 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10373 options to align them with the short options, e.g. "echo -e".
10375 2008-03-31 Bean <bean123ch@gmail.com>
10377 * video/reader/png.c (grub_png_data): New member is_16bit and
10379 (grub_png_decode_image_header): Detect 16 bit png image.
10380 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10381 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10382 (grub_video_reader_png): Release memory occupied by image_data.
10384 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10386 (grub_nfs_mount): Skip the test for sector per cluster.
10388 * include/grub/ntfs.h (MAX_SPC): Removed.
10390 2008-03-31 Bean <bean123ch@gmail.com>
10392 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10393 (grub_probe_SOURCES): Add fs/afs.c.
10394 (grub_fstest_SOURCES): Likewise.
10395 (afs_mod_SOURCES): New variable.
10396 (afs_mod_CFLAGS): Likewise.
10397 (afs_mod_LDFLAGS): Likewise.
10399 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10400 (grub_emu_SOURCES): Likewise.
10402 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10404 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10406 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10410 * fs/afs.c: New file.
10412 2008-03-30 Pavel Roskin <proski@gnu.org>
10414 * disk/host.c: Include grub/misc.h to fix a warning.
10415 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10416 warnings about implicit declarations.
10418 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10420 * include/grub/i386/loader.h: Change declaration of
10421 grub_linux_boot() to match what grub_loader_set() expects.
10422 * util/getroot.c (grub_guess_root_device): Return const char* to
10424 * util/grub-probe.c (probe): Fix a warning about uninitialized
10425 abstraction_name variable.
10426 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10427 second argument as unused to fix a warning.
10429 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10430 missing grub_error() call.
10432 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10433 2.60 and newer uses it to define datadir.
10435 * commands/sleep.c: Fix warning about implicit declaration.
10436 * disk/memdisk.c: Likewise.
10437 * loader/aout.c: Likewise.
10438 * loader/i386/bsd_normal.c: Likewise.
10439 * util/grub-probe.c: Likewise.
10441 * commands/i386/cpuid.c (has_longmode): Make static.
10442 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10443 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10445 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10446 GDT. This is more robust, as %ds can change.
10447 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10448 calling real_to_prot().
10449 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10451 2008-03-28 Pavel Roskin <proski@gnu.org>
10453 * kern/i386/pc/startup.S: Assert that uncompressed functions
10454 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10455 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10456 code, as they push parts of the code (error handlers) beyond
10457 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10458 code as correctness and size.
10460 2008-03-28 Pavel Roskin <proski@gnu.org>
10462 * kern/i386/pc/startup.S
10463 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10464 data block address to the real mode, keep offset minimal. This
10465 works around a bug in AWARD BIOS on old Athlon systems, which
10466 makes CD detection hang.
10468 2008-03-26 Pavel Roskin <proski@gnu.org>
10470 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10472 * include/grub/normal.h: Add grub_parse_color_name_pair()
10475 2008-03-24 Bean <bean123ch@gmail.com>
10477 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10478 (cd_count): Removed.
10479 (cd_drive): New variable.
10480 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10481 (grub_biosdisk_call_hook): Likewise.
10482 (grub_biosdisk_iterate): Change cdrom detection method.
10483 (grub_biosdisk_open): Replace cd_start with cd_drive.
10484 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10485 detect cdrom device.
10487 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10489 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10490 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10491 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10492 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10493 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10494 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10495 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10496 (grub_biosdisk_cdrp): New structure.
10497 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10499 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10501 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10504 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10507 2008-03-20 Robert Millan <rmh@aybabtu.com>
10509 Remove 2 TiB limit in ata.mod.
10510 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10511 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10512 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10513 grub_uint64_t instead of grub_uint32_t.
10515 2008-03-05 Bean <bean123ch@gmail.com>
10517 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10518 (grub_multiboot): Set boot device.
10520 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10522 2008-03-02 Bean <bean123ch@gmail.com>
10524 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10527 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10529 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10532 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10535 * docs/fdl.texi: New file.
10537 * docs/mdate-sh: New file. Copied from gnulib.
10538 * docs/texinfo.tex: Likewise.
10540 * config.guess: Updated from gnulib.
10541 * install-sh: Likewise.
10543 2008-02-28 Robert Millan <rmh@aybabtu.com>
10545 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10546 (aout_mod_SOURCES): New variable.
10547 (aout_mod_CFLAGS): Likewise.
10548 (aout_mod_LDFLAGS): Likewise.
10550 * conf/i386-ieee1275.rmk: Likewise.
10552 2008-02-28 Robert Millan <rmh@aybabtu.com>
10554 * util/update-grub.in: Reorganise terminal validity check. Accept
10555 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10556 Based on suggestion by Franklin PIAT.
10558 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10560 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10562 * util/getroot.c (grub_util_check_block_device): New function that
10563 returns the given argument if it is a block device and returns NULL else.
10564 * util/grub-probe.c (argument_is_device): New variable.
10565 (probe): Promote device_name from a variable to an argument. Receive
10566 device_name from grub_util_check_block_device() if path is NULL and from
10567 grub_guess_root_device() else. Do not free() device_name anymore.
10568 (options): Introduce new parameter '-d, --device'.
10569 (main): Add description of the new parameter to the help screen.
10570 Rename path variable to argument. Set argument_is_device if the '-d'
10571 option is given. Pass argument to probe() depending on
10572 argument_is_device.
10574 2008-02-24 Bean <bean123ch@gmail.com>
10576 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10577 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10578 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10579 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10580 (GRUB_ISO9660_VOLDESC_END): Likewise.
10581 (grub_iso9660_primary_voldesc): New member escape.
10582 (grub_iso9660_data): New member joliet.
10583 (grub_iso9660_convert_string): New function.
10584 (grub_iso9660_mount): Detect joliet extension.
10585 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10586 (grub_iso9660_iso9660_label): Likewise.
10588 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10589 (grub_setup_SOURCES): Add fs/udf.c.
10590 (grub_fstest_SOURCES): Likewise.
10591 (udf_mod_SOURCES): New variable.
10592 (udf_mod_CFLAGS): Likewise.
10593 (udf_mod_LDFLAGS): Likewise.
10595 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10596 (grub_emu_SOURCES): Likewise.
10598 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10600 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10602 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10604 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10606 * fs/udf.c: New file.
10608 2008-02-24 Robert Millan <rmh@aybabtu.com>
10610 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10611 (normal/lexer.c_DEPENDENCIES): New variables.
10612 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10613 (normal/lexer.c_DEPENDENCIES): Likewise.
10614 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10615 (normal/lexer.c_DEPENDENCIES): Likewise.
10616 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10617 (normal/lexer.c_DEPENDENCIES): Likewise.
10618 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10619 (normal/lexer.c_DEPENDENCIES): Likewise.
10620 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10621 (normal/lexer.c_DEPENDENCIES): Likewise.
10623 2008-02-23 Robert Millan <rmh@aybabtu.com>
10625 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10626 since they were intended to be in hex. This didn't break previously
10627 because of a bug in gpt_partition_map_iterate() (see below).
10629 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10630 when checking the validity of GPT header.
10631 Remove `partno', since it always provides the same information as `i'.
10633 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10635 * include/grub/efi/time.h: Fix a wrong comment.
10637 2008-02-19 Pavel Roskin <proski@gnu.org>
10639 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10642 2008-02-19 Bean <bean123ch@gmail.com>
10644 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10645 (aout_mod_SOURCES): New variable.
10646 (aout_mod_CFLAGS): Likewise.
10647 (aout_mod_LDFLAGS): Likewise.
10648 (_bsd_mod_SOURCES): New variable.
10649 (_bsd_mod_CFLAGS): Likewise.
10650 (_bsd_mod_LDFLAGS): Likewise.
10651 (bsd_mod_SOURCES): New variable.
10652 (bsd_mod_CFLAGS): Likewise.
10653 (bsd_mod_LDFLAGS): Likewise.
10655 * include/grub/aout.h: New file.
10657 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10659 * include/grub/i386/bsd.h: New file.
10661 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10664 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10665 function is called, so that it's possible to change it inside the hook.
10666 (grub_elf64_load): Likewise.
10667 (grub_elf_file): Don't close the file if elf header is not found.
10668 (grub_elf_close): Close the file if grub_elf_file fails (The new
10669 grub_elf_file won't close it).
10670 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10671 (grub_elf64_size): Likewise.
10673 * kern/i386/loader.S (grub_unix_real_boot): New function.
10675 * loader/aout.c: New file.
10677 * loader/i386/bsd.c: New file.
10679 * loader/i386/bsd_normal.c: New file.
10681 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10683 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10684 can test other formats.
10686 2008-02-19 Robert Millan <rmh@aybabtu.com>
10688 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10689 (grub_gpt_partition_type_empty): Redefine with macro from
10690 `<grub/gpt_partition.h>'.
10691 (gpt_partition_map_iterate): Adjust partition type comparison.
10693 Export `entry' as partmap-specific `part.data' struct.
10694 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10696 * include/grub/gpt_partition.h (grub_gpt_header)
10697 (grub_gpt_partentry): ... to here (new file).
10699 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10701 (grub_gpt_partition_type_bios_boot): New const variable, defined
10702 with macro from `<grub/gpt_partition.h>'.
10704 (setup): Replace `first_start' with `embed_region', which keeps
10705 track of the embed region (and is partmap-agnostic).
10707 Replace find_first_partition_start() with find_usable_region(),
10708 which finds a usable region for embedding using partmap-specific
10709 knowledge (supports PC/MSDOS and GPT).
10711 Fix all assumptions that the embed region start at sector 1, using
10712 `embed_region.start' from now on. Similarly, use `embed_region.end'
10713 rather than `first_start' to calculate available size.
10715 In grub_util_info() message, replace "into after the MBR" with an
10716 indication of the specific sector our embed region starts at.
10718 2008-02-19 Robert Millan <rmh@aybabtu.com>
10720 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10721 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10722 `commands/reboot.c'.
10723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10724 (halt_mod_SOURCES): Likewise.
10725 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10726 (halt_mod_SOURCES): Likewise.
10728 2008-02-17 Christian Franke <franke@computer.org>
10730 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10732 2008-02-17 Robert Millan <rmh@aybabtu.com>
10734 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10735 set `first_start' to 0 for non-PC/MSDOS partition maps.
10737 2008-02-16 Robert Millan <rmh@aybabtu.com>
10739 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10740 do not assume partition map is PC/MSDOS before performing checks that
10741 are specific to that layout.
10743 2008-02-13 Robert Millan <rmh@aybabtu.com>
10745 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10746 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10747 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10749 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10751 * configure.ac: Only a cosmetic change on the handling of
10752 -fno-stack-protector.
10754 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10756 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10757 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10759 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10760 (halt_mod_SOURCES): New variable.
10761 (halt_mod_CFLAGS): Likewise.
10762 (halt_mod_LDFLAGS): Likewise.
10763 (reboot_mod_SOURCES): Likewise.
10764 (reboot_mod_CFLAGS): Likewise.
10765 (reboot_mod_LDFLAGS): Likewise.
10767 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10768 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10770 (halt_mod_SOURCES): Likewise.
10771 (reboot_mod_SOURCES): Likewise.
10773 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10774 commands/i386/pc/reboot.c by commands/reboot.c.
10775 (reboot_mod_SOURCES): Likewise.
10777 * commands/i386/pc/reboot.c: merge this file ...
10779 * commands/ieee1275/reboot.c: ... and this file ...
10781 * commands/reboot.c: ... to this file.
10782 Add some precompiler directive to include the correct header for
10785 * commands/ieee1275/halt.c: move this file ...
10787 * commands/halt.c: ... to here.
10788 Add some precompiler directive to include the correct header for
10791 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10792 (grub_halt): Likewise.
10794 * kern/efi/efi.c (grub_reboot): New function.
10795 (grub_halt): Likewise.
10797 2008-02-12 Robert Millan <rmh@aybabtu.com>
10799 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10800 /dev (like it is done for /dev/mapper). This doesn't provide support
10801 for EVMS, but at least it is now easy to identify the problem when it
10804 2008-02-11 Robert Millan <rmh@aybabtu.com>
10806 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10807 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10808 comparing it with -1, not 0.
10810 2008-02-10 Robert Millan <rmh@aybabtu.com>
10812 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10814 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10815 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10817 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10818 `disk/lvm.c' to the end of the list.
10819 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10820 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10822 2008-02-10 Robert Millan <rmh@aybabtu.com>
10824 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10825 grub_print_error() instead. This will let user know why we're entering
10827 Based on suggestions from Sam Morris.
10829 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10831 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10832 on remaining N args, instead of "--" arg N times.
10834 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10836 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10837 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10838 pattern for unknown glyphs.
10840 2008-02-09 Robert Millan <rmh@aybabtu.com>
10842 * configure.ac: Probe for `help2man'.
10843 * Makefile.in (builddir): New variable.
10844 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10845 or otherwise add a few flags/options to it.
10846 (install-local): For every executable utility or script that is
10847 installed, invoke $(HELP2MAN) to install a manpage based on --help
10850 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10851 that it doesn't prevent --help from working in build tree.
10853 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10854 with `bug-grub@gnu.org'.
10855 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10856 * util/update-grub.in (usage): New function.
10857 Implement proper argument check, with support for --help and --version
10858 (as well as existing -y).
10860 2008-02-09 Christian Franke <franke@computer.org>
10862 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10863 avoid overwriting previous output.
10864 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10866 2008-02-09 Robert Millan <rmh@aybabtu.com>
10868 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10871 2008-02-09 Robert Millan <rmh@aybabtu.com>
10873 * commands/sleep.c: New file.
10874 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10875 (sleep_mod_SOURCES): New variable.
10876 (sleep_mod_CFLAGS): Likewise.
10877 (sleep_mod_LDFLAGS): Likewise.
10879 2008-02-09 Robert Millan <rmh@aybabtu.com>
10881 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10882 situations in which we can deduce the RAID size and the superblock
10885 2008-02-09 Robert Millan <rmh@aybabtu.com>
10887 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10888 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10889 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10891 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10892 and return a grub_diskmemberlist_t composed of physical array members.
10893 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10895 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10897 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10898 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10899 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10901 * util/grub-probe.c (probe): Move partmap probing code from here ...
10902 (probe_partmap): ... to here.
10903 (probe): Use probe_partmap() once for the disk we're probing, and
10904 additionally, when such disk contains a memberlist() struct member,
10905 once for each disk that is contained in the structure returned by
10908 2008-02-09 Robert Millan <rmh@aybabtu.com>
10910 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10911 environment variable to 'all' in order to obtain debug output from
10913 * util/i386/pc/grub-setup.c (main): Likewise.
10915 2008-02-08 Robert Millan <rmh@aybabtu.com>
10917 * disk/raid.c (grub_raid_scan_device): Check for
10918 `array->device[sb.this_disk.number]' rather than for
10919 `array->device[sb.this_disk.number]->name', since the latter is not
10920 guaranteed to be accessible.
10922 2008-02-08 Robert Millan <rmh@aybabtu.com>
10924 * disk/raid.c: Update copyright.
10925 * fs/cpio.c: Likewise.
10926 * include/grub/raid.h: Likewise.
10927 * loader/i386/pc/multiboot.c: Likewise.
10928 * util/hostfs.c: Likewise.
10930 2008-02-08 Robert Millan <rmh@aybabtu.com>
10932 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10933 to a grub_disk_t array.
10934 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10936 (grub_raid_scan_device): Replace `device[x].name' accesses with
10937 `device[x]->name'. Simplify initialization of `array->device[x]'.
10939 2008-02-08 Robert Millan <rmh@aybabtu.com>
10941 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10942 grub_dprintf() calls.
10943 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10946 2008-02-07 Christian Franke <franke@computer.org>
10948 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10949 instead of fseek and ftell to support large files.
10950 (grub_hostfs_read): Likewise.
10952 2008-02-07 Robert Millan <rmh@aybabtu.com>
10954 Patch from Jeroen Dekkers.
10955 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10956 failure, since successfully reading all array members might not be
10959 2008-02-06 Robert Millan <rmh@aybabtu.com>
10961 * util/grub-probe.c (probe): Simplify partmap probing (with the
10962 assumption that the first word up to the underscore equals to
10965 2008-02-06 Christian Franke <franke@computer.org>
10967 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10968 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10969 last block of a cpio or tar stream.
10970 Check for "TRAILER!!!" instead of any empty data
10971 block to detect last block of a cpio stream.
10972 (grub_cpio_dir): Fix constness of variable np.
10973 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10974 cpio or tar trailer is detected. This fixes a crash
10975 on open of a non existing file.
10977 2008-02-05 Bean <bean123ch@gmail.com>
10979 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10981 (grub_multiboot_load_elf64): Likewise.
10982 (grub_multiboot): Initialize mbi structure.
10984 * util/grub-fstest.c: Don't include unused header file script.h.
10986 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10988 (grub_fstest_SOURCES): Likewise.
10990 2008-02-05 Robert Millan <rmh@aybabtu.com>
10992 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10993 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10994 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10995 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10997 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10998 (translation_table): Replace hardcoded values with macros
10999 provided by `<grub/term.h>'.
11001 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
11002 (keyboard_map): Correct/add a few values, with macros provided
11003 by `<grub/term.h>'.
11004 (keyboard_map_shift): Zero values that don't differ from their
11005 `keyboard_map' equivalents.
11006 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
11007 Discard the second scan code that is always sent by Caps lock.
11008 Only use `keyboard_map_shift' when it provides a non-zero value,
11009 otherwise fallback to `keyboard_map'.
11011 2008-02-04 Bean <bean123ch@gmail.com>
11013 * Makefile.in (enable_grub_fstest): New variable.
11015 * conf/common.rmk (grub_fstest_init.lst): New rule.
11016 (grub_fstest_init.h): Likewise.
11017 (grub_fstest_init.c): Likewise.
11018 (util/grub-fstest.c_DEPENDENCIES): New variable.
11019 (grub_fstest_SOURCES): Likewise.
11021 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
11023 * util/grub-fstest.c: New file.
11025 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11027 Make grub-setup handle a separate root device.
11029 * util/i386/pc/grub-setup.c (setup): Always open the root device,
11030 so that the root device can be compared with the destination
11032 When embedding the core image, if the root and destination devices
11033 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
11035 When not embedding, set ROOT_DRIVE to 0xFF.
11037 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11039 Add support for having a grub directory in a different drive. This
11040 is still only the data handling part.
11042 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
11043 (codestart): Save %dh in GRUB_ROOT_DRIVE.
11044 (grub_root_drive): New variable.
11046 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
11047 instead of GRUB_BOOT_DRIVE to construct a device name. Set
11048 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
11051 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
11053 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
11055 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
11057 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
11058 is bogus, because PXE booting does not specify any drive
11061 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
11062 am not sure if this is really correct.
11064 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
11065 is always identical to the boot drive when booting from a CD.
11067 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
11069 (root_drive): New variable.
11070 (real_start): Unconditionally set %dh to ROOT_DRIVE.
11071 (setup_sectors): Push %dx right after popping it, because %dh will
11073 (copy_buffer): Restore %dx.
11075 2008-02-03 Robert Millan <rmh@aybabtu.com>
11077 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
11078 use `cdboot.img' for cdrom images.
11080 2008-02-03 Robert Millan <rmh@aybabtu.com>
11082 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11083 only setup gfxterm when `font' command has succeeded.
11085 2008-02-03 Robert Millan <rmh@aybabtu.com>
11087 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11088 (grub_rescue_cmd_multiboot_loader)
11089 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11091 2008-02-03 Pavel Roskin <proski@gnu.org>
11093 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11094 %edx and %esi from stack only after grub_gate_a20() is called.
11095 grub_gate_a20() clobbers %edx.
11097 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11099 * configure.ac (AC_INIT): Bumped to 1.96.
11101 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11102 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11103 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11104 video/readers/png.c.
11106 2008-02-03 Bean <bean123ch@gmail.com>
11108 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11109 (cdboot_img_SOURCES): New variable.
11110 (cdboot_img_ASFLAGS): New variable.
11111 (cdboot_img_LDFLAGS): New variable.
11113 * boot/i386/pc/cdboot.S: New file.
11115 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11116 (cd_count): Likewise.
11117 (grub_biosdisk_get_drive): Add support for cd device.
11118 (grub_biosdisk_call_hook): Likewise.
11119 (grub_biosdisk_iterate): Likewise.
11120 (grub_biosdisk_open): Likewise.
11121 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11122 (grub_biosdisk_rw): Support reading from cd device.
11123 (GRUB_MOD_INIT): Iterate cd devices.
11125 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11126 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11127 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11129 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11131 2008-02-02 Robert Millan <rmh@aybabtu.com>
11133 * commands/read.c: New file.
11134 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11135 (read_mod_SOURCES): New variable.
11136 (read_mod_CFLAGS): Likewise.
11137 (read_mod_LDFLAGS): Likewise.
11139 2008-02-02 Robert Millan <rmh@aybabtu.com>
11141 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11142 determining whether menu has to be displayed.
11144 2008-02-02 Marco Gerards <marco@gnu.org>
11146 * bus/pci.c: New file.
11148 * include/grub/pci.h: Likewise.
11150 * include/grub/i386/pc/pci.h: Likewise.
11152 * commands/lspci.c: Likewise.
11154 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11156 (pci_mod_SOURCES): New variable.
11157 (pci_mod_CFLAGS): Likewise.
11158 (pci_mod_LDFLAGS): Likewise.
11159 (lspci_mod_SOURCES): Likewise.
11160 (lspci_mod_CFLAGS): Likewise.
11161 (lspci_mod_LDFLAGS): Likewise.
11163 2008-02-02 Bean <bean123ch@gmail.com>
11165 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11166 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11168 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11169 (grub_xfs_btree_node): New structure.
11170 (grub_xfs_btree_root): New structure.
11171 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11172 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11173 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11174 (GRUB_XFS_EXTENT_SIZE): Likewise.
11175 (grub_xfs_read_block): Support btree format type.
11176 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11177 Use directory block as basic unit.
11179 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11181 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11182 __attribute__ ((__regparm__ (1))).
11184 2008-02-01 Robert Millan <rmh@aybabtu.com>
11186 Correct a mistake in previous commit.
11188 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11190 (normal/command.c_DEPENDENCIES): New variable.
11192 2008-02-01 Robert Millan <rmh@aybabtu.com>
11194 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11196 (normal/command.c_DEPENDENCIES): New variable.
11197 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11198 * conf/i386-ieee1275.rmk: Likewise.
11199 * conf/i386-linuxbios.rmk: Likewise.
11200 * conf/i386-pc.rmk: Likewise.
11201 * conf/sparc64-ieee1275.rmk: Likewise.
11202 * conf/powerpc-ieee1275.rmk: Likewise.
11203 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11205 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11207 2008-02-01 Robert Millan <rmh@aybabtu.com>
11209 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11210 call at beginning of function.
11212 2008-01-31 Pavel Roskin <proski@gnu.org>
11214 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11215 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11216 (grub_mkrescue_SOURCES): Likewise.
11217 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11219 2008-01-30 Robert Millan <rmh@aybabtu.com>
11221 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11222 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11223 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11224 (grub_probe_SOURCES): ... to here.
11226 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11227 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11228 * conf/i386-ieee1275.rmk: Likewise.
11229 * conf/i386-linuxbios.rmk: Likewise.
11230 * conf/powerpc-ieee1275.rmk: Likewise.
11232 2008-01-30 Tristan Gingold <gingold@free.fr>
11234 * kern/rescue.c: Silently accept empty lines.
11236 2008-01-29 Bean <bean123ch@gmail.com>
11238 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11239 (real_code_2): Code cleanup and change comment style.
11240 (move_memory): Avoid using 32-bit address mode.
11242 2008-01-29 Bean <bean123ch@gmail.com>
11244 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11245 (png_mod_SOURCES): New variable.
11246 (png_mod_CFLAGS): Likewise.
11247 (png_mod_LDFLAGS): Likewise.
11249 * video/readers/png.c: New file.
11251 2008-01-28 Robert Millan <rmh@aybabtu.com>
11253 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11254 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11255 `ifndef GRUB_MOD_GAP' hack.
11256 * util/elf/grub-mkimage.c (add_segments): Likewise.
11258 2008-01-27 Robert Millan <rmh@aybabtu.com>
11260 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11261 `GRUB_MOD_GAP' for platforms in which it's not defined.
11262 * util/elf/grub-mkimage.c (add_segments): Likewise.
11264 2008-01-27 Robert Millan <rmh@aybabtu.com>
11266 Get grub-emu to build again (including parallel builds).
11268 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11270 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11271 (normal/execute.c_DEPENDENCIES): ... this, ...
11272 (grub-emu_DEPENDENCIES): ... and this.
11274 * conf/i386-efi.rmk: Likewise.
11275 * conf/i386-linuxbios.rmk: Likewise.
11276 * conf/i386-ieee1275.rmk: Likewise.
11277 * conf/powerpc-ieee1275.rmk: Likewise.
11278 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11280 2008-01-27 Robert Millan <rmh@aybabtu.com>
11282 * NEWS: Add a few items.
11284 2008-01-27 Robert Millan <rmh@aybabtu.com>
11286 Fix parallel builds with grub-emu. Based on earlier commit for
11287 grub-probe and grub-setup.
11289 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11290 (util/grub-emu.c_DEPENDENCIES): ... this.
11291 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11292 (util/grub-emu.c_DEPENDENCIES): ... this.
11293 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11294 (util/grub-emu.c_DEPENDENCIES): ... this.
11295 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11296 (util/grub-emu.c_DEPENDENCIES): ... this.
11297 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11298 (util/grub-emu.c_DEPENDENCIES): ... this.
11300 2008-01-27 Pavel Roskin <proski@gnu.org>
11302 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11303 to create a gap between _end and the modules added to the image
11304 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11305 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11306 * util/elf/grub-mkimage.c (add_segments): Likewise.
11308 2008-01-26 Pavel Roskin <proski@gnu.org>
11310 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11311 just return an error.
11313 2008-01-26 Bean <bean123ch@gmail.com>
11315 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11316 (grub_reiserfs_get_item): Save offset of the next item.
11317 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11319 2008-01-25 Robert Millan <rmh@aybabtu.com>
11321 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11322 make all filesystem sources appear together (possibly fixing omissions
11324 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11325 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11326 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11327 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11329 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11331 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11332 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11333 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11334 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11336 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11337 (probe): Add a sanity check to make sure of our ability to read
11338 requested files when probing for filesystem type.
11340 * genmk.rb: Update copyright year (2007).
11342 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11343 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11344 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11345 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11346 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11347 : Remove function prototypes.
11349 2008-01-25 Robert Millan <rmh@aybabtu.com>
11351 Revert my previous commits (based on wrong assumption of how grub_errno
11354 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11355 * kern/file.c (grub_file_open): Likewise.
11357 2008-01-24 Pavel Roskin <proski@gnu.org>
11359 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11360 that hang if GRUB tries to setup colors.
11361 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11362 colors for firmwares that don't support it.
11363 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11364 Recognize Open Hack'Ware, set flags to work around its
11367 2008-01-24 Robert Millan <rmh@aybabtu.com>
11369 * kern/file.c (grub_file_open): Do not account previous failures of
11370 unrelated functions when grub_errno is checked for.
11371 Reported by Oleg Strikov.
11373 2008-01-24 Bean <bean123ch@gmail.com>
11375 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11376 (grub_ufs_sblock): New member volume name.
11377 (grub_ufs_find_file): Fix string copy bug.
11378 (grub_ufs_label): Implement this function properly.
11380 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11381 (grub_hfs_iterate_records): Use the correct file number for extents
11382 and catalog file. Fix problem in next index calculation.
11383 (grub_hfs_find_node): Replace recursive function call with loop.
11384 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11386 2008-01-23 Robert Millan <rmh@aybabtu.com>
11388 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11389 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11390 (grub_multiboot2_real_boot): New function prototype.
11392 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11393 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11395 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11396 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11398 2008-01-23 Robert Millan <rmh@aybabtu.com>
11400 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11401 #ifdef'ed out grub_printf().
11403 2008-01-23 Robert Millan <rmh@aybabtu.com>
11405 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11406 grub_dprintf calls, since they make "debug=all" mode unusable.
11407 (grub_console_checkkey): Likewise.
11409 2008-01-23 Robert Millan <rmh@aybabtu.com>
11411 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11412 `term/i386/pc/at_keyboard.c'.
11413 (pkglib_MODULES): Add `serial.mod'.
11414 (serial_mod_SOURCES): New variable.
11415 (serial_mod_CFLAGS): Likewise.
11416 (serial_mod_LDFLAGS): Likewise.
11418 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11419 `<grub/powerpc/ieee1275/console.h>'.
11420 (grub_keyboard_controller_init): New function prototype.
11421 (grub_console_checkkey): Likewise.
11422 (grub_console_getkey): Likewise.
11424 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11427 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11428 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11430 2008-01-23 Robert Millan <rmh@aybabtu.com>
11432 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11433 present, "(memdisk)/boot/grub" becomes the default prefix.
11435 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11436 a memdisk tarball with all the modules. Add --overlay=DIR option that
11437 allows users to overlay additional files into the image.
11439 2008-01-23 Robert Millan <rmh@aybabtu.com>
11441 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11442 and `machine/memory.h'.
11443 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11444 (_multiboot_mod_SOURCES): New variable.
11445 (_multiboot_mod_CFLAGS): Likewise.
11446 (_multiboot_mod_LDFLAGS): Likewise.
11447 (multiboot_mod_SOURCES): Likewise.
11448 (multiboot_mod_CFLAGS): Likewise.
11449 (multiboot_mod_LDFLAGS): Likewise.
11451 * include/grub/i386/ieee1275/loader.h: New file.
11453 * include/grub/i386/ieee1275/machine.h: Likewise.
11455 * include/grub/i386/ieee1275/memory.h: Likewise.
11457 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11458 variable declaration.
11459 (grub_os_area_size): Likewise.
11461 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11462 (grub_lower_mem, grub_upper_mem): New variables.
11463 (grub_stop_floppy): New function (just to make
11464 grub_multiboot2_real_boot() happy).
11466 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11467 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11468 (grub_stop): New function.
11469 Include `"../realmode.S"' and `"../loader.S"'.
11471 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11472 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11474 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11475 rely on grub_multiboot2_real_boot() for final boot.
11477 2008-01-22 Robert Millan <rmh@aybabtu.com>
11479 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11480 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11481 device that doesn't look like an SD card.
11482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11483 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11484 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11485 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11488 2008-01-22 Robert Millan <rmh@aybabtu.com>
11490 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11491 avoid claiming over our own code.
11493 2008-01-22 Bean <bean123ch@gmail.com>
11495 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11496 (jpeg_mod_SOURCES): New variable.
11497 (jpeg_mod_CFLAGS): Likewise.
11498 (jpeg_mod_LDFLAGS): Likewise.
11500 * video/readers/jpeg.c : New file.
11502 2008-01-22 Bean <bean123ch@gmail.com>
11504 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11505 there are no more items.
11507 2008-01-21 Robert Millan <rmh@aybabtu.com>
11509 * kern/mm.c (grub_mm_init_region): Improve debug message.
11511 2008-01-21 Robert Millan <rmh@aybabtu.com>
11513 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11514 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11516 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11518 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11519 Indicates start of upper memory.
11520 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11521 (generate_image): Abort when image size is big enough to corrupt
11524 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11525 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11526 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11527 instead of hardcoding 0xA0000.
11528 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11529 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11530 instead of hardcoding 0xA0000.
11532 2008-01-21 Robert Millan <rmh@aybabtu.com>
11534 * disk/memdisk.c (memdisk_size): New variable.
11535 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11537 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11538 image to dynamic memory.
11539 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11540 `memdisk_size'. Free memdisk block.
11542 2008-01-21 Robert Millan <rmh@aybabtu.com>
11544 Fix detection of very small filesystems (like tar).
11546 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11547 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11548 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11549 a problem with this disk).
11551 2008-01-21 Robert Millan <rmh@aybabtu.com>
11553 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11554 on grub_biosdisk_rw_standard() error.
11556 2008-01-21 Robert Millan <rmh@aybabtu.com>
11558 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11560 * kern/elf.c: Likewise.
11561 * kern/ieee1275/ieee1275.c: Likewise.
11562 * kern/powerpc/ieee1275/openfw.c: Likewise.
11563 * term/ieee1275/ofconsole.c: Likewise.
11565 2008-01-21 Robert Millan <rmh@aybabtu.com>
11567 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11569 * include/grub/kernel.h (grub_arch_memdisk_addr)
11570 (grub_arch_memdisk_size): Moved from here ...
11572 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11573 (grub_arch_memdisk_size): ... to here.
11575 2008-01-21 Robert Millan <rmh@aybabtu.com>
11577 Mostly based on bugfix from Bean.
11579 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11580 attribute with hook() parameter.
11581 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11583 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11584 attribute with hook() parameter.
11585 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11588 2008-01-21 Robert Millan <rmh@aybabtu.com>
11590 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11591 (pkglib_MODULES): Add `memdisk.mod'.
11592 (memdisk_mod_SOURCES): New variable.
11593 (memdisk_mod_CFLAGS): Likewise.
11594 (memdisk_mod_LDFLAGS): Likewise.
11596 * disk/memdisk.c: New file.
11598 * include/grub/disk.h (grub_disk_dev_id): Add
11599 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11601 * include/grub/i386/pc/kernel.h
11602 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11603 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11604 (grub_kernel_image_size): New variable declaration.
11605 (grub_total_module_size): Likewise.
11606 (grub_memdisk_image_size): Likewise.
11608 * include/grub/i386/pc/memory.h
11609 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11611 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11612 (grub_arch_memdisk_addr): New variable declaration.
11613 (grub_arch_memdisk_size): Likewise.
11615 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11616 (grub_arch_memdisk_size): Likewise.
11618 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11619 (codestart): Replace hardcoded `0x100000' with
11620 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11622 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11623 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11624 not NULL, append the contents of the file it refers to, at the end of
11625 the compressed kernel image. Initialize `grub_memdisk_image_size'
11626 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11627 (options): Add "memdisk"|'m' option.
11628 (main): Parse --memdisk|-m option, and pass user-provided path as
11629 parameter to generate_image().
11631 2008-01-20 Robert Millan <rmh@aybabtu.com>
11633 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11634 grub_dprintf() calls from here ...
11635 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11637 2008-01-20 Robert Millan <rmh@aybabtu.com>
11639 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11641 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11643 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11644 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11645 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11646 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11648 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11649 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11651 2008-01-19 Robert Millan <rmh@aybabtu.com>
11653 Get rid of confusing function (superseded by
11654 `grub_ieee1275_get_integer_property')
11655 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11657 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11659 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11660 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11661 in native endianness from grub_ieee1275_get_integer_property().
11663 2008-01-19 Robert Millan <rmh@aybabtu.com>
11665 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11666 command after "shut-down", since implementations differ on which
11667 the command for halt is.
11669 2008-01-19 Robert Millan <rmh@aybabtu.com>
11671 * include/grub/i386/linuxbios/console.h: Add header protection.
11672 (grub_keyboard_controller_init): New function prototype.
11673 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11674 (KEYBOARD_COMMAND_READ): Likewise.
11675 (KEYBOARD_COMMAND_WRITE): Likewise.
11676 (KEYBOARD_SCANCODE_SET1): Likewise.
11677 (grub_keyboard_controller_write): New function.
11678 (grub_keyboard_controller_read): Likewise.
11679 (grub_keyboard_controller_init): Likewise.
11681 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11682 (grub_console_init): On coreboot/LinuxBIOS, call
11683 grub_keyboard_controller_init().
11685 2008-01-19 Robert Millan <rmh@aybabtu.com>
11687 PowerPC changes provided by Pavel Roskin.
11689 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11690 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11691 don't rely on cmain() doing it.
11692 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11693 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11695 2008-01-16 Robert Millan <rmh@aybabtu.com>
11697 * include/grub/i386/linuxbios/memory.h
11698 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11699 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11700 receive `table_header' as argument. Instead, probe for it in the
11701 known memory ranges where it can be present.
11702 (grub_available_iterate): Do not pass a fixed `table_header' address
11703 to grub_linuxbios_table_iterate().
11705 2008-01-15 Robert Millan <rmh@aybabtu.com>
11707 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11708 * conf/i386-ieee1275.rmk: New file.
11709 * include/grub/i386/ieee1275/console.h: Likewise.
11710 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11711 * include/grub/i386/ieee1275/kernel.h: Likewise.
11712 * include/grub/i386/ieee1275/time.h: Likewise.
11713 * kern/i386/ieee1275/init.c: Likewise.
11714 * kern/i386/ieee1275/startup.S: Likewise.
11716 2008-01-15 Robert Millan <rmh@aybabtu.com>
11718 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11719 when pointers are 32-bit (but still do set it to one when they are
11722 2008-01-15 Robert Millan <rmh@aybabtu.com>
11724 * include/grub/ieee1275/ieee1275.h
11725 (grub_ieee1275_get_integer_property): New function prototype.
11727 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11728 (grub_ieee1275_get_integer_property): New function. Wraps around
11729 grub_ieee1275_get_property() to handle endianness.
11731 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11732 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11734 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11735 (grub_map): Likewise.
11736 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11738 2008-01-15 Bean <bean123ch@gmail.com>
11740 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11741 (grub_script_execute_cmdline): Reset grub_errno.
11743 * normal/main.c (read_config_file): Reset grub_errno.
11745 * normal/parse.y (script_init): New.
11746 (script): Move function and menuentry here.
11748 (command): Add delimiter at the end of command.
11749 (commands): Adjust to match the new command.
11750 (commandblock): Remove grub_script_lexer_record_start.
11751 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11752 (if): Use the new commands.
11754 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11756 2008-01-15 Robert Millan <rmh@aybabtu.com>
11758 * normal/menu.c (run_menu): Move timeout message from here ...
11759 (print_timeout): ... to here.
11760 (run_menu): Use print_timeout() once during initial draw to print
11761 the whole message, and again in every clock tick to update only
11762 the number of seconds.
11764 2008-01-15 Robert Millan <rmh@aybabtu.com>
11766 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11767 actual size of `available' from grub_ieee1275_get_property(), and
11768 restrict parsing to that bound.
11770 2008-01-15 Christian Franke <franke@computer.org>
11772 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11773 (argp_program_version): Remove variable.
11774 (argp_program_bug_address): Likewise.
11775 (options): Convert from struct argp_option to struct option.
11776 (struct arguments): Remove.
11777 (parse_opt): Remove.
11778 (usage): New function.
11779 (main): Replace struct args members by simple variables.
11780 Replace argp_parse() by getopt_long().
11781 Add switch to evaluate options.
11782 Add missing "(...)" around root_dev in prefix string.
11784 2008-01-14 Robert Millan <rmh@aybabtu.com>
11786 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11787 for grub_ieee1275_exit(), in order to improve portability.
11789 2008-01-14 Robert Millan <rmh@aybabtu.com>
11791 * util/grub.d/10_linux.in (prefix): Define.
11792 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11794 2008-01-13 Pavel Roskin <proski@gnu.org>
11796 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11797 grub_errno if no errors have been detected.
11799 2008-01-12 Robert Millan <rmh@aybabtu.com>
11801 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11802 (grub_util_get_dev_abstraction): New function prototype.
11804 * util/getroot.c: Include `<grub/util/getroot.h>'
11805 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11806 (grub_util_get_dev_abstraction): ... here (new function).
11808 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11809 `PRINT_ABSTRACTION'.
11810 (probe): Probe for abstraction type when requested.
11811 (main): Understand `--target=abstraction'.
11813 * util/i386/efi/grub-install.in: Add abstraction module to core
11814 image when it is found to be necessary.
11815 * util/i386/pc/grub-install.in: Likewise.
11816 * util/powerpc/ieee1275/grub-install.in: Likewise.
11818 * util/update-grub_lib.in (font_path): Return system path without
11819 converting to GRUB path.
11820 * util/update-grub.in: Convert system path returned by font_path()
11821 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11822 abstraction module is needed for loading fonts (if any). Export
11823 that as `GRUB_PRELOAD_MODULES'.
11824 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11827 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11829 Remove some unused code from reiserfs.
11831 * fs/reiserfs.c (struct grub_reiserfs_key)
11832 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11833 (struct grub_reiserfs_node_body): Removed.
11834 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11836 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11838 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11840 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11842 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11844 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11846 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11847 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11848 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11850 2008-01-10 Robert Millan <rmh@aybabtu.com>
11852 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11853 Determines if a file is garbage left by packaging systems, etc.
11854 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11855 for processing /etc/grub.d scripts.
11856 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11857 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11858 as a condition for processing Linux images.
11860 2008-01-10 Pavel Roskin <proski@gnu.org>
11862 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11863 to compile reiserfs.c on PowerPC.
11865 2008-01-10 Robert Millan <rmh@aybabtu.com>
11867 * kern/device.c (grub_device_iterate): Do not abort device iteration
11868 when one of the devices cannot be opened.
11869 * kern/disk.c (grub_disk_open): Do not account previous failures of
11870 unrelated functions when grub_errno is checked for.
11872 2008-01-08 Robert Millan <rmh@aybabtu.com>
11874 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11875 `! grub_linux_is_bzimage', change order of address comparison to make
11876 it more intuitive, and improve "too big zImage" error message.
11878 2008-01-08 Robert Millan <rmh@aybabtu.com>
11880 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11881 `$(update-grub_DATA)'.
11882 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11885 2008-01-07 Robert Millan <rmh@aybabtu.com>
11887 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11888 which instruction is modified by grub-setup during installation
11889 (since it wasn't obvious by only looking at this file).
11891 2008-01-07 Robert Millan <rmh@aybabtu.com>
11893 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11894 listing actual TODO items.
11896 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11898 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11900 (grub_reiserfs_get_key_offset): Likewise.
11901 (grub_reiserfs_set_key_offset): Likewise.
11902 (grub_reiserfs_set_key_type): Likewise.
11903 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11905 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11906 better to remove the bitfield version completely.
11908 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11910 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11911 allocated from the heap, due to the fshelp implementation.
11912 (grub_reiserfs_dir): Free NODE, due to the same reason.
11914 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11916 Mostly from Vincent Pelletier:
11918 * fs/reiserfs.c: New file.
11920 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11921 (reiserfs_mod_SOURCES): New variable.
11922 (reiserfs_mod_CFLAGS): Likewise.
11923 (reiserfs_mod_LDFLAGS): Likewise.
11925 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11926 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11927 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11930 2008-01-06 Robert Millan <rmh@aybabtu.com>
11932 * normal/color.c: Remove `<grub/env.h>'.
11934 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11936 * include/grub/normal.h: Include <grub/env.h>.
11938 2008-01-05 Robert Millan <rmh@aybabtu.com>
11940 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11941 usage example with `(hd0,1)'.
11942 Reported by Samuel Thibault.
11944 2008-01-05 Robert Millan <rmh@aybabtu.com>
11946 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11947 (grub_linux_boot_zimage): Rename to ...
11948 (grub_linux_boot): ... this.
11949 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11950 (grub_linux_boot_zimage): Conditionalize zImage copy.
11952 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11953 (grub_linux_boot_bzimage): Remove prototype.
11954 (grub_linux_boot_zimage): Rename to ...
11955 (grub_linux_boot): ... this.
11957 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11958 (grub_linux_boot): Remove function.
11960 2008-01-05 Robert Millan <rmh@aybabtu.com>
11962 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11963 (grub_env_write_color_highlight): Likewise.
11964 (grub_wait_after_message): Likewise.
11966 * normal/color.c: New file.
11968 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11969 (normal_mod_DEPENDENCIES): Likewise.
11971 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11972 (normal_mod_DEPENDENCIES): Likewise.
11974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11975 (normal_mod_DEPENDENCIES): Likewise.
11977 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11978 (normal_mod_DEPENDENCIES): Likewise.
11980 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11981 for waiting after a message is printed.
11982 * normal/main.c (read_config_file): Likewise.
11983 (grub_normal_init): Register grub_env_write_color_normal() and
11984 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11985 `color_highlight' variables as global.
11987 * normal/menu.c (grub_wait_after_message): New function.
11988 (grub_color_menu_normal): New variable. Replaces ...
11989 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11990 (grub_color_menu_highlight): New variable. Replaces ...
11991 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11992 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11993 `GRUB_TERM_COLOR_STANDARD'.
11994 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11995 `normal_code' and `highlight_code' to `old_color_normal' and
11996 `old_color_highlight', respectively.
11997 (grub_menu_init_page): Update colors when drawing the menu, based on
11998 `menu_color_normal' and `menu_color_highlight' variables.
11999 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
12000 a message is printed.
12002 2008-01-05 Robert Millan <rmh@aybabtu.com>
12004 * kern/env.c (grub_env_context_open): Propagate hooks for global
12005 variables to new context.
12007 * kern/main.c (grub_set_root_dev): Export `root' variable.
12009 2008-01-05 Robert Millan <rmh@aybabtu.com>
12011 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
12012 discs unconditionally, since udev and others have options to provide
12015 2008-01-05 Robert Millan <rmh@aybabtu.com>
12017 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
12019 2008-01-04 Christian Franke <franke@computer.org>
12021 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
12024 2008-01-03 Pavel Roskin <proski@gnu.org>
12026 * kern/i386/linuxbios/init.c: Put "void" to all function
12027 declarations with no arguments.
12028 * kern/powerpc/ieee1275/init.c: Likewise.
12029 * term/i386/pc/at_keyboard.c: Likewise.
12030 * term/i386/pc/vga_text.c: Likewise.
12031 * util/grub-mkdevicemap.c: Likewise.
12033 2008-01-02 Robert Millan <rmh@aybabtu.com>
12035 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
12036 message when loaded image is out of bounds.
12037 (grub_multiboot_load_elf64): Likewise.
12039 2008-01-02 Pavel Roskin <proski@gnu.org>
12041 * util/grub.d/10_linux.in: Try version without ".old" when
12042 looking for initrd. It's better to use initrd from the newer
12043 kernel of the same version than no initrd at all.
12045 2008-01-01 Robert Millan <rmh@aybabtu.com>
12047 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
12049 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
12051 * include/grub/video.h: Added grub_video_unmap_color and
12052 grub_video_get_active_render_target.
12053 (grub_video_adapter): Added unmap_color and get_active_render_target.
12055 * video/video.c: Added grub_video_unmap_color and
12056 grub_video_get_active_render_target.
12057 (grub_video_get_info): Changed method to accept NULL pointer as an
12058 argument to allow detection of active video adapter.
12060 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
12061 grub_video_vbe_unmap_color_int.
12062 Added grub_video_vbe_unmap_color and
12063 grub_video_vbe_get_active_render_target.
12064 (grub_video_vbe_adapter): Added unmap_color and
12065 get_active_render_target.
12067 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
12068 with grub_video_vbe_unmap_color_int.
12070 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
12071 (DEFAULT_NORMAL_COLOR): Likewise.
12072 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
12073 (DEFAULT_FG_COLOR): Removed.
12074 (DEFAULT_BG_COLOR): Likewise.
12075 (DEFAULT_CURSOR_COLOR): Changed value.
12076 (grub_virtual_screen): Added standard_color_setting,
12077 normal_color_setting, highlight_color_setting and term_color.
12078 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
12079 (bitmap_width): Added.
12080 (bitmap_height): Likewise.
12081 (bitmap): Likewise.
12082 (set_term_color): Likewise.
12083 (grub_virtual_screen_setup): Changed to use new terminal coloring
12085 (grub_gfxterm_init): Added init for bitmap.
12086 (grub_gfxterm_fini): Added destroy for bitmap.
12087 (redraw_screen_rect): Updated to use background bitmap and new
12089 (scroll_up): Added optimization for case when there is no bitmap.
12090 (grub_gfxterm_cls): Fixed to use correct background color.
12091 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12093 (grub_virtual_screen_setcolor): Likewise.
12094 (grub_virtual_screen_getcolor): Added.
12095 (grub_gfxterm_background_image_cmd): Likewise.
12096 (grub_video_term): Added setcolor and getcolor.
12097 (MOD_INIT): Added registration of background_image command.
12098 (MOD_TERM): Added unregistration for background_image command.
12100 2007-12-30 Pavel Roskin <proski@gnu.org>
12102 * loader/multiboot_loader.c: Fix multiboot command
12103 unregistration. Fix all typos in the word "multiboot".
12105 2007-12-29 Pavel Roskin <proski@gnu.org>
12107 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12108 support for initrd names used in Fedora.
12110 2007-12-26 Bean <bean123ch@gmail.com>
12112 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12113 (cpio_mod_SOURCES): New variable.
12114 (cpio_mod_CFLAGS): Likewise.
12115 (cpio_mod_LDFLAGS): Likewise.
12117 * fs/cpio.c: New file.
12119 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12121 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12123 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12127 2007-12-25 Robert Millan <rmh@aybabtu.com>
12129 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12130 (grub_getcolor): New function.
12132 * kern/term.c (grub_getcolor): New function.
12133 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12134 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12135 (print_entry): Set normal and highlight colors to
12136 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12137 respectively, before printing and restore them to old
12139 (grub_menu_init_page): Likewise. Fill an additional colored space
12140 that would otherwise be left blank.
12142 * term/efi/console.c (grub_console_getcolor): New function.
12143 (struct grub_console_term.getcolor): New variable.
12144 * term/i386/pc/console.c (grub_console_getcolor): New function.
12145 (struct grub_console_term.getcolor): New variable.
12146 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12147 (struct grub_console_term.getcolor): New variable.
12149 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12150 (struct grub_console_term.setcolor): Remove variable.
12151 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12152 (struct grub_console_term.setcolor): Remove variable.
12153 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12154 (struct grub_console_term.setcolor): Remove variable.
12155 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12156 (struct grub_console_term.setcolor): Remove variable.
12158 2007-12-25 Robert Millan <rmh@aybabtu.com>
12160 * configure.ac: Search for possible unifont.hex locations, and
12161 define UNIFONT_HEX if found.
12163 * Makefile.in (UNIFONT_HEX): Define variable.
12164 (DATA): Rename to ...
12165 (PKGLIB): ... this. Update all users.
12166 (PKGDATA): New variable.
12167 (pkgdata_IMAGES): Rename to ...
12168 (pkglib_IMAGES): ... this. Update all users.
12169 (pkgdata_MODULES): Rename to ...
12170 (pkglib_MODULES): ... this. Update all users.
12171 (pkgdata_PROGRAMS): Rename to ...
12172 (pkglib_PROGRAMS): ... this. Update all users.
12173 (pkgdata_DATA): Rename to ...
12174 (pkglib_DATA): ... this. Update all users.
12175 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12176 (unicode.pff, ascii.pff): New rules.
12177 (all-local): Add `$(PKGDATA)' dependency.
12178 (install-local): Process `$(PKGDATA)'.
12180 * util/update-grub_lib.in (font_path): Search for *.pff files in
12181 a few more locations, including `${pkgdata}'.
12183 2007-12-23 Robert Millan <rmh@aybabtu.com>
12185 Patch from Bean <bean123ch@gmail.com>:
12186 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12189 2007-12-21 Bean <bean123ch@gmail.com>
12191 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12192 (ntfscomp_mod_SOURCES): New variable.
12193 (ntfscomp_mod_CFLAGS): Likewise.
12194 (ntfscomp_mod_LDFLAGS): Likewise.
12196 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12197 (grub_probe_SOURCES): Likewise.
12198 (grub_emu_SOURCES): Likewise.
12200 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12201 (grub_emu_SOURCES): Likewise.
12203 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12204 (grub_emu_SOURCES): Likewise.
12206 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12207 (grub_emu_SOURCES): Likewise.
12209 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12210 (read_run_list): Renamed to grub_ntfs_read_run_list.
12211 (decomp_nextvcn): Moved to ntfscomp.c.
12212 (decomp_getch): Likewise.
12213 (decomp_get16): Likewise.
12214 (decomp_block): Likewise.
12215 (read_block): Likewise.
12216 (read_data): Partially moved to ntfscomp.c.
12217 (fixup): Change unsigned to grub_uint16_t.
12218 (read_mft): Change unsigned long to grub_uint32_t.
12219 (read_attr): Likewise.
12220 (read_data): Likewise.
12221 (read_run_data): Likewise.
12222 (read_run_list): Likewise.
12223 (read_mft): Likewise.
12225 * fs/ntfscomp.c: New file.
12227 * include/grub/ntfs.h: New file.
12229 2007-12-16 Robert Millan <rmh@aybabtu.com>
12231 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12232 IDE disk check, since Linux is known to support 20 IDE disks.
12233 Reported by Colin Watson.
12235 2007-12-15 Bean <bean123ch@gmail.com>
12237 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12238 (lnxboot_img_SOURCES): New variable.
12239 (lnxboot_img_ASFLAGS): Likewise.
12240 (lnxboot_img_LDFLAGS): Likewise.
12242 * boot/i386/pc/lnxboot.S: New file.
12244 2007-11-24 Pavel Roskin <proski@gnu.org>
12246 * configure.ac: Test if '--build-id=none' is supported by the
12247 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12248 objcopy to generate incorrect binary files (binutils
12249 2.17.50.0.18-1 as shipped by Fedora 8).
12250 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12251 linking, so that build ID doesn't break the test.
12253 2007-11-24 Pavel Roskin <proski@gnu.org>
12255 * include/grub/i386/time.h: use "void" in the argument list
12256 of grub_cpu_idle().
12257 * include/grub/powerpc/time.h: Likewise.
12258 * include/grub/sparc64/time.h: Likewise.
12260 2007-11-18 Christian Franke <franke@computer.org>
12262 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12263 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12264 This fixes the problem that function keys did not work in grub-emu.
12266 2007-11-18 Christian Franke <franke@computer.org>
12268 * disk/host.c (grub_host_open): Remove attribute unused from
12269 name parameter. Add check for "host". This fixes the problem
12270 that grub-emu does not find partitions.
12272 2007-11-18 Christian Franke <franke@computer.org>
12274 * util/hostfs.c (is_dir): New function.
12275 (grub_hostfs_dir): Handle missing dirent.d_type case.
12276 (grub_hostfs_read): Add missing fseek().
12277 (grub_hostfs_label): Clear label pointer. This fixes a crash
12278 of grub-emu on "ls (host)".
12280 2007-11-18 Christian Franke <franke@computer.org>
12282 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12283 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12284 to 64 bit boundary by default.
12286 2007-11-18 Bean <bean123ch@gmail.com>
12288 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12289 (hexdump_mod_SOURCES): New variable.
12290 (hexdump_mod_CFLAGS): Likewise.
12291 (hexdump_mod_LDFLAGS): Likewise.
12293 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12295 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12297 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12301 * include/grub/hexdump.h: New file.
12303 * commands/hexdump.c: New file.
12305 2007-11-10 Robert Millan <rmh@aybabtu.com>
12307 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12308 in grub_outb() calls.
12309 (beep_on): Likewise.
12311 2007-11-10 Christian Franke <franke@computer.org>
12313 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12314 (grub_menu_run): Likewise.
12316 2007-11-10 Robert Millan <rmh@aybabtu.com>
12318 * include/grub/i386/efi/machine.h: New file.
12319 * include/grub/i386/linuxbios/machine.h: Likewise.
12320 * include/grub/i386/pc/machine.h: Likewise.
12321 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12322 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12324 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12325 (serial_hw_io_addr): New variable.
12326 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12327 instead of `(unsigned short *) 0x400'.
12329 2007-11-10 Bean <bean123ch@gmail.com>
12331 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12333 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12335 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12336 (vga_mod_SOURCES): Added.
12337 (vga_mod_CFLAGS): Likewise.
12338 (vga_mod_LDFLAGS): Likewise.
12340 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12342 (set_map_mask): Likewise.
12343 (set_read_map): Likewise.
12344 (set_read_address): Likewise.
12345 (vga_font): Removed variable.
12346 (get_vga_glyph): Removed function.
12347 (invalidate_char): Likewise.
12348 (write_char): Changed to use grub_font_get_glyph() for font
12350 (grub_vga_putchar): Likewise.
12351 (grub_vga_getcharwidth): Likewise.
12353 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12355 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12357 (pxeboot_img_LDFLAGS): Likewise.
12358 (diskboot_img_LDFLAGS): Likewise.
12359 (kernel_img_LDFLAGS): Likewise.
12361 2007-11-06 Robert Millan <rmh@aybabtu.com>
12363 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12364 in grub_outb() calls.
12365 (serial_hw_init): Likewise.
12367 2007-11-05 Robert Millan <rmh@aybabtu.com>
12369 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12370 spaces. Skip non-regular files.
12372 2007-11-05 Robert Millan <rmh@aybabtu.com>
12374 * kern/disk.c (grub_disk_firmware_fini)
12375 (grub_disk_firmware_is_tainted): New variables.
12377 * include/grub/disk.h (grub_disk_firmware_fini)
12378 (grub_disk_firmware_is_tainted): Likewise.
12380 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12381 (grub_disk_biosdisk_fini): ... to here.
12382 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12383 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12384 is set. Register grub_disk_biosdisk_fini() in
12385 `grub_disk_firmware_fini'.
12387 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12388 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12389 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12390 to finish existing firmware disk interface.
12392 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12393 (ata_mod_SOURCES): New variable.
12394 (ata_mod_CFLAGS): Likewise.
12395 (ata_mod_LDFLAGS): Likewise.
12397 2007-11-05 Robert Millan <rmh@aybabtu.com>
12399 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12400 (grub_ata_wait): Reimplement using grub_millisleep().
12402 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12403 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12405 2007-11-03 Marco Gerards <marco@gnu.org>
12407 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12408 (CRTC_ADDR_PORT): New macro.
12409 (CRTC_DATA_PORT): Likewise.
12410 (CRTC_CURSOR): Likewise.
12411 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12412 (CRTC_CURSOR_ADDR_LOW): Likewise.
12413 (update_cursor): New function.
12414 (grub_console_real_putchar): Call `update_cursor'.
12415 (grub_console_gotoxy): Likewise.
12416 (grub_console_cls): Set the default color when clearing the
12418 (grub_console_setcursor): Implemented.
12420 2007-11-03 Marco Gerards <marco@gnu.org>
12422 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12424 (grub_ata_pio_write): Likewise.
12426 (grub_atapi_identify): Wait after issuing an ATA command.
12427 (grub_atapi_packet): Likewise.
12428 (grub_ata_identify): Likewise.
12429 (grub_ata_readwrite): Likewise.
12431 2007-11-03 Marco Gerards <marco@gnu.org>
12433 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12434 (grub_ata_pio_write): Likewise.
12435 (grub_ata_readwrite): Use `grub_error', instead of
12436 returning `grub_errno'.
12438 2007-11-03 Marco Gerards <marco@gnu.org>
12440 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12441 grub_ata_pio_write once for every single sector, instead of for
12444 2007-10-31 Robert Millan <rmh@aybabtu.com>
12446 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12448 * conf/i386-linuxbios.rmk: New file.
12450 * kern/i386/pc/hardware.c: Likewise.
12451 * term/i386/pc/at_keyboard.c: Likewise.
12452 * term/i386/pc/vga_text.c: Likewise.
12454 * include/grub/i386/linuxbios/boot.h: Likewise.
12455 * include/grub/i386/linuxbios/console.h: Likewise.
12456 * include/grub/i386/linuxbios/init.h: Likewise.
12457 * include/grub/i386/linuxbios/kernel.h: Likewise.
12458 * include/grub/i386/linuxbios/loader.h: Likewise.
12459 * include/grub/i386/linuxbios/memory.h: Likewise.
12460 * include/grub/i386/linuxbios/serial.h: Likewise.
12461 * include/grub/i386/linuxbios/time.h: Likewise.
12463 * kern/i386/linuxbios/init.c: Likewise.
12464 * kern/i386/linuxbios/startup.S: Likewise.
12465 * kern/i386/linuxbios/table.c: Likewise.
12467 2007-10-31 Marco Gerards <marco@gnu.org>
12469 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12470 (ata_mod_SOURCES): New variable.
12471 (ata_mod_CFLAGS): Likewise.
12472 (ata_mod_LDFLAGS): Likewise.
12474 * disk/ata.c: New file.
12476 * include/grub/disk.h (grub_disk_dev_id): Add
12477 `GRUB_DISK_DEV_ATA_ID'.
12479 2007-10-31 Robert Millan <rmh@aybabtu.com>
12481 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12482 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12484 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12485 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12487 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12490 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12492 2007-10-27 Robert Millan <rmh@aybabtu.com>
12494 * include/grub/types.h (ULONG_MAX): Define macro.
12496 2007-10-22 Robert Millan <rmh@aybabtu.com>
12498 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12500 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12502 2007-10-22 Robert Millan <rmh@aybabtu.com>
12504 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12505 (pkgdata_MODULES): Add `biosdisk.mod'.
12506 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12509 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12510 (grub_biosdisk_init): Replace with ...
12511 (GRUB_MOD_INIT(biosdisk)): ... this.
12512 (grub_biosdisk_fini): Replace with ...
12513 (GRUB_MOD_FINI(biosdisk)): ... this.
12515 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12516 (grub_machine_init): Remove call to grub_biosdisk_init().
12517 (grub_machine_fini): Remove call to grub_machine_fini().
12519 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12521 2007-10-22 Robert Millan <rmh@aybabtu.com>
12523 * include/grub/time.h: New file.
12524 * include/grub/i386/time.h: Likewise.
12525 * include/grub/powerpc/time.h: Likewise.
12526 * include/grub/sparc64/time.h: Likewise.
12528 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12530 (KERNEL_MACHINE_TIME_HEADER): ... this.
12531 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12533 (KERNEL_MACHINE_TIME_HEADER): ... this.
12534 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12536 (KERNEL_MACHINE_TIME_HEADER): ... this.
12538 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12539 (grub_millisleep): New function.
12540 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12541 (grub_millisleep): New function.
12542 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12543 Remove `grub/machine/time.h' include.
12544 (grub_millisleep): New function.
12545 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12546 Remove `grub/machine/time.h' include.
12547 (grub_millisleep): New function.
12549 * include/grub/misc.h (grub_div_roundup): New function.
12551 * kern/misc.c: Include `<grub/time.h>'.
12552 (grub_millisleep_generic): New function.
12554 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12556 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12558 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12559 `machine/time.h'. Add `time.h'.
12560 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12562 2007-10-21 Robert Millan <rmh@aybabtu.com>
12564 * include/grub/misc.h (grub_max): New function.
12566 2007-10-21 Robert Millan <rmh@aybabtu.com>
12568 * util/misc.c (grub_util_info): Call fflush() before returning.
12570 2007-10-20 Robert Millan <rmh@aybabtu.com>
12572 * genmk.rb (Image): Copy `extra_flags' from here ...
12573 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12575 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12576 to `argc' and `args' arguments.
12578 2007-10-17 Robert Millan <rmh@aybabtu.com>
12580 * kern/i386/loader.S: New file.
12582 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12583 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12584 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12585 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12586 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12587 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12588 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12589 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12590 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12591 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12592 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12593 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12594 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12595 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12597 * kern/i386/realmode.S: New file.
12599 * kern/i386/pc/startup.S (protstack): Moved from here ...
12600 * kern/i386/realmode.S (protstack)... to here.
12601 * kern/i386/pc/startup.S (gdt): Moved from here ...
12602 * kern/i386/realmode.S (gdt)... to here.
12603 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12604 * kern/i386/realmode.S (prot_to_real)... to here.
12606 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12607 `kern/i386/realmode.S'.
12609 2007-10-17 Robert Millan <rmh@aybabtu.com>
12611 * include/grub/i386/loader.h: New file.
12613 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12614 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12615 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12616 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12617 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12618 * include/grub/i386/loader.h (grub_linux_prot_size)
12619 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12620 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12621 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12622 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12624 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12626 2007-10-15 Robert Millan <rmh@aybabtu.com>
12628 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12629 filesystem when dev->disk is unset.
12630 Do probe for filesystem even when dev->disk->has_partitions is set.
12631 In case a filesystem is found, always report it.
12632 In case it isn't, if dev->disk->has_partitions is set, report that
12633 a partition table was found instead of reporting that no filesystem
12634 could be identified.
12636 2007-10-12 Robert Millan <rmh@aybabtu.com>
12638 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12639 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12641 * include/grub/types.h (grub_host_to_target16): New macro.
12642 (grub_host_to_target32): Likewise.
12643 (grub_host_to_target64): Likewise.
12644 (grub_target_to_host16): Likewise.
12645 (grub_target_to_host32): Likewise.
12646 (grub_target_to_host64): Likewise.
12648 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12649 Renamed from to ...
12650 (GRUB_MOD_ALIGN): ...this. Update all users.
12652 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12653 grub_host_to_target32.
12654 Replace grub_be_to_cpu32 with grub_target_to_host32.
12655 (load_modules): Likewise.
12656 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12657 Replace grub_be_to_cpu32 with grub_target_to_host32.
12658 Replace grub_cpu_to_be16 with grub_host_to_target16.
12659 Replace grub_cpu_to_be32 grub_host_to_target32.
12661 2007-10-12 Robert Millan <rmh@aybabtu.com>
12663 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12664 * util/elf/grub-mkimage.c: ... here.
12666 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12667 `util/powerpc/ieee1275/grub-mkimage.c'.
12669 2007-10-07 Robert Millan <rmh@aybabtu.com>
12671 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12672 and make it easier to figure out.
12673 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12674 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12675 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12676 leave us with less than HEAP_MIN_SIZE total heap.
12677 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12679 2007-10-03 Robert Millan <rmh@aybabtu.com>
12681 * include/grub/i386/io.h: New file.
12682 * commands/i386/pc/play.c (inb): Removed.
12684 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12686 * term/i386/pc/serial.c (inb): Removed.
12688 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12690 * term/i386/pc/vga.c (inb): Removed.
12692 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12695 2007-10-02 Robert Millan <rmh@aybabtu.com>
12697 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12699 Reported by Marcin Kurek.
12701 2007-09-07 Robert Millan <rmh@aybabtu.com>
12703 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12704 SmartFirmware version updates (as released by Sven Luther), and avoid
12705 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12706 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12709 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12711 From Hitoshi Ozeki:
12712 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12713 when merging two regions.
12715 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12717 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12718 * normal/completion.c (grub_normal_do_completion): Likewise.
12719 Reported by Hitoshi Ozeki.
12721 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12723 Do not use devices at boot in chainloading.
12725 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12726 (boot_part_addr): Likewise.
12727 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12728 with BOOT_DRIVE and BOOT_PART_ADDR.
12729 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12730 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12732 2007-08-29 Robert Millan <rmh@aybabtu.com>
12734 Patch from Simon Peter <dn.tlp@gmx.net>:
12735 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12736 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12737 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12738 util/i386/pc/grub-setup.c_DEPENDENCIES.
12739 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12740 util/grub-probe.c_DEPENDENCIES.
12741 * conf/powerpc-ieee1275.rmk: Likewise.
12743 2007-08-28 Robert Millan <rmh@aybabtu.com>
12745 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12746 to tell grub-mkdevicemap how to name devices.
12747 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12750 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12751 util/i386/get_disk_name.c.
12752 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12753 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12754 util/ieee1275/get_disk_name.c.
12756 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12758 * DISTLIST: Add util/i386/get_disk_name.c and
12759 util/ieee1275/get_disk_name.c.
12761 * util/grub-mkdevicemap.c: Replace device naming logic with
12762 grub_util_get_disk_name() calls.
12764 2007-08-20 Robert Millan <rmh@aybabtu.com>
12766 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12767 (so that it works for both plural and singular quantities).
12769 2007-08-05 Robert Millan <rmh@aybabtu.com>
12771 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12772 so that [xz] isn't taken into account when determining order.
12774 2007-08-02 Marco Gerards <marco@gnu.org>
12776 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12777 `include/multiboot2.h', `include/grub/elfload.h',
12778 `include/multiboot.h', `include/grub/multiboot.h',
12779 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12780 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12781 `kern/elf.c', `loader/multiboot_loader.c',
12782 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12783 `loader/i386/pc/multiboot2.c',
12784 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12785 `util/i386/pc/grub-mkrescue.in'. Remove
12786 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12787 `include/grub/i386/pc/util/biosdisk.h' and
12788 `include/grub/powerpc/ieee1275/multiboot.h'.
12790 2007-08-02 Bean <bean123ch@gmail.com>
12792 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12793 (ntfs_mod_SOURCES): New variable.
12794 (ntfs_mod_CFLAGS): Likewise.
12795 (ntfs_mod_LDFLAGS): Likewise.
12797 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12798 (grub_probe_SOURCES): Likewise.
12799 (grub_emu_SOURCES): Likewise.
12801 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12802 (grub_emu_SOURCES): Likewise.
12804 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12805 (grub_emu_SOURCES): Likewise.
12807 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12809 * fs/ntfs.c: New file.
12811 2007-08-02 Bean <bean123ch@gmail.com>
12813 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12815 * file.h (grub_file): Likewise.
12817 * fshelp.h (grub_fshelp_read_file): Likewise.
12819 * util/i386/pc/grub-setup.c (setup): Likewise.
12820 (save_first_sector): Likewise.
12821 (save_blocklists): Likewise.
12823 * fs/affs.c (grub_affs_read_file): Likewise.
12825 * fs/ext2.c (grub_ext2_read_file): Likewise.
12827 * fs/fat.c (grub_fat_read_data): Likewise.
12829 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12831 * fs/hfs.c (grub_hfs_read_file): Likewise.
12833 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12835 * fs/jfs.c (grub_jfs_read_file): Likewise.
12837 * fs/minix.c (grub_minix_read_file): Likewise.
12839 * fs/sfs.c (grub_sfs_read_file): Likewise.
12841 * fs/ufs.c (grub_ufs_read_file): Likewise.
12843 * fs/xfs.c (grub_xfs_read_file): Likewise.
12845 * command/blocklist.c (read_blocklist): Likewise.
12846 (print_blocklist): Likewise.
12848 2007-08-02 Marco Gerards <marco@gnu.org>
12850 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12853 * disk/host.c: New file.
12855 * util/hostfs.c: Likewise.
12857 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12858 return `GRUB_ERR_BAD_FS'.
12859 * fs/sfs.c (grub_sfs_mount): Likewise.
12860 * fs/xfs.c (grub_xfs_mount): Likewise.
12862 * include/grub/disk.h (enum grub_disk_dev_id): Add
12863 `GRUB_DISK_DEVICE_HOST_ID'.
12865 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12867 2007-07-24 Jerone Young <jerone@gmail.com>
12869 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12870 modules for compilation.
12871 * conf/powerpc-ieee1275.rmk: Likewise.
12873 * include/multiboot.h: Move multiboot definitions to one file. Rename
12874 many definitions to not get grub specific.
12875 * include/multiboot2.h: Create header with multiboot 2 definitions.
12876 * include/grub/multiboot.h: Header for grub specific function
12877 prototypes and definitions.
12878 * include/grub/multiboot2.h: Likewise.
12879 * include/grub/multiboot_loader.h: Likewise.
12880 * include/grub/i386/pc/multiboot.h: Removed.
12881 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12883 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12884 and 2 to allow for one multiboot and module commands.
12885 * loader/multiboot2.c: Add multiboot2 functionality.
12886 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12887 and definition names.
12888 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12890 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12891 ieee1275 specific multiboot2 code.
12893 * kern/i386/pc/startup.S: Change headers and definition names for
12894 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12896 2007-07-22 Robert Millan <rmh@aybabtu.com>
12898 * geninitheader.sh: Process file specified in first parameter rather
12899 than hardcoding grub_modules_init.lst.
12900 * geninit.sh: Likewise. Also, construct header name dynamically rather
12901 than hardcoding grub_modules_init.h.
12903 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12904 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12905 grub_probe_init.[ch] and grub_setup_init.[ch].
12907 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12908 grub_modules_init.h with grub_emu_init.h.
12909 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12910 grub_probe_init.[ch] files.
12911 * conf/i386-efi.rmk: Likewise.
12912 * conf/i386-pc.rmk: Likewise.
12913 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12914 grub_setup_init.[ch] files.
12916 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12917 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12918 to initialize modules rather than a list of hardcoded functions.
12919 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12920 grub_init_all() to initialize modules rather than a list of hardcoded
12923 2007-07-22 Robert Millan <rmh@aybabtu.com>
12925 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12926 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12928 2007-07-22 Robert Millan <rmh@aybabtu.com>
12930 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12931 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12932 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12933 flag when running on SmartFirmware.
12934 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12935 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12938 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12939 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12940 rather than decreasing it.
12942 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12943 there's not enough space to do it, fail in the same way as when it
12944 can't be done because there are no partitions.
12946 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12947 when nvsetenv failed.
12949 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12951 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12952 because this rule is automatically generated.
12953 (grub-mkrescue): Removed for the same reason as above.
12955 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12957 Migrate to GNU General Public License Version 3.
12959 * COPYING: Replaced with the plain text version of GPLv3.
12961 * config.guess: Updated from gnulib.
12962 * config.sub: Likewise.
12964 * geninit.sh: Output a GPLv3 copyright notice.
12965 * geninitheader.sh: Likewise.
12966 * genmodsrc.sh: Likewise.
12967 * gensymlist.sh.in: Likewise.
12969 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12970 * boot/i386/pc/diskboot.S: Likewise.
12971 * boot/i386/pc/pxeboot.S: Likewise.
12972 * commands/blocklist.c: Likewise.
12973 * commands/boot.c: Likewise.
12974 * commands/cat.c: Likewise.
12975 * commands/cmp.c: Likewise.
12976 * commands/configfile.c: Likewise.
12977 * commands/echo.c: Likewise.
12978 * commands/help.c: Likewise.
12979 * commands/ls.c: Likewise.
12980 * commands/search.c: Likewise.
12981 * commands/terminal.c: Likewise.
12982 * commands/test.c: Likewise.
12983 * commands/videotest.c: Likewise.
12984 * commands/i386/cpuid.c: Likewise.
12985 * commands/i386/pc/halt.c: Likewise.
12986 * commands/i386/pc/play.c: Likewise.
12987 * commands/i386/pc/reboot.c: Likewise.
12988 * commands/i386/pc/vbeinfo.c: Likewise.
12989 * commands/i386/pc/vbetest.c: Likewise.
12990 * commands/ieee1275/halt.c: Likewise.
12991 * commands/ieee1275/reboot.c: Likewise.
12992 * commands/ieee1275/suspend.c: Likewise.
12993 * disk/loopback.c: Likewise.
12994 * disk/lvm.c: Likewise.
12995 * disk/raid.c: Likewise.
12996 * disk/efi/efidisk.c: Likewise.
12997 * disk/i386/pc/biosdisk.c: Likewise.
12998 * disk/ieee1275/ofdisk.c: Likewise.
12999 * font/manager.c: Likewise.
13000 * fs/affs.c: Likewise.
13001 * fs/ext2.c: Likewise.
13002 * fs/fat.c: Likewise.
13003 * fs/fshelp.c: Likewise.
13004 * fs/hfs.c: Likewise.
13005 * fs/hfsplus.c: Likewise.
13006 * fs/iso9660.c: Likewise.
13007 * fs/jfs.c: Likewise.
13008 * fs/minix.c: Likewise.
13009 * fs/sfs.c: Likewise.
13010 * fs/ufs.c: Likewise.
13011 * fs/xfs.c: Likewise.
13012 * hello/hello.c: Likewise.
13013 * include/grub/acorn_filecore.h: Likewise.
13014 * include/grub/arg.h: Likewise.
13015 * include/grub/bitmap.h: Likewise.
13016 * include/grub/boot.h: Likewise.
13017 * include/grub/cache.h: Likewise.
13018 * include/grub/device.h: Likewise.
13019 * include/grub/disk.h: Likewise.
13020 * include/grub/dl.h: Likewise.
13021 * include/grub/elfload.h: Likewise.
13022 * include/grub/env.h: Likewise.
13023 * include/grub/err.h: Likewise.
13024 * include/grub/file.h: Likewise.
13025 * include/grub/font.h: Likewise.
13026 * include/grub/fs.h: Likewise.
13027 * include/grub/fshelp.h: Likewise.
13028 * include/grub/gzio.h: Likewise.
13029 * include/grub/hfs.h: Likewise.
13030 * include/grub/kernel.h: Likewise.
13031 * include/grub/loader.h: Likewise.
13032 * include/grub/lvm.h: Likewise.
13033 * include/grub/misc.h: Likewise.
13034 * include/grub/mm.h: Likewise.
13035 * include/grub/net.h: Likewise.
13036 * include/grub/normal.h: Likewise.
13037 * include/grub/parser.h: Likewise.
13038 * include/grub/partition.h: Likewise.
13039 * include/grub/pc_partition.h: Likewise.
13040 * include/grub/raid.h: Likewise.
13041 * include/grub/rescue.h: Likewise.
13042 * include/grub/script.h: Likewise.
13043 * include/grub/setjmp.h: Likewise.
13044 * include/grub/symbol.h: Likewise.
13045 * include/grub/term.h: Likewise.
13046 * include/grub/terminfo.h: Likewise.
13047 * include/grub/tparm.h: Likewise.
13048 * include/grub/types.h: Likewise.
13049 * include/grub/video.h: Likewise.
13050 * include/grub/efi/api.h: Likewise.
13051 * include/grub/efi/chainloader.h: Likewise.
13052 * include/grub/efi/console.h: Likewise.
13053 * include/grub/efi/console_control.h: Likewise.
13054 * include/grub/efi/disk.h: Likewise.
13055 * include/grub/efi/efi.h: Likewise.
13056 * include/grub/efi/pe32.h: Likewise.
13057 * include/grub/efi/time.h: Likewise.
13058 * include/grub/i386/linux.h: Likewise.
13059 * include/grub/i386/setjmp.h: Likewise.
13060 * include/grub/i386/types.h: Likewise.
13061 * include/grub/i386/efi/kernel.h: Likewise.
13062 * include/grub/i386/efi/loader.h: Likewise.
13063 * include/grub/i386/efi/time.h: Likewise.
13064 * include/grub/i386/pc/biosdisk.h: Likewise.
13065 * include/grub/i386/pc/boot.h: Likewise.
13066 * include/grub/i386/pc/chainloader.h: Likewise.
13067 * include/grub/i386/pc/console.h: Likewise.
13068 * include/grub/i386/pc/init.h: Likewise.
13069 * include/grub/i386/pc/kernel.h: Likewise.
13070 * include/grub/i386/pc/loader.h: Likewise.
13071 * include/grub/i386/pc/memory.h: Likewise.
13072 * include/grub/i386/pc/multiboot.h: Likewise.
13073 * include/grub/i386/pc/serial.h: Likewise.
13074 * include/grub/i386/pc/time.h: Likewise.
13075 * include/grub/i386/pc/vbe.h: Likewise.
13076 * include/grub/i386/pc/vbeblit.h: Likewise.
13077 * include/grub/i386/pc/vbefill.h: Likewise.
13078 * include/grub/i386/pc/vbeutil.h: Likewise.
13079 * include/grub/i386/pc/vga.h: Likewise.
13080 * include/grub/ieee1275/ieee1275.h: Likewise.
13081 * include/grub/ieee1275/ofdisk.h: Likewise.
13082 * include/grub/powerpc/libgcc.h: Likewise.
13083 * include/grub/powerpc/setjmp.h: Likewise.
13084 * include/grub/powerpc/types.h: Likewise.
13085 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13086 * include/grub/powerpc/ieee1275/console.h: Likewise.
13087 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13088 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13089 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13090 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13091 * include/grub/powerpc/ieee1275/time.h: Likewise.
13092 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13093 * include/grub/sparc64/libgcc.h: Likewise.
13094 * include/grub/sparc64/setjmp.h: Likewise.
13095 * include/grub/sparc64/types.h: Likewise.
13096 * include/grub/sparc64/ieee1275/console.h: Likewise.
13097 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13098 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13099 * include/grub/sparc64/ieee1275/time.h: Likewise.
13100 * include/grub/util/biosdisk.h: Likewise.
13101 * include/grub/util/getroot.h: Likewise.
13102 * include/grub/util/lvm.h: Likewise.
13103 * include/grub/util/misc.h: Likewise.
13104 * include/grub/util/raid.h: Likewise.
13105 * include/grub/util/resolve.h: Likewise.
13106 * io/gzio.c: Likewise.
13107 * kern/device.c: Likewise.
13108 * kern/disk.c: Likewise.
13109 * kern/dl.c: Likewise.
13110 * kern/elf.c: Likewise.
13111 * kern/env.c: Likewise.
13112 * kern/err.c: Likewise.
13113 * kern/file.c: Likewise.
13114 * kern/fs.c: Likewise.
13115 * kern/loader.c: Likewise.
13116 * kern/main.c: Likewise.
13117 * kern/misc.c: Likewise.
13118 * kern/mm.c: Likewise.
13119 * kern/parser.c: Likewise.
13120 * kern/partition.c: Likewise.
13121 * kern/rescue.c: Likewise.
13122 * kern/term.c: Likewise.
13123 * kern/efi/efi.c: Likewise.
13124 * kern/efi/init.c: Likewise.
13125 * kern/efi/mm.c: Likewise.
13126 * kern/i386/dl.c: Likewise.
13127 * kern/i386/efi/init.c: Likewise.
13128 * kern/i386/efi/startup.S: Likewise.
13129 * kern/i386/pc/init.c: Likewise.
13130 * kern/i386/pc/lzo1x.S: Likewise.
13131 * kern/i386/pc/startup.S: Likewise.
13132 * kern/ieee1275/ieee1275.c: Likewise.
13133 * kern/powerpc/cache.S: Likewise.
13134 * kern/powerpc/dl.c: Likewise.
13135 * kern/powerpc/ieee1275/cmain.c: Likewise.
13136 * kern/powerpc/ieee1275/crt0.S: Likewise.
13137 * kern/powerpc/ieee1275/init.c: Likewise.
13138 * kern/powerpc/ieee1275/openfw.c: Likewise.
13139 * kern/sparc64/cache.S: Likewise.
13140 * kern/sparc64/dl.c: Likewise.
13141 * kern/sparc64/ieee1275/init.c: Likewise.
13142 * kern/sparc64/ieee1275/openfw.c: Likewise.
13143 * loader/efi/chainloader.c: Likewise.
13144 * loader/efi/chainloader_normal.c: Likewise.
13145 * loader/i386/efi/linux.c: Likewise.
13146 * loader/i386/efi/linux_normal.c: Likewise.
13147 * loader/i386/pc/chainloader.c: Likewise.
13148 * loader/i386/pc/chainloader_normal.c: Likewise.
13149 * loader/i386/pc/linux.c: Likewise.
13150 * loader/i386/pc/linux_normal.c: Likewise.
13151 * loader/i386/pc/multiboot.c: Likewise.
13152 * loader/i386/pc/multiboot_normal.c: Likewise.
13153 * loader/powerpc/ieee1275/linux.c: Likewise.
13154 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13155 * normal/arg.c: Likewise.
13156 * normal/cmdline.c: Likewise.
13157 * normal/command.c: Likewise.
13158 * normal/completion.c: Likewise.
13159 * normal/execute.c: Likewise.
13160 * normal/function.c: Likewise.
13161 * normal/lexer.c: Likewise.
13162 * normal/main.c: Likewise.
13163 * normal/menu.c: Likewise.
13164 * normal/menu_entry.c: Likewise.
13165 * normal/misc.c: Likewise.
13166 * normal/parser.y: Likewise.
13167 * normal/script.c: Likewise.
13168 * normal/i386/setjmp.S: Likewise.
13169 * normal/powerpc/setjmp.S: Likewise.
13170 * normal/sparc64/setjmp.S: Likewise.
13171 * partmap/acorn.c: Likewise.
13172 * partmap/amiga.c: Likewise.
13173 * partmap/apple.c: Likewise.
13174 * partmap/gpt.c: Likewise.
13175 * partmap/pc.c: Likewise.
13176 * partmap/sun.c: Likewise.
13177 * term/gfxterm.c: Likewise.
13178 * term/terminfo.c: Likewise.
13179 * term/efi/console.c: Likewise.
13180 * term/i386/pc/console.c: Likewise.
13181 * term/i386/pc/serial.c: Likewise.
13182 * term/i386/pc/vesafb.c: Likewise.
13183 * term/i386/pc/vga.c: Likewise.
13184 * term/ieee1275/ofconsole.c: Likewise.
13185 * util/biosdisk.c: Likewise.
13186 * util/console.c: Likewise.
13187 * util/genmoddep.c: Likewise.
13188 * util/getroot.c: Likewise.
13189 * util/grub-emu.c: Likewise.
13190 * util/grub-mkdevicemap.c: Likewise.
13191 * util/grub-probe.c: Likewise.
13192 * util/lvm.c: Likewise.
13193 * util/misc.c: Likewise.
13194 * util/raid.c: Likewise.
13195 * util/resolve.c: Likewise.
13196 * util/update-grub.in: Likewise.
13197 * util/update-grub_lib.in: Likewise.
13198 * util/grub.d/00_header.in: Likewise.
13199 * util/grub.d/10_hurd.in: Likewise.
13200 * util/grub.d/10_linux.in: Likewise.
13201 * util/i386/efi/grub-install.in: Likewise.
13202 * util/i386/efi/grub-mkimage.c: Likewise.
13203 * util/i386/pc/grub-install.in: Likewise.
13204 * util/i386/pc/grub-mkimage.c: Likewise.
13205 * util/i386/pc/grub-mkrescue.in: Likewise.
13206 * util/i386/pc/grub-setup.c: Likewise.
13207 * util/i386/pc/misc.c: Likewise.
13208 * util/powerpc/ieee1275/grub-install.in: Likewise.
13209 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13210 * util/powerpc/ieee1275/misc.c: Likewise.
13211 * video/bitmap.c: Likewise.
13212 * video/video.c: Likewise.
13213 * video/i386/pc/vbe.c: Likewise.
13214 * video/i386/pc/vbeblit.c: Likewise.
13215 * video/i386/pc/vbefill.c: Likewise.
13216 * video/i386/pc/vbeutil.c: Likewise.
13217 * video/readers/tga.c: Likewise.
13219 2007-07-02 Robert Millan <rmh@aybabtu.com>
13221 * conf/i386-efi.rmk: Replace obsolete reference to
13222 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13223 with util/getroot.c.
13224 * conf/powerpc-ieee1275.rmk: Likewise.
13225 * conf/sparc64-ieee1275.rmk: Likewise.
13227 * util/grub-emu.c (main): Fix unchecked pointer handling.
13229 2007-07-02 Robert Millan <rmh@aybabtu.com>
13231 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13232 invocation to fail, in order to support partition-less media.
13234 * util/i386/pc/grub-install.in: Likewise.
13236 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13237 which fs or partmap modules are needed (akin to its sister scripts).
13239 Also use grub-probe to get rid of unportable /proc/mounts check.
13241 Print the same informational message that the other scripts do, before
13244 2007-06-23 Robert Millan <rmh@aybabtu.com>
13246 * util/update-grub_lib.in (font_path): New function. Determine whether
13247 a font file can be found and, if so, echo the GRUB path to it.
13249 * util/update-grub.in: Handle multiple terminals depending on user
13250 input, platform availability and font file presence. Propagate
13251 variables of our findings to /etc/grub.d/ children.
13253 * util/grub.d/00_header.in: Handle multiple terminals, based on
13254 environment setup by update-grub.
13256 2007-06-23 Robert Millan <rmh@aybabtu.com>
13258 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13260 2007-06-21 Robert Millan <rmh@aybabtu.com>
13262 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13263 indicate end of data section in kernel image.
13264 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13265 GRUB_KERNEL_MACHINE_DATA_END.
13267 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13269 * kern/i386/efi/startup.S: Likewise.
13271 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13272 during image generation. Implement --prefix option to override this
13274 * util/i386/efi/grub-mkimage.c: Likewise.
13276 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13277 code to make path relative to its root into a separate function.
13279 * util/i386/pc/grub-install.in: Use newly provided
13280 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13281 pass the result to grub-install --prefix.
13283 2007-06-13 Robert Millan <rmh@aybabtu.com>
13285 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13286 DEFAULT_DEVICE_MAP.
13287 * util/grub-emu.c: Use above definitions from misc.h instead of
13289 * util/grub-mkdevicemap.c: Likewise.
13290 * util/i386/pc/grub-setup.c: Likewise.
13291 * util/grub-probe.c: Likewise.
13292 (probe): Abort with grub_util_error() when either
13293 grub_guess_root_device or grub_util_get_grub_dev fails.
13295 2007-06-12 Robert Millan <rmh@aybabtu.com>
13297 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13298 "pager" assignment.
13299 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13301 * util/grub-probe.c (probe): Likewise for "drive_name".
13303 2007-06-11 Robert Millan <rmh@aybabtu.com>
13305 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13306 not just the cdrom one.
13308 2007-06-11 Robert Millan <rmh@aybabtu.com>
13310 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13311 Add --pkglibdir=DIR option to override pkglibdir.
13312 Mention --image-type=TYPE in help output.
13313 Fix --grub-mkimage (it was a no-op).
13314 Abort gracefully when no parameter is given.
13316 2007-06-11 Robert Millan <rmh@aybabtu.com>
13318 * util/i386/pc/grub-mkrescue.in: New file.
13319 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13320 * Makefile.in: Handle bin_SCRIPTS.
13322 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13324 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13325 list of video modes.
13327 2007-06-06 Robert Millan <rmh@aybabtu.com>
13329 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13330 file doesn't exist, or if it is in a filesystem grub can't read.
13332 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13333 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13334 header comment to fit in 80 columns when the variables are resolved.
13336 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13337 could be identified by update-grub. Remove redundant check for
13338 unifont.pff existence (since convert_system_path_to_grub_path now
13341 2007-06-04 Robert Millan <rmh@aybabtu.com>
13343 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13345 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13347 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13349 2007-06-04 Robert Millan <rmh@aybabtu.com>
13351 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13353 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13354 grub_apple_partition_map_fini.
13357 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13358 to access >2 TiB disks).
13360 Print disk->total_sectors with %llu instead of %lu, since this
13361 variable is always 64-bit (prevents wrong disk size from being displayed
13362 on either >2 TiB disk or big-endian CPU).
13364 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13365 into a generic case that supports all (sane) partition maps.
13367 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13370 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13371 and grub_apple_partition_map_fini() after that.
13373 2007-06-01 Robert Millan <rmh@aybabtu.com>
13375 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13377 * util/grub.d/00_header.in: Only enable gfxterm when
13378 convert_system_path_to_grub_path() succeeds.
13380 2007-05-20 Robert Millan <rmh@aybabtu.com>
13382 * util/update-grub_lib.in: New file.
13383 * DISTLIST: Add update-grub_lib.in.
13384 * conf/common.rmk: Generate update-grub_lib and install it in
13386 * Makefile.in: Add install routine for $(lib_DATA).
13388 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13389 function provided by update-grub_lib to support arbitrary paths of
13391 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13392 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13394 2007-05-19 Robert Millan <rmh@aybabtu.com>
13396 * commands/i386/cpuid.c: New module.
13397 * DISTLIST: Add it.
13398 * conf/i386-efi.rmk: Enable cpuid.mod.
13399 * conf/i386-pc.rmk: Likewise.
13401 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13403 * kern/disk.c (grub_disk_read): Check return value of
13406 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13408 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13410 * disk/raid.c (grub_raid_open): Likewise.
13412 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13414 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13415 stack instead of on the heap.
13417 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13418 before doing a read on it.
13420 * configure.ac: Only use -fno-stack-protector for the target
13423 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13425 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13426 __attribute_ ((unused)) to mode_type argument.
13428 * util/getroot.c (grub_guess_root_device): Fix #endif.
13430 * kern/misc.c (memcmp): Fix prototype.
13432 * include/grub/partition.h [GRUB_UTIL]
13433 (grub_gpt_partition_map_init): Add prototype.
13434 (grub_gpt_partition_map_fini): Likewise.
13436 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13437 at the right place.
13439 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13440 (grub_fat_read_data): Likewise.
13441 (grub_fat_find_dir): Likewise.
13443 * font/manager.c (find_glyph): Make table a const.
13444 (grub_font_get_glyph): Remove bitmap from if statement.
13446 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13448 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13449 code, first search for device in /dev/mapper, then in /dev.
13450 (grub_util_get_grub_dev): New function.
13451 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13453 * util/grub-probe.c (probe): Remove check for RAID, call
13454 grub_util_get_grub_dev() instead of
13455 grub_util_biosdisk_get_grub_dev().
13456 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13457 grub_util_biosdisk_get_grub_dev().
13458 * util/i386/pc/grub-setup.c (main): Likewise.
13460 2007-05-16 Robert Millan <rmh@aybabtu.com>
13462 * DISTLIST: Update for the latest changes.
13463 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13464 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13465 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13466 grub/util/biosdisk.h.
13467 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13468 grub/util/biosdisk.h.
13470 2007-05-16 Robert Millan <rmh@aybabtu.com>
13472 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13474 2007-05-16 Robert Millan <rmh@aybabtu.com>
13476 * util/i386/efi/grub-install.in: New.
13477 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13478 newly added grub-install.
13479 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13481 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13482 grub/util/biosdisk.h.
13483 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13484 grub/util/biosdisk.h.
13486 2007-05-16 Robert Millan <rmh@aybabtu.com>
13488 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13489 * include/grub/util/biosdisk.h: ... here.
13490 * util/i386/pc/biosdisk.c: Moved to ...
13491 * util/biosdisk.c: ... here.
13492 * util/i386/pc/getroot.c: Moved to ...
13493 * util/getroot.c: ... here.
13494 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13495 * util/grub-mkdevicemap.c: ... here.
13496 * util/i386/pc/grub-probe.c: Moved to ...
13497 * util/grub-probe.c: ... here.
13499 2007-05-15 Robert Millan <rmh@aybabtu.com>
13501 * util/update-grub.in: Remove duplicated line in grub.cfg header
13504 2007-05-13 Robert Millan <rmh@aybabtu.com>
13506 * util/update-grub.in: Fix a few assumptions about the devices holding
13507 /, /boot and /boot/grub being the same.
13508 * util/grub.d/00_header.in: Likewise.
13509 * util/grub.d/10_hurd.in: Likewise.
13510 * util/grub.d/10_linux.in: Likewise.
13512 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13513 patterns. Use that to define the `.old' suffix as older than `'.
13515 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13517 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13518 the grub.cfg header message.
13520 2007-05-11 Robert Millan <rmh@aybabtu.com>
13522 * util/update-grub.in: Create device.map if it doesn't already exist,
13523 before attempting to run grub-probe.
13524 Check for grub-probe and grub-mkdevicemap with the same code
13525 grub-install is using.
13528 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13530 * Makefile.in: Add the datarootdir autoconf variable.
13532 2007-05-09 Robert Millan <rmh@aybabtu.com>
13534 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13535 fail gracefully if dev->disk->partition == NULL.
13537 2007-05-07 Robert Millan <rmh@aybabtu.com>
13539 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13540 determine partition map module.
13541 * util/i386/pc/grub-install.in: Use this feature to decide which
13542 partition module to load, instead of hardcoding pc and gpt.
13544 2007-05-07 Robert Millan <rmh@aybabtu.com>
13546 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13547 source directory differs from build directory.
13549 2007-05-05 Robert Millan <rmh@aybabtu.com>
13551 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13554 2007-05-05 Robert Millan <rmh@aybabtu.com>
13556 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13558 2007-05-05 Robert Millan <rmh@aybabtu.com>
13560 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13561 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13563 2007-05-05 Robert Millan <rmh@aybabtu.com>
13565 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13566 (grub_probe_SOURCES): Likewise.
13567 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13568 GPT and initialize dos_part and bsd_part accordingly.
13569 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13571 (main): Activate gpt module for use during partition identification,
13572 and deactivate it afterwards.
13573 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13574 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13575 partition identification, and deactivate it afterwards.
13577 2007-05-05 Robert Millan <rmh@aybabtu.com>
13579 * term/i386/pc/console.c (grub_console_fini): Call
13580 grub_term_set_current() before grub_term_unregister().
13582 2007-05-04 Robert Millan <rmh@aybabtu.com>
13584 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13585 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13586 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13587 and update-grub_DATA.
13588 * conf/common.rmk: Build and install update-grub components.
13589 * conf/common.mk: Regenerate.
13590 * util/update-grub.in: New. Core of update-grub.
13591 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13592 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13593 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13594 * util/grub.d/README: New. Document grub.d directory layout.
13596 2007-05-01 Robert Millan <rmh@aybabtu.com>
13598 * util/grub-emu.c: Move initialization functions
13599 grub_util_biosdisk_init() and grub_init_all() before
13600 grub_util_biosdisk_get_grub_dev(), which relies on them.
13602 2007-04-19 Robert Millan <rmh@aybabtu.com>
13604 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13607 2007-04-18 Jerone Young <jerone@gmail.com>
13609 * kernel/elf.c: Add missing parenthesis for conditional statement
13612 2007-04-10 Jerone Young <jerone@gmail.com>
13614 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13615 continue on and look for device node with real device name.
13617 2007-04-10 Jerone Young <jerone@gmail.com>
13619 * configure.ac: Add argument for autoconf to use transformation
13621 * Makefile.in: Add autoconf package transformation code.
13622 * util/i386/pc/grub-install.in: Likewise.
13623 * util/powerpc/ieee1275/grub-install.in: Likewise.
13625 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13627 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13628 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13629 (EXT2_REVISION): Likewise.
13630 (EXT2_INODE_SIZE): Likewise.
13631 (struct grub_ext2_block_group): Added a missing member
13633 (grub_ext2_read_inode): Divide by the inode size in a superblock
13634 instead of 128 to obtain INODES_PER_BLOCK.
13635 Use the macro EXT2_INODE_SIZE instead of directly using
13636 SBLOCK->INODE_SIZE.
13638 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13640 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13641 superblock instead of the structure size to compute an
13642 offset. This fixes the problem that GRUB could not read a
13643 filesystem when inode size is different from 128-byte.
13645 2007-03-05 Marco Gerards <marco@gnu.org>
13647 * normal/main.c (read_config_file): When "menu" is not set, create
13648 an initial context.
13650 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13652 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13653 (HEAP_LIMIT): New macro.
13654 (grub_claim_heap): Claim memory up to `heaplimit'.
13656 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13658 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13659 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13660 (_start): Likewise.
13661 (grub_arch_modules_addr): Return address after `_end'.
13662 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13663 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13664 (add_segments): Calculate `_end' from phdr size and location.
13665 (ALIGN_UP): Moved to ...
13666 * include/grub/misc.h: here.
13667 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13669 (GRUB_IEEE1275_MODULE_BASE): Removed.
13671 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13673 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13676 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13678 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13680 (grub_elf64_load_hook_t): Likewise.
13681 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13684 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13686 * kern/mm.c: Update copyright.
13687 (grub_mm_debug): Correct syntax error.
13688 (grub_mm_dump_free): New function.
13689 (grub_debug_free): Call `grub_free'.
13690 * include/grub/mm.h: Update copyright.
13691 (grub_mm_dump_free): Add declaration.
13693 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13695 * include/grub/ieee1275/ieee1275.h: Update copyright.
13696 * kern/powerpc/ieee1275/init.c: Likewise.
13697 * kern/powerpc/ieee1275/openfw.c: Likewise.
13699 * loader/powerpc/ieee1275/linux.c: Likewise.
13700 * include/grub/elfload.h: Likewise.
13701 * kern/elf.c: Likewise.
13702 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13704 (grub_elf64_load): Likewise.
13705 (grub_elf32_load_segment): Move to a nested function.
13706 (grub_elf64_load_segment): Likewise.
13708 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13710 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13712 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13713 (grub_heap_len): Likewise.
13714 (HEAP_SIZE): New macro.
13715 (grub_claim_heap): New function.
13716 (grub_machine_init): Don't claim heap directly. Call
13718 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13719 (grub_available_iterate): New function.
13721 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13723 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13724 * configure.ac: Use it for testing the HOST and TARGET compilers.
13726 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13728 * Makefile.in (enable_grub_emu): New variable.
13729 * configure.ac (--enable-grub-emu): New option.
13730 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13731 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13732 * conf/i386-pc.rmk: Likewise.
13733 * conf/powerpc-ieee1275.rmk: Likewise.
13734 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13736 2006-12-12 Marco Gerards <marco@gnu.org>
13738 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13740 * kern/env.c (grub_env_unset): Don't free the member `value' when
13741 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13744 * normal/main.c (current_menu): Removed.
13745 (free_menu): Unset the `menu' environment variable.
13746 (grub_normal_menu_addentry): Make use of the environment variable
13747 `menu', instead of using the global `current_menu'. Allocate
13748 memory for the sourcecode of this entry.
13749 (read_config_file): New argument `nested', changed all callers.
13750 Only in the case of a new context, initialize a new menu. Set the
13751 `menu' environment variable.
13752 (grub_normal_execute): Don't set and unset the environment
13753 variable `menu' here anymore. Only free the menu when leaving the
13756 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13759 2006-12-11 Marco Gerards <marco@gnu.org>
13761 * normal/menu_entry.c (run): Fix off by one bug so the last line
13762 is executed. Move the loader check to outside the loop.
13764 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13766 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13768 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13770 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13771 the number of sectors. Reported by Andrey Shuvikov
13772 <mr_hyro@yahoo.com>.
13774 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13776 * kern/disk.c (grub_disk_read): When there is a read error, always
13777 try to read only the necessary data.
13779 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13781 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13783 [GRUB_UTIL] (grub_raid_fini): Likewise.
13784 [GRUB_UTIL] (grub_lvm_init): Likewise.
13785 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13786 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13787 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13788 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13789 and grub_raid_fini().
13791 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13793 * include/grub/types.h (__unused): Rename to UNUSED.
13794 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13795 (grub_elf64_size): Likewise.
13797 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13799 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13800 grub_error_push and grub_error_pop in the error-handling path.
13801 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13804 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13806 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13807 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13808 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13809 (kernel_elf_SOURCES): Likewise.
13810 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13811 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13812 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13813 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13814 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13815 (elf_mod_SOURCES): New variable.
13816 (elf_mod_CFLAGS): Likewise.
13817 (elf_mod_LDFLAGS): Likewise.
13818 * include/grub/types.h (__unused): New macro.
13819 * include/grub/elfload.h: New file.
13820 * kern/elf.c: Likewise.
13821 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13822 (ELF32_LOADMASK): New macro.
13823 (ELF64_LOADMASK): Likewise.
13824 (vmlinux): Removed.
13825 (grub_linux_load32): New function.
13826 (grub_linux_load64): Likewise.
13827 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13828 Use grub_elf_t instead of grub_file_t.
13830 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13832 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13833 `catch_result' to struct set_color_args.
13835 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13837 * normal/menu.c: Include grub/script.h.
13838 * normal/menu_entry.c: Likewise.
13839 * include/grub/normal.h: Do not include grub/script.h.
13841 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13843 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13845 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13847 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13849 (grub_disk_close): Print debug messages when closing a disk.
13850 (grub_disk_read): Print debug messages when disk read fails.
13851 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13853 * kern/partition.c: Include misc.h.
13854 (grub_partition_iterate): Print debug messages when detecting
13857 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13859 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13861 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13863 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13865 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13866 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13868 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13870 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13871 instead of sizeof(lv). Patch by Michael Guntsche.
13873 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13875 * disk/lvm.c: Rename VGS to VG_LIST.
13876 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13877 (grub_lvm_open): Likewise.
13878 Thanks to Michael Guntsche for finding this bug.
13880 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13882 * configure.ac (AC_INIT): Bumped to 1.95.
13884 2006-10-14 Robert Millan <rmh@aybabtu.com>
13886 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13887 with "/dev/.static/dev/md".
13889 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13891 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13892 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13893 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13894 DRIVE_NAME are always freed.
13896 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13897 DOS_PART, as a DOS partition is counted from one instead of zero
13898 now. Reported by Robert Millan.
13900 2006-10-14 Robert Millan <rmh@aybabtu.com>
13902 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13903 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13904 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13905 string returned by grub_guess_root_device.
13906 * util/i386/pc/grub-setup.c: Likewise.
13907 * util/i386/pc/grub-probefs.c: Likewise.
13909 * util/i386/pc/grub-probefs.c: Rename to ...
13910 * util/i386/pc/grub-probe.c: ... this.
13911 * DISTLIST: Remove grub-probefs, add grub-probe.
13912 * conf/i386-efi.rmk: Likewise.
13913 * conf/i386-pc.rmk: Likewise.
13914 * util/i386/pc/grub-install.in: Likewise.
13916 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13917 choose which information we want to print.
13919 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13921 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13922 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13923 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13924 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13925 video/readers/tga.c and video/i386/pc/vbeutil.c.
13927 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13929 Added support for RAID and LVM.
13931 * disk/lvm.c: New file.
13932 * disk/raid.c: Likewise.
13933 * include/grub/lvm.h: Likewise.
13934 * include/grub/raid.h: Likewise.
13935 * include/grub/util/lvm.h: Likewise.
13936 * include/grub/util/raid.h: Likewise.
13937 * util/lvm.c: Likewise.
13938 * util/raid.c: Likewise.
13940 * include/grub/disk.h (grub_disk_dev_id): Add
13941 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13942 (grub_disk_get_size): New prototype.
13943 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13944 returns a partition.
13945 (grub_disk_get_size): New function.
13947 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13948 verbatim if grub_install_dos_part is -2.
13950 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13953 * util/i386/pc/grub-setup.c (setup): New argument
13954 MUST_EMBED. Force embedding of GRUB when the argument is
13955 true. Close FILE before returning.
13956 (main): Add support for RAID and LVM.
13958 * conf/common.rmk: Add RAID and LVM modules.
13959 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13961 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13963 * kern/misc.c (grub_strstr): New function.
13964 * include/grub/misc.h (grub_strstr): New prototype.
13966 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13968 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13970 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13972 * kern/misc.c (grub_strtoull): Guess the base only if not
13975 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13977 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13980 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13982 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13984 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13985 Remove `flags' argument. All callers changed.
13986 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13987 (IEEE1275_IHANDLE_INVALID): New variable.
13988 (IEEE1275_CELL_INVALID): New variable.
13989 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13990 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13991 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13992 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13993 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13994 codes from Open Firmware. All callers updated.
13995 (grub_ieee1275_next_property): Directly return Open Firmware return
13997 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13998 Standardize error checking from `grub_ieee1275_get_property'.
13999 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
14000 `devalias' to `aliases'. Correct comments. Consolidate error paths.
14002 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14004 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
14005 `instance_to_package_args' to `instance_to_path_args'.
14007 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
14008 `grub_ieee1275_chosen'.
14010 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
14011 `grub_ieee1275_interpret'.
14013 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
14015 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
14017 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
14019 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
14020 (__cmpdi): Likewise.
14022 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
14023 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
14026 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
14028 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
14029 to type `grub_ssize_t'.
14030 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
14032 2006-09-22 Marco Gerards <marco@gnu.org>
14034 * normal/script.c (grub_script_create_cmdmenu): Skip leading
14037 2006-09-22 Marco Gerards <marco@gnu.org>
14039 * commands/echo.c: New file.
14041 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
14043 * conf/common.rmk (echo_mod_SOURCES): New variable.
14044 (echo_mod_CFLAGS): Likewise.
14045 (echo_mod_LDFLAGS): Likewise.
14047 2006-09-22 Marco Gerards <marco@gnu.org>
14049 * normal/main.c (get_line): Malloc memory instead of using
14050 preallocated memory. Removed the arguments `cmdline' and
14051 `max_len'. Updated all callers.
14053 2006-09-22 Marco Gerards <marco@gnu.org>
14055 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
14056 (normal_mod_DEPENDENCIES): Likewise.
14058 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
14059 (normal_mod_DEPENDENCIES): Likewise.
14061 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
14063 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
14065 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
14067 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
14068 (normal_mod_DEPENDENCIES): Likewise.
14069 * conf/i386-pc.mk: Regenerate.
14070 * conf/i386-efi.mk: Likewise
14071 * conf/common.mk: Likewise.
14072 * conf/powerpc-ieee1275.mk: Likewise.
14073 * conf/sparc64-ieee1275.mk: Likewise.
14075 2006-09-22 Robert Millan <rmh@aybabtu.com>
14077 Sync with i386 version.
14078 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
14079 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
14081 2006-09-21 Robert Millan <rmh@aybabtu.com>
14083 Import from GRUB Legacy (lib/device.c):
14084 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14085 (init_device_map) [__linux__]: Add support for I2O devices.
14087 2006-09-14 Marco Gerards <marco@gnu.org>
14089 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14092 2006-09-14 Robert Millan <rmh@aybabtu.com>
14094 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14097 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14099 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14100 before adding it to device.map.
14102 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14104 * genmk.rb: Let GCC generate dependencies the first time it
14105 compiles a file; using the -MD option.
14106 * conf/common.mk: Regenerate.
14107 * conf/i386-pc.mk: Likewise.
14108 * conf/i386-efi.mk: Likewise.
14109 * conf/powerpc-ieee1275.mk: Likewise.
14110 * conf/sparc64-ieee1275.mk: Likewise.
14112 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14114 Move the prototypes of grub_setjmp and grub_longjmp to
14115 cpu/setjmp.h, so that each architecture may specify different
14118 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14119 (grub_longjmp): Likewise.
14120 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14121 (grub_longjmp): Likewise.
14122 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14123 (grub_longjmp): Likewise.
14125 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14126 [!GRUB_UTIL] (grub_longjmp): Removed.
14128 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14130 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14131 "color!" method does not return any value.
14133 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14135 * include/grub/bitmap.h: New file.
14137 * include/grub/i386/pc/vbeutil.h: Likewise.
14139 * video/bitmap.c: Likewise.
14141 * video/readers/tga.c: Likewise.
14143 * video/i386/pc/vbeutil.c: Likewise.
14145 * commands/videotest.c: Code cleanup and updated to reflect to new
14148 * term/gfxterm.c: Likewise.
14150 * video/video.c: Likewise.
14152 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14153 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14154 (bitmap_mod_SOURCES): New entry.
14155 (bitmap_mod_CFLAGS): Likewise.
14156 (bitmap_mod_LDFLAGS): Likewise.
14157 (tga_mod_SOURCES): Likewise.
14158 (tga_mod_CFLAGS): Likewise.
14159 (tga_mod_LDFLAGS): Likewise.
14161 * include/grub/video.h (grub_video_blit_operators): New enum type.
14162 (grub_video_render_target): Changed as forward declaration and moved
14163 actual definition to be video driver specific.
14164 (grub_video_adapter.blit_bitmap): Added blitting operator.
14165 (grub_video_adapter.blit_render_target): Likewise.
14166 (grub_video_blit_bitmap): Likewise.
14167 (grub_video_blit_render_target): Likewise.
14169 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14170 driver specific render target definition.
14171 (grub_video_vbe_map_rgba): Added driver internal helper.
14172 (grub_video_vbe_unmap_color): Updated to use
14173 grub_video_i386_vbeblit_info.
14174 (grub_video_vbe_get_video_ptr): Likewise.
14176 * include/grub/i386/pc/vbeblit.h
14177 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14178 grub_video_i386_vbeblit_info.
14179 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14180 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14181 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14182 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14183 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14184 (grub_video_i386_vbeblit_index_index): Likewise.
14185 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14186 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14187 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14188 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14190 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14193 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14194 include/grub/i386/pc/vbeblit.h.
14196 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14197 Updated to use grub_video_i386_vbeblit_info.
14198 (grub_video_i386_vbefill_R8G8B8): Likewise.
14199 (grub_video_i386_vbefill_index): Likewise.
14200 (grub_video_i386_vbefill): Added generic filler.
14202 * video/i386/pc/vbefill.c: Updated to reflect changes on
14203 include/grub/i386/pc/vbefill.h.
14205 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14206 grub_video_i386_vbeblit_info.
14207 (grub_video_vbe_unmap_color): Likewise.
14208 (grub_video_vbe_blit_glyph): Likewise.
14209 (grub_video_vbe_scroll): Likewise.
14210 (grub_video_vbe_draw_pixel): Removed function.
14211 (grub_video_vbe_get_pixel): Likewise.
14212 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14213 updated code to use it.
14214 (common_blitter): Added common blitter for render target and bitmap.
14215 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14216 (grub_video_vbe_blit_render_target): Likewise.
14218 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14220 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14221 is in text mode if there is no console control protocol instance
14224 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14226 * include/grub/video.h: Code cleanup.
14228 * include/grub/i386/pc/vbe.h: Likewise.
14230 * video/i386/pc/vbe.c: Likewise.
14232 * video/i386/pc/vbeblit.c: Likewise.
14234 * video/i386/pc/vbefill.c: Likewise.
14236 * video/video.c: Likewise. Also added more comments.
14238 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14240 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14241 (struct grub_biosdisk_dap): Likewise.
14243 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14244 linkage settings for all functions.
14246 2006-07-12 Marco Gerards <marco@gnu.org>
14248 * configure.ac (--enable-mm-debug): Fix typo.
14250 * genkernsyms.sh.in: Use proper quoting for `CC'.
14252 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14254 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14255 (normal_mod_ASFLAGS): Remove "-m32".
14257 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14259 * util/misc.c: Include config.h.
14260 [!HAVE_MEMALIGN]: Do not include malloc.h.
14261 (grub_memalign): Use posix_memalign, if present. Then, use
14262 memalign, if present. Otherwise, emit an error.
14264 * util/grub-emu.c: Do not include malloc.h.
14266 * include/grub/util/misc.h: Include unistd.h. This is required for
14267 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14268 D. Eades III <hde@foobar-qux.org>.
14270 * configure.ac (AC_GNU_SOURCE): Added.
14271 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14274 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14276 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14277 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14279 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14281 * include/grub/types.h (grub_host_addr_t): Rename to
14282 grub_target_addr_t.
14283 (grub_host_off_t): Rename to grub_target_off_t.
14284 (grub_host_size_t): Rename to grub_target_size_t.
14285 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14286 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14288 * include/grub/kernel.h (struct grub_module_header): Change type
14289 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14290 (grub_module_info): Likewise.
14292 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14294 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14295 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14296 Velazquez <jesus.velazquez@gmail.com>.
14298 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14300 Count partitions from 1 instead of 0 in the string representation
14301 of partitions. Still use 0-based internally.
14303 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14304 (sun_partition_map_iterate): Use grub_partition_t instead of
14305 struct grub_partition *. Cast DESC->START_CYLINDER to
14306 grub_uint64_t after converting the endian.
14307 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14308 (sun_partition_map_get_name): Add 1 to P->INDEX.
14310 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14312 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14314 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14315 zero instead of one.
14316 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14317 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14319 * partmap/apple.c (apple_partition_map_iterate): Change the type
14320 of POS to unsigned.
14321 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14322 (apple_partition_map_get_name): Add 1 into P->INDEX.
14324 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14325 of POS to unsigned.
14326 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14327 calculate the offset of a partition.
14328 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14329 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14331 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14332 SECTOR to grub_disk_addr_t.
14333 (acorn_partition_map_iterate): Likewise.
14334 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14335 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14337 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14339 * kern/i386/pc/init.c (make_install_device): Add 1 into
14340 GRUB_INSTALL_DOS_PART.
14342 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14345 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14347 Clean up the code to support 64-bit addressing in disks and
14348 files. This change is not enough for filesystems yet.
14350 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14351 type of "start" to grub_uint64_t.
14352 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14353 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14354 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14357 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14358 to grub_disk_addr_t.
14360 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14363 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14365 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14368 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14370 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14372 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14374 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14375 to grub_off_t, to detect an error from grub_file_seek.
14376 (grub_multiboot_load_elf32): Likewise.
14378 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14379 maximum unsigned long value when an overflow is detected.
14380 (grub_strtoull): New function.
14381 (grub_divmod64): Likewise.
14382 (grub_lltoa): use grub_divmod64.
14384 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14386 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14387 the pointer to next character. Use grub_strtoull instead of
14389 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14390 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14393 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14394 return value is signed.
14395 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14396 test if OFFSET is less than zero, as OFFSET is unsigned now.
14398 * kern/disk.c (struct grub_disk_cache): Change the type of
14399 "sector" to grub_disk_addr_t.
14400 (grub_disk_cache_get_index): Change the type of SECTOR to
14401 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14402 unsigned after shifting.
14403 (grub_disk_cache_invalidate): Change the type of SECTOR to
14405 (grub_disk_cache_unlock): Likewise.
14406 (grub_disk_cache_store): Likewise.
14407 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14408 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14409 grub_disk_addr_t and grub_uint64_t, respectively.
14410 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14411 body, as the value of OFFSET is tweaked by
14412 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14413 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14415 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14416 body, as the value of OFFSET is tweaked by
14417 grub_disk_check_range. Change the types of LEN and N to
14420 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14421 and "saved_offset" to grub_off_t.
14422 (test_header): Cast BUF to char *.
14423 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14425 (grub_gzio_read): Change the types of OFFSET and SIZE to
14426 grub_off_t and grub_size_t, respectively.
14428 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14430 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14431 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14432 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14433 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14434 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14436 * include/grub/types.h (grub_off_t): Unconditionally set to
14438 (grub_disk_addr_t): Changed to grub_uint64_t.
14440 * include/grub/partition.h (struct grub_partition): Change the
14441 types of "start", "len" and "offset" to grub_disk_addr_t,
14442 grub_uint64_t and grub_disk_addr_t, respectively.
14443 (grub_partition_get_start): Return grub_disk_addr_t.
14444 (grub_partition_get_len): Return grub_uint64_t.
14446 * include/grub/misc.h (grub_strtoull): New prototype.
14447 (grub_divmod64): Likewise.
14449 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14450 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14451 grub_off_t, respectively.
14452 All callers and references changed.
14454 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14455 grub_size_t in "read".
14456 All callers and references changed.
14458 * include/grub/file.h (struct grub_file): Change the types of
14459 "offset" and "size" to grub_off_t and grub_off_t,
14460 respectively. Change the type of SECTOR to grub_disk_addr_t in
14462 (grub_file_read): Change the type of LEN to grub_size_t.
14463 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14465 (grub_file_size): Return grub_off_t.
14466 (grub_file_tell): Likewise.
14467 All callers and references changed.
14469 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14470 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14472 (struct grub_disk): Change the type of "total_sectors" to
14473 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14475 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14476 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14477 (grub_disk_write): Likewise.
14478 All callers and references changed.
14480 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14481 char * for grub_strncmp to silence gcc.
14482 (grub_iso9660_mount): Likewise.
14483 (grub_iso9660_mount): Likewise.
14484 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14486 (grub_iso9660_iterate_dir): Likewise.
14487 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14489 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14490 LEN to grub_disk_addr_t and grub_size_t, respectively.
14492 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14494 * fs/jfs.c (grub_jfs_read_file): Likewise.
14496 * fs/minix.c (grub_jfs_read_file): Likewise.
14498 * fs/sfs.c (grub_jfs_read_file): Likewise.
14500 * fs/ufs.c (grub_jfs_read_file): Likewise.
14502 * fs/xfs.c (grub_jfs_read_file): Likewise.
14504 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14505 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14508 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14509 BLKNR to -1 instead of returning GRUB_ERRNO.
14510 (grub_ext2_read_file): Change the types of SECTOR and
14511 LEN to grub_disk_addr_t and grub_size_t, respectively.
14513 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14514 LEN to grub_disk_addr_t and grub_size_t, respectively.
14516 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14519 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14520 string. Do not cast SECTOR explicitly.
14522 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14523 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14524 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14525 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14526 over 2TB and LBA mode is not supported, raise an error.
14527 (get_safe_sectors): New function.
14528 (grub_biosdisk_read): Use get_safe_sectors.
14529 (grub_biosdisk_write): Likewise.
14531 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14532 (grub_efidisk_write): Likewise.
14534 * disk/loopback.c (delete_loopback): Cosmetic changes.
14535 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14537 (grub_loopback_open): Likewise.
14538 (grub_loopback_read): Likewise. Also, change the type of POS to
14539 grub_off_t, and fix the usage of grub_memset.
14541 * commands/i386/pc/play.c: Include grub/machine/time.h.
14543 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14546 * commands/configfile.c: Include grub/env.h.
14548 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14549 GRUB_ERRNO directly instead. Change the type of POS to
14550 grub_off_t. Follow the coding standard.
14552 * commands/blocklist.c: Include grub/partition.h.
14553 (grub_cmd_blocklist): Return an error if the underlying device is
14554 not a disk. Take the starting sector of a partition into account,
14555 if a partition is used.
14557 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14559 (lba_mode): Support 64-bit addresses.
14560 (chs_mode): Likewise.
14561 (copy_buffer): Adapted to the new offsets of a length field and a
14563 (blocklist_default_start): Allocate 64-bit space.
14565 * boot/i386/pc/boot.S (force_lba): Removed.
14566 (boot_drive): Moved to under KERNEL_SECTOR.
14567 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14569 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14571 (lba_mode): Refactored to support a 64-bit address. More size
14573 (setup_sectors): Likewise.
14575 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14577 * DISTLIST: Added include/grub/i386/linux.h. Removed
14578 include/grub/i386/pc/linux.h
14580 * configure.ac (AC_INIT): Bumped to 1.94.
14582 * config.guess: Updated from gnulib.
14583 * config.sub: Likewise.
14584 * install-sh: Likewise.
14585 * mkinstalldirs: Likewise.
14587 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14589 * conf/common.rmk (grub_modules_init.lst): Depended on
14590 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14593 * genmk.rb (PModule::rule): Reverted the previous change.
14595 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14597 * conf/common.rmk (grub_modules_init.lst): Depends on
14598 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14599 that the target does not exist before producing.
14600 (grub_modules_init.h): Remove the target before generating.
14601 (grub_emu_init.c): Likewise.
14603 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14605 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14607 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14608 for the target-specific tests. Make sure that we also have the
14609 up-to-date target variables for those tests.
14611 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14613 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14614 (PModule::rule): Likewise.
14616 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14618 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14619 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14620 target-specific flags should be prefixed.
14621 (PModule::rule): Likewise.
14623 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14625 * configure.ac (CMP): Check if cmp is available explicitly.
14627 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14629 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14630 (target_cpu): New variable.
14631 (pkglibdir): Use target_cpu instead of host_cpu.
14633 * util/i386/pc/grub-install.in (host_cpu): Removed.
14634 (target_cpu): New variable.
14635 (pkglibdir): Use target_cpu instead of host_cpu.
14637 * util/genmoddep.c: Removed.
14639 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14640 instead of GRUB_HOST_SIZEOF_VOID_P.
14641 * kern/dl.c: Likewise.
14643 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14645 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14646 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14647 (GRUB_TARGET_SIZEOF_LONG): ... this.
14648 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14649 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14650 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14652 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14653 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14654 (GRUB_TARGET_SIZEOF_LONG): ... this.
14655 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14656 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14657 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14659 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14660 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14661 (GRUB_TARGET_SIZEOF_LONG): ... this.
14662 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14663 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14665 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14666 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14667 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14668 instead of GRUB_HOST_SIZEOF_LONG.
14669 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14670 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14671 GRUB_CPU_WORDS_BIGENDIAN.
14672 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14673 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14676 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14677 (genmoddep_SOURCES): Likewise.
14678 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14679 (genmoddep_SOURCES): Likewise.
14680 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14681 (genmoddep_SOURCES): Likewise.
14682 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14684 (genmoddep_SOURCES): Likewise.
14686 * genmoddep.awk: New file.
14688 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14689 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14690 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14691 (PModule::rule): Likewise.
14692 (Program::rule): Likewise.
14693 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14694 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14697 * configure.ac: Rewritten intensively to use host and target
14698 instead of build and host, respectively.
14700 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14701 (host_cpu): Removed.
14702 (target_cpu): New variable.
14703 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14704 (BUILD_CC): Removed.
14705 (BUILD_CFLAGS): Likewise.
14706 (BUILD_CPPFLAGS): Likewise.
14707 (TARGET_CC): New variable.
14708 (TARGET_CFLAGS): Likewise.
14709 (TARGET_CPPFLAGS): Likewise.
14710 (TARGET_LDFLAGS): Likewise.
14712 (include): Use target_cpu instead of host_cpu.
14713 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14715 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14717 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14719 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14720 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14721 field 'false' to 'exec_on_false'.
14722 (grub_script_create_cmdif): Renamed argument names to reflect above
14725 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14727 * normal/script.c (grub_script_create_cmdif): Likewise.
14729 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14731 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14733 (grub_hfsplus_btree_recptr): Likewise.
14734 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14735 FILEBLOCK both to pass a block number and store next block
14737 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14738 overflow file correctly. Specify errors appropriately, because
14739 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14740 grub_hfsplus_btree_recptr to get the pointer to a found key.
14741 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14744 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14746 (_linux_mod_SOURCES): New variable.
14747 (_linux_mod_CFLAGS): Likewise.
14748 (_linux_mod_LDFLAGS): Likewise.
14749 (linux_mod_SOURCES): Likewise.
14750 (linux_mod_CFLAGS): Likewise.
14751 (linux_mod_LDFLAGS): Likewise.
14753 * DISTLIST: Added loader/i386/efi/linux.c,
14754 loader/i386/efi/linux_normal.c and
14755 include/grub/i386/efi/loader.h.
14757 * loader/i386/efi/linux.c: New file.
14758 * loader/i386/efi/linux_normal.c: Likewise.
14759 * include/grub/i386/efi/loader.h: Likewise.
14761 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14763 * commands/blocklist.c: New file.
14765 * DISTLIST: Added commands/blocklist.c.
14767 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14768 color for the background, and a darker color for the foreground.
14769 (grub_console_checkkey): Return READ_KEY.
14770 (grub_console_cls): Set the background to
14771 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14773 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14775 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14776 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14778 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14781 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14782 BG. The spec is wrong again.
14784 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14786 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14788 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14789 commands/blocklist.c.
14790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14792 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14793 (blocklist_mod_SOURCES): New variable.
14794 (blocklist_mod_CFLAGS): Likewise.
14795 (blocklist_mod_LDFLAGS): Likewise.
14797 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14799 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14801 (lba_mode): Use %eax more intensively to reduce the code size.
14803 2006-05-20 Marco Gerards <marco@gnu.org>
14805 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14807 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14809 (script): Accept leading newlines.
14810 (newlines): New rule to describe 0 or more newlines.
14811 (commands): Accept `command' with trailing newline. Fixed the
14812 order in which arguments were passed to `grub_script_add_cmd'.
14813 Accept commands separated by newlines.
14814 (function): Changed to accept newlines.
14815 (menuentry) Rewritten.
14817 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14818 front of the list, instead of to the end.
14820 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14822 * util/i386/pc/grub-install.in (bindir): New variable.
14823 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14824 Shaver <lbgwjl@gmail.com>.
14826 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14828 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14829 grub/machine/linux.h
14830 * loader/i386/pc/linux.c: Likewise.
14832 * include/grub/i386/pc/linux.h: Moved to ...
14833 * include/grub/i386/linux.h: ... here.
14835 * include/grub/i386/linux.h (struct linux_kernel_params): New
14838 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14840 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14842 (grub_video_vbe_blit_glyph): Likewise.
14843 (grub_video_vbe_blit_bitmap): Likewise.
14844 (grub_video_vbe_blit_render_target): Likewise.
14846 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14848 * configure.ac (--with-platform): Properly quote the square
14851 2006-05-08 Marco Gerards <marco@gnu.org>
14853 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14855 (kernel_elf_HEADERS): ...to this. Updated all users.
14856 (grubof_symlist.c): Renamed from this...
14857 (kernel_elf_symlist.c): ...to this. Updated all users.
14858 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14859 (grubof_SOURCES): Renamed from this...
14860 (kernel_elf_SOURCES): ...to this.
14861 (grubof_HEADERS): Renamed from this...
14862 (kernel_elf_HEADERS): ...to this.
14863 (grubof_CFLAGS): Renamed from this...
14864 (kernel_elf_CFLAGS): ...to this.
14865 (grubof_ASFLAGS): Renamed from this...
14866 (kernel_elf_ASFLAGS): ...to this.
14867 (grubof_LDFLAGS): Renamed from this...
14868 (kernel_elf_LDFLAGS): ...to this.
14870 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14872 (kernel_elf_HEADERS): ...to this. Updated all users.
14873 (grubof_symlist.c): Renamed from this...
14874 (kernel_elf_symlist.c): ...to this. Updated all users.
14875 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14876 (grubof_SOURCES): Renamed from this...
14877 (kernel_elf_SOURCES): ...to this.
14878 (grubof_HEADERS): Renamed from this...
14879 (kernel_elf_HEADERS): ...to this.
14880 (grubof_CFLAGS): Renamed from this...
14881 (kernel_elf_CFLAGS): ...to this.
14882 (grubof_ASFLAGS): Renamed from this...
14883 (kernel_elf_ASFLAGS): ...to this.
14884 (grubof_LDFLAGS): Renamed from this...
14885 (kernel_elf_LDFLAGS): ...to this.
14887 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14888 `kernel.elf' instead of `grubof'.
14890 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14892 Add --with-platform to configure. Use pkglibdir instead of
14893 pkgdatadir. This is reported by Roger Leigh.
14895 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14896 (host_vendor): Likewise.
14897 (host_os): Likewise.
14898 (pkgdatadir): Likewise.
14899 (platform): New variable.
14900 (pkglibdir): Likewise.
14901 Use PKGLIBDIR instead of PKGDATADIR.
14903 * util/i386/pc/grub-install.in (datadir): Removed.
14904 (host_vendor): Likewise.
14905 (host_os): Likewise.
14906 (pkgdatadir): Likewise.
14907 (platform): New variable.
14908 (pkglibdir): Likewise.
14909 Use PKGLIBDIR instead of PKGDATADIR.
14911 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14912 instead of GRUB_DATADIR.
14914 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14916 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14919 * configure.ac (--with-platform): New option.
14920 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14922 * Makefile.in: Include a makefile based on PLATFORM instead of
14924 (pkgdatadir): Not appended by the machine type.
14925 (pkglibdir): Appended by the machine type.
14926 (host_vendor): Removed.
14927 (platform): New variable.
14928 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14929 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14930 (uninstall): Likewise.
14932 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14934 Use the environment context in the menu. Remove the commands
14935 "default" and "timeout", and use variables instead.
14937 * normal/menu.c: Include grub/env.h.
14938 (print_entry): Cast TITLE to silence gcc.
14939 (get_timeout): New function.
14940 (set_timeout): Likewise.
14941 (get_entry_number): Likewise.
14942 (run_menu): Use a default entry, a fallback entry and a timeout
14943 in the environment variables "default", "fallback" and
14944 "timeout". Also, tweak the default entry if it is not within the
14945 current menu entries.
14946 (grub_menu_run): Use a fallback entry in the environment variable
14949 * normal/main.c (read_config_file): Do not initialize
14950 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14952 (grub_normal_execute): Use a data slot to store the menu.
14954 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14955 fallback_entry and timeout.
14956 (struct grub_menu_list): Removed.
14957 (grub_menu_list_t): Likewise.
14958 (struct grub_context): Likewise.
14959 (grub_context_t): Likewise.
14960 (grub_context_get): Likewise.
14961 (grub_context_get_current_menu): Likewise.
14962 (grub_context_push_menu): Likewise.
14963 (grub_context_pop_menu): Likewise.
14964 (grub_default_init): Likewise.
14965 (grub_default_fini): Likewise.
14966 (grub_timeout_init): Likewise.
14967 (grub_timeout_fini): Likewise.
14969 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14971 (normal_mod_SOURCES): Removed normal/context.c.
14973 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14974 commands/default.c, commands/timeout.c and normal/context.c.
14975 (normal_mod_SOURCES): Removed normal/context.c.
14977 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14978 commands/timeout.c and normal/context.c.
14979 (normal_mod_SOURCES): Removed normal/context.c.
14981 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14982 commands/default.c, commands/timeout.c and normal/context.c.
14983 (normal_mod_SOURCES): Removed normal/context.c.
14985 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14987 (default_mod_SOURCES): Removed.
14988 (default_mod_CFLAGS): Likewise.
14989 (default_mod_LDFLAGS): Likewise.
14990 (timeout_mod_SOURCES): Removed.
14991 (timeout_mod_CFLAGS): Likewise.
14992 (timeout_mod_LDFLAGS): Likewise.
14994 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14997 * commands/default.c: Removed.
14998 * commands/timeout.c: Likewise.
14999 * normal/context.c: Likewise.
15001 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
15003 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
15005 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
15007 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
15008 "next" to "prev" for readability.
15009 (struct grub_env_sorted_var): New struct.
15010 (grub_env_context): Renamed to ...
15011 (initial_context): ... this.
15012 (grub_env_var_context): Renamed to ...
15013 (current_context): ... this.
15014 (grub_env_find): Look only at CURRENT_CONTEXT.
15015 (grub_env_context_open): Rewritten to copy exported variables from
15017 (grub_env_context_close): Rewritten according to the new
15018 scheme. Also, add an assertion to prevent the initial context from
15020 (grub_env_insert): Removed the code for the sorted list.
15021 (grub_env_remove): Likewise.
15022 (grub_env_export): Simply mark the variable with
15023 GRUB_ENV_VAR_GLOBAL.
15024 (grub_env_set): A cosmetic change for naming consistency.
15025 (grub_env_get): Likewise.
15026 (grub_env_unset): Likewise.
15027 (grub_env_iterate): Rewritten to sort variables within this
15029 (grub_register_variable_hook): Fixed for naming consistency. Call
15030 grub_env_find again, only if NAME is not found at the first time.
15031 (mangle_data_slot_name): New function.
15032 (grub_env_set_data_slot): Likewise.
15033 (grub_env_get_data_slot): Likewise.
15034 (grub_env_unset_data_slot): Likewise.
15036 * include/grub/env.h (grub_env_var_type): New enum.
15037 (GRUB_ENV_VAR_LOCAL): New constant.
15038 (GRUB_ENV_VAR_GLOBAL): Likewise.
15039 (GRUB_ENV_VAR_DATA): Likewise.
15040 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
15042 (grub_env_set): Replace VAR with NAME for consistency.
15043 (grub_register_variable_hook): Likewise.
15044 (grub_env_export): Specify the name of the argument.
15045 (grub_env_set_data_slot): New prototype.
15046 (grub_env_get_data_slot): Likewise.
15047 (grub_env_unset_data_slot): Likewise.
15049 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15051 Extend the loader so that GRUB can accept a loader which comes
15052 back to GRUB when a loaded image exits. Also, this change adds
15053 support for a chainloader on EFI.
15055 * term/efi/console.c: Include grub/misc.h.
15056 (grub_console_checkkey): Display a scan code on the top for
15057 debugging. This will be removed once the EFI port gets stable.
15058 Correct the scan code mapping.
15060 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
15061 allocate memory from larger regions, in order to reduce the number
15062 of allocated regions. Otherwise, the MacOSX loader panics.
15063 (filter_memory_map): Avoid less than 1MB for compatibility with
15065 (add_memory_regions): Allocate from the tail of a region, if
15066 possible, to avoid allocating a region near to 1MB, for the MacOSX
15069 * kern/efi/init.c (grub_efi_set_prefix): Specify
15070 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
15072 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
15073 argument IMAGE_HANDLE and specify it to get a loaded image.
15074 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
15075 grub_efi_get_loaded_image.
15076 (grub_efi_get_filename): Divide the length by the size of
15078 (grub_efi_get_device_path): New function.
15079 (grub_efi_print_device_path): Print End Device Path nodes. Divide
15080 the length by the size of grub_efi_char16_t for a file path device
15083 * kern/loader.c (grub_loader_noreturn): New variable.
15084 (grub_loader_set): Accept a new argument NORETURN. Set
15085 GRUB_LOADER_NORETURN to NORETURN.
15086 All callers changed.
15087 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15090 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15092 (grub_efi_get_loaded_image): Take an argument to specify an image
15095 * include/grub/loader.h (grub_loader_set): Added one more argument
15098 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15099 instead of grub_efi_open_protocol.
15100 (grub_efidisk_get_device_name): Likewise.
15101 (grub_efidisk_close): Print a newline.
15102 (grub_efidisk_get_device_handle): Fixed to use
15103 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15104 GRUB_EFI_DEVICE_PATH_TYPE.
15106 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15107 * kern/efi/efi.c (device_path_guid): ... here.
15109 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15111 (kernel_mod_HEADERS): Added efi/disk.h.
15112 (_chain_mod_SOURCES): New variable.
15113 (_chain_mod_CFLAGS): Likewise.
15114 (_chain_mod_LDFLAGS): Likewise.
15115 (chain_mod_SOURCES): Likewise.
15116 (chain_mod_CFLAGS): Likewise.
15117 (chain_mod_LDFLAGS): Likewise.
15119 * DISTLIST: Added include/grub/efi/chainloader.h,
15120 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15122 * include/grub/efi/chainloader.h: New file.
15123 * loader/efi/chainloader.c: Likewise.
15124 * loader/efi/chainloader_normal.c: Likewise.
15126 2006-04-30 Marco Gerards <marco@gnu.org>
15128 * commands/configfile.c (grub_cmd_source): New function.
15129 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15130 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15132 2006-04-30 Marco Gerards <marco@gnu.org>
15134 * normal/execute.c (grub_script_execute_cmd): Change the return
15135 type to `grub_err_t'. Correctly return the error.
15136 (grub_script_execute_cmdline): In case a command line is not a
15137 command or a function, try to interpret it as an assignment.
15139 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15141 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15142 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15143 skip a node whose name is obviously invalid as UTF-16,
15144 i.e. contains a NUL character. Stop the iteration when the last
15145 directory entry is found. Instead of using the return value of
15146 grub_hfsplus_btree_iterate_node, store the value in RET and use
15147 it, because the iterator can be stopped by the last directory
15150 2006-04-30 Marco Gerards <marco@gnu.org>
15152 * include/grub/env.h (grub_env_export): New prototype. Reported
15153 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15155 2006-04-30 Marco Gerards <marco@gnu.org>
15157 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15158 size of the extents in a catalog file record.
15160 2006-04-29 Marco Gerards <marco@gnu.org>
15162 * commands/configfile.c (grub_cmd_configfile): Execute the
15163 configfile within its own context.
15165 * include/grub/env.h (grub_env_context_open): New prototype.
15166 (grub_env_context_close): Likewise.
15168 * kern/env.c (grub_env): Removed.
15169 (grub_env_sorted): Likewise.
15170 (grub_env_context): New variable.
15171 (grub_env_var_context): Likewise.
15172 (grub_env_find): Search both the active context and the global
15174 (grub_env_context_open): New function.
15175 (grub_env_context_close): Likewise.
15176 (grub_env_insert): Likewise.
15177 (grub_env_remove): Likewise.
15178 (grub_env_export): Likewise.
15179 (grub_env_set): Changed to use helper functions to avoid code
15181 (grub_env_iterate): Rewritten so both the current context and the
15182 global context are being used.
15184 * normal/command.c (export_command): New function.
15185 (grub_command_init): Register the `export' function.
15187 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15189 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15190 explicitly to suppress gcc's warnings.
15191 * fs/fat.c (grub_fat_find_dir): Likewise.
15192 (grub_fat_label): Likewise.
15193 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15194 (grub_xfs_mount): Likewise.
15195 (grub_xfs_label): Likewise.
15196 * fs/affs.c (grub_affs_mount): Likewise.
15197 (grub_affs_label): Likewise.
15198 (grub_affs_iterate_dir): Likewise.
15199 * fs/sfs.c (grub_sfs_mount): Likewise.
15200 (grub_sfs_iterate_dir): Likewise.
15201 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15202 * fs/hfs.c (grub_hfs_mount): Likewise.
15203 (grub_hfs_cmp_catkeys): Likewise.
15204 (grub_hfs_find_dir): Likewise.
15205 (grub_hfs_dir): Likewise.
15206 (grub_hfs_label): Likewise.
15207 * fs/jfs.c (grub_jfs_mount): Likewise.
15208 (grub_jfs_opendir): Likewise.
15209 (grub_jfs_getent): Likewise.
15210 (grub_jfs_lookup_symlink): Likewise.
15211 (grub_jfs_label): Likewise.
15212 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15213 (grub_hfsplus_iterate_dir): Likewise.
15214 (grub_hfsplus_btree_iterate_node): Made static.
15216 * util/grub-emu.c (prefix): New variable.
15217 (grub_machine_set_prefix): New function.
15218 (main): Do not set the environment variable "prefix" here. Only
15219 set PREFIX, which is used later by grub_machine_set_prefix.
15221 * include/grub/video.h: Do not include grub/symbol.h.
15222 (grub_video_register): Not exported. This symbol is not defined in
15224 (grub_video_unregister): Likewise.
15225 (grub_video_iterate): Likewise.
15226 (grub_video_setup): Likewise.
15227 (grub_video_restore): Likewise.
15228 (grub_video_get_info): Likewise.
15229 (grub_video_get_blit_format): Likewise.
15230 (grub_video_set_palette): Likewise.
15231 (grub_video_get_palette): Likewise.
15232 (grub_video_set_viewport): Likewise.
15233 (grub_video_get_viewport): Likewise.
15234 (grub_video_map_color): Likewise.
15235 (grub_video_map_rgb): Likewise.
15236 (grub_video_map_rgba): Likewise.
15237 (grub_video_fill_rect): Likewise.
15238 (grub_video_blit_glyph): Likewise.
15239 (grub_video_blit_bitmap): Likewise.
15240 (grub_video_blit_render_target): Likewise.
15241 (grub_video_scroll): Likewise.
15242 (grub_video_swap_buffers): Likewise.
15243 (grub_video_create_render_target): Likewise.
15244 (grub_video_delete_render_target): Likewise.
15245 (grub_video_set_active_render_target): Likewise.
15247 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15249 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15251 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15252 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15253 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15254 instead of $(srcdir)/genkernsyms.sh.
15256 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15257 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15258 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15259 instead of $(srcdir)/genkernsyms.sh.
15261 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15262 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15263 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15264 instead of $(srcdir)/genkernsyms.sh.
15266 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15267 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15268 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15269 instead of $(srcdir)/genkernsyms.sh.
15271 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15274 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15276 (gensymlist.sh): New target.
15277 (genkernsyms.sh): Likewise.
15279 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15280 genkernsyms.sh.in and gensymlist.sh.in.
15282 * genkernsyms.sh: Removed.
15283 * gensymlist.sh: Likewise.
15285 * genkernsyms.sh.in: New file.
15286 * gensymlist.sh.in: Likewise.
15288 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15290 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15291 clobber "prefix", since we may have already set it manually.
15293 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15295 * kern/misc.c (abort): New alias for grub_abort.
15297 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15299 A new machine-specific function "grub_machine_set_prefix" is
15300 defined. This is called after loading modules, so that a prefix
15301 initialization can use modules. Also, this change adds an
15302 intensive debugging feature for the memory manager via the
15303 configure option "--enable-mm-debug".
15305 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15308 * kern/sparc64/ieee1275/init.c (abort): Removed.
15309 (grub_stop): Likewise.
15310 (grub_exit): New function.
15311 (grub_set_prefix): Renamed to ...
15312 (grub_machine_set_prefix): ... this.
15313 (grub_machine_init): Do not call grub_set_prefix.
15315 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15316 (grub_machine_set_prefix): ... this.
15317 (grub_machine_init): Do not call grub_set_prefix.
15319 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15320 (grub_machine_init): Do not set the prefix here.
15322 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15324 * kern/efi/init.c: Include grub/mm.h.
15325 (grub_efi_set_prefix): New function.
15327 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15328 (grub_efi_get_filename): New function.
15329 (grub_print_device_path): Renamed to ...
15330 (grub_efi_print_device_path): ... this.
15332 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15333 [MM_DEBUG] (grub_realloc): Likewise.
15334 [MM_DEBUG] (grub_free): Likewise.
15335 [MM_DEBUG] (grub_memalign): Likewise.
15336 [MM_DEBUG] (grub_mm_debug): New variable.
15337 [MM_DEBUG] (grub_debug_malloc): New function.
15338 [MM_DEBUG] (grub_debug_free): New function.
15339 [MM_DEBUG] (grub_debug_realloc): New function.
15340 [MM_DEBUG] (grub_debug_memalign): New function.
15342 * kern/misc.c (grub_abort): Print a newline to distinguish
15345 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15346 grub_set_root_dev after loading modules. This is necessary when
15347 setting a prefix depends on modules.
15349 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15350 (grub_efi_print_device_path): ... this.
15351 (grub_efi_get_filename): New prototype.
15352 (grub_efi_set_prefix): Likewise.
15354 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15356 (grub_efidisk_get_device_handle): New prototype.
15357 (grub_efidisk_get_device_name): Likewise.
15359 * include/grub/mm.h: Include config.h.
15360 (MM_DEBUG): Removed.
15361 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15362 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15363 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15364 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15365 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15366 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15367 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15368 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15369 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15371 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15373 * disk/efi/efidisk.c: Include grub/partition.h.
15374 (iterate_child_devices): New function.
15375 (add_device): First, compare only last device path nodes, so that
15376 devices are sorted by the types.
15377 (grub_efidisk_get_device_handle): New function.
15378 (grub_efidisk_get_device_name): Likewise.
15380 * configure.ac (--enable-mm-debug): New option to enable the
15381 memory manager debugging feature. This makes the binary much
15382 bigger, so is disabled by default.
15384 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15386 Use grub_abort instead of grub_stop, and grub_exit must be
15387 define in each architecture now. Also, this change adds support
15390 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15391 (grub_getkey): New function.
15392 (grub_term_get_current): Likewise.
15394 * util/i386/pc/grub-setup.c: Include grub/term.h.
15395 (grub_getkey): New function.
15396 (grub_term_get_current): Likewise.
15398 * util/misc.c (grub_stop): Renamed to ...
15399 (grub_exit): ... this.
15401 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15402 (grub_exit): ... this.
15403 (grub_machine_init): Use grub_abort instead of abort.
15404 (grub_stop): Removed.
15406 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15409 * kern/i386/pc/startup.S (grub_exit): New function.
15410 (cold_reboot): New label.
15412 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15413 (grub_efi_init): Call grub_efidisk_init.
15414 (grub_efi_fini): Call grub_efidisk_fini.
15416 * kern/efi/efi.c: Include grub/mm.h.
15417 (grub_efi_console_control_guid): Renamed to ...
15418 (console_control_guid): ... this.
15419 (grub_efi_loaded_image_guid): Renamed to ...
15420 (loaded_image_guid): ... this.
15421 (grub_efi_locate_handle): New function.
15422 (grub_efi_open_protocol): Likewise.
15423 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15424 GRUB_EFI_CONSOLE_CONTROL_GUID.
15425 (grub_efi_exit): Removed.
15426 (grub_stop): Likewise.
15427 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15428 (grub_exit): New function.
15429 (grub_print_device_path): Likewise.
15431 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15432 (grub_enter_rescue_mode): Register "exit".
15434 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15435 (grub_abort): New function.
15437 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15439 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15441 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15443 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15444 (grub_print_device_path): New prototype.
15445 (grub_efi_locate_handle): Likewise.
15446 (grub_efi_open_protocol): Likewise.
15448 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15449 * disk/efi/efidisk.c: Likewise.
15451 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15453 * include/grub/efi/console_control.h
15454 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15456 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15457 last 8 bytes as an array.
15458 (GRUB_EFI_DISK_IO_GUID): New macro.
15459 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15460 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15461 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15463 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15464 (struct grub_efi_device_path): Rename the member "sub_type" to
15466 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15467 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15468 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15469 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15470 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15471 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15472 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15473 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15474 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15475 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15476 (struct grub_efi_pci_device_path): New structure.
15477 (grub_efi_pci_device_path_t): New type.
15478 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15479 (struct grub_efi_pccard_device_path): New structure.
15480 (grub_efi_pccard_device_path_t): New type.
15481 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15482 (struct grub_efi_memory_mapped_device_path): New structure.
15483 (grub_efi_memory_mapped_device_path_t): New type.
15484 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15485 (struct grub_efi_vendor_device_path): New structure.
15486 (grub_efi_vendor_device_path_t): New type.
15487 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15488 (struct grub_efi_controller_device_path): New structure.
15489 (grub_efi_controller_device_path_t): New type.
15490 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15491 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15492 (struct grub_efi_acpi_device_path): New structure.
15493 (grub_efi_acpi_device_path_t): New type.
15494 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15495 (struct grub_efi_expanded_acpi_device_path): New structure.
15496 (grub_efi_expanded_acpi_device_path_t): New type.
15497 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15498 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15499 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15500 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15501 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15502 (struct grub_efi_atapi_device_path): New structure.
15503 (grub_efi_atapi_device_path_t): New type.
15504 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15505 (struct grub_efi_fibre_channel_device_path): New structure.
15506 (grub_efi_fibre_channel_device_path_t): New type.
15507 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15508 (struct grub_efi_1394_device_path): New structure.
15509 (grub_efi_1394_device_path_t): New type.
15510 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15511 (struct grub_efi_usb_device_path): New structure.
15512 (grub_efi_usb_device_path_t): New type.
15513 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15514 (struct grub_efi_usb_class_device_path): New structure.
15515 (grub_efi_usb_class_device_path_t): New type.
15516 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15517 (struct grub_efi_i2o_device_path): New structure.
15518 (grub_efi_i2o_device_path_t): New type.
15519 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15520 (struct grub_efi_mac_address_device_path): New structure.
15521 (grub_efi_mac_address_device_path_t): New type.
15522 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15523 (struct grub_efi_ipv4_device_path): New structure.
15524 (grub_efi_ipv4_device_path_t): New type.
15525 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15526 (struct grub_efi_ipv6_device_path): New structure.
15527 (grub_efi_ipv6_device_path_t): New type.
15528 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15529 (struct grub_efi_infiniband_device_path): New structure.
15530 (grub_efi_infiniband_device_path_t): New type.
15531 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15532 (struct grub_efi_uart_device_path): New structure.
15533 (grub_efi_uart_device_path_t): New type.
15534 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15535 (struct grub_efi_vendor_messaging_device_path): New structure.
15536 (grub_efi_vendor_messaging_device_path_t): New type.
15537 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15538 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15539 (struct grub_efi_hard_drive_device_path): New structure.
15540 (grub_efi_hard_drive_device_path_t): New type.
15541 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15542 (struct grub_efi_cdrom_device_path): New structure.
15543 (grub_efi_cdrom_device_path_t): New type.
15544 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15545 (struct grub_efi_vendor_media_device_path): New structure.
15546 (grub_efi_vendor_media_device_path_t): New type.
15547 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15548 (struct grub_efi_file_path_device_path): New structure.
15549 (grub_efi_file_path_device_path_t): New type.
15550 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15551 (struct grub_efi_protocol_device_path): New structure.
15552 (grub_efi_protocol_device_path_t): New type.
15553 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15554 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15555 (struct grub_efi_bios_device_path): New structure.
15556 (grub_efi_bios_device_path_t): New type.
15557 (struct grub_efi_disk_io): New structure.
15558 (grub_efi_disk_io_t): New type.
15559 (struct grub_efi_block_io_media): New structure.
15560 (grub_efi_block_io_media_t): New type.
15561 (struct grub_efi_block_io): New structure.
15562 (grub_efi_block_io_t): New type.
15564 * include/grub/misc.h (grub_stop): Removed.
15565 (grub_exit): New prototype.
15566 (grub_abort): Likewise.
15568 * include/grub/disk.h (enum grub_disk_dev_id): Added
15569 GRUB_DISK_DEVICE_EFIDISK_ID.
15571 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15572 disk/efi/efidisk.c.
15573 (kernel_syms.lst): Remove the target if an error occurs.
15575 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15577 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15578 as it was simply too buggy.
15580 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15582 * kern/misc.c (grub_lltoa): New function.
15583 (grub_vsprintf): Added support for the long long suffix,
15586 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15588 * Makefile.in (LDFLAGS): Add variable.
15589 (LD): Remove variable.
15590 * configure.ac: Add -m32 to LDFLAGS.
15591 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15592 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15593 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15594 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15595 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15597 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15598 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15599 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15601 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15603 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15604 length for unknown glyph.
15606 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15608 Add support for pre-loaded modules into the EFI port.
15610 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15611 completely. Accept one more argument DIR. The caller has changed.
15613 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15615 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15616 (grub_efi_loaded_image_guid): New variable.
15617 (grub_efi_get_loaded_image): New function.
15618 (grub_arch_modules_addr): Likewise.
15620 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15623 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15624 (struct grub_efi_loaded_image): New structure.
15625 (grub_efi_loaded_image_t): New type.
15627 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15629 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15630 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15631 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15633 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15635 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15637 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15639 * DISTLIST: Added include/grub/efi/console.h,
15640 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15641 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15643 * include/grub/efi/console.h: New file.
15644 * include/grub/efi/time.h: Likewise.
15645 * include/grub/i386/efi/kernel.h: Likewise.
15646 * kern/efi/init.c: Likewise.
15647 * kern/efi/mm.c: Likewise.
15648 * term/efi/console.c: Likewise.
15650 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15651 (grub_stop): Removed.
15652 (grub_get_rtc): Likewise.
15653 (grub_machine_init): Simply call grub_efi_init.
15654 (grub_machine_fini): Call grub_efi_fini.
15656 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15657 (grub_efi_output_string): Removed.
15658 (grub_efi_stall): New function.
15659 (grub_stop): Likewise.
15660 (grub_get_rtc): Likewise.
15662 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15663 (grub_efi_stall): New prototype.
15664 (grub_efi_allocate_pages): Likewise.
15665 (grub_efi_free_pages): Likewise.
15666 (grub_efi_get_memory_map): Likewise.
15667 (grub_efi_mm_init): Likewise.
15668 (grub_efi_mm_fini): Likewise.
15669 (grub_efi_init): Likewise.
15670 (grub_efi_fini): Likewise.
15672 * include/grub/i386/efi/time.h: Do not include
15673 grub/symbol.h. Include grub/efi/time.h.
15674 (GRUB_TICKS_PER_SECOND): Removed.
15675 (grub_get_rtc): Likewise.
15677 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15678 Added padding. The EFI spec is buggy.
15679 (GRUB_EFI_BLACK): New macro.
15680 (GRUB_EFI_BLUE): Likewise.
15681 (GRUB_EFI_GREEN): Likewise.
15682 (GRUB_EFI_CYAN): Likewise.
15683 (GRUB_EFI_RED): Likewise.
15684 (GRUB_EFI_MAGENTA): Likewise.
15685 (GRUB_EFI_BROWN): Likewise.
15686 (GRUB_EFI_LIGHTGRAY): Likewise.
15687 (GRUB_EFI_BRIGHT): Likewise.
15688 (GRUB_EFI_DARKGRAY): Likewise.
15689 (GRUB_EFI_LIGHTBLUE): Likewise.
15690 (GRUB_EFI_LIGHTGREEN): Likewise.
15691 (GRUB_EFI_LIGHTCYAN): Likewise.
15692 (GRUB_EFI_LIGHTRED): Likewise.
15693 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15694 (GRUB_EFI_YELLOW): Likewise.
15695 (GRUB_EFI_WHITE): Likewise.
15696 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15697 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15698 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15699 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15700 (GRUB_EFI_BACKGROUND_RED): Likewise.
15701 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15702 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15703 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15704 (GRUB_EFI_TEXT_ATTR): Likewise.
15706 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15707 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15708 (kernel_mod_HEADERS): Added efi/time.h.
15710 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15712 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15713 include/grub/efi/api.h, include/grub/efi/console_control.h,
15714 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15715 include/grub/i386/efi/time.h, kern/efi/efi.c,
15716 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15717 and util/i386/efi/grub-mkimage.c.
15719 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15721 * genmk.rb (PModule#rule): Do not export symbols if
15722 #{prefix}_EXPORTS is set to "no".
15724 * conf/i386-efi.mk: New file.
15725 * conf/i386-efi.rmk: Likewise.
15726 * include/grub/efi/api.h: Likewise.
15727 * include/grub/efi/console_control.h: Likewise.
15728 * include/grub/efi/efi.h: Likewise.
15729 * include/grub/efi/pe32.h: Likewise.
15730 * include/grub/i386/efi/time.h: Likewise.
15731 * kern/efi/efi.c: Likewise.
15732 * kern/i386/efi/init.c: Likewise.
15733 * kern/i386/efi/startup.S: Likewise.
15734 * util/i386/efi/grub-mkimage.c: Likewise.
15736 2006-04-17 Marco Gerards <marco@gnu.org>
15738 * include/grub/script.h: Include <grub/parser.h> and
15739 "grub_script.tab.h".
15740 (struct grub_lexer_param): New struct.
15741 (struct grub_parser_param): Likewise.
15742 (grub_script_create_arglist): Pass the state in an argument.
15743 (grub_script_add_arglist): Likewise.
15744 (grub_script_create_cmdline): Likewise.
15745 (grub_script_create_cmdblock): Likewise.
15746 (grub_script_create_cmdif): Likewise.
15747 (grub_script_create_cmdmenu): Likewise.
15748 (grub_script_add_cmd): Likewise.
15749 (grub_script_arg_add): Likewise.
15750 (grub_script_lexer_ref): Likewise.
15751 (grub_script_lexer_deref): Likewise.
15752 (grub_script_lexer_record_start): Likewise.
15753 (grub_script_lexer_record_stop): Likewise.
15754 (grub_script_mem_record): Likewise.
15755 (grub_script_mem_record_stop): Likewise.
15756 (grub_script_malloc): Likewise.
15757 (grub_script_yylex): Likewise.
15758 (grub_script_yyparse): Likewise.
15759 (grub_script_yyerror): Likewise.
15760 (grub_script_yylex): Likewise.
15761 (grub_script_lexer_init): Return the state.
15763 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15764 (grub_script_lexer_done): Likewise.
15765 (grub_script_lexer_getline): Likewise.
15766 (grub_script_lexer_refs): Likewise.
15767 (script): Likewise.
15768 (newscript): Likewise.
15769 (record): Likewise.
15770 (recording): Likewise.
15771 (recordpos): Likewise.
15772 (recordlen): Likewise.
15773 (grub_script_lexer_init): Return the state instead of setting
15775 (grub_script_lexer_ref): Use the newly added argument for state
15776 instead of globals.
15777 (grub_script_lexer_deref): Likewise.
15778 (grub_script_lexer_record_start): Likewise.
15779 (grub_script_lexer_record_stop): Likewise.
15780 (recordchar): Likewise.
15781 (nextchar): Likewise.
15782 (grub_script_yylex2): Likewise.
15783 (grub_script_yylex): Likewise.
15784 (grub_script_yyerror): Likewise.
15786 * normal/parser.y (func_mem): Removed variable.
15787 (menu_entry): Likewise.
15789 (%lex-param): New parser option.
15790 (%parse-param): Likewise.
15791 (script): Always return the AST.
15792 (argument): Pass the state around.
15793 (arguments): Likewise.
15794 (grubcmd): Likewise.
15795 (commands): Likewise.
15796 (function): Likewise.
15797 (menuentry): Likewise.
15798 (if_statement): Likewise.
15801 * normal/script.c (grub_script_memused): Removed variable.
15802 (grub_script_parsed): Likewise.
15803 (grub_script_malloc): Added a state argument. Use that instead of
15805 (grub_script_mem_record): Likewise.
15806 (grub_script_mem_record_stop): Likewise.
15807 (grub_script_arg_add): Likewise.
15808 (grub_script_add_arglist): Likewise.
15809 (grub_script_create_cmdline): Likewise.
15810 (grub_script_create_cmdif): Likewise.
15811 (grub_script_create_cmdmenu): Likewise.
15812 (grub_script_add_cmd): Likewise.
15813 (grub_script_parse): Setup the state before calling the parser.
15815 2006-04-16 Marco Gerards <marco@gnu.org>
15817 * normal/command.c (grub_command_init): Remove the title command.
15819 * normal/lexer.c (grub_script_yylex): Renamed from this...
15820 (grub_script_yylex2): ... to this.
15821 (grub_script_yylex): New function. Temporary
15822 introduced to filter some tokens.
15823 (grub_script_yyerror): Print a newline.
15825 * normal/main.c (read_config_file): Output information about the
15826 lines that contain errors. Wait for a key after all lines have
15827 been processed. Don't return an empty menu.
15829 * normal/parser.y (func_mem): Don't initialize.
15830 (menu_entry): Likewise.
15831 (err): New variable.
15832 (script): Don't return anything when an error was encountered.
15833 (ws, returns): Removed rules.
15834 (argument): Disabled concatenated variable support.
15835 (arguments): Remove explicit separators.
15836 (grubcmd): Likewise.
15837 (function): Likewise.
15838 (menuentry): Likewise.
15840 (commands): Likewise. Add error handling.
15842 * normal/script.c (grub_script_create_cmdline): If
15843 `grub_script_parsed' is 0, assume the parser encountered an error.
15845 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15847 * configure.ac: Add support for EFI. Fix the typo
15848 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15850 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15852 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15853 foreign multibyte characters should be shown correctly.
15855 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15857 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15859 (read_config_file): Made it to close file before returning.
15861 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15863 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15864 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15865 video/i386/pc/vbefill.c.
15867 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15868 video/i386/pc/vbefill.c.
15870 * include/grub/video.h (grub_video_blit_format): New enum.
15871 (grub_video_mode_info): Added new member blit_format.
15872 (grub_video_get_blit_format): New function prototype.
15874 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15875 function prototype.
15876 (grub_video_vbe_map_rgb): Likewise.
15877 (grub_video_vbe_unmap_color): Likewise.
15879 * include/grub/i386/pc/vbeblit.h: New file.
15881 * include/grub/i386/pc/vbefill.h: New file.
15883 * video/video.c (grub_video_get_blit_format): New function.
15884 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15885 (grub_video_vbe_map_rgb): Likewise.
15886 (grub_video_vbe_unmap_color): Likewise.
15888 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15890 (grub_video_vbe_blit_render_target): Changed to use more optimized
15892 (grub_video_vbe_setup): Added detection for optimized settings.
15893 (grub_video_vbe_create_render_target): Likewise.
15895 * video/i386/pc/vbeblit.c: New file.
15897 * video/i386/pc/vbefill.c: New file.
15899 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15901 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15904 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15905 parsing to support both hex and dec ranges. If filename was missing
15906 show usage information.
15908 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15910 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15911 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15913 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15914 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15915 (video_mod_SOURCES): Added.
15916 (video_mod_CFLAGS): Likewise.
15917 (video_mod_LDFLAGS): Likewise.
15918 (gfxterm_mod_SOURCES): Likewise.
15919 (gfxterm_mod_CFLAGS): Likewise.
15920 (gfxterm_mod_LDFLAGS): Likewise.
15921 (videotest_mod_SOURCES): Likewise.
15922 (videotest_mod_CFLAGS): Likewise.
15923 (videotest_mod_LDFLAGS): Likewise.
15924 (vesafb_mod_SOURCES): Removed.
15925 (vesafb_mod_CFLAGS): Likewise.
15926 (vesafb_mod_LDFLAGS): Likewise.
15927 (vga_mod_SOURCES): Likewise.
15928 (vga_mod_CFLAGS): Likewise.
15929 (vga_mod_LDFLAGS): Likewise.
15931 * commands/videotest.c: New file.
15933 * font/manager.c (fill_with_default_glyph): Modified to use
15935 (grub_font_get_glyph): Likewise.
15936 (fontmanager): Renamed from this...
15937 (font_manager): ... to this.
15939 * include/grub/font.h (grub_font_glyph): Added new structure.
15940 (grub_font_get_glyph): Modified to use grub_font_glyph.
15942 * include/grub/misc.h (grub_abs): Added as inline function.
15944 * include/grub/video.h: New file.
15946 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15947 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15948 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15949 (grub_vbe_get_controller_info): Renamed from this...
15950 (grub_vbe_bios_get_controller_info): ... to this.
15951 (grub_vbe_get_mode_info): Renamed from this...
15952 (grub_vbe_bios_get_mode_info): ... to this.
15953 (grub_vbe_set_mode): Renamed from this...
15954 (grub_vbe_bios_set_mode): ... to this.
15955 (grub_vbe_get_mode): Renamed from this...
15956 (grub_vbe_bios_get_mode): ... to this.
15957 (grub_vbe_set_memory_window): Renamed from this...
15958 (grub_vbe_bios_set_memory_window): ... to this.
15959 (grub_vbe_get_memory_window): Renamed from this...
15960 (grub_vbe_bios_get_memory_window): ... to this.
15961 (grub_vbe_set_scanline_length): Renamed from this...
15962 (grub_vbe_set_scanline_length): ... to this.
15963 (grub_vbe_get_scanline_length): Renamed from this...
15964 (grub_vbe_bios_get_scanline_length): ... to this.
15965 (grub_vbe_set_display_start): Renamed from this...
15966 (grub_vbe_bios_set_display_start): ... to this.
15967 (grub_vbe_get_display_start): Renamed from this...
15968 (grub_vbe_bios_get_display_start): ... to this.
15969 (grub_vbe_set_palette_data): Renamed from this...
15970 (grub_vbe_bios_set_palette_data): ... to this.
15971 (grub_vbe_set_pixel_rgb): Removed.
15972 (grub_vbe_set_pixel_index): Likewise.
15974 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15976 (grub_vbe_bios_get_controller_info): ... to this.
15977 (grub_vbe_get_mode_info): Renamed from this...
15978 (grub_vbe_bios_get_mode_info): ... to this.
15979 (grub_vbe_set_mode): Renamed from this...
15980 (grub_vbe_bios_set_mode): ... to this.
15981 (grub_vbe_get_mode): Renamed from this...
15982 (grub_vbe_bios_get_mode): ... to this.
15983 (grub_vbe_set_memory_window): Renamed from this...
15984 (grub_vbe_bios_set_memory_window): ... to this.
15985 (grub_vbe_get_memory_window): Renamed from this...
15986 (grub_vbe_bios_get_memory_window): ... to this.
15987 (grub_vbe_set_scanline_length): Renamed from this...
15988 (grub_vbe_set_scanline_length): ... to this.
15989 (grub_vbe_get_scanline_length): Renamed from this...
15990 (grub_vbe_bios_get_scanline_length): ... to this.
15991 (grub_vbe_set_display_start): Renamed from this...
15992 (grub_vbe_bios_set_display_start): ... to this.
15993 (grub_vbe_get_display_start): Renamed from this...
15994 (grub_vbe_bios_get_display_start): ... to this.
15995 (grub_vbe_set_palette_data): Renamed from this...
15996 (grub_vbe_bios_set_palette_data): ... to this.
15997 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15998 getting corrupted after calling it. Added more pushes and pops.
15999 (grub_vbe_bios_set_mode): Likewise.
16000 (grub_vbe_bios_get_mode): Likewise.
16001 (grub_vbe_bios_get_memory_window): Likewise.
16002 (grub_vbe_bios_set_scanline_length): Likewise.
16003 (grub_vbe_bios_get_scanline_length): Likewise.
16004 (grub_vbe_bios_get_display_start): Likewise.
16005 (grub_vbe_bios_set_palette_data): Likewise.
16007 * normal/cmdline.c (cl_set_pos): Refresh the screen.
16008 (cl_insert): Likewise.
16009 (cl_delete): Likewise.
16011 * term/gfxterm.c: New file.
16013 * term/i386/pc/vesafb.c: Removed file.
16015 * video/video.c: New file.
16017 * video/i386/pc/vbe.c (real2pm): Added new function.
16018 (grub_video_vbe_draw_pixel): Likewise.
16019 (grub_video_vbe_get_video_ptr): Likewise.
16020 (grub_video_vbe_get_pixel): Likewise
16021 (grub_video_vbe_init): Likewise.
16022 (grub_video_vbe_fini): Likewise.
16023 (grub_video_vbe_setup): Likewise.
16024 (grub_video_vbe_get_info): Likewise.
16025 (grub_video_vbe_set_palette): Likewise.
16026 (grub_video_vbe_get_palette): Likewise.
16027 (grub_video_vbe_set_viewport): Likewise.
16028 (grub_video_vbe_get_viewport): Likewise.
16029 (grub_video_vbe_map_color): Likewise.
16030 (grub_video_vbe_map_rgb): Likewise.
16031 (grub_video_vbe_map_rgba): Likewise.
16032 (grub_video_vbe_unmap_color): Likewise.
16033 (grub_video_vbe_fill_rect): Likewise.
16034 (grub_video_vbe_blit_glyph): Likewise.
16035 (grub_video_vbe_blit_bitmap): Likewise.
16036 (grub_video_vbe_blit_render_target): Likewise.
16037 (grub_video_vbe_scroll): Likewise.
16038 (grub_video_vbe_swap_buffers): Likewise.
16039 (grub_video_vbe_create_render_target): Likewise.
16040 (grub_video_vbe_delete_render_target): Likewise.
16041 (grub_video_vbe_set_active_render_target): Likewise.
16042 (grub_vbe_set_pixel_rgb): Remove function.
16043 (grub_vbe_set_pixel_index): Likewise.
16044 (index_color_mode): Remove static variable.
16045 (active_mode): Likewise.
16046 (framebuffer): Likewise.
16047 (bytes_per_scan_line): Likewise.
16048 (grub_video_vbe_adapter): Added new static variable.
16049 (framebuffer): Likewise.
16050 (render_target): Likewise.
16051 (initial_mode): Likewise.
16052 (mode_in_use): Likewise.
16053 (mode_list): Likewise.
16055 2006-03-10 Marco Gerards <marco@gnu.org>
16057 * configure.ac (AC_INIT): Bumped to 1.93.
16059 * DISTLIST: Added `include/grub/hfs.h'.
16061 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
16063 * boot/i386/pc/boot.S (general_error): Before looping, try INT
16064 18H, which might help the BIOS falling back to next boot media.
16066 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
16068 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
16069 Poe Chen <poe.poechen@gmail.com>.
16071 2006-01-17 Marco Gerards <marco@gnu.org>
16073 * include/grub/normal.h: Include <grub/script.h>.
16074 (grub_command_list): Removed struct.
16075 (grub_command_list_t): Removed type.
16076 (grub_menu_entry): Remove members `num' and `command_list'. Add
16077 members `commands' and `sourcecode'.
16078 * include/grub/script.h: Add inclusion guards.
16079 (grub_script_cmd_menuentry): New struct.
16080 (grub_script_execute_menuentry): New prototype.
16081 (grub_script_lexer_record_start): Likewise.
16082 (grub_script_lexer_record_stop): Likewise.
16083 * normal/execute.c (grub_script_execute_menuentry): New function.
16084 * normal/lexer.c (record, recording, recordpos, recordlen): New
16086 (grub_script_lexer_record_start): New function.
16087 (grub_script_lexer_record_stop): Likewise.
16088 (recordchar): Likewise.
16089 (nextchar): Likewise.
16090 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16091 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16092 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16093 (current_menu): New variable.
16094 (free_menu): Mainly rewritten.
16095 (grub_normal_menu_addentry): New function.
16096 (read_config_file): Rewritten.
16097 * normal/menu.c (run_menu_entry): Mainly rewritten.
16098 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16100 (run): Mainly rewritten.
16101 * normal/parser.y (menu_entry): New variable.
16102 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16103 (menuentry): New rule.
16104 (command): Add `menuentry'.
16105 (if_statement): Allow additional returns before `fi'.
16106 * normal/script.c (grub_script_create_cmdmenu): New function.
16108 2006-01-03 Marco Gerards <marco@gnu.org>
16110 * INSTALL: GNU Bison is required.
16111 * configure.ac: Rewritten the test to detect Bison.
16112 * Makefile.in (YACC): New variable. Reported by Xun Sun
16113 <xun.sun.cn@gmail.com>.
16115 2006-01-03 Marco Gerards <marco@gnu.org>
16117 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16118 the HFS+ filesystem to filesystem blocks.
16119 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16120 GCC warning is silenced.
16122 2006-01-03 Marco Gerards <marco@gnu.org>
16124 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16125 read from disk from big endian to host byte order.
16127 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16129 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16131 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16132 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16133 embedded HFS+ filesystem.
16134 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16135 (grub_hfs_sblock): Move from here...
16136 * include/grub/hfs.h: To here... New file.
16137 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16139 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16141 (grub_hfsplus_volheader): Change type of member `magic' to
16143 (grub_hfsplus_data): Add new member `embedded_offset'.
16144 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16146 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16147 Calculate the offset.
16149 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16151 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16153 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16155 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16157 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16158 ENV->NAME is NULL after allocating ENV->VALUE.
16160 2005-12-25 Marco Gerards <marco@gnu.org>
16162 * kern/env.c (grub_env_set): Rewritten the error handling code.
16164 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16166 * geninit.sh: Made more robust, and more portable.
16168 2005-12-25 Marco Gerards <marco@gnu.org>
16170 Add support for Apple HFS+ filesystems.
16172 * fs/hfsplus.c: New file.
16174 * DISTLIST: Added `fs/hfsplus.c'.
16176 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16177 (hfsplus_mod_SOURCES): New variable.
16178 (hfsplus_mod_CFLAGS): Likewise.
16179 (hfsplus_mod_LDFLAGS): Likewise.
16180 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16181 (grub_setup_SOURCES): Likewise.
16182 (grub_mkdevicemap_SOURCES): Likewise.
16183 (grub_emu_SOURCES): Likewise.
16184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16186 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16188 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16190 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16192 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16193 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16194 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16195 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16196 normal/lexer.c, normal/parser.y, normal/script.c, and
16198 Removed kern/sparc64/cache.c.
16200 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16201 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16204 * configure.ac (AC_INIT): Bumped to 1.92.
16206 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16208 * kern/err.c (grub_error_push): Added new function to support error
16210 (grub_error_pop): Likewise.
16211 (grub_error_stack_items): New local variable to support error stacks.
16212 (grub_error_stack_pos): Likewise.
16213 (grub_error_stack_assert): Likewise.
16214 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16216 (grub_print_error): Added support to print errors from error stack.
16218 * include/grub/err.h (grub_error_push): Added function prototype.
16219 (grub_error_pop): Likewise.
16221 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16223 * configure.ac: Accept `powerpc64' as host_cpu.
16224 (amd64): Rename to `biarch32'.
16226 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16227 non-cacheline-aligned addresses.
16229 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16230 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16231 if `size' is non-zero.
16233 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16235 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16236 and `cd' to make sure the filename is not prefixed with a
16238 (pkgdata_MODULES): Add `gpt.mod'.
16239 (gpt_mod_SOURCES): New variable.
16240 (gpt_mod_CFLAGS): Likewise.
16241 (gpt_mod_LDFLAGS): Likewise.
16243 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16245 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16248 * partmap/gpt.c: New file.
16250 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16251 GPT partition map is detected.
16253 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16255 * commands/i386/pc/play.c: New file.
16256 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16257 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16260 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16262 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16263 ((unused))' to silence gcc warning.
16265 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16267 * configure.ac: Correct `AC_PROG_YACC' test.
16269 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16271 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16272 check before installing files.
16274 2005-11-22 Mike Small <smallm@panix.com>
16276 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16277 number regex so multidigit numbers are recognized correctly.
16279 2005-11-22 Mike Small <smallm@panix.com>
16281 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16282 debugging message before attempting to claim memory.
16283 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16284 multiple addresses in case of failure.
16286 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16288 * term/tparm.c (get_space): Remove empty `if' statement.
16290 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16292 * kern/parser.c (check_varstate): Rename `state' to 's'.
16294 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16296 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16297 variable definitions to the beginning of each function. Sort stack
16299 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16300 `buf' argument to `char *'.
16302 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16304 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16305 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16306 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16307 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16308 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16309 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16310 configfile.mod, search.mod, gzio.mod and test.mod.
16311 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16312 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16313 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16314 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16315 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16316 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16317 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16318 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16319 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16320 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16321 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16322 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16323 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16324 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16325 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16326 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16327 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16328 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16329 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16330 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16331 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16332 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16333 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16335 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16337 (pkgdata_MODULES): Add test.mod.
16339 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16341 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16342 appending to variables with "+=".
16343 (PModule): Use full pathname to generate *.lst filenames.
16345 * Makefile.in: Fixed list rules moved from genmk.rb.
16346 (.DELETE_ON_ERROR): New special target.
16347 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16349 * conf/i386-pc.rmk: Include conf/common.mk.
16350 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16351 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16352 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16353 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16354 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16355 configfile.mod, search.mod, gzio.mod and test.mod.
16356 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16357 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16358 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16359 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16360 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16361 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16362 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16363 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16364 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16365 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16366 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16367 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16368 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16369 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16370 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16371 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16372 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16373 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16374 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16375 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16376 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16377 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16378 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16380 * conf/common.rmk: ... to here. New file.
16382 * conf/common.mk: New file.
16384 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16386 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16387 (grub_script.tab.c): ... here.
16389 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16390 (grub_script.tab.c): ... here.
16392 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16393 (grub_script.tab.c): ... here.
16395 * normal/command.c (grub_command_find): Fixed a memory leak of
16396 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16398 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16400 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16401 "@" which marks the start of a comment on ARM.
16402 (VARIABLE): Likewise.
16404 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16406 Add support for Linux/ADFS partition tables.
16408 * partmap/acorn.c: New file.
16410 * include/grub/acorn_filecore.h: Likewise.
16412 * DISTLIST: Added `partmap/acorn.c' and
16413 `include/grub/acorn_filecore.h'.
16415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16417 (pkgdata_MODULES): Add `acorn.mod'.
16418 (acorn_mod_SOURCES): New variable.
16419 (acorn_mod_CFLAGS): Likewise.
16421 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16423 (pkgdata_MODULES): Add `acorn.mod'.
16424 (acorn_mod_SOURCES): New variable.
16425 (acorn_mod_CFLAGS): Likewise.
16427 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16428 (pkgdata_MODULES): Add `acorn.mod'.
16429 (acorn_mod_SOURCES): New variable.
16430 (acorn_mod_CFLAGS): Likewise.
16431 (acorn_mod_LDFLAGS): Likewise.
16433 * include/types.h (grub_disk_addr_t): New typedef.
16435 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16437 * geninit.sh: New file.
16439 * geninitheader.sh: Likewise.
16441 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16442 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16443 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16444 * commands/configfile.c (grub_configfile_init)
16445 (grub_configfile_fini): Likewise.
16446 * commands/default.c (grub_default_init, grub_default_fini):
16448 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16449 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16450 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16451 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16453 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16454 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16456 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16457 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16459 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16461 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16463 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16464 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16465 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16466 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16467 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16468 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16469 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16470 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16471 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16472 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16473 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16474 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16475 * partmap/amiga.c (grub_amiga_partition_map_init)
16476 (grub_amiga_partition_map_fini): Likewise.
16477 * partmap/apple.c (grub_apple_partition_map_init)
16478 (grub_apple_partition_map_fini): Likewise.
16479 * partmap/pc.c (grub_pc_partition_map_init)
16480 (grub_pc_partition_map_fini): Likewise.
16481 * partmap/sun.c (grub_sun_partition_map_init,
16482 grub_sun_partition_map_fini): Likewise.
16483 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16486 * util/grub-emu.c: Include <grub_modules_init.h>.
16487 (main): Don't initialize and de-initialize any modules directly,
16488 use `grub_init_all' and `grub_fini_all' instead.
16490 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16491 `grub_vesafb_mod_init'.
16492 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16494 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16495 `grub_vga_mod_init'. Updated all users.
16496 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16498 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16499 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16502 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16503 Generate a function to initialize the module in utilities.
16504 Updated all callers.
16505 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16506 initialize the module in utilities. Updated all callers.
16508 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16510 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16511 escape sequence and a literal ^L to clear the screen.
16513 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16514 when returning from Open Firmware.
16516 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16518 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16519 (grub_ofconsole_height): Likewise.
16520 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16521 manually insert a '\n'.
16522 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16523 `grub_ofconsole_height'. Return early if these are already set.
16525 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16527 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16528 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16529 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16530 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16531 and `normal/script.c'.
16532 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16533 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16534 (test_mod_SOURCES): New variable.
16535 (test_mod_CFLAGS): Likewise.
16536 (test_mod_LDFLAGS): Likewise.
16537 (pkgdata_MODULES): Add `test.mod'.
16538 (grub_script.tab.c): New rule.
16539 (grub_script.tab.h): Likewise.
16541 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16544 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16545 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16546 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16547 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16548 (test_mod_SOURCES): New variable.
16549 (test_mod_CFLAGS): Likewise.
16550 (pkgdata_MODULES): Add `test.mod'.
16551 (grub_script.tab.c): New rule.
16552 (grub_script.tab.h): Likewise.
16554 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16556 Add initial scripting support.
16558 * commands/test.c: New file.
16559 * include/grub/script.h: Likewise.
16560 * normal/execute.c: Likewise.
16561 * normal/function.c: Likewise.
16562 * normal/lexer.c: Likewise.
16563 * normal/parser.y: Likewise.
16564 * normal/script.c: Likewise.
16566 * configure.ac: Add `AC_PROG_YACC' test.
16568 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16569 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16570 `normal/function.c' and `normal/script.c'.
16571 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16572 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16573 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16575 (pkgdata_MODULES): Add `test.mod'.
16576 (grub_script.tab.c): New rule.
16577 (grub_script.tab.h): Likewise.
16579 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16581 * include/grub/normal.h (grub_test_init): New prototype.
16582 (grub_test_fini): Likewise.
16584 * normal/command.c: Include <grub/script.h>.
16585 (grub_command_execute): Rewritten.
16587 * util/grub-emu.c (main): Call `grub_test_init' and
16590 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16592 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16594 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16595 there are no pending characters.
16597 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16599 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16600 `grub_strndup' to drop device arguments. Replace unnecessary
16601 `grub_strndup' with `grub_strdup'.
16603 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16605 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16606 `debug' environment variable has been set.
16608 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16610 * Makefile.in (install-local): Use $(DATA).
16611 (uninstall): Likewise.
16612 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16613 (sbin_UTILITIES): ... to here.
16614 (sbin_SCRIPTS): New variable.
16615 (grub_install_SOURCES): New variable.
16616 * util/powerpc/ieee1275/grub-install.in: New file.
16617 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16619 (add_segments): Call `grub_util_get_path'.
16621 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16623 From Timothy Baldwin:
16624 * commands/ls.c (grub_ls_list_files): Close FILE with
16626 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16628 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16630 * include/grub/parser.h: New file.
16632 * kern/parser.c: Likewise.
16634 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16635 (grub_setup_SOURCES): Likewise.
16636 (grub_probefs_SOURCES): Likewise.
16637 (grub_emu_SOURCES): Likewise.
16638 (kernel_img_HEADERS): Add `parser.h'.
16640 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16641 (grub_emu_SOURCES): Add `kern/parser.c'.
16642 (grubof_SOURCES): Likewise.
16644 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16645 (grubof_SOURCES): Add `kern/parser.c'.
16647 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16649 * kern/misc.c (grub_split_cmdline): Removed function.
16651 * kern/rescue.c: Include <grub/parser.h>.
16652 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16653 of `grub_split_cmdline'.
16655 * normal/command.c: Include <grub/parser.h>.
16656 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16657 of `grub_split_cmdline'.
16659 * normal/completion.c: Include <grub/parser.h>.
16660 (cmdline_state): New variable.
16661 (iterate_dir): End the filename with a quote depending on the
16662 command line state.
16663 (get_state): new function.
16664 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16665 split the arguments and determine the current argument. When the
16666 argument string is not quoted, escape all spaces.
16668 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16670 * normal/sparc64/setjmp.S: New file.
16672 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16674 * include/grub/sparc64/libgcc.h: New file.
16675 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16676 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16677 normal/sparc64/setjmp.c.
16679 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16681 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16682 * kern/sparc64/cache.S: New file.
16683 * kern/sparc64/cache.c: Removed.
16684 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16685 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16687 (COMMON_LDFLAGS): Add -melf64_sparc.
16688 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16689 (grubof_SOURCES): Use cache.S instead of cache.c.
16690 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16691 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16692 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16694 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16695 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16696 (linux_mod_CFLAGS): Commented out.
16697 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16698 out because module isn't built.
16699 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16700 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16701 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16702 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16703 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16704 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16705 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16706 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16707 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16708 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16709 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16710 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16711 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16712 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16714 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16716 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16717 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16718 longer, because HFS should not be used on PC.
16720 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16722 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16723 consistently within the loop.
16725 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16727 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16728 directory can not be read.
16730 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16732 * configure.ac (AC_INIT): Increase the version number to 1.91.
16734 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16735 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16736 term/i386/pc/serial.c.
16738 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16740 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16741 file size must be permitted.
16743 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16744 between %ah and %al.
16746 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16748 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16750 Call the hook with a NUL-terminated filename.
16751 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16754 * kern/term.c (cursor_state): New variable.
16755 (grub_term_set_current): Reset the cursor state on a new
16757 (grub_setcursor): Rewritten to use CURSOR_STATE.
16758 (grub_getcursor): New function.
16760 * include/grub/term.h (grub_getcursor): New prototype.
16762 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16763 integers on ARM. Reported by Timothy Baldwin
16764 <T.E.Baldwin99@members.leeds.ac.uk>.
16766 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16768 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16770 (grub_sfs_dir): Likewise.
16772 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16774 Add support for the SFS filesystem.
16776 * fs/sfs.c: New file.
16778 * DISTLIST: Added `fs/sfs.c'.
16780 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16781 (grub_probefs_SOURCES): Likewise.
16782 (grub_emu_SOURCES): Likewise.
16783 (pkgdata_MODULES): Add `sfs.mod'.
16784 (sfs_mod_SOURCES): New variable.
16785 (sfs_mod_CFLAGS): Likewise.
16786 (sfs_mod_LDFLAGS): Likewise.
16788 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16789 (pkgdata_MODULES): Add `sfs.mod'.
16790 (sfs_mod_SOURCES): New variable.
16791 (sfs_mod_CFLAGS): Likewise.
16793 * util/grub-emu.c (main): Call `grub_sfs_init' and
16796 * include/grub/fs.h (grub_sfs_init): New prototype.
16797 (grub_sfs_fini): Likewise.
16799 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16801 Add support for the AFFS filesystem.
16803 * fs/affs.c: New file.
16805 * DISTLIST: Added `fs/affs.c'.
16807 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16808 (grub_probefs_SOURCES): Likewise.
16809 (grub_emu_SOURCES): Likewise.
16810 (pkgdata_MODULES): Add `affs.mod'.
16811 (affs_mod_SOURCES): New variable.
16812 (affs_mod_CFLAGS): Likewise.
16813 (affs_mod_LDFLAGS): Likewise.
16815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16816 (pkgdata_MODULES): Add `affs.mod'.
16817 (affs_mod_SOURCES): New variable.
16818 (affs_mod_CFLAGS): Likewise.
16820 * util/grub-emu.c (main): Call `grub_affs_init' and
16823 * include/grub/fs.h (grub_affs_init): New prototype.
16824 (grub_affs_fini): Likewise.
16826 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16828 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16830 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16832 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16835 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16838 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16839 (COMMON_LDFLAGS): New variable.
16840 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16841 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16842 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16843 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16844 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16845 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16846 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16847 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16848 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16849 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16850 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16851 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16852 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16853 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16854 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16856 (normal_mod_ASFLAGS): Add `-m32'.
16858 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16859 (grub_host_size_t, grub_host_ssize_t): New types.
16860 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16861 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16862 `GRUB_HOST_SIZEOF_VOID_P'.
16864 * include/grub/kernel.h (struct grub_module_header): Type of
16865 member offset changed to `grub_host_off_t'. Type of member size
16866 changed to `grub_host_size_t'.
16867 (struct grub_module_info): Type of member offset changed to
16868 `grub_host_off_t'. Type of member size changed to
16869 `grub_host_size_t'.
16871 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16873 Make GRUB's kernel compliant to Multiboot Specification.
16875 * kern/i386/pc/startup.S (multiboot_header): New label.
16876 (multiboot_entry): Likewise.
16877 (multiboot_trampoline): Likewise.
16879 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16880 Increased to 0x4A0.
16882 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16883 put parentheses after a question mark.
16884 [!GRUB_UTIL] (my_mod): New variable.
16886 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16888 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16890 Adds support for the XFS filesystem. Btrees are not supported
16893 * fs/xfs.c: New file.
16895 * DISTLIST: Added `fs/xfs.c'.
16897 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16898 (grub_probefs_SOURCES): Likewise.
16899 (grub_emu_SOURCES): Likewise.
16900 (pkgdata_MODULES): Add `xfs.mod'.
16901 (xfs_mod_SOURCES): New variable.
16902 (xfs_mod_CFLAGS): Likewise.
16904 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16905 (pkgdata_MODULES): Add `xfs.mod'.
16906 (xfs_mod_SOURCES): New variable.
16907 (xfs_mod_CFLAGS): Likewise.
16909 * util/grub-emu.c (main): Call `grub_xfs_init' and
16912 * include/grub/fs.h (grub_xfs_init): New prototype.
16913 (grub_xfs_fini): Likewise.
16916 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16918 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16919 color modes, allow greater than 16 colors to be configured as
16922 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16924 * normal/completion.c (complete_arguments): Add the qualifier
16925 const into OPTIONS.
16927 From Omniflux <omniflux+lists@omniflux.com>:
16928 * include/grub/terminfo.h: New file.
16929 * include/grub/tparm.h: Likewise.
16930 * include/grub/i386/pc/serial.h: Likewise.
16931 * term/terminfo.c: Likewise.
16932 * term/tparm.c: Likewise.
16933 * term/i386/pc/serial.c: Likewise.
16934 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16936 (terminfo_mod_SOURCES): New variable.
16937 (terminfo_mod_CFLAGS): Likewise.
16938 (serial_mod_SOURCES): Likewise.
16939 (serial_mod_CFLAGS): Likewise.
16941 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16943 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16944 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16945 and kern/powerpc/ieee1275/cmain.c, respectively.
16947 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16948 * kern/powerpc/ieee1275/crt0.S: ... here.
16950 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16951 * kern/powerpc/ieee1275/cmain.c: ... here.
16953 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16954 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16955 instead of boot/powerpc/ieee1275/crt0.S and
16956 boot/powerpc/ieee1275/cmain.c, respectively.
16958 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16959 sectors. It was not used anyway.
16961 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16963 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16964 `unused parameter' warning.
16966 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16968 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16970 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16973 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16975 * include/grub/normal.h (enum grub_completion_type): Added
16976 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16978 * normal/cmdline.c (print_completion): Handle
16979 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16980 * normal/menu_entry.c (store_completion): Likewise.
16982 * normal/completion.c (complete_arguments): New function.
16983 (grub_normal_do_completion): Call `complete_arguments' when the
16984 current words start with a dash.
16986 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16988 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16989 `gzio.mod' instead of `io.mod').
16991 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16993 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16994 (DISTDIRS): Added io and video.
16995 Rewrite the search routine to make an output consistently.
16997 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16998 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16999 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
17000 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
17001 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
17002 util/powerpc/ieee1275/misc.c.
17004 * include/grub/gzio.h: New file.
17005 * io/gzio.c: Likewise.
17007 * kern/file.c (grub_file_close): Call grub_device_close only if
17008 FILE->DEVICE is not NULL.
17010 * include/grub/mm.h [!NULL] (NULL): New macro.
17012 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
17014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
17015 (pkgdata_MODULES): Added gzio.mod.
17016 (gzio_mod_SOURCES): New variable.
17017 (gzio_mod_CFLAGS): Likewise.
17019 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
17020 (pkgdata_MODULES): Added gzio.mod.
17021 (gzio_mod_SOURCES): New variable.
17022 (gzio_mod_CFLAGS): Likewise.
17024 * commands/cat.c: Include grub/gzio.h.
17025 (grub_cmd_cat): Use grub_gzfile_open instead of
17028 * commands/cmp.c: Include grub/gzio.h.
17029 (grub_cmd_cmp): Use grub_gzfile_open instead of
17032 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
17033 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
17035 (grub_rescue_cmd_module): Likewise.
17037 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17039 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
17040 kern/sparc64/ieee1275/init.c because it contains _start.
17041 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
17043 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17045 * configure.ac: Add support for sparc64 host with ieee1275
17047 * configure: Generated from configure.ac.
17048 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
17050 (grub_ofdisk_read): Likewise.
17051 (grub_ofdisk_open): Use %p to print pointer values, and cast the
17052 pointers as (void *) to remove a warning.
17053 (grub_ofdisk_close): Likewise.
17054 (grub_ofdisk_read): Likewise.
17055 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
17056 returns, so make it return void to remove a warning.
17057 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
17058 Corresponding prototype change.
17059 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
17060 values, and cast the pointers as (void *) to remove a warning.
17061 (grub_mm_dump): Likewise.
17062 * conf/sparc64-ieee1275.mk: New file.
17063 * conf/sparc64-ieee1275.rmk: Likewise.
17064 * include/grub/sparc64/setjmp.h: Likewise.
17065 * include/grub/sparc64/types.h: Likewise.
17066 * include/grub/sparc64/ieee1275/console.h: Likewise.
17067 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17068 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17069 * include/grub/sparc64/ieee1275/time.h: Likewise.
17070 * kern/sparc64/cache.c: Likewise.
17071 * kern/sparc64/dl.c: Likewise.
17072 * kern/sparc64/ieee1275/init.c: Likewise.
17073 * kern/sparc64/ieee1275/openfw.c: Likewise.
17075 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17077 * util/console.c (grub_ncurses_putchar): If C is greater than
17078 0x7f, set C to a question mark.
17079 (grub_ncurses_getcharwidth): New function.
17080 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17083 * normal/menu.c (print_entry): Made aware of Unicode. First,
17084 convert TITLE to UCS-4, and predict the cursor position by
17087 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17089 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17091 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17093 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17094 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17097 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17098 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17099 grub_strcpy and grub_strlen. Take it into account that a space
17100 character is inserted as a delimiter.
17102 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17104 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17105 invalid magic in the error.
17107 * commands/search.c: New file.
17109 * util/grub-emu.c (main): Call grub_search_init and
17112 * kern/rescue.c (grub_rescue_print_disks): Removed.
17113 (grub_rescue_print_devices): New function.
17114 (grub_rescue_cmd_ls): Use grub_device_iterate with
17115 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17116 grub_rescue_print_disks.
17118 * kern/partition.c (grub_partition_iterate): Return the result of
17119 PARTMAP->ITERATE instead of GRUB_ERRNO.
17121 * kern/device.c: Include grub/partition.h.
17122 (grub_device_iterate): New function.
17124 * include/grub/partition.h (grub_partition_iterate): Return int
17125 instead of grub_err_t.
17127 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17129 [GRUB_UTIL] (grub_search_fini): Likewise.
17131 * include/grub/device.h (grub_device_iterate): New prototype.
17133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17135 (pkgdata_MODULES): Added search.mod.
17136 (search_mod_SOURCES): New variable.
17137 (search_mod_CFLAGS): Likewise.
17139 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17140 (pkgdata_MODULES): Added search.mod.
17141 (search_mod_SOURCES): New variable.
17142 (search_mod_CFLAGS): Likewise.
17144 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17145 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17146 All callers changed.
17148 * DISTLIST: Added commands/search.c.
17150 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17152 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17154 (grub_getcharwidth): New function.
17156 * kern/misc.c (grub_utf8_to_ucs4): New function.
17158 * include/grub/term.h (struct grub_term): Added a new member
17160 (grub_getcharwidth): New prototype.
17162 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17164 * term/i386/pc/console.c (map_char): New function. Segregated from
17165 grub_console_putchar.
17166 (grub_console_putchar): Use map_char.
17167 (grub_console_getcharwidth): New function.
17168 (grub_console_term): Specified grub_console_getcharwidth as
17171 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17172 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17174 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17176 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17177 on grub_strtoul completely.
17178 (write_char): Declare local variables in the beginning of the
17180 (grub_vesafb_getcharwidth): New function.
17181 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17184 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17186 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17187 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17188 commands/i386/pc/vbetest.c.
17190 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17191 call grub_vbe_get_controller_info again, because the returned
17192 information is volatile.
17193 (grub_vbe_set_video_mode): Mostly rewritten.
17194 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17195 grub_vbe_status_t correctly.
17196 (grub_vbe_get_video_mode_info): Likewise.
17197 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17198 several if statements.
17200 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17201 * commands/i386/pc/vbeinfo.c: ... this.
17203 * commands/i386/pc/vbe_test.c: Renamed to ...
17204 * commands/i386/pc/vbetest.c: ... this.
17206 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17208 (grub_cmd_vbeinfo): ... this. Save video modes before
17209 iterating. Skip a video mode, if it is not available, not enough
17210 information is given or it is monochrome. Show the memory
17211 model. Leave the interpretation of MODEVAR to grub_strtoul
17213 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17214 (GRUB_MOD_FINI): Likewise.
17216 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17217 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17218 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17219 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17220 grub_strtoul completely.
17221 (real2pm): Removed.
17222 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17223 (GRUB_MOD_FINI): Likewise.
17225 * normal/misc.c: Include grub/mm.h.
17227 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17228 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17229 (vbe_list_modes_mod_SOURCES): Removed.
17230 (vbe_list_modes_mod_CFLAGS): Likewise.
17231 (vbe_test_mod_SOURCES): Likewise.
17232 (vbe_test_mod_CFLAGS): Likewise.
17233 (vbeinfo_mod_SOURCES): New variable.
17234 (vbeinfo_mod_CFLAGS): Likewise.
17235 (vbetest_mod_SOURCES): Likewise.
17236 (vbetest_mod_CFLAGS): Likewise.
17238 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17240 * normal/misc.c: New file.
17242 * DISTLIST: Added normal/misc.c.
17244 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17245 DISK to HOOK. Call HOOK with DISK.
17246 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17247 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17248 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17250 * normal/menu_entry.c (struct screen): Added a new member
17251 "completion_shown".
17252 (completion_buffer): New global variable.
17253 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17254 (store_completion): New function.
17255 (complete): Likewise.
17256 (clear_completions): Likewise.
17257 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17258 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17259 a tab, call complete.
17261 * normal/completion.c (disk_dev): Removed.
17262 (print_simple_completion): Likewise.
17263 (print_partition_completion): Likewise.
17264 (print_func): New global variable.
17265 (add_completion): Do not take the arguments WHAT or PRINT any
17266 longer. Added a new argument TYPE. Instead of printing directly,
17267 call PRINT_FUNC if not NULL.
17268 All callers changed.
17269 (complete_device): Use a local variable DEV instead of
17270 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17271 (grub_normal_do_completion): Take a new argument HOOK. Do not
17272 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17273 empty string, return NULL instead.
17274 All callers changed.
17276 * normal/cmdline.c (print_completion): New function.
17278 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17280 All callers changed.
17282 * kern/disk.c (grub_print_partinfo): Removed.
17284 * include/grub/partition.h (struct grub_partition_map): Add a new
17285 argument DISK into HOOK of ITERATE.
17286 (grub_partition_iterate): Add a new argument DISK to HOOK.
17288 * include/grub/normal.h (enum grub_completion_type): New enum.
17289 (grub_completion_type_t): New type.
17290 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17291 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17292 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17293 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17294 (grub_normal_do_completion): Added a new argument HOOK.
17295 (grub_normal_print_device_info): New prototype.
17297 * include/grub/disk.h (grub_print_partinfo): Removed.
17299 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17300 (normal_mod_SOURCES): Likewise.
17301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17302 (normal_mod_SOURCES): Likewise.
17304 * commands/ls.c (grub_ls_list_disks): Use
17305 grub_normal_print_device_info instead of grub_print_partinfo. Free
17307 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17308 duplicating the code.
17310 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17312 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17313 follow GCS more precisely.
17314 * commands/i386/pc/vbe_test.c: Likewise.
17315 * include/grub/i386/pc/vbe.h: Likewise.
17316 * term/i386/pc/vesafb.c: Likewise.
17317 * video/i386/pc/vbe.c: Likewise.
17319 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17321 * DISTLIST: Added term/i386/pc/vesafb.c
17322 DISTLIST: Added video/i386/pc/vbe.c
17323 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17324 DISTLIST: Added commands/i386/pc/vbe_test.c.
17325 * commands/i386/pc/vbe_list_modes.c: New file.
17326 * commands/i386/pc/vbe_test.c: Likewise.
17327 * term/i386/pc/vesafb.c: Likewise.
17328 * video/i386/pc/vbe.c: Likewise.
17329 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17330 (grub_vbe_probe) Added prototype.
17331 (grub_vbe_set_video_mode) Likewise.
17332 (grub_vbe_get_video_mode) Likewise.
17333 (grub_vbe_get_video_mode_info) Likewise.
17334 (grub_vbe_set_pixel_rgb) Likewise.
17335 (grub_vbe_set_pixel_index) Likewise.
17336 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17337 (pkgdata_MODULES): Added vesafb.mod.
17338 (pkgdata_MODULES): Added vbe_list_modes.mod.
17339 (pkgdata_MODULES): Added vbe_test.mod.
17340 (vbe_mod_SOURCES): Added.
17341 (vbe_mod_CFLAGS): Likewise.
17342 (vesafb_mod_SOURCES): Likewise.
17343 (vesafb_mod_CFLAGS): Likewise.
17344 (vbe_list_modes_mod_SOURCES): Likewise.
17345 (vbe_list_modes_mod_CFLAGS): Likewise.
17346 (vbe_test_mod_SOURCES): Likewise.
17347 (vbe_test_mod_CFLAGS): Likewise.
17349 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17351 * normal/command.c (grub_command_execute): If INTERACTIVE is
17352 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17353 CMDLINE. Disable the pager if INTERACTIVE is true.
17354 All callers are changed.
17356 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17357 before reading a config file.
17358 * normal/main.c (read_config_file): Even if a command is not
17359 found, register it if it is within an entry.
17361 * util/grub-emu.c: Include sys/types.h and unistd.h.
17362 (options): Added --hold.
17363 (struct arguments): Added a new member "hold".
17364 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17366 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17367 cleared by a debugger, if it is not zero.
17369 * include/grub/normal.h (grub_command_execute): Add an argument
17372 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17374 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17376 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17378 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17379 program with another one, because the old one didn't detect a bug
17380 in gcc-3.4. Always use regparm 2, because the new test is still
17381 not enough for gcc-4.0. Someone must investigate a simple test
17382 case which detects a bug in gcc-4.0.
17384 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17386 * DISTLIST: Added normal/completion.c.
17388 * normal/completion.c: New file.
17390 * term/i386/pc/console.c (grub_console_getwh): New function.
17391 (grub_console_term): Assign grub_console_getwh to getwh.
17393 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17394 function is defined in normal/completion.c as
17395 grub_normal_do_completion.
17396 (grub_cmdline_get): Use grub_normal_do_completion instead of
17399 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17400 returns non-zero, otherwise return 0.
17401 (grub_partition_iterate): First, probe the partition map. Then,
17402 call ITERATE only for this partition map.
17404 * kern/misc.c (grub_strncmp): Rewritten.
17406 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17407 returns non-zero. Otherwise return 0.
17409 * include/grub/partition.h (grub_partition_map_iterate): Return
17410 int instead of void.
17412 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17414 * include/grub/misc.h (grub_strncmp): Change the type of N to
17417 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17420 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17421 unsigned explicitly before comparing it with I.
17423 * kern/main.c (grub_env_write_root): Add the attribute unused into
17426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17427 normal/completion.c.
17428 (normal_mod_SOURCES): Likewise.
17429 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17430 (normal_mod_SOURCES): Likewise.
17432 * normal/command.c (grub_iterate_commands): If ITERATE returns
17433 non-zero, return one immediately.
17435 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17437 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17438 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17440 (grub_vbe_get_controller_info): New function.
17441 (grub_vbe_get_mode_info): Likewise.
17442 (grub_vbe_set_mode): Likewise.
17443 (grub_vbe_get_mode): Likewise.
17444 (grub_vbe_set_memory_window): Likewise.
17445 (grub_vbe_get_memory_window): Likewise.
17446 (grub_vbe_set_scanline_length): Likewise.
17447 (grub_vbe_get_scanline_length): Likewise.
17448 (grub_vbe_set_display_start): Likewise.
17449 (grub_vbe_get_display_start): Likewise.
17450 (grub_vbe_set_palette_data): Likewise.
17451 * include/grub/i386/pc/vbe.h: New file.
17453 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17455 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17456 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17457 * DISTLIST: Likewise.
17458 * kern/ieee1275/of.c: Moved to ...
17459 * kern/ieee1275/ieee1275.c: ... here.
17461 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17463 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17464 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17465 Pass 0 as `end' parameter to grub_strtoul().
17467 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17469 * include/grub/powerpc/ieee1275/console.h: Do not include
17470 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17472 (grub_console_cur_color): Remove i386-specific prototype.
17473 (grub_console_real_putchar): Likewise.
17474 (grub_console_checkkey): Likewise.
17475 (grub_console_getkey): Likewise.
17476 (grub_console_getxy): Likewise.
17477 (grub_console_gotoxy): Likewise.
17478 (grub_console_cls): Likewise.
17479 (grub_console_setcursor): Likewise.
17480 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17481 Include <grub/machine/console.h>.
17482 * term/ieee1275/ofconsole.c: Likewise.
17484 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17486 * Makefile.in (LIBLZO): New variable.
17488 * configure.ac: Check for LZO version 2.
17490 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17491 lzo/lzo1x.h instead of lzo1x.h.
17493 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17496 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17497 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17499 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17500 copying the data from PARTITION to P.
17502 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17504 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17505 negative, unload the module.
17507 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17508 map is "pc_partition_map" but not "pc".
17509 (usage): Fix the description. The options are --boot-image and
17510 --core-image but not --boot-file or --core-file.
17511 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17512 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17515 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17516 --core-file. Specify INSTALL_DEVICE as an argument.
17518 * util/console.c: Include config.h.
17519 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17520 [HAVE_NCURSES_H]: Include ncurses.h.
17521 [HAVE_CURSES_H]: Include curses.h.
17522 [!A_NORMAL] (A_NORMAL): Defined as zero.
17523 [!A_STANDOUT] (A_STANDOUT): Likewise.
17525 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17527 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17529 * configure.ac: Check for curses libraries and headers.
17531 * Makefile.in (LIBCURSES): New variable.
17533 * genmk.rb (Script::rule): Set the executable bits.
17535 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17536 name of the PC partition map is "pc_partition_map" but not "pc".
17538 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17540 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17541 (modules): Likewise.
17542 (usage): Added descriptions for --modules and --grub-probefs.
17543 Handle --modules and --grub-probefs. Save the arguments in MODULES
17544 and GRUB_PROBEFS, respectively.
17545 Auto-detect a filesystem module against GRUBDIR. If the result is
17546 empty and modules are not specified explicitly, abort the
17547 installation. Add the result to MODULES.
17549 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17550 disk/powerpc/ieee1275/ofdisk.c,
17551 include/grub/powerpc/ieee1275/init.h and
17552 term/powerpc/ieee1275/ofconsole.c.
17553 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17554 term/ieee1275/ofconsole.c.
17556 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17558 * COPYING: Upgraded to the latest version. Only the address of the
17559 FSF office has changed.
17561 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17563 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17564 kern/ieee1275.c with kern/ieee1275/of.c.
17566 * kern/ieee1275.c: Moved to ...
17567 * kern/ieee1275/of.c: ... here.
17569 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17571 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17574 * config.guess: Updated to the latest version from gnulib.
17575 * config.sub: Likewise.
17576 * install.sh: Likewise.
17577 * mkinstalldirs: Likewise.
17579 * include/grub/console.h: Removed. This file is arch-specific. Do
17580 not put this in include/grub.
17582 * include/grub/i386/pc/console.h: Resurrected.
17584 * util/console.c: Include grub/machine/console.h instead of
17586 * util/grub-emu.c: Likewise.
17588 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17590 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17593 From Vincent Pelletier <subdino2004@yahoo.fr>
17594 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17595 Redefined to use grub_getwh.
17596 (grub_term): New member named getwh.
17597 (grub_getwh): New prototype.
17598 * kern/term.c (grub_getwh): New function.
17599 * term/i386/pc/console.c (grub_console_getwh): New function.
17600 (grub_console_term): New member `getwh'.
17601 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17602 (grub_vga_term): New member `getwh'.
17603 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17605 (grub_ofconsole_getw): New function.
17606 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17607 (grub_ofconsole_term): New field named getwh and new initial
17610 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17612 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17613 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17614 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17615 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17616 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17617 of <grub/machine/ieee1275.h>.
17618 * commands/ieee1275/reboot.c: Likewise.
17619 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17620 * kern/ieee1275.c: ... to here. All users updated. Change all
17621 parameter structs to use new type `grub_ieee1275_cell_t'.
17622 * term/powerpc/ieee1275/ofconsole.c: Move ...
17623 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17624 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17625 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17626 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17628 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17629 Remove unused prototypes. All users updated.
17630 * include/grub/powerpc/ieee1275/console.h: Removed.
17631 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17632 `grub_ieee1275_cell_t'.
17633 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17634 Cast comparisons with -1 to the correct type.
17635 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17636 type to match `grub_ieee1275_entry_fn'.
17638 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17640 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17642 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17643 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17645 (grub_probefs_SOURCES): New variable.
17647 * util/i386/pc/grub-probefs.c: New file.
17649 * util/i386/pc/grub-setup.c (main): Call
17650 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17651 grub_hfs_init and grub_jfs_init to initialize the system. Call
17652 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17653 grub_pc_partition_map_fini to finish the system.
17655 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17657 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17659 (grub_multiboot_load_elf32): Likewise.
17660 (grub_multiboot_is_elf64): Likewise.
17661 (grub_multiboot_load_elf64): Likewise.
17662 (grub_multiboot_load_elf): Likewise.
17663 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17664 an ELF32 or ELF64 file.
17665 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17667 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17668 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17669 NULL before calling FS->LABEL.
17670 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17671 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17672 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17673 before calling FS->LABEL.
17675 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17677 * util/i386/pc/grub-install.in (datadir): New variable.
17679 (pkgdatadir): New variable.
17680 (pkglibdir): Removed.
17682 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17684 * DISTLIST: Added util/i386/pc/grub-install.in.
17686 * util/i386/pc/grub-install.in: New file.
17688 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17689 (grub_install_SOURCES): Likewise.
17691 * genmk.rb: Added support for scripts.
17692 (Script): New class.
17693 (scripts): New variable.
17695 * Makefile.in (install-local): Install sbin_SCRIPTS by
17697 (uninstall): Remove sbin_SCRIPTS.
17699 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17700 device, try to get a GRUB device by
17701 grub_util_biosdisk_get_grub_dev.
17704 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17705 description for --device-map.
17707 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17709 Change the semantics of variable hooks. They now return strings
17710 instead of error values.
17712 * util/i386/pc/grub-setup.c: Include grub/env.h.
17713 (setup): Use grub_device_set_root instead of grub_env_set.
17715 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17716 grub_env_get instead of grub_device_set_root and
17717 grub_device_get_root, respectively.
17719 * kern/main.c (grub_env_write_root): New function.
17720 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17721 grub_env_set instead of grub_device_set_root.
17723 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17725 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17726 rather than calling ENV->WRITE_HOOK afterwards.
17727 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17728 passing a pointer of a pointer.
17729 (grub_register_variable_hook): Change the types of "read_hook" and
17730 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17732 Allocate the default empty string on the heap, because this string
17733 may be freed later.
17735 * kern/device.c: Include grub/env.h.
17736 (grub_device_set_root): Removed.
17737 (grub_device_get_root): Likewise.
17738 (grub_device_open): Use grub_env_get instead of
17739 grub_device_get_root.
17741 * include/grub/env.h (grub_env_read_hook_t): New type.
17742 (grub_env_write_hook_t): Likewise.
17743 (grub_env_var): Change the types of "read_hook" and "write_hook"
17744 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17745 (grub_register_variable_hook): Likewise.
17747 * include/grub/device.h (grub_device_set_root): Removed.
17748 (grub_device_set_root): Likewise.
17750 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17751 make sure that DIRNAME terminates with '/', so that
17752 grub_fat_find_dir will fail if PATH is not a directory.
17754 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17756 Use the qualifier auto for print_files and print_files_long.
17757 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17759 Put a newline only if there is no error.
17760 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17763 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17765 * kern/partition.c (grub_partition_probe): Initialize PART to
17766 NULL. Otherwise, when no partition map is registered, this returns
17769 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17771 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17772 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17775 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17777 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17778 information on each device, if it does not have partitions. Print
17779 "Device" instead of "Disk", because this function is not specific
17782 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17783 static to ensure that it is put on the memory rather than a
17786 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17788 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17789 (grub_cat_init): Likewise.
17790 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17791 (options): Likewise.
17792 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17793 (grub_configfile_init): Likewise.
17794 * font/manager.c (GRUB_MOD_INIT): Likewise.
17795 * commands/help.c (GRUB_MOD_INIT): Likewise.
17796 (grub_help_init): Likewise.
17797 * normal/command.c (grub_command_init): Likewise.
17798 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17799 * disk/loopback.c (grub_loop_init): Likewise.
17800 (GRUB_MOD_INIT): Likewise.
17801 * commands/ls.c (grub_ls_init): Likewise.
17802 (GRUB_MOD_INIT): Likewise.
17803 (options): Likewise.
17804 * commands/boot.c (grub_boot_init): Likewise.
17805 (GRUB_MOD_INIT): Likewise.
17806 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17807 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17808 (GRUB_MOD_INIT): Likewise.
17809 * commands/cmp.c (grub_cmp_init): Likewise.
17810 (GRUB_MOD_INIT): Likewise.
17812 * normal/arg.c: Use <> instead of "" to include header files.
17813 (SHORT_ARG_HELP): New macro.
17814 (SHORT_ARG_USAGE): Likewise.
17815 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17816 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17818 (find_short): Check if C is 'h' or 'u' explicitly.
17819 (grub_arg_show_help): Use space characters instead of tabs. Treat
17820 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17821 are shown with --help and --usage only if they are not used for
17822 the command itself.
17823 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17826 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17827 const into "longarg". Change the type of "shortarg" to int.
17829 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17831 * boot/i386/pc/boot.S (boot_drive_check): New label.
17833 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17836 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17837 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17839 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17841 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17842 When turning off Gate A20, skip the check and return immediately,
17843 because this is not fatal usually.
17845 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17847 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17848 be 0x7C00 instead of 0x8000.
17850 * boot/i386/pc/pxeboot.S: Rewritten.
17852 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17854 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17857 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17859 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17860 robustness. This routine now supports a BIOS call and System
17861 Control Port A to modify the gate A20.
17863 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17864 Increased to 0x440.
17866 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17868 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17869 device path and resulting ihandle.
17870 (grub_ofdisk_close): dprintf the ihandle being closed.
17871 (grub_ofdisk_read): dprintf function parameters.
17872 * kern/mm.c (grub_mm_init_region): Likewise.
17873 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17874 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17875 size, and boot arguments.
17876 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17877 before loading into memory.
17878 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17879 before loading into memory.
17881 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17883 * kern/mm.c: Added much documentation.
17884 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17885 8, set to 5 instead of 8.
17887 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17889 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17891 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17892 (grub_mkdevicemap_SOURCES): New variable.
17894 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17895 lib/device.c of GRUB Legacy.
17897 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17899 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17900 instead of PATH is NULL.
17902 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17904 * commands/cmp.c (BUFFER_SIZE): New macro.
17905 (grub_cmd_cmp): Close the right file at the right time. Compare
17906 only data just read. Don't report files of different size as
17907 identical. Dynamically allocate buffers. Move variable
17908 declarations at the beginning of function.
17910 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17912 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17915 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17917 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17918 when backspace is pressed at beginning of line.
17920 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17922 * DISTLIST: Added genfslist.sh.
17924 * normal/main.c (fs_module_list): New variable.
17925 (autoload_fs_module): New function.
17926 (read_fs_list): Likewise.
17927 (grub_normal_execute): Call read_fs_list.
17929 * kern/fs.c (grub_fs_autoload_hook): New variable.
17930 (grub_fs_probe): Added support for auto-loading.
17932 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17933 (grub_fs_module_list_t): New type.
17935 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17936 (grub_fs_autoload_hook): New prototype.
17938 * genfslist.sh: New file.
17940 * genmk.rb: Added a rule to generate a filesystem list.
17942 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17944 * configure.ac: Fix the test for cross-compiling.
17946 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17947 define GRUB_UTIL anymore.
17949 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17950 so this function works on other systems than just big endian.
17951 (load_modules): Likewise.
17952 (add_segments): Likewise.
17954 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17956 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17957 contains `l' modifier, get a long from va_arg().
17959 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17961 * kern/mm.c (grub_free): If the next free block which is being
17962 merged is the first free block, set the first block to the block
17964 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17966 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17968 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17969 `grub_ieee1275_chosen'.
17971 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17973 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17974 (grub_ieee1275_chosen): New variable.
17975 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17977 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17978 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17979 Rename first argument to `phandle' for consistency.
17980 (grub_ieee1275_get_property_length): Likewise.
17981 (grub_ieee1275_next_property): Likewise. Change type of first argument
17982 to grub_ieee1275_phandle_t.
17983 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17984 Move export next to declaration.
17985 (grub_ieee1275_chosen): New variable.
17986 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17987 Correct cosmetic typo.
17988 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17989 `grub_ieee1275_chosen'.
17990 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17991 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17992 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17993 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17994 `grub_ieee1275_chosen'.
17996 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17998 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
18000 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
18001 /chosen/bootargs as "variable=value" pairs.
18003 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
18005 * include/grub/misc.h (grub_dprintf): New macro.
18006 (grub_real_dprintf): New prototype.
18007 (grub_strword): Likewise.
18008 (grub_iswordseparator): Likewise.
18009 * kern/misc.c (grub_real_dprintf): New function.
18010 (grub_strword): Likewise.
18011 (grub_iswordseparator): Likewise.
18013 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
18015 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
18016 (roundup): Remove macro.
18017 (grub_ieee1275_flags): Make static.
18018 (grub_ieee1275_realmode): Remove.
18019 (grub_ieee1275_test_flag): New function.
18020 (grub_ieee1275_set_flag): Likewise.
18021 (find_options): Rename to `grub_ieee1275_find_options'; update
18022 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
18023 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
18024 (cmain): New prototype.
18025 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
18026 `grub_ieee1275_flags' directly.
18027 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
18028 machine/biosdisk.h.
18029 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
18030 Don't include grub/machine/init.h.
18031 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
18032 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18034 (grub_ieee1275_realmode): Likewise.
18035 (grub_ieee1275_flag): New enum.
18036 (grub_ieee1275_test_flag): New prototype.
18037 (grub_ieee1275_set_flag): New prototype.
18038 * include/grub/powerpc/ieee1275/init.h: Remove file.
18039 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
18040 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
18041 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
18042 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
18044 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
18045 `grub_ieee1275_test_flag'.
18046 (grub_ieee1275_encode_devname): Likewise.
18048 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
18050 * include/grub/powerpc/ieee1275/ieee1275.h
18051 (grub_ieee1275_encode_devname): New prototype.
18052 (grub_ieee1275_get_filename): Likewise.
18053 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
18055 (grub_set_prefix): Likewise.
18056 (grub_machine_init): Call grub_set_prefix.
18057 * kern/powerpc/ieee1275/openfw.c: Fix typos.
18058 (grub_parse_type): New enum.
18059 (grub_ieee1275_get_devargs): New function.
18060 (grub_ieee1275_get_devname): Likewise.
18061 (grub_ieee1275_parse_args): Likewise.
18062 (grub_ieee1275_get_filename): Likewise.
18063 (grub_ieee1275_encode_devname): Likewise.
18065 2005-03-30 Marco Gerards <metgerards@student.han.nl>
18067 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
18068 `grub_loader_unset'.
18070 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
18072 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
18073 instead of grub_ieee1275_interpret.
18074 (grub_halt_init): New function.
18075 (grub_halt_fini): Likewise.
18076 (GRUB_MOD_INIT): Correct message grammar.
18077 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
18078 instead of grub_ieee1275_interpret.
18079 (grub_reboot_init): New function.
18080 (grub_reboot_fini): Likewise.
18081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18082 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18083 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18084 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18085 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18087 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18089 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18091 (grub_halt): Likewise.
18092 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18093 (cmain): Remove __attribute__((unused)).
18094 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18095 (grub_heap_len): Likewise.
18096 (grub_machine_fini): New function.
18097 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18098 (grub_halt): Likewise.
18099 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18101 * util/powerpc/ieee1275/misc.c: New file.
18103 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18105 * DISTLIST: New file.
18106 * gendistlist.sh: Likewise.
18108 * Makefile.in (COMMON_DISTFILES): Removed.
18109 (BOOT_DISTFILES): Likewise.
18110 (CONF_DISTFILES): Likewise.
18111 (DISK_DISTFILES): Likewise.
18112 (FS_DISTFILES): Likewise.
18113 (INCLUDE_DISTFILES): Likewise.
18114 (KERN_DISTFILES): Likewise.
18115 (LOADER_DISTFILES): Likewise.
18116 (TERM_DISTFILES): Likewise.
18117 (UTIL_DISTFILES): Likewise.
18118 (DISTFILES): Likewise.
18119 (uninstall): Uninstall files in $(pkgdata_DATA).
18120 (DISTLIST): New target.
18121 (distdir): Use the contents of the file DISTLIST to get a list of
18124 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18126 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18127 descriptor. This is ported from GRUB Legacy.
18129 * gencmdlist.sh: Added an extra semicolon to make it work with
18130 old sed versions. Reported by Robert Bihlmeyer
18131 <robbe@orcus.priv.at>.
18133 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18135 Automatic loading of commands is supported.
18137 * normal/main.c (read_command_list): New function.
18138 (grub_normal_execute): Call read_command_list.
18140 * normal/command.c (grub_register_command): Return zero or CMD.
18141 Allocate CMD->NAME from the heap.
18142 Initialize CMD->MODULE_NAME to zero.
18143 Find the same name as well. If the same command is found and it is
18144 a dummy command, overwrite members. If it is not a dummy command,
18146 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18147 (grub_command_find): If a dummy command is found, load a module
18148 and retry to find a command only once.
18150 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18151 make sure that each command is loaded.
18153 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18155 (struct grub_command): Remove const from the member `name'.
18156 Add a new member `module_name'.
18157 (grub_register_command): Return grub_command_t.
18159 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18160 sure that each command is loaded.
18162 * genmk.rb (PModule::rule): Specify a module name without the
18163 suffix ".mod" to gencmdlist.sh.
18165 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18167 * gencmdlist.sh: New file.
18169 * genmk.rb (PModule::rule): Generate a rule for a command list.
18171 Generate command.lst from $(COMMANDFILES).
18173 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18174 (DATA): Added $(pkgdata_DATA).
18175 (install-local): Install files in $(pkgdata_DATA).
18177 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18179 * term/i386/pc/vga.c (debug_command): Removed.
18180 (GRUB_MOD_INIT): Do not register the command "debug".
18182 From Hollis Blanchard:
18183 * commands/configfile.c: New file.
18184 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18185 commands/configfile.c.
18186 (pkgdata_MODULES): Added configfile.mod.
18187 (configfile_mod_SOURCES): New variable.
18188 (configfile_mod_CFLAGS): Likewise.
18189 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18190 commands/configfile.c.
18191 (pkgdata_MODULES): Added configfile.mod.
18192 (configfile_mod_SOURCES): New variable.
18193 (configfile_mod_CFLAGS): Likewise.
18194 * util/grub-emu.c (main): Call grub_configfile_init and
18195 grub_configfile_fini.
18196 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18198 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18200 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18202 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18205 * commands/help.c (grub_cmd_help): Do not print newlines after
18206 the last command in print_command_help.
18208 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18210 * commands/default.h: New file.
18211 * commands/timeout.h: Likewise.
18212 * normal/context.c: Likewise.
18214 * util/misc.c: Do not include sys/times.h.
18215 Include sys/time.h and grub/machine/time.h.
18216 (grub_get_rtc): Rewritten with gettimeofday.
18218 * util/grub-emu.c (main): Call grub_default_init and
18219 grub_timeout_init before grub_normal_init, and call
18220 grub_timeout_fini and grub_default_fini after grub_main.
18222 * util/console.c (grub_ncurses_checkkey): Return the read
18225 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18228 * normal/main.c (read_config_file): Push MENU. If this fails,
18229 print an error and wait for a user input.
18230 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18231 If a menu is empty or an error occurs, pop MENU.
18232 (grub_normal_execute): Pop and free MENU after grub_menu_run
18235 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18237 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18239 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18241 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18243 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18246 * include/grub/normal.h (struct grub_menu_list): New struct.
18247 (grub_menu_list_t): New type.
18248 (struct grub_context): New struct.
18249 (grub_context_t): New type.
18250 (grub_register_command): Got rid of EXPORT_FUNC.
18251 (grub_unregister_command): Likewise.
18252 (grub_context_get): New prototype.
18253 (grub_context_get_current_menu): Likewise.
18254 (grub_context_push_menu): Likewise.
18255 (grub_context_pop_menu): Likewise.
18256 [GRUB_UTIL] (grub_default_init): Likewise.
18257 [GRUB_UTIL] (grub_default_fini): Likewise.
18258 [GRUB_UTIL] (grub_timeout_init): Likewise.
18259 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18261 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18262 commands/timeout.c and normal/context.c.
18263 (pkgdata_MODULES): Added default.mod and timeout.mod.
18264 (normal_mod_SOURCES): Added normal/context.c.
18265 (default_mod_SOURCES): New variable.
18266 (default_mod_CFLAGS): Likewise.
18267 (timeout_mod_SOURCES): Likewise.
18268 (timeout_mod_CFLAGS): Likewise.
18269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18271 (pkgdata_MODULES): Added default.mod and timeout.mod.
18272 (normal_mod_SOURCES): Added normal/context.c.
18273 (default_mod_SOURCES): New variable.
18274 (default_mod_CFLAGS): Likewise.
18275 (timeout_mod_SOURCES): Likewise.
18276 (timeout_mod_CFLAGS): Likewise.
18278 * Makefile.in (all-local): Added $(MKFILES).
18280 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18282 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18283 (grub_emu_SOURCES): Likewise.
18284 (pkgdata_MODULES): Add `sun.mod'.
18285 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18286 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18288 (pkgdata_MODULES): Add `sun.mod'.
18289 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18290 * include/grub/partition.h (grub_sun_partition_map_init): New
18292 (grub_sun_partition_map_fini): Likewise.
18293 * partmap/sun.c: New file.
18294 * util/grub-emu.c (main): Initialize and de-initialize the sun
18295 partitionmap support.
18297 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18299 This implements an Emacs-like menu entry editor.
18301 * normal/menu_entry.c: New file.
18303 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18304 characters to ASCII.
18305 (saved_char): New variable.
18306 (grub_ncurses_checkkey): Rewritten completely.
18307 (grub_ncurses_getkey): Likewise.
18308 (grub_ncurses_init): Call raw instead of cbreak.
18310 * normal/menu.c (print_entry): Do not put a space.
18311 (init_page): Renamed to ...
18312 (grub_menu_init_page): ... this. All callers changed.
18313 (edit_menu_entry): Removed.
18314 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18316 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18318 * kern/misc.c (grub_vprintf): Call grub_refresh.
18320 * normal/menu.c (DISP_LEFT): Renamed to ...
18321 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18322 * normal/menu.c (DISP_UP): Renamed to ...
18323 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18324 * normal/menu.c (DISP_RIGHT): Renamed to ...
18325 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18326 * normal/menu.c (DISP_DOWN): Renamed to ...
18327 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18328 * normal/menu.c (DISP_HLINE): Renamed to ...
18329 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18330 * normal/menu.c (DISP_VLINE): Renamed to ...
18331 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18332 * normal/menu.c (DISP_UL): Renamed to ...
18333 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18334 * normal/menu.c (DISP_UR): Renamed to ...
18335 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18336 * normal/menu.c (DISP_LL): Renamed to ...
18337 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18338 * normal/menu.c (DISP_LR): Renamed to ...
18339 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18340 * normal/menu.c (TERM_WIDTH): Renamed to ...
18341 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18342 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18343 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18344 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18345 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18346 * normal/menu.c (TERM_MARGIN): Renamed to ...
18347 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18348 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18349 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18350 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18351 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18352 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18353 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18354 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18355 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18356 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18357 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18358 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18359 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18360 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18361 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18362 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18363 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18364 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18365 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18366 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18367 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18368 All callers changed.
18370 * include/grub/normal.h: New prototype.
18372 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18373 normal/menu_entry.c.
18374 (normal_mod_SOURCES): Likewise.
18375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18376 (normal_mod_SOURCES): Likewise.
18378 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18380 * include/grub/normal.h (grub_halt_init): New prototype.
18381 (grub_halt_fini): Likewise.
18382 (grub_reboot_init): Likewise.
18383 (grub_reboot_fini): Likewise.
18385 * util/grub-emu.c: Include signal.h.
18386 (main_env): New global variable.
18387 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18389 (grub_machine_fini): New function.
18390 (main): Call grub_halt_init and grub_reboot_init before
18391 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18392 Call setjmp with MAIN_ENV to go back afterwards.
18393 Call grub_machine_fini right before return.
18395 * include/grub/util/misc.h: Include setjmp.h.
18396 (main_env): New prototype.
18398 * include/grub/kernel.h (grub_machine_fini): New prototype.
18399 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18400 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18402 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18403 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18404 * term/i386/pc/console.c (grub_console_fini): Likewise.
18406 * util/i386/pc/misc.c: New file.
18408 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18409 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18410 commands/i386/pc/reboot.c.
18412 2005-02-14 Guillem Jover <guillem@hadrons.org>
18414 * include/grub/dl.h (grub_dl_check_header): New prototype.
18415 (grub_arch_dl_check_header): Change return type to grub_err_t,
18416 remove size parameter and export function. Update all callers.
18417 * kern/dl.c (grub_dl_check_header): New function.
18418 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18419 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18420 are inside the core.
18421 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18422 independent ELF header checks.
18423 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18424 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18425 `grub_dl_check_header' instead of explicit checks. Check for the
18427 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18428 `grub_dl_check_header' instead of explicit checks. Remove arch
18429 specific ELF header checks.
18431 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18434 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18436 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18437 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18439 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18441 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18442 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18443 (part_map_iterate): Clear `grub_errno' and return 0 if
18444 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18445 * partmap/amiga.c (amiga_partition_map_iterate): Return
18446 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18447 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18449 2005-02-01 Guillem Jover <guillem@hadrons.org>
18451 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18454 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18456 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18458 (grub_rescue_cmd_linux): New prototype.
18459 (grub_rescue_cmd_initrd): Likewise.
18460 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18462 (grub_linux_release_mem): Release the memory for the initrd.
18463 (grub_load_linux): Renamed from this...
18464 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18465 Changed `entry' not to be static. Loop over memory regions to
18466 find another one when the default fails.
18467 (grub_rescue_cmd_initrd): New function.
18468 (grub_linux_init): Remove function.
18469 (grub_linux_fini): Likewise.
18470 (GRUB_MOD_INIT): Register `initrd'.
18471 (GRUB_MOD_FINI): Unregister `initrd'.
18472 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18474 (grub_linux_normal_fini): Likewise.
18475 (GRUB_MOD_INIT): Register `initrd'.
18476 (GRUB_MOD_FINI): Unregister `initrd'.
18478 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18480 * commands/help.c: New file.
18481 * normal/arg.c (show_help): Renamed to...
18482 (grub_arg_show_help): ... this.
18483 * commands/i386/pc/halt.c: New file.
18484 * commands/i386/pc/reboot.c: Likewise.
18485 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18486 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18487 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18488 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18492 (pkgdata_MODULES): Add `help.mod'.
18493 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18494 * grub/i386/pc/init.h (grub_reboot): New prototype.
18495 (grub_halt): Likewise.
18496 * include/grub/normal.h (grub_arg_show_help): New prototype.
18497 (grub_help_init): Likewise.
18498 (grub_help_fini): Likewise.
18499 * util/grub-emu.c (main): Initialize and deinitialize the help
18502 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18504 * normal/command.c (grub_command_init): Fixed the description of
18505 the `set' and `unset' commands.
18507 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18509 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18511 * commands/ieee1275/halt.c: New file.
18512 * commands/ieee1275/reboot.c: Likewise.
18513 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18514 `__attribute__ ((unused))'. Some GCS related fixed.
18515 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18516 (grub_suspend_fini): Likewise.
18517 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18519 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18520 (halt_mod_CFLAGS): New variables.
18521 * include/grub/powerpc/ieee1275/ieee1275.h
18522 (grub_ieee1275_interpret): New prototype.
18524 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18526 * include/grub/misc.h (memmove): New prototype.
18527 (memcpy): Likewise.
18529 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18531 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18532 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18534 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18536 * kern/misc.c (grub_strndup): Function rewritten.
18538 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18540 * normal/menu.c (TERM_WIDTH): Macro redefined.
18541 (TERM_TOP_BORDER_Y): Likewise.
18542 (draw_border): Replaced while-loop by a for-loop. Make the number
18543 of lines consistent with the number of lines displayed in
18544 print_entries. Added a margin below the rectangle.
18545 (print_entry): Make the entry fit in the rectangle.
18546 (print_entries): Display the scroll arrows next to the right
18549 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18551 * fs/minix.c (grub_minix_find_file): Reserve more space for
18552 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18553 `grub_strncpy' to copy `path' into it.
18555 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18557 Add the loopback device, a device via which files can be accessed
18560 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18561 (pkgdata_MODULES): Add loopback.mod.
18562 (loopback_mod_SOURCES): New variable.
18563 (loopback_mod_CFLAGS): Likewise.
18564 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18566 (pkgdata_MODULES): Add loopback.mod.
18567 (loopback_mod_SOURCES): New variable.
18568 (loopback_mod_CFLAGS): Likewise.
18569 * disk/loopback.c: new file.
18570 * include/grub/normal.h (grub_loop_init): New prototype.
18571 (grub_loop_fini): New prototype.
18572 * util/grub-emu.c (main): Initialize and de-initialize loopback
18574 * include/grub/disk.h (grub_disk_dev_id): Add
18575 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18577 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18579 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18581 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18582 (suspend_mod_SOURCES): New variable.
18583 (suspend_mod_CFLAGS): Likewise.
18584 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18586 * commands/ieee1275/suspend.c: New file.
18588 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18590 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18591 ((unused))' to `__attribute__ ((used))'.
18592 (GRUB_MOD_FINI): Likewise.
18593 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18594 * genmk.rb (PModule): Assign space to common symbols when linking
18597 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18599 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18600 `unsigned' arguments to `grub_size_t'.
18601 (grub_malloc): Likewise.
18602 (grub_realloc): Likewise.
18603 (grub_memalign): Likewise.
18604 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18605 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18606 * util/misc.c (grub_malloc): Likewise.
18607 (grub_realloc): Likewise.
18608 * kern/mm.c (get_header_from_pointer): Change the casts to
18609 `unsigned' into a cast to `grub_size_t'.
18611 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18612 point to `currnode' when `currnode' is changed.
18614 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18615 Schottelius <nico-linux@schottelius.org>.
18617 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18619 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18620 (note_path): Remove variable.
18621 (GRUB_IEEE1275_NOTE_NAME): New macro.
18622 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18623 (grub_ieee1275_note_hdr): New structure.
18624 (grub_ieee1275_note_desc): Likewise.
18625 (grub_ieee1275_note): Likewise.
18626 (load_note): Remove `dir' argument. All callers updated. Remove
18627 `note_img' and `path'. Do not load a file from `note_path'.
18628 Initialize a struct grub_ieee1275_note and write that to `out'.
18629 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18631 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18633 * util/misc.c (grub_util_read_image): Revert last change. It
18634 called `grub_util_read_at', which seeks from the beginning of the
18637 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18639 * TODO: Add note about endianness in grub-mkimage.
18640 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18642 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18643 (grub_mkimage_SOURCES): New target.
18644 * include/grub/kernel.h (grub_start_addr): Remove variable.
18645 (grub_end_addr): Likewise.
18646 (grub_total_module_size): Likewise.
18647 (grub_kernel_image_size): Likewise.
18648 (GRUB_MODULE_MAGIC): New constant.
18649 (grub_module_info): New structure.
18650 (grub_arch_modules_addr): New prototype.
18651 (grub_get_end_addr): Remove prototype.
18652 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18653 * include/grub/powerpc/ieee1275/kernel.h: New file.
18654 * include/grub/util/misc.h (grub_util_get_fp_size): New
18656 (grub_util_read_at): Likewise.
18657 (grub_util_write_image_at): Likewise.
18658 * kern/main.c (grub_get_end_addr): Remove function.
18659 (grub_load_modules): Call grub_arch_modules_addr instead of using
18660 grub_end_addr. Look for a grub_module_info struct in memory. Use
18661 the grub_module_info fields instead of calling grub_get_end_addr
18662 as loop conditions. Move grub_add_unused_region code here.
18663 (grub_add_unused_region): Remove function.
18664 * kern/i386/pc/init.c: Include grub/cache.h.
18665 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18666 one call to add_mem_region.
18667 (grub_arch_modules_addr): New function.
18668 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18669 (grub_total_module_size): Likewise.
18670 Include grub/machine/kernel.h.
18671 (grub_arch_modules_addr): New function.
18672 * util/grub-emu.c (grub_end_addr): Remove variable.
18673 (grub_total_module_size): Likewise.
18674 (grub_arch_modules_addr): New function.
18675 * util/misc.c: Include unistd.h.
18676 (grub_util_get_fp_size): New function.
18677 (grub_util_read_at): Likewise.
18678 (grub_util_write_image_at): Likewise.
18679 (grub_util_read_image): Call grub_util_read_at.
18680 (grub_util_write_image): Call grub_util_write_image_at.
18681 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18682 additional memory in kernel_img for a struct grub_module_info.
18683 Fill in that grub_module_info.
18684 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18686 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18688 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18690 * include/grub/powerpc/ieee1275/ieee1275.h
18691 (grub_ieee1275_milliseconds): New prototype.
18692 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18694 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18695 grub_ieee1275_milliseconds.
18697 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18699 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18701 (find_options): New function.
18702 (cmain): Call find_options.
18703 * include/grub/powerpc/ieee1275/ieee1275.h
18704 (grub_ieee1275_realmode): New extern variable.
18705 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18706 grub_map if grub_ieee1275_realmode is false.
18708 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18710 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18711 lines are inserted and make it work like readline. Reported by
18712 Vincent Pelletier <subdino2004@yahoo.fr>.
18714 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18716 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18719 `kern/powerpc/cache.S'.
18721 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18723 * genmk.rb: Handle the `Program' class in the main loop. Written
18724 by Johan Rydberg <jrydberg@gnu.org>.
18725 (Program): New class.
18726 (programs): New variable.
18727 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18728 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18729 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18730 (help_arch): Function removed.
18731 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18732 `powerpc/libgcc.h' and `loader.h'.
18733 (pkgdata_PROGRAMS): New variable.
18734 (sbin_UTILITIES): Variable removed.
18735 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18736 (grubof_SOURCES): Variable re-defined so it only includes the
18737 core functionality.
18738 (grubof_CFLAGS): Remove `-DGRUBOF'.
18739 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18740 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18741 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18742 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18743 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18744 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18745 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18746 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18747 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18748 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18749 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18750 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18751 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18752 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18753 (pc_mod_CFLAGS): New variables.
18754 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18755 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18756 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18757 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18759 * include/grub/i386/pc/init.h (grub_os_area_addr)
18760 (rub_os_area_size): ... to here.
18761 * include/grub/powerpc/ieee1275/ieee1275.h
18762 (grub_ieee1275_entry_fn): Export symbol.
18763 * include/grub/powerpc/ieee1275/init.h: New file.
18764 * include/grub/powerpc/libgcc.h: Likewise.
18765 * include/grub/cache.h: Likewise.
18766 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18767 <hollis@penguinppc.org>.
18768 * kern/dl.c: Include <grub/cache.h>.
18769 (grub_dl_flush_cache): New function.
18770 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18772 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18773 (grub_console_init): Removed prototypes.
18774 (grub_machine_init): Don't initialize the modules anymore.
18775 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18777 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18778 Macro undef removed.
18779 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18780 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18781 relocation `R_PPC_REL32'. Return an error when the relocation is
18783 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18784 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18785 * util/misc.c (grub_arch_sync_caches): Likewise.
18787 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18789 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18790 `symlist.c', add `grubof_symlist.c'.
18791 (symlist.c): Variable removed.
18792 (grubof_HEADERS): Variable added.
18793 (grubof_symlist.c): New target.
18794 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18795 `kernel_img_HEADERS'.
18796 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18797 * kern/powerpc/dl.c: New file.
18798 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18800 (grub_arch_dl_relocate_symbols): Likewise.
18801 (grub_register_exported_symbols): Likewise.
18803 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18805 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18806 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18807 to fail instead. Reported by Vincent Pelletier
18808 <subdino2004@yahoo.fr>.
18810 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18811 it is not allocated. Reported by Vincent Pelletier
18812 <subdino2004@yahoo.fr>.
18814 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18815 output so the output looks better.
18817 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18819 Modulize the partition map support and add support for the amiga
18822 * commands/ls.c: Include <grub/partition.h> instead of
18823 <grub/machine/partition.h>.
18824 * kern/disk.c: Likewise.
18825 * kern/rescue.c: Likewise.
18826 * loader/i386/pc/chainloader.c: Likewise.
18827 * normal/cmdline.c: Likewise.
18828 * kern/powerpc/ieee1275/init.c: Likewise.
18829 (grub_machine_init): Call `grub_pc_partition_map_init',
18830 `grub_amiga_partition_map_init' and
18831 `grub_apple_partition_map_init'.
18832 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18833 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18834 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18835 `partition.h' and `pc_partition.h'.
18836 (grub_setup_SOURCES): Remove
18837 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18838 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18839 (grub_emu_SOURCES): Likewise.
18840 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18841 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18842 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18844 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18845 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18846 (grubof_SOURCES): Likewise.
18847 * disk/i386/pc/partition.c: File removed.
18848 * disk/powerpc/ieee1275/partition.c: Likewise.
18849 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18850 * include/grub/i386/pc/partition.h: Likewise.
18851 * kern/partition.c: New file.
18852 * partmap/amiga.c: Likewise.
18853 * partmap/apple.c: Likewise.
18854 * partmap/pc.c: Likewise.
18855 * include/grub/partition.h: Likewise..
18856 * include/grub/pc_partition.h: Likewise.
18857 * util/grub-emu.c: Include <grub/partition.h> instead of
18858 <grub/machine/partition.h>.
18859 (main): Call `grub_pc_partition_map_init',
18860 `grub_amiga_partition_map_init' and
18861 `grub_apple_partition_map_init' and deinitialize afterwards.
18862 * util/i386/pc/biosdisk.c: Include `#include
18863 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18864 `<grub/machine/partition.h>'.
18865 * util/i386/pc/grub-setup.c: Likewise.
18866 * util/i386/pc/biosdisk.c: Likewise.
18867 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18868 partition information in case of a PC partition.
18869 * util/i386/pc/grub-setup.c: Include `#include
18870 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18871 `<grub/machine/partition.h>'.
18872 (setup): Only access the PC specific partition information in case
18875 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18877 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18878 (grub_longjmp): Likewise.
18879 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18881 * normal/powerpc/setjmp.S: New file.
18882 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18883 `normal/powerpc/setjmp.S'.
18884 (grubof_CFLAGS): Add `-DGRUBOF'.
18885 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18886 [GRUB_UTIL && !GRUBOF].
18888 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18890 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18891 property named `name'. Correctly handle the error returned by
18892 `grub_ieee1275_finddevice' if a device can not be opened.
18894 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18896 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18897 `actual' for negativity.
18898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18901 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18903 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18904 (PAGE_OFFSET): New macro.
18905 (CRTC_ADDR_PORT): Likewise.
18906 (CRTC_DATA_PORT): Likewise.
18907 (START_ADDR_HIGH_REGISTER): Likewise.
18908 (START_ADDR_LOW_REGISTER): Likewise.
18909 (GRAPHICS_ADDR_PORT): Likewise.
18910 (GRAPHICS_DATA_PORT): Likewise.
18911 (READ_MAP_REGISTER): Likewise.
18912 (INPUT_STATUS1_REGISTER): Likewise.
18913 (INPUT_STATUS1_VERTR_BIT): Likewise.
18914 (page): New variable.
18915 (wait_vretrace): New function.
18916 (set_read_map): Likewise.
18917 (set_start_address): Likewise.
18918 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18920 (check_vga_mem): Take the page into account.
18921 (write_char): Likewise.
18922 (write_cursor): Likewise.
18923 (scroll_up): Likewise. Copy the page to the page that is not
18924 shown and switch between both pages.
18925 (grub_vga_putchar): Fix off by one error.
18926 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18929 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18931 Add support for iso9660 (including rockridge).
18933 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18934 (iso9660_mod_SOURCES): New variable.
18935 (iso9660_mod_CFLAGS): Likewise.
18936 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18937 * include/grub/fs.h (grub_iso9660_init): New prototype.
18938 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18939 * fs/iso9660.c: New file.
18941 * include/grub/misc.h (grub_strncat): New prototype.
18942 * kern/misc.c (grub_strncat): New function.
18944 * fs/hfs.c (grub_hfs_mount): Translate the error
18945 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18946 * fs/jfs.c (grub_jfs_mount): Likewise.
18947 * fs/ufs.c (grub_ufs_mount): Likewise.
18949 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18951 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18952 which initialized BAT registers.
18953 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18954 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18956 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18957 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18959 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18960 (grub_mapclaim): Likewise.
18961 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18962 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18965 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18967 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18968 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18969 -ffreestanding and -msoft-float.
18971 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18973 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18974 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18975 set in grub_ieee1275_flags.
18977 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18979 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18981 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18982 grub_console_init first.
18983 Change the memory range used for grub_ieee1275_claim and
18984 grub_mm_init_region.
18985 Print an error message if the claim fails.
18986 Include <grub/misc.h>.
18988 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18990 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18991 Call grub_children_iterate for device nodes of type `scsi',
18993 (grub_ofdisk_open): Remove manual device alias resolution.
18994 Fix memory leak when device cannot be opened.
18995 * include/grub/powerpc/ieee1275/ieee1275.h
18996 (grub_children_iterate): New prototype.
18997 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18999 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19000 Return -1 if args.size was -1.
19002 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
19004 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
19005 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
19006 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
19007 Open Firmware's memory for it; claim memory from _start to _end.
19008 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
19009 (_end): New extern.
19010 (_start): Zero BSS from __bss_start to _end.
19011 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
19013 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
19015 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
19017 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
19018 -1 if args.base was -1.
19020 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
19022 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
19023 escape sequence instead of a literal ^L. Also call
19024 grub_ofconsole_gotoxy.
19026 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
19028 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
19029 void * arguments to grub_addr_t. All callers updated. Also make
19030 the `result' argument optional.
19031 (grub_ieee1275_release): change void * arguments to grub_addr_t.
19032 All callers updated.
19034 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
19036 * commands/ls.c (grub_ls_list_files): Use the string following the
19037 initial ')', if present, as the filesystem path.
19038 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
19040 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
19042 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
19044 Make the source code of the menu interface more readable.
19046 * normal/menu.c: Include grub/mm.h.
19047 (TERM_WIDTH): New macro.
19048 (TERM_HEIGHT): Likewise.
19049 (TERM_INFO_HEIGHT): Likewise.
19050 (TERM_MARGIN): Likewise.
19051 (TERM_SCROLL_WIDTH): Likewise.
19052 (TERM_TOP_BORDER_Y): Likewise.
19053 (TERM_LEFT_BORDER_X): Likewise.
19054 (TERM_BORDER_WIDTH): Likewise.
19055 (TERM_MESSAGE_HEIGHT): Likewise.
19056 (TERM_BORDER_HEIGHT): Likewise.
19057 (TERM_NUM_ENTRIES): Likewise.
19058 (TERM_FIRST_ENTRY_Y): Likewise.
19059 (TERM_ENTRY_WIDTH): Likewise.
19060 (TERM_CURSOR_X): Likewise.
19061 (draw_border): Use macros instead of magic numbers.
19062 (print_entry): Likewise.
19063 (print_entries): Likewise.
19064 (run_menu): Likewise. Also, handle the key 'e'.
19065 (run_menu_entry): Ignore empty command lines.
19066 (print_message): Added a new argument EDIT. If EDIT is true,
19067 print a different message.
19068 (init_page): Likewise.
19069 (edit_menu_entry): New function. Not implemented yet.
19071 2004-09-17 Marco Gerards <metgerards@student.han.nl>
19073 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
19074 can be loaded from normal mode.
19076 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
19078 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
19079 (multiboot_mod_CFLAGS): New variables.
19080 * loader/i386/pc/linux_normal.c: New file.
19081 * loader/i386/pc/multiboot_normal.c: Likewise.
19083 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19084 attribute `unused'.
19086 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19087 `fdiro' to read the mode information from instead of `diro'.
19089 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19090 looking up a symlink.
19092 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19094 * normal/command.c (grub_command_execute): Don't parse the
19095 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19096 flags of the command.
19098 * normal/menu.c (grub_menu_run): Fix typo.
19100 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19102 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19104 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19105 `y + 1' instead of `y - 1'.
19107 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19109 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19111 From Hollis Blanchard <hollis@penguinppc.org>:
19112 * kern/misc.c (memmove): New alias for grub_memmove.
19113 (memcmp): New alias for grub_memcmp.
19114 (memset): New alias for grub_memset.
19115 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19116 Change "int handle" to "grub_ieee1275_phandle_t handle".
19117 * include/grub/powerpc/ieee1275/ieee1275.h
19118 (grub_ieee1275_get_property): Likewise.
19120 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19122 Added normal mode command `chainloader' as module chain.mod, which
19123 depends on normal.mod and _chain.mod.
19125 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19126 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19127 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19129 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19130 but arguments parsing moved to ...
19131 (grub_chainloader_cmd): ... here. New function.
19132 * include/grub/i386/pc/chainloader.h: New file.
19133 * loader/i386/pc/chainloader_normal.c: Likewise.
19135 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19137 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19138 (grub_mkimage_LDFLAGS): Likewise.
19139 (grub_emu_SOURCES): Likewise.
19140 (kernel_img_HEADERS): Added fshelp.h.
19141 * fs/ext2.c: Include <grub/fshelp.h>.
19142 (FILETYPE_REG): New macro.
19143 (FILETYPE_INO_REG): Likewise.
19144 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19146 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19148 (grub_fshelp_node): New struct.
19149 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19151 (grub_ext2_get_file_block): Removed function.
19152 (grub_ext2_read_block): New function.
19153 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19154 This function was written.
19155 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19156 (grub_ext2_find_file): Removed function.
19157 (grub_ext2_read_symlink): New function.
19158 (grub_ext2_iterate_dir): Likewise.
19159 (grub_ext2_open): Rewritten.
19160 (grub_ext2_dir): Rewritten.
19161 * include/grub/fshelp.h: New file.
19162 * fs/fshelp.c: Likewise.
19164 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19166 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19167 (print_message): Add a missing newline.
19168 (run_menu): Added timeout support.
19169 (run_menu_entry): New local function.
19170 (grub_menu_run): Added support for booting.
19172 * kern/loader.c (grub_loader_is_loaded): New function.
19174 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19175 (grub_get_rtc): Exported.
19177 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19178 (grub_get_rtc): Exported.
19180 * include/grub/normal.h (struct grub_command_list): Remove
19181 constant from the member `command'.
19183 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19185 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19187 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19189 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19191 Add support for the JFS filesystem.
19193 * fs/jfs.c: New file.
19194 * include/grub/fs.h (grub_jfs_init): New prototype.
19195 (grub_jfs_fini): New prototype.
19196 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19197 (grub_emu_SOURCES): Likewise.
19198 (pkgdata_MODULES): Add jfs.mod.
19199 (jfs_mod_SOURCES): New variable.
19200 (jfs_mod_CFLAGS): Likewise.
19201 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19202 (grubof_SOURCES): Likewise.
19203 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19205 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19206 endian to the host endian.
19207 (grub_fat_utf16_to_utf8): Move function from there...
19208 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19209 the endianness of the source string anymore.
19210 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19212 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19214 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19215 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19216 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19217 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19219 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19220 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19221 for `node_found' and `it_dir'.
19222 (grub_hfs_dir): Add prototype for `dir_hook'.
19224 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19225 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19226 and `indir32' to silence a gcc warning.
19228 * include/grub/fs.h (grub_hfs_init): New prototype.
19229 (grub_hfs_fini): Likewise.
19232 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19234 Each disk device has its own id now. This is useful to make use
19235 of multiple disk devices.
19237 * include/grub/disk.h (grub_disk_dev_id): New enum.
19238 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19239 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19241 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19242 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19244 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19245 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19247 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19248 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19250 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19251 "id" which is used by the cache manager.
19253 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19256 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19258 * fs/hfs.c: New file.
19259 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19260 (grub_emu_SOURCES): Likewise.
19261 (pkgdata_MODULES): Add hfs.mod.
19262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19263 (grubof_SOURCES): Likewise.
19264 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19266 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19267 * kern/misc.c (grub_strncasecmp): Add function.
19269 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19271 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19274 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19275 (grub_ext2_dir): In case the directory entry type is unknown, read
19278 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19280 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19281 grub_load_linux instead of grub_rescue_cmd_linux as second
19282 argument of grub_rescue_register_command.
19284 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19286 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19288 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19290 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19291 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19292 `loader/powerpc/ieee1275/linux.c',
19293 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19294 * include/grub/powerpc/ieee1275/ieee1275.h
19295 (grub_ieee1275_release): New prototype.
19296 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19297 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19298 normal, boot, linux and linux_normal.
19299 * loader/powerpc/ieee1275/linux.c: New file.
19300 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19302 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19304 * normal/arg.c (grub_arg_parse): Correct error handling after
19305 reallocating the argumentlist (check if `argl' is not null instead
19306 of checking if `args' is not null).
19307 * kern/mm.c (grub_realloc): Return the same pointer when using the
19308 same region, instead of returning the header address.
19310 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19312 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19313 one block instead of two when looking for the initial partition.
19314 (grub_partition_probe): Initialize the local variable `p' with 0.
19315 Use base 10 for the grub_strtoul call.
19316 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19317 need for one local variable.
19318 (grub_strtoul): Don't add the new value to `num', instead of that
19321 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19323 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19324 (pxeboot_img_SOURCES): New variable.
19325 (pxeboot_img_ASFLAGS): Likewise.
19326 (pxeboot_img_LDFLAGS): Likewise.
19327 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19328 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19329 <lode_leroy@hotmail.com>.
19331 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19333 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19334 there was no input.
19336 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19338 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19339 the history buffer logic.
19341 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19343 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19344 (FILETYPE_INO_SYMLINK): New macros.
19345 (grub_ext2_find_file): Check if the node is a directory using the
19346 inode stat information instead of using the filetype in the
19347 dirent. Exclude the first character of an absolute symlink.
19348 (grub_ext2_dir): Mask out the filetype part of the mode member of
19351 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19353 Add support for UFS version 1 and 2. Add support for the minix
19354 filesystem version 1 and 2, both the variants with 14 and 30 long
19357 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19359 (grub_emu_SOURCES): Likewise.
19360 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19361 (ufs_mod_SOURCES): New variable.
19362 (ufs_mod_CFLAGS): Likewise.
19363 (minix_mod_SOURCES): Likewise.
19364 (minix_mod_CFLAGS): Likewise.
19365 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19367 (grubof_SOURCES): Likewise.
19368 * fs/ufs.c: New file.
19369 * fs/minix.c: New file.
19370 * include/grub/fs.h (grub_ufs_init): New prototype.
19371 (grub_ufs_fini): Likewise.
19372 (grub_minix_init): Likewise.
19373 (grub_minix_fini): Likewise.
19374 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19377 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19380 commands/ls.c, commands/terminal.c, commands/boot.c,
19381 commands/cmp.c and commands/cat.c.
19382 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19384 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19387 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19389 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19390 and grub_, respectively. Because the conversion is trivial and
19391 mechanical, I omit the details here. Please refer to the CVS
19392 if you need more information.
19394 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19396 * include/pupa: Renamed to ...
19397 * include/grub: ... this.
19398 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19399 * util/i386/pc/grub-mkimage.c: ... this.
19400 * util/i386/pc/pupa-setup.c: Renamed to ...
19401 * util/i386/pc/grub-setup.c: ... this.
19402 * util/pupa-emu.c: Renamed to ...
19403 * util/grub-emu.c: ... this.
19405 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19407 Add support for the newworld apple macintosh (PPC). This has been
19408 tested on the powerbook 2000 only. It only adds support for
19409 generic ieee1275 functions, console and disk support. This should
19410 be easy to port to other architectures with support for Open
19413 * configure.ac: Accept the powerpc as host_cpu. In the case of
19414 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19415 specific tests are only executed while building for the i386.
19416 Inverse test for crosscompile.
19417 * genmk.rb (Utility): Allow assembler files.
19418 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19419 * conf/powerpc-ieee1275.rmk: New file.
19420 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19421 * disk/powerpc/ieee1275/partition.c: Likewise.
19422 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19423 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19424 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19425 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19426 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19427 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19428 * include/pupa/powerpc/ieee1275/loader.h
19429 * include/pupa/powerpc/setjmp.h: Likewise.
19430 * include/pupa/powerpc/types.h: Likewise.
19431 * kern/powerpc/ieee1275/init.c: Likewise.
19432 * kern/powerpc/ieee1275/openfw.c: Likewise.
19433 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19435 These files were written by Johan Rydberg
19436 (jrydberg@night.trouble.net) and I only modified them slightly.
19438 * boot/powerpc/ieee1275/cmain.c: New file.
19439 * boot/powerpc/ieee1275/crt0.S: Likewise.
19440 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19441 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19443 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19445 * Makefile.in: Update copyright.
19446 * genmodsrc.sh: Likewise.
19447 * gensymlist.sh: Likewise.
19448 * term/i386/pc/vga.c: Indent correctly.
19450 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19451 bugreporting address.
19452 * util/i386/pc/pupa-setup.c (usage): Likewise,
19453 (main): Call pupa_ext2_init and pupa_ext2_fini.
19455 * fs/fat.c (log2): Renamed to ...
19456 (fat_log2): ... this.
19457 All callers changed.
19458 * kern/misc.c (memcpy): Alias to pupa_memmove.
19459 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19461 * util/console.c (pupa_ncurses_fini): Return 0.
19463 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19464 Move fail label here.
19465 [__GNU__]: Don't warn when using stat.
19466 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19467 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19468 long int. Use strtol instead of strtoul.
19470 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19472 * commands/boot.c: New file.
19473 * commands/cat.c: Likewise.
19474 * commands/cmp.c: Likewise.
19475 * commands/ls.c: Likewise.
19476 * commands/terminal.c: Likewise.
19477 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19478 (pupa_register_command): Changed interface to match the new
19480 (pupa_command_execute): Changed (almost rewritten) so it uses
19481 pupa_split_command. Added support for setting variables using the
19483 (rescue_command): Changed to work with the new argument parser.
19484 (terminal_command): Moved from here to commands/terminal.c.
19485 (set_command): New function.
19486 (unset_command): New function.
19487 (insmod_command): New function.
19488 (rmmod_command): New function.
19489 (lsmod_command): New function.
19490 (pupa_command_init): Don't initialize the command terminal
19491 anymore. Initialize the commands set, unset, insmod, rmmod and
19493 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19494 (kernel_img_HEADERS): Add arg.h and env.h.
19495 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19496 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19497 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19499 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19501 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19502 (boot_mod_SOURCES): New variable.
19503 (terminal_mod_SOURCES): Likewise.
19504 (ls_mod_SOURCES): Likewise.
19505 (cmp_mod_SOURCES): Likewise.
19506 (cat_mod_SOURCES): Likewise.
19508 * normal/arg.c: New file.
19509 * kern/env.c: Likewise.
19510 * include/pupa/arg.h: Likewise.
19511 * include/pupa/env.h: Likewise.
19512 * font/manager.c (font_command): Changed to match argument parsing
19514 (PUPA_MOD_INIT): Likewise.
19515 * hello/hello.c (pupa_cmd_hello): Likewise.
19516 (PUPA_MOD_INIT): Likewise.
19517 * include/pupa/disk.h: Include <pupa/device.h>.
19518 (pupa_print_partinfo): New prototype.
19519 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19520 (pupa_dl_get_prefix): Likewise.
19521 * include/pupa/misc.h: Include <pupa/err.h>.
19522 (pupa_isgraph): New prototype.
19523 (pupa_isdigit): Likewise.
19524 (pupa_split_cmdline): Likewise.
19525 * include/pupa/normal.h: Include <pupa/arg.h>.
19526 (pupa_command): Changed the prototype of the member `func' to
19527 match the argument parsing interface. Added member `options'.
19528 (pupa_register_command): Updated to match function.
19529 (pupa_arg_parse): New prototype.
19530 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19531 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19532 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19533 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19534 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19535 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19536 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19537 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19538 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19539 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19540 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19541 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19542 * kern/disk.c: Include <pupa/file.h>.
19543 (pupa_print_partinfo): New function.
19544 * kern/dl.c: Include <pupa/env.h>.
19545 (pupa_dl_dir): Variable removed.
19546 (pupa_dl_load): Use the environment variable `prefix' instead of
19547 the variable pupa_dl_dir.
19548 (pupa_dl_set_prefix): Function removed.
19549 (pupa_dl_get_prefix): Likewise.
19550 * kern/i386/pc/init.c: Include <pupa/env.h>.
19551 (pupa_machine_init): Use the environment variable `prefix' instead of
19552 using pupa_dl_set_prefix to set the prefix.
19553 * kern/main.c: Include <pupa/env.h>.
19554 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19555 using pupa_dl_get_prefix to get the prefix.
19556 * kern/misc.c: Include <pupa/env.h>.
19557 (pupa_isdigit): New function.
19558 (pupa_isgraph): Likewise.
19559 (pupa_ftoa): Likewise.
19560 (pupa_vsprintf): Added support for printing values of the type
19561 `double'. Make it possible to format variable output when using
19562 formatting like `%1.2%f'.
19563 (pupa_split_cmdline): New function.
19564 * kern/rescue.c: Include <pupa/env.h>.
19565 (next_word): Removed function.
19566 (pupa_rescue_cmd_prefix): Likewise.
19567 (pupa_rescue_cmd_set): New function.
19568 (pupa_rescue_cmd_unset): New function.
19569 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19570 split the command line instead of splitting it here. Added
19571 support for setting variables using the syntax `foo=bar'. Don't
19572 initialize the prefix command anymore. Initialized the set and
19574 * normal/cmdline.c: Include <pupa/env.h>.
19575 (pupa_tab_complete): Added prototypes for print_simple_completion,
19576 print_partition_completion, add_completion, iterate_commands,
19577 iterate_dev, iterate_part and iterate_dir. Moved code to print
19578 partition information from here to kern/disk.c.
19579 (pupa_cmdline_run): Don't check if the function exists anymore.
19580 * normal/main.c: Include <pupa/env.h>.
19581 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19582 instead of using pupa_dl_get_prefix to get the prefix.
19583 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19584 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19586 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19587 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19588 ((unused))' to silence a gcc warning.
19589 (pupa_vga_setcolor): Likewise.
19590 (debug_command): Changed to match argument parsing
19592 * util/pupa-emu.c: Include <pupa/env.h>.
19593 (options): Added 0's for unused fields to silence a gcc warning.
19595 (main): Use the environment variable `prefix' instead of using
19596 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19597 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19600 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19601 * util/misc.c: Include <malloc.h>.
19602 (pupa_malloc): Rewritten so errors are correctly reported.
19603 (pupa_realloc): Likewise.
19604 (pupa_memalign): Likewise.
19605 (pupa_mm_init_region): Declare unused variables with
19606 `__attribute__ ((unused))' to silence a gcc warning.
19607 * normal/i386/setjmp.S: Remove tab at the end of the file to
19608 silence a gcc warning.
19609 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19610 variables with `__attribute__ ((unused))' to silence a gcc
19612 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19613 local variable i unsigned to silence a gcc warning.
19615 * kern/term.c: Include <pupa/misc.h>.
19616 (pupa_more_lines): New variable.
19617 (pupa_more): Likewise.
19618 (pupa_putcode): When the pager is active pause at the end of every
19620 (pupa_set_more): New function.
19621 * include/pupa/term.h (pupa_set_more): New prototype.
19624 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19626 Now this project is GRUB 2 rather than PUPA. The location of
19627 the CVS repository was moved to GRUB's.
19629 * configure.ac: Use bug-grub as the reporting address.
19630 Use GRUB instead of PUPA.
19631 Change the version number to 1.90.
19633 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19635 * genkernsyms.sh: Updated copyright information.
19636 * genmk.rb: Likewise.
19637 * genmodsrc.sh: Likewise.
19638 * gensymlist.sh: Likewise.
19639 * boot/i386/pc/boot.S: Likewise.
19640 * boot/i386/pc/diskboot.S: Likewise.
19641 * disk/i386/pc/biosdisk.c: Likewise.
19642 * disk/i386/pc/partition.c: Likewise.
19643 * font/manager.c: Likewise.
19644 * fs/ext2.c: Likewise.
19645 * fs/fat.c: Likewise.
19646 * include/pupa/boot.h: Likewise.
19647 * include/pupa/device.h: Likewise.
19648 * include/pupa/disk.h: Likewise.
19649 * include/pupa/dl.h: Likewise.
19650 * include/pupa/elf.h: Likewise.
19651 * include/pupa/err.h: Likewise.
19652 * include/pupa/file.h: Likewise.
19653 * include/pupa/font.h: Likewise.
19654 * include/pupa/fs.h: Likewise.
19655 * include/pupa/kernel.h: Likewise.
19656 * include/pupa/loader.h: Likewise.
19657 * include/pupa/misc.h: Likewise.
19658 * include/pupa/mm.h: Likewise.
19659 * include/pupa/net.h: Likewise.
19660 * include/pupa/normal.h: Likewise.
19661 * include/pupa/rescue.h: Likewise.
19662 * include/pupa/setjmp.h: Likewise.
19663 * include/pupa/symbol.h: Likewise.
19664 * include/pupa/term.h: Likewise.
19665 * include/pupa/types.h: Likewise.
19666 * include/pupa/i386/setjmp.h: Likewise.
19667 * include/pupa/i386/types.h: Likewise.
19668 * include/pupa/i386/pc/biosdisk.h: Likewise.
19669 * include/pupa/i386/pc/boot.h: Likewise.
19670 * include/pupa/i386/pc/console.h: Likewise.
19671 * include/pupa/i386/pc/init.h: Likewise.
19672 * include/pupa/i386/pc/kernel.h: Likewise.
19673 * include/pupa/i386/pc/linux.h: Likewise.
19674 * include/pupa/i386/pc/loader.h: Likewise.
19675 * include/pupa/i386/pc/memory.h: Likewise.
19676 * include/pupa/i386/pc/multiboot.h: Likewise.
19677 * include/pupa/i386/pc/partition.h: Likewise.
19678 * include/pupa/i386/pc/time.h: Likewise.
19679 * include/pupa/i386/pc/vga.h: Likewise.
19680 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19681 * include/pupa/util/getroot.h: Likewise.
19682 * include/pupa/util/misc.h: Likewise.
19683 * include/pupa/util/resolve.h: Likewise.
19684 * kern/device.c: Likewise.
19685 * kern/disk.c: Likewise.
19686 * kern/dl.c: Likewise.
19687 * kern/err.c: Likewise.
19688 * kern/file.c: Likewise.
19689 * kern/fs.c: Likewise.
19690 * kern/loader.c: Likewise.
19691 * kern/main.c: Likewise.
19692 * kern/misc.c: Likewise.
19693 * kern/mm.c: Likewise.
19694 * kern/rescue.c: Likewise.
19695 * kern/term.c: Likewise.
19696 * kern/i386/dl.c: Likewise.
19697 * kern/i386/pc/init.c: Likewise.
19698 * kern/i386/pc/lzo1x.S: Likewise.
19699 * kern/i386/pc/startup.S: Likewise.
19700 * loader/i386/pc/chainloader.c: Likewise.
19701 * loader/i386/pc/linux.c: Likewise.
19702 * loader/i386/pc/multiboot.c: Likewise.
19703 * normal/cmdline.c: Likewise.
19704 * normal/command.c: Likewise.
19705 * normal/main.c: Likewise.
19706 * normal/menu.c: Likewise.
19707 * normal/i386/setjmp.S: Likewise.
19708 * term/i386/pc/console.c: Likewise.
19709 * term/i386/pc/vga.c: Likewise.
19710 * util/console.c: Likewise.
19711 * util/genmoddep.c: Likewise.
19712 * util/misc.c: Likewise.
19713 * util/pupa-emu.c: Likewise.
19714 * util/resolve.c: Likewise.
19715 * util/unifont2pff.rb: Likewise.
19716 * util/i386/pc/biosdisk.c: Likewise.
19717 * util/i386/pc/getroot.c: Likewise.
19718 * util/i386/pc/pupa-mkimage.c: Likewise.
19719 * util/i386/pc/pupa-setup.c: Likewise.
19721 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19723 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19724 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19725 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19726 reading and reset it after reading.
19727 (pupa_ext2_close): Return PUPA_ERR_NONE.
19729 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19731 (struct linux_kernel_header): Add kernel_version and
19733 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19734 pupa_file_read succeeds.
19735 (pupa_rescue_cmd_initrd): Implement.
19737 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19739 * fs/ext2.c (pupa_ext2_label): New function.
19740 (pupa_ext2_fs): Added label.
19741 * fs/fat.c (pupa_fat_label): New function.
19742 (pupa_fat_fs): Added label.
19743 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19745 * kern/misc.c (pupa_strndup): New function.
19746 * include/pupa/misc.h (pupa_strndup): New prototype.
19748 * include/pupa/normal.h: Include <pupa/err.h>.
19749 (pupa_set_history): New prototype.
19750 (pupa_iterate_commands): New prototype.
19751 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19752 <pupa/disk.h>, <pupa/file.h>.
19753 (hist_size): New variable.
19754 (hist_lines): Likewise.
19755 (hist_end): Likewise.
19756 (hist_used): Likewise.
19757 (pupa_set_history): New function.
19758 (pupa_history_get): Likewise.
19759 (pupa_history_add): Likewise.
19760 (pupa_history_replace): Likewise.
19761 (pupa_tab_complete): Likewise.
19762 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19763 completion shows partitionnames while completing partitions, this
19764 feature was suggested by Jeff Bailey.
19765 * normal/command.c (pupa_iterate_commands): New function.
19766 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19767 (pupa_normal_init): Initialize history buffer.
19768 (PUPA_MOD_INIT): Likewise.
19769 (pupa_normal_fini): Free the history buffer.
19770 (PUPA_MOD_FINI): Likewise.
19772 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19775 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19776 * configure.ac [i386]: Check for regparam bug.
19777 (NESTED_FUNC_ATTR) [! i386]: Defined.
19779 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19781 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19782 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19783 (pupa_emu_SOURCES): New variable.
19784 (pupa_emu_LDFLAGS): Likewise.
19785 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19786 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19787 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19788 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19789 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19790 (pupa_jmp_buf): New typedef.
19791 (pupa_setjmp) [PUPA_UTIL]: New macro.
19792 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19793 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19794 (pupa_refresh): New prototype.
19795 * include/pupa/util/getroot.h: New file.
19796 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19798 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19799 (pupa_rescue_cmd_cat): Likewise.
19800 (pupa_rescue_cmd_ls): Likewise.
19801 (pupa_rescue_cmd_testload): Likewise.
19802 (pupa_rescue_cmd_lsmod): Likewise.
19803 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19804 * normal/menu.c (run_menu): Likewise.
19805 * kern/term.c (pupa_cls): Likewise.
19806 (pupa_refresh): New function.
19807 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19808 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19809 * util/console.c: New file.
19811 * util/i386/pc/getroot.c: New file.
19812 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19813 (pupa_putchar): New function.
19814 (pupa_refresh): Likewise.
19815 (xgetcwd): Function moved to ...
19816 (strip_extra_slashes): Likewise.
19817 (get_prefix): Likewise.
19818 * util/i386/pc/getroot.c: ... here.
19819 (find_root_device): Function moved and renamed to...
19820 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19821 Changed all callers.
19822 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19824 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19825 Changed all callers.
19826 * util/misc.c (pupa_memalign): New function.
19827 (pupa_mm_init_region): Likewise.
19828 (pupa_register_exported_symbols): Likewise.
19829 (pupa_putchar): Function removed.
19830 * util/pupa-emu.c: New file.
19832 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19834 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19835 (_multiboot_mod_SOURCES): New variable.
19836 (_multiboot_mod_CFLAGS): Likewise.
19837 * loader/i386/pc/multiboot.c: New file.
19838 * include/pupa/i386/pc/multiboot.h: Likewise.
19839 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19840 (pupa_multiboot_real_boot): New function.
19841 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19842 (pupa_multiboot_real_boot): New prototype.
19843 (pupa_rescue_cmd_multiboot): Likewise
19844 (pupa_rescue_cmd_module): Likewise.
19846 * kern/loader.c (pupa_loader_set): Continue when
19847 pupa_loader_unload_func() fails.
19848 (pupa_loader_unset): New function.
19849 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19851 * kern/misc.c (pupa_stpcpy): New function.
19852 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19854 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19856 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19857 for available extensions.
19859 * include/pupa/i386/pc/time.h: New file.
19860 * kern/disk.c: Include <pupa/machine/time.h>.
19861 (PUPA_CACHE_TIMEOUT): New macro.
19862 (pupa_last_time): New variable.
19863 (pupa_disk_open): Flush the cache when there was a timeout.
19864 (pupa_disk_close): Reset the timer.
19865 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19867 * util/misc.c: Include <sys/times.h>
19868 (pupa_get_rtc): New function.
19870 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19872 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19874 (pupa_ext2_get_file_block): Use blocks member.
19876 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19877 first block. Return -1 instead of pupa_errno on error.
19879 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19881 * README: In the pupa-mkimage example use _chain instead of chain
19882 and ext2 instead of fat.
19883 * TODO: Replace ext2fs with jfs as an example. Add an item for
19884 adding journal playback for ext2fs.
19885 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19886 (pkgdata_MODULES): Added ext2.mod.
19887 (ext2_mod_SOURCES): New variable.
19888 (ext2_mod_CFLAGS): Likewise.
19889 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19890 * include/pupa/misc.h (pupa_strncpy): New prototype.
19891 (pupa_strcat): Likewise.
19892 (pupa_strncmp): Likewise.
19893 * kern/misc.c (pupa_strcat): Enable function.
19894 (pupa_strncpy): New function.
19895 (pupa_strncmp): Likewise.
19896 * fs/ext2.c: New file.
19898 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19899 when the read failed before retrying.
19900 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19901 (_FILE_OFFSET_BITS): Likewise.
19902 * configure.ac: Added AC_SYS_LARGEFILE.
19904 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19906 * genmk.rb (PModule#rule): Make sure to get only symbol names
19907 from the output of nm.
19908 Reported by Robert Millan <zeratul2@wanadoo.es>.
19910 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19912 I forgot to check in these changes for a long time. This adds
19913 incomplete support for VGA console, and this is still very
19914 buggy. Also, a lot of consideration is required for I18N,
19915 UNICODE, and VGA font issues. Therefore, assume that this is
19916 such that "better than nothing".
19918 * font/manager.c: New file.
19919 * include/pupa/font.h: Likewise.
19920 * include/pupa/i386/pc/vga.h: Likewise.
19921 * term/i386/pc/vga.c: Likewise.
19922 * util/unifont2pff.rb: Likewise.
19924 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19925 (pkgdata_MODULES): Added vga.mod and font.mod.
19926 (vga_mod_SOURCES): New variables.
19927 (vga_mod_CFLAGS): Likewise.
19928 (font_mod_SOURCES): Likewise.
19929 (font_mod_CFLAGS): Likewise.
19931 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19933 * include/pupa/term.h: Include pupa/err.h.
19934 (struct pupa_term): Added init and fini.
19935 Changed the argument of putchar to pupa_uint32_t.
19937 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19938 (pupa_console_real_putchar): New prototype.
19939 (pupa_console_putchar): Removed.
19940 (pupa_console_checkkey): Exported.
19941 (pupa_console_getkey): Likewise.
19943 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19946 * kern/term.c (pupa_term_set_current): Rewritten.
19947 (pupa_putchar): Likewise.
19948 (pupa_putcode): New function.
19950 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19951 (pupa_console_real_putchar): ... this.
19952 (pupa_vga_set_mode): New function.
19953 (pupa_vga_get_font): Likewise.
19955 * normal/command.c: Include pupa/term.h.
19956 (terminal_command): New function.
19957 (pupa_command_init): Register the command "terminal".
19959 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19960 (DISP_UP): Likewise.
19961 (DISP_RIGHT): Likewise.
19962 (DISP_DOWN): Likewise.
19963 (DISP_HLINE): Likewise.
19964 (DISP_VLINE): Likewise.
19965 (DISP_UL): Likewise.
19966 (DISP_UR): Likewise.
19967 (DISP_LL): Likewise.
19968 (DISP_LR): Likewise.
19970 * term/i386/pc/console.c (pupa_console_putchar): New function.
19972 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19974 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19975 FIX. Reverse the path_list.
19977 * include/pupa/normal.h: Export pupa_register_command and
19978 pupa_unregister_command.
19980 * hello/hello.c (pupa_cmd_hello): New module.
19981 * conf/i386-pc.rmk: Added hello.mod.
19983 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19985 * kern/i386/pc/lzo1x.S: New file.
19987 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19988 (compress_kernel): New variable.
19989 (generate_image): Heavily modified to support compressing a
19990 large part of the core image.
19992 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19994 (pupa_util_load_image): New function.
19996 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19997 (pupa_compressed_size): New variable.
19998 (codestart): Enable Gate A20 here.
19999 Decompress the compressed part of the core image.
20000 Rearrange the code to put functions and variables which are
20001 required for initialization in the non-compressed part.
20004 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
20007 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
20009 * include/pupa/i386/pc/kernel.h
20010 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
20011 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
20012 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20013 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20014 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
20016 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
20018 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
20019 (Utility#rule): Likewise.
20021 * configure.ac: Check if LZO is available.
20023 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
20025 * include/pupa/normal.h: New file.
20026 * include/pupa/setjmp.h: Likewise.
20027 * include/pupa/i386/setjmp.h: Likewise.
20028 * normal/cmdline.c: Likewise.
20029 * normal/command.c: Likewise.
20030 * normal/main.c: Likewise.
20031 * normal/menu.c: Likewise.
20032 * normal/i386/setjmp.S: Likewise.
20034 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
20035 (pupa_rescue_cmd_initrd): Likewise.
20037 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
20040 * kern/i386/pc/startup.S (translation_table): New variable.
20041 (translate_keycode): New function.
20042 (pupa_console_getkey): Call translate_keycode.
20044 * kern/rescue.c (attempt_normal_mode): New function.
20045 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
20046 it failed, print a message.
20048 * kern/mm.c (pupa_real_malloc): Print more information when a
20049 free magic is broken.
20050 (pupa_free): If the first free header is not free actually, set
20053 * kern/main.c (pupa_load_normal_mode): Just load the module
20055 (pupa_main): Don't print the message
20056 "Entering into rescue mode..." here.
20058 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
20060 (pupa_rescue_cmd_initrd): Likewise.
20061 (pupa_rescue_cmd_initrd): Likewise.
20063 * include/pupa/symbol.h (FUNCTION): Specify the type.
20064 (VARIABLE): Likewise.
20066 * include/pupa/err.h (pupa_err_t): Added
20067 PUPA_ERR_UNKNOWN_COMMAND.
20069 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
20070 (pupa_dl_get_prefix): Likewise.
20072 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
20073 Added _chain.mod and _linux.mod instead of chain.mod and
20075 (chain_mod_SOURCES): Renamed to ...
20076 (_chain_mod_SOURCES): ... this.
20077 (chain_mod_CFLAGS): Renamed to ...
20078 (_chain_mod_CFLAGS): ... this.
20079 (linux_mod_SOURCES): Renamed to ...
20080 (_linux_mod_SOURCES): ... this.
20081 (linux_mod_CFLAGS): Renamed to ...
20082 (_linux_mod_CFLAGS): ... this.
20083 (normal_mod_SOURCES): New variable.
20084 (normal_mod_CFLAGS): Likewise.
20085 (normal_mod_ASFLAGS): Likewise.
20087 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20089 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20092 * kern/dl.c (pupa_dl_ref): Refer depending modules
20094 (pupa_dl_unref): Unrefer depending modules recursively.
20095 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20096 a module is unloaded before one depending on that module is
20098 (pupa_dl_unload): Unload depending modules explicitly,
20101 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20103 * include/pupa/i386/pc/linux.h: New file.
20104 * loader/i386/pc/linux.c: Likewise.
20106 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20108 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20109 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20110 of PUPA_CHAINLOADER_BOOT_SECTOR.
20112 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20113 (pupa_linux_prot_size): New variable.
20114 (pupa_linux_tmp_addr): Likewise.
20115 (pupa_linux_real_addr): Likewise.
20116 (pupa_linux_boot_zimage): New function.
20117 (pupa_linux_boot_bzimage): Likewise.
20119 * kern/i386/pc/init.c (struct mem_region): New structure.
20120 (MAX_REGIONS): New macro.
20121 (mem_regions): New variable.
20122 (num_regions): Likewise.
20123 (pupa_os_area_addr): Likewise.
20124 (pupa_os_area_size): Likewise.
20125 (pupa_lower_mem): Likewise.
20126 (pupa_upper_mem): Likewise.
20127 (add_mem_region): New function.
20128 (compact_mem_regions): Likewise.
20129 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20130 the size of the conventional memory and that of so-called upper
20131 memory (before the first memory hole).
20132 Instead of adding each found region to free memory, use
20133 add_mem_region and add them after removing overlaps.
20134 Also, add only 1/4 of the upper memory to free memory. The rest
20135 is used for loading OS images. Maybe this is ad hoc, but this
20136 makes it much easier to relocate OS images when booting.
20138 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20139 (pupa_enter_rescue_mode): Don't register initrd and module.
20141 * kern/mm.c: Include pupa/dl.h.
20143 * kern/main.c: Include pupa/file.h and pupa/device.h.
20145 * kern/loader.c (pupa_loader_load_module_func): Removed.
20146 (pupa_loader_load_module): Likewise.
20148 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20151 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20152 (pupa_linux_tmp_addr): Likewise.
20153 (pupa_linux_real_addr): Likewise.
20154 (pupa_linux_boot_zimage): Likewise.
20155 (pupa_linux_boot_bzimage): Likewise.
20157 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20158 (pupa_upper_mem): Likewise.
20159 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20160 module is too dangerous.
20162 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20163 (pupa_os_area_size): Likewise.
20164 (pupa_loader_set): Remove the first argument. Loader doesn't
20165 manage modules or initrd any longer.
20166 (pupa_loader_load_module): Removed.
20168 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20169 (linux_mod_SOURCES): New variable.
20170 (linux_mod_CFLAGS): Likewise.
20172 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20174 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20175 the length of a blocklist correctly.
20177 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20178 Use ioctl only if the OS file is a block device.
20179 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20180 not very useful for normal files.
20182 * kern/main.c (pupa_set_root_dev): New function.
20183 (pupa_load_normal_mode): Likewise.
20184 (pupa_main): Call those above.
20186 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20189 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20191 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20193 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20194 (setup): Configure the installed partition information and the
20197 * loader/i386/pc/chainloader.c (my_mod): New variable.
20198 (pupa_chainloader_unload): New function.
20199 (pupa_rescue_cmd_chainloader): Refer itself.
20200 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20202 * kern/i386/pc/startup.S (install_partition): Removed.
20203 (version_string): Likewise.
20204 (config_file): Likewise.
20205 (pupa_install_dos_part): New variable.
20206 (pupa_install_bsd_part): Likewise.
20207 (pupa_prefix): Likewise.
20208 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20210 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20212 (make_install_device): New function.
20213 (pupa_machine_init): Set the dl prefix.
20215 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20216 (buf): Renamed to ...
20217 (linebuf): ... this.
20218 (pupa_rescue_cmd_prefix): New function.
20219 (pupa_rescue_cmd_insmod): Likewise.
20220 (pupa_rescue_cmd_rmmod): Likewise.
20221 (pupa_rescue_cmd_lsmod): Likewise.
20222 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20225 * kern/mm.c (pupa_memalign): If failed even after invalidating
20226 disk caches, unload unneeded modules and retry.
20228 * kern/misc.c (pupa_memmove): New function.
20229 (pupa_memcpy): Removed.
20230 (pupa_strcpy): New function.
20231 (pupa_itoa): Made static.
20233 * kern/dl.c (pupa_dl_iterate): New function.
20234 (pupa_dl_ref): Likewise.
20235 (pupa_dl_unref): Likewise.
20236 (pupa_dl_unload): Return if succeeded or not.
20237 (pupa_dl_unload_unneeded): New function.
20238 (pupa_dl_unload_all): Likewise.
20239 (pupa_dl_init): Renamed to ...
20240 (pupa_dl_set_prefix): ... this.
20241 (pupa_dl_get_prefix): New function.
20243 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20244 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20245 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20246 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20247 (pupa_install_dos_part): Declared.
20248 (pupa_install_bsd_part): Likewise.
20249 (pupa_prefix): Likewise.
20250 (pupa_boot_drive): Likewise.
20252 * include/pupa/types.h: Fix a typo.
20254 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20256 (pupa_memmove): Declared.
20257 (pupa_strcpy): Likewise.
20259 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20260 pupa_mod_init takes one argument, its own module.
20261 (pupa_dl_unload_unneeded): Declared.
20262 (pupa_dl_unload_all): Likewise.
20263 (pupa_dl_ref): Likewise.
20264 (pupa_dl_unref): Likewise.
20265 (pupa_dl_iterate): Likewise.
20266 (pupa_dl_init): Renamed to ...
20267 (pupa_dl_set_prefix): ... this.
20268 (pupa_dl_get_prefix): Declared.
20270 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20271 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20273 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20274 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20276 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20277 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20279 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20281 * util/i386/pc/pupa-setup.c (setup): Define the internal
20282 function find_first_partition_start at the top level, because GCC
20283 3.0.x cannot compile internal functions in deeper scopes
20285 (find_root_device): Use lstat instead of stat.
20286 Don't follow symbolic links.
20287 Fix the path-constructing code.
20289 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20290 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20291 by a BLKGETSIZE ioctl first, because block devices don't fill
20292 the member st_mode of the structure stat on Linux.
20293 [__linux__] (linux_find_partition): Use a temporary buffer
20294 REAL_DEV for the working space. Copy it to DEV before returning.
20295 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20296 buffer cache consistent.
20297 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20298 strncmp. The previous value was merely wrong.
20299 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20301 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20302 FAT size is 12. The previous value was merely wrong.
20304 * kern/main.c (pupa_main): Don't split the starting message from
20307 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20308 LF, because BIOS goes crazy about character attributes in this
20311 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20313 * include/i386/pc/util/biosdisk.h: New file.
20314 * util/i386/pc/biosdisk.c: Likewise.
20315 * util/i386/pc/pupa-setup.c: Likewise.
20317 * Makefile.in (INCLUDE_DISTFILES): Added
20318 include/pupa/i386/pc/util/biosdisk.h.
20319 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20320 directory util/i386/pc.
20321 (install-local): Added a rule for sbin_UTILITIES.
20322 (uninstall): Likewise.
20324 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20326 * util/misc.c (xrealloc): New function.
20327 (pupa_malloc): Likewise.
20328 (pupa_free): Likewise.
20329 (pupa_realloc): Likewise.
20330 (pupa_stop): Likewise.
20331 (pupa_putchar): Likewise.
20333 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20335 * include/pupa/util/misc.h (xrealloc): Declared.
20337 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20339 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20340 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20342 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20343 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20345 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20346 way should be implemented.
20347 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20349 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20350 the size of NAME for safety.
20351 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20354 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20355 (pupa_setup_SOURCES): Likewise.
20357 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20359 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20361 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20362 bunch of pushl's from pusha, because this destroys the return
20365 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20367 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20368 This means that any missing prototypes could be fatal. Also, you
20369 must take care when writing assembly code. See the comments at
20370 the beginning of startup.S, for more details.
20372 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20373 compilation mechanism.
20374 (pupa_chainloader_real_boot): Likewise.
20375 (pupa_biosdisk_rw_int13_extensions): Likewise.
20376 (pupa_biosdisk_rw_standard): Likewise.
20377 (pupa_biosdisk_check_int13_extensions): Likewise.
20378 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20379 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20380 (pupa_get_memsize): Likewise.
20381 (pupa_get_mmap_entry): Likewise.
20382 (pupa_console_putchar): Likewise.
20383 (pupa_console_setcursor): Likewise.
20384 (pupa_getrtsecs): Use pushl instead of push.
20386 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20387 memory instead of the stack for a mmap entry, because some
20388 BIOSes may ignore the maximum size and overflow.
20390 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20392 * genmk.rb (PModule#rule): Compile automatically generated
20393 sources with module-specific CFLAGS as well as other sources.
20395 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20397 * configure.ac: Check ld.
20398 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20399 respectively, before checking endianness and sizes.
20401 * Makefile.in (LD): New variable.
20403 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20405 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20407 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20409 * Changelog: New file.