1 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
4 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
6 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
8 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
9 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
12 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
14 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
16 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
21 `-isystem=$(srcdir)/include'.
23 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
25 * util/i386/pc/grub-install.in: Remove hint that device.map should be
26 checked (grub-install doesn't currently rely on it).
28 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
32 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
33 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35 * conf/i386-ieee1275.rmk: Likewise.
36 * conf/i386-pc.rmk: Likewise.
37 * conf/powerpc-ieee1275.rmk: Likewise.
38 * conf/sparc64-ieee1275.rmk: Likewise.
39 * conf/x86_64-efi.rmk: Likewise.
41 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
43 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
45 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
47 * include/grub/misc.h: Stop checking for APPLE_CC.
49 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
51 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
52 doesn't cause an infinite call loop.
54 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
56 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
59 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
61 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
63 * Makefile.in: Likewise.
65 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
67 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
69 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
71 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
73 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
75 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
77 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
79 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
81 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
83 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
85 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
86 in $(MAKEINFO) invocation. This makes it clear in output that
87 errors are being ignored.
89 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
91 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
93 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
94 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
95 * conf/i386-ieee1275.rmk: Likewise.
96 * conf/i386-pc.rmk: Likewise.
97 * conf/powerpc-ieee1275.rmk: Likewise.
98 * conf/sparc64-ieee1275.rmk: Likewise.
99 * conf/x86_64-efi.rmk: Likewise.
101 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
103 * util/grub-editenv.c (main): If only a command is given, use
104 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
105 (usage): FILENAME is now optional and has a default.
107 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
109 Improve grub-mkconfig performance when there are several menu
110 entries on a single filesystem.
112 * util/grub.d/10_linux.in (linux_entry): Cache the output of
113 prepare_grub_to_access_device.
114 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
115 * util/grub.d/30_os-prober.in: Likewise.
117 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
119 * util/grub.d/10_freebsd.in: Remove.
120 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
121 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
123 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
125 * docs/grub.cfg: Fix example usage of *BSD loaders.
127 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
129 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
130 grub_util_error() call.
132 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
134 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
135 `reserved_first_sector' member.
136 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
137 `reserved_first_sector' to 1.
138 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
139 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
140 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
141 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
142 filesystems which begin at first sector.
143 (options): New option --skip-fs-probe.
144 (main): Handle --skip-fs-probe and pass it to setup().
146 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
148 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
149 (memset): Fix function prototype.
151 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
152 2009-10-25 Vasily Averin <vvs@parallels.com>
154 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
155 `dirent.direntlen == 0'.
157 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
159 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
161 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
163 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
165 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
166 `__trampoline_setup' and `__ucmpdi2'.
167 * include/grub/powerpc/libgcc.h: Only export symbols for functions
168 that libgcc provides.
170 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
172 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
173 * include/grub/sparc64/libgcc.h (memset): Likewise.
174 * include/grub/misc.h (memset, memcmp): New function prototypes.
176 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
178 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
180 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
182 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
184 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
185 * docs/grub.cfg: Compensate for recent change in multiboot
186 loader (since 2009-08-14 it won't pass filename to payload).
187 * util/grub.d/10_hurd.in: Likewise.
189 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
191 * config.guess: Update to latest version from config git
193 * config.sub: Likewise.
195 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
197 Fix build on sparc64.
199 * configure.ac: Perform checks for libgcc symbols before
200 adding `-nostdlib' to LDFLAGS.
202 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
204 Let user specify OpenBSD root device.
206 * loader/i386/bsd.c (openbsd_root): New variable.
207 (openbsd_opts): New option 'root'.
208 (OPENBSD_ROOT_ARG): New macro.
209 (grub_openbsd_boot): Use 'openbsd_root'.
210 (grub_cmd_openbsd): Fill 'openbsd_root'.
212 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
214 * NEWS: Misc adjustments.
216 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
218 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
220 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
222 * configure.ac: Bump version to 1.97.
224 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
226 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
227 -mno-3dnow on x86 architectures. Some toolchains enable these
228 features by default, but they rely on registers that aren't enabled
229 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
231 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
233 Make entry text a bit more readable.
235 * util/grub.d/10_linux.in: Add `with' before `Linux'.
237 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
239 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
241 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
243 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
246 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
248 * configure.ac: Add missing dollar.
250 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
252 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
254 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
255 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
257 * include/grub/sparc64/libgcc.h: Likewise. Use
258 preprocessor conditionals.
260 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
262 * conf/common.rmk (grub-dumpbios): Remove rule.
263 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
264 * util/grub-dumpbios.in: Remove file.
266 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
268 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
269 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
271 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
272 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
275 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
276 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
277 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
278 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
281 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
283 * term/tparm.c: Switch to GPLv3.
285 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
287 * include/grub/i386/cpuid.h: Add header protection.
289 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
291 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
293 * include/grub/i386/cpuid.h: New file.
294 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
295 (has_longmode): Rename to ...
296 (grub_cpuid_has_longmode): ... this. Update all users. Remove
298 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
299 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
300 on a CPU that doesn't implement AMD64 instruction set.
302 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
304 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
305 that version.texi is rebuilt on version number changes.
307 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
309 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
312 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
314 * util/i386/pc/grub-install.in: Source
315 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
316 that the --grub-probe option will work.
317 * util/sparc64/ieee1275/grub-install.in: Likewise.
319 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
321 * configure.ac: Bump version to 1.97~beta4.
323 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
325 Resync grub-mkdevicemap in x86_64-efi.
327 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
328 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
331 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
333 * util/grub-editenv.c (create_envblk_file): Write new block with a
334 .new suffix and then rename it into place, to ensure atomic
337 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
339 Do not automatically install headers.
341 * Makefile.in (include_DATA): Remove. Update all users.
343 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
345 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
346 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
348 * util/osdetect.lua: Remove.
349 * script/lua/lauxlib.c: Likewise.
350 * script/lua/ldebug.c: Likewise.
351 * script/lua/grub_main.c: Likewise.
352 * script/lua/lauxlib.h: Likewise.
353 * script/lua/ldebug.h: Likewise.
354 * script/lua/ltablib.c: Likewise.
355 * script/lua/liolib.c: Likewise.
356 * script/lua/lstrlib.c: Likewise.
357 * script/lua/lualib.h: Likewise.
358 * script/lua/ldo.c: Likewise.
359 * script/lua/ldump.c: Likewise.
360 * script/lua/ldo.h: Likewise.
361 * script/lua/loslib.c: Likewise.
362 * script/lua/lundump.c: Likewise.
363 * script/lua/grub_lib.c: Likewise.
364 * script/lua/ldblib.c: Likewise.
365 * script/lua/lundump.h: Likewise.
366 * script/lua/lmem.c: Likewise.
367 * script/lua/grub_lib.h: Likewise.
368 * script/lua/lmathlib.c: Likewise.
369 * script/lua/lstate.c: Likewise.
370 * script/lua/ltm.c: Likewise.
371 * script/lua/lvm.c: Likewise.
372 * script/lua/lmem.h: Likewise.
373 * script/lua/lstate.h: Likewise.
374 * script/lua/ltm.h: Likewise.
375 * script/lua/ltable.c: Likewise.
376 * script/lua/lvm.h: Likewise.
377 * script/lua/llex.c: Likewise.
378 * script/lua/lgc.c: Likewise.
379 * script/lua/grub_lua.h: Likewise.
380 * script/lua/loadlib.c: Likewise.
381 * script/lua/lfunc.c: Likewise.
382 * script/lua/lopcodes.c: Likewise.
383 * script/lua/lparser.c: Likewise.
384 * script/lua/ltable.h: Likewise.
385 * script/lua/llex.h: Likewise.
386 * script/lua/lgc.h: Likewise.
387 * script/lua/lfunc.h: Likewise.
388 * script/lua/lbaselib.c: Likewise.
389 * script/lua/lopcodes.h: Likewise.
390 * script/lua/lparser.h: Likewise.
391 * script/lua/lzio.c: Likewise.
392 * script/lua/linit.c: Likewise.
393 * script/lua/lobject.c: Likewise.
394 * script/lua/llimits.h: Likewise.
395 * script/lua/lstring.c: Likewise.
396 * script/lua/lzio.h: Likewise.
397 * script/lua/lapi.c: Likewise.
398 * script/lua/lcode.c: Likewise.
399 * script/lua/lua.h: Likewise.
400 * script/lua/lobject.h: Likewise.
401 * script/lua/lstring.h: Likewise.
402 * script/lua/lapi.h: Likewise.
403 * script/lua/lcode.h: Likewise.
404 * script/lua/luaconf.h: Likewise.
406 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
408 * docs/grub.texi (Command-line and menu entry commands): Document
409 date and echo commands.
411 2009-09-24 Pavel Roskin <proski@gnu.org>
413 * include/grub/kernel.h (struct grub_module_header): Remove
414 `grub_module_header_types'. Make `type' unsigned. Make `size'
415 32-bit on all platforms.
416 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
417 8-bit field. Use grub_host_to_target32() for `size'.
418 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
419 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
420 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
422 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
424 Fix "lost keypress" bug in at_keyboard.
426 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
427 Checks for readyness of input buffer (without flushing it).
428 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
429 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
431 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
433 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
434 size check within GRUB_MACHINE_PCBIOS section.
436 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
438 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
440 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
441 KEYBOARD_ISREADY check.
442 (grub_at_keyboard_checkkey): Rename to ...
443 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
444 Remove gratuitous cast.
446 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
448 * configure.ac: Call AC_PROG_MKDIR_P.
449 * Makefile.in (docs/stamp-vti): Create docs directory. Create
450 version.texi in $(builddir) rather than $(srcdir).
451 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
452 to makeinfo's @include search path.
454 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
456 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
458 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
460 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
463 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
465 Build info documentation. Some code borrowed from Automake.
467 * configure.ac: Check for makeinfo.
468 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
469 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
471 (MOSTLYCLEANFILES): Add vti.tmp.
472 (docs/version.texi, docs/stamp-vti): Update automatically.
473 (docs/grub.info): Build info documentation. Use --force and ignore
475 (all-local): Add $(INFOS).
476 (install-local): Install info files.
477 (uninstall): Uninstall info files.
478 * docs/version.texi: Remove from revision control. This file is
479 automatically generated on build now.
480 * gendistlist.sh: Add `*.info'.
482 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
484 * kern/term.c: Fix indentation.
486 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
488 * util/hostdisk.c: Fix a comment.
490 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
492 Fix regression introduced in r2539.
494 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
497 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
499 * util/grub.d/30_os-prober.in: Don't throw away stderr from
500 os-prober. Under normal operation, it does not print anything to
501 stderr; if it does, we need to debug it, and throwing away stderr
502 makes that excessively difficult.
504 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
506 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
508 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
510 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
511 AC_LANG_PROGRAM from autoconf.
512 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
513 prototypes (fixes warning).
515 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
516 `--disable-werror' was used.
518 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
520 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
521 uninitialized `lastaddr'.
523 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
525 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
527 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
529 * commands/test.c (get_fileinfo): Return immediately if
532 2009-09-14 José MartÃnez <xosemp@gmail.com>
534 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
536 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
538 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
541 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
543 * configure.ac: Remove --enable-grub-pe2elf. Only build
544 grub-pe2elf when needed by the build system itself.
545 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
547 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
549 * configure.ac: Bump version to 1.97~beta3.
550 * docs/version.texi: Likewise.
552 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
554 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
555 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
557 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
558 (grub_linux_setup_video): ... to here (with some adjustments).
560 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
562 Fix memory corruption issue (spotted by Colin Watson).
564 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
565 causing returned size to be stored in an incorrect memory location.
566 Fix use of uninitialized value when storing the returned size.
568 2009-09-12 Yves Blusseau <blusseau@zetam.org>
570 Change clean rules to properly remove files
572 * genmk.rb: add new clean rules
573 * Makefile.in (clean): add the new targets
574 (mostlyclean): likewise
576 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
578 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
580 * fs/ntfs.c (init_file): Understand 64-bit sizes for
583 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
585 * configure.ac: Don't look for help2man when cross-compiling. Fixes
588 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
590 * util/grub-mkconfig.in: Make the created config mode 400 and
591 print a warning if it fails.
593 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
595 * util/grub.d/40_custom.in: Ask user to type custom entries below
596 comment, rather than below 'exec tail' line.
598 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
600 * util/grub.d/40_custom.in: Make sure that the explanatory text is
603 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
605 * util/grub.d/40_custom.in: Make it a little clearer how to use this
608 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
610 * docs/grub.cfg: Add an example menu entry for memtest86+.
612 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
614 * config.guess: Update to latest version from config git.
615 * config.sub: Likewise.
617 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
619 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
620 unknown-command case. Fixes bug #27320.
622 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
624 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
625 `help' if the command exists.
627 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
629 * INSTALL: Require GCC 4.1.3 or later.
631 2009-09-06 Yves Blusseau <blusseau@zetam.org>
633 * Makefile.in (RMKFILES): add i386-qemu.rmk
634 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
637 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
639 * util/grub-probe.c (probe): Comment out buggy codepath, which
640 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
641 should be re-enabled after 1.97.
643 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
645 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
648 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
650 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
651 unnecessary calls to grub_error.
653 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
655 * NEWS: Mention `keystatus' and Unicode fonts.
657 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
659 * configure.ac: Bump version to 1.97~beta2.
660 * docs/version.texi: Likewise.
662 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
664 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
665 containing unwind information in some cases where it previously did
666 not. Use -fno-dwarf2-cfi-asm if available to restore the old
667 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
670 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
672 Embedding loadenv module into grub-emu
674 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
676 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
677 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
678 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
679 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
680 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
681 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
683 2009-09-03 Magnus Granberg <zorry@ume.nu>
685 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
686 include -fPIE in the default specs.
687 * configure.ac: Check if pie_possible is yes and add -fno-PIE
690 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
692 * INSTALL: Note that GNU Bison 2.3 or later is required.
694 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
696 * kern/i386/pc/startup.S: Fix typo.
698 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
700 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
703 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
705 * docs/grub.texi (Naming convention): Describe one-based partition
707 (Device syntax): Likewise.
708 (File name syntax): Likewise.
709 (Block list syntax): Likewise.
710 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
712 (File name syntax): Likewise.
713 (Command-line and menu entry commands): Document acpi, blocklist,
714 crc, export, insmod, keystatus, ls, set, and unset commands.
716 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
718 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
719 to avoid implying that only one of --shift, --ctrl, or --alt may be
722 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
724 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
725 rather than comparing against S_IFREG, which will almost never work.
727 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
729 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
730 (write_blocklists): Likewise.
732 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
734 * script/lua/grub_lua.h (fputs): Supply a format string as the first
735 argument to grub_printf.
737 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
739 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
742 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
744 * kern/file.c (grub_file_read): Spelling fix
746 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
748 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
749 loading of headers in some cases.
751 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
753 * configure.ac: Bump version to 1.97~beta1.
754 * docs/version.texi: Likewise.
756 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
758 * include/grub/i386/xnu.h: Add license header.
759 include grub/err.h explicitly.
761 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
763 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
764 to `ufs' in the vfs.root.mountfrom kernel parameter.
766 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
768 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
770 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
771 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
773 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
776 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
778 * kern/file.c (grub_file_read): Check offset.
779 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
780 * fs/jfs.c (grub_jfs_read_file): Likewise.
781 * fs/ntfs.c (grub_ntfs_read): Likewise.
782 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
783 * fs/minix.c (grub_minix_read_file): Correct offset check.
784 * fs/ufs.c (grub_ufs_read_file): Likewise.
786 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
788 * term/i386/pc/console.c (bios_data_area): Cast
789 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
791 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
793 1-bit optimised blitters.
795 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
797 (grub_video_fbblit_replace_24bit_1bit): Likewise.
798 (grub_video_fbblit_replace_16bit_1bit): Likewise.
799 (grub_video_fbblit_replace_8bit_1bit): Likewise.
800 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
801 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
802 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
803 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
805 (grub_video_fbblit_replace_24bit_1bit): Likewise.
806 (grub_video_fbblit_replace_16bit_1bit): Likewise.
807 (grub_video_fbblit_replace_8bit_1bit): Likewise.
808 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
809 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
810 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
811 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
813 * video/video.c (grub_video_get_blit_format): Return
814 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
816 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
818 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
819 the first argument to grub_printf.
821 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
822 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
824 Add `getkeystatus' terminal method. Add a new `keystatus' command
827 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
828 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
829 modifier key bitmasks.
830 (struct grub_term_input): Add `getkeystatus' member.
831 (grub_getkeystatus): Add prototype.
832 * kern/term.c (grub_getkeystatus): New function.
834 * include/grub/i386/pc/memory.h
835 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
836 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
838 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
839 (grub_console_term_input): Set `getkeystatus' member.
840 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
842 (grub_usb_keyboard_getreport): Likewise.
843 (grub_usb_keyboard_checkkey): Likewise.
844 (grub_usb_keyboard_getkeystatus): New function.
845 (grub_usb_keyboard_term): Set `getkeystatus' member.
847 * commands/keystatus.c: New file.
848 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
849 (keystatus_mod_SOURCES): New variable.
850 (keystatus_mod_CFLAGS): Likewise.
851 (keystatus_mod_LDFLAGS): Likewise.
852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
853 commands/keystatus.c.
854 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
855 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
856 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
858 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
859 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
861 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
863 Split befs.mod and afs.mod into *_be.mod and *.mod
865 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
866 (grub_fstest_SOURCES): Likewise.
867 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
868 (afs_be_mod_SOURCES): New variable.
869 (afs_be_mod_CFLAGS): Likewise.
870 (afs_be_mod_LDFLAGS): Likewise.
871 (befs_be_mod_SOURCES): Likewise.
872 (befs_be_mod_CFLAGS): Likewise.
873 (befs_be_mod_LDFLAGS): Likewise.
874 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
875 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
876 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
877 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
878 (grub_emu_SOURCES): Likewise.
879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
880 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
881 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
882 * fs/afs_be.c: New file.
883 * fs/befs_be.c: New file.
884 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
885 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
886 (U16): Replaced with ...
887 (grub_afs_to_cpu16): ...this. All users updated.
888 (U32): Replaced with ...
889 (grub_afs_to_cpu32): ...this. All users updated.
890 (U64): Replaced with ...
891 (grub_afs_to_cpu64): ...this. All users updated.
892 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
893 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
894 (grub_afs_validate_sblock): Check only one endianness.
895 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
896 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
897 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
898 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
899 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
900 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
901 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
902 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
904 2009-08-26 Bean <bean123ch@gmail.com>
906 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
908 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
909 (grub_xfs_inode_block): Change return type to grub_uint64_t.
910 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
912 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
914 NetBSD memory map support.
916 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
917 (grub_netbsd_btinfo_mmap_header): New structure.
918 (grub_netbsd_btinfo_mmap_entry): Likewise.
919 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
921 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
923 Enable bsd.mod on coreboot.
925 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
926 (bsd_mod_SOURCES): New variable.
927 (bsd_mod_CFLAGS): Likewise.
928 (bsd_mod_LDFLAGS): Likewise.
929 (bsd_mod_ASFLAGS): Likewise.
930 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
931 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
933 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
935 Cleanup NetBSD root support.
937 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
941 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
943 * util/grub.d/00_header.in: Move check for the video backend of
944 gfxterm from here ...
945 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
946 a suitable video backend.
948 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
950 Fix breakage in grub-setup.
952 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
953 "msdos_partition_map".
955 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
957 Fix breakage in normal/auth.c.
959 * normal/auth.c (grub_iswordseparator): New function.
961 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
963 Authentication support.
965 * commands/password.c: New file.
966 * conf/common.rmk (pkglib_MODULES): Add password.mod.
967 (password_mod_SOURCES): New variable.
968 (password_mod_CFLAGS): Likewise.
969 (password_mod_LDFLAGS): Likewise.
970 (normal_mod_SOURCES): Add normal/auth.c.
971 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
973 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
974 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
975 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
977 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
978 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
979 * include/grub/auth.h: New file.
980 * include/grub/err.h (grub_err_t): New enum value
981 GRUB_ERR_ACCESS_DENIED.
982 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
984 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
985 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
987 * normal/auth.c: New file.
988 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
989 (grub_cmdline_run): Don't allow to go to command line without
991 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
992 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
993 menuentry without superuser rights.
994 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
995 user isn't a superuser.
997 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
999 Save space by inlining misc.c functions.
1001 * kern/misc.c (grub_iswordseparator): Made static.
1002 * kern/misc.c (grub_strcat): Moved from here ...
1003 * include/grub/misc.h (grub_strcat): ... here. Inlined.
1004 * kern/misc.c (grub_strncat): Moved from here ...
1005 * include/grub/misc.h (grub_strncat): ... here. Inlined.
1006 * kern/misc.c (grub_strcasecmp): Moved from here ...
1007 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
1008 * kern/misc.c (grub_strncasecmp): Moved from here ...
1009 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
1010 * kern/misc.c (grub_isalpha): Moved from here ...
1011 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
1012 * kern/misc.c (grub_isdigit): Moved from here ...
1013 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
1014 * kern/misc.c (grub_isgraph): Moved from here ...
1015 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
1016 * kern/misc.c (grub_tolower): Moved from here ...
1017 * include/grub/misc.h (grub_tolower): ... here. Inlined.
1019 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1021 * script/sh/function.c (grub_script_function_find): Cut error message
1022 not to flood terminal.
1023 * script/sh/lexer.c (grub_script_yylex): Remove command line length
1025 * script/sh/script.c (grub_script_arg_add): Duplicate string.
1027 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
1029 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
1030 `report' grub_uint8_t *.
1031 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
1032 Use a 50-millisecond timeout rather than just repeating
1033 grub_usb_keyboard_getreport 50 times.
1034 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
1036 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1038 Rename *_partition_map to part_*
1040 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1041 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1042 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1043 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1045 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1047 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1048 * util/grub-probe.c (probe_partmap): Don't transform partition name
1051 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1053 Fix OpenBSD and NetBSD support.
1055 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1056 memory address conflict.
1057 (OPENBSD_MMAP_ACPI): New definition.
1058 (OPENBSD_MMAP_NVS): Likewise.
1059 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1060 and OPENBSD_MMAP_NVS.
1061 Add memory map terminator
1062 Explicit cast when calling grub_unix_real_boot.
1063 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1065 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1067 Let user specify NetBSD root device.
1069 * loader/i386/bsd.c (netbsd_root): New variable.
1070 (netbsd_opts): New option 'root'.
1071 (NETBSD_ROOT_ARG): New macro.
1072 (grub_netbsd_boot): Use 'netbsd_root'.
1073 (grub_bsd_unload): Free 'netbsd_root'.
1074 (grub_cmd_netbsd): Fill 'netbsd_root'.
1076 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1078 Support for 64-bit NetBSD.
1080 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1081 point when booting non-FreeBSD.
1083 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1085 Support --no-smp and --no-acpi for NetBSD.
1087 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1088 (NETBSD_AB_NOACPI): Likewise.
1089 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1090 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1092 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1094 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1096 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1097 errors. Call grub_error when needed.
1099 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1101 * commands/search.c (search_fs): Try searching without autoload first.
1102 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1103 filesystem module explicitly for faster booting.
1105 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1107 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1109 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1111 * util/grub.d/30_os-prober.in: Disable os-prober if
1112 `GRUB_DISABLE_OS_PROBER' was set to true.
1114 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1116 * partmap/pc.c: Rename to ...
1117 * partmap/msdos.c: ... this. Update all users.
1118 (grub_pc_partition_map): Rename to ...
1119 (grub_msdos_partition_map): ... this. Update all users.
1121 * parttool/pcpart.c: Rename to ...
1122 * parttool/msdospart.c: ... this. Update all users.
1124 * include/grub/pc_partition.h: Rename to ...
1125 * include/grub/msdos_partition.h: ... this. Update all users.
1126 (grub_pc_partition_bsd_entry): Rename to ...
1127 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1128 (grub_pc_partition_disk_label): Rename to ...
1129 (grub_msdos_partition_disk_label): ... this. Update all users.
1130 (grub_pc_partition_entry): Rename to ...
1131 (grub_msdos_partition_entry): ... this. Update all users.
1132 (grub_pc_partition_mbr): Rename to ...
1133 (grub_msdos_partition_mbr): ... this. Update all users.
1134 (grub_pc_partition): Rename to ...
1135 (grub_msdos_partition): ... this. Update all users.
1136 (grub_pc_partition_is_empty): Rename to ...
1137 (grub_msdos_partition_is_empty): ... this. Update all users.
1138 (grub_pc_partition_is_extended): Rename to ...
1139 (grub_msdos_partition_is_extended): ... this. Update all users.
1140 (grub_pc_partition_is_bsd): Rename to ...
1141 (grub_msdos_partition_is_bsd): ... this. Update all users.
1143 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1144 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1145 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1146 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1147 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1148 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1149 (gpt_mod_LDFLAGS): Rename to ...
1150 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1151 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1152 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1153 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1154 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1155 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1156 (part_gpt_mod_LDFLAGS): ... this.
1157 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1158 `pcpart.mod' to `msdospart.mod'.
1159 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1161 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1162 (msdospart_mod_LDFLAGS): ... this.
1164 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1166 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1167 (openbsd_opts): Likewise.
1168 (netbsd_opts): Likewise.
1169 (freebsd_flags): Added 0 terminator.
1170 (openbsd_flags): Likewise.
1171 (netbsd_flags): Likewise.
1172 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1173 (grub_cmd_freebsd): Transformed into extended command.
1174 (grub_cmd_openbsd): Likewise.
1175 (grub_cmd_netbsd): Likewise.
1176 (cmd_freebsd): Changed type to grub_extcmd_t.
1177 (cmd_openbsd): Likewise.
1178 (cmd_netbsd): Likewise.
1179 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1180 grub_cmd_openbsd as extended commands.
1181 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1182 cmd_netbsd and cmd_openbsd
1184 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1186 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1188 2009-08-21 Pavel Roskin <proski@gnu.org>
1190 * Makefile.in (install-local): When checking if a file is in the
1191 build directory, use "test -e" to detect symlinks.
1193 * Makefile.in (install-local): Remove all files in
1194 $(DESTDIR)$(pkglibdir) before installing new files there.
1196 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1198 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1201 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1203 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1204 explicitly specified by the user.
1206 2009-08-18 Pavel Roskin <proski@gnu.org>
1208 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1209 grub_uint8_t pointer for data.
1210 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1212 * video/fb/fbutil.c: Remove unnecessary casts.
1214 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1218 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1219 (grub_vbe_set_video_mode): Save active mode info
1220 only after setting the mode.
1221 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1224 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1226 Rename variables for clarity.
1228 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1229 (active_vbe_mode_info): ... this. All users updated.
1230 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1232 (initial_mode): Rename to ...
1233 (initial_vbe_mode): ... this. All users updated.
1234 (mode_in_use): Rename to ..
1235 (vbe_mode_in_use): ... this. All users updated.
1236 (mode_list): Rename to ..
1237 (vbe_mode_list): ... this. All users updated.
1238 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1239 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1240 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1241 'mode_list_size' to 'vbe_mode_list_size'.
1242 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1243 'best_mode_info' to 'best_vbe_mode_info' and
1244 'best_mode' to 'best_vbe_mode'
1246 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1248 Remove duplicate grub_video_fb_get_video_ptr.
1250 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1251 (grub_video_fb_get_video_ptr): ... this.
1252 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1253 * video/fb/fbutil.c: Add comment about addressing.
1254 (get_data_ptr): Rename to ...
1255 (grub_video_fb_get_video_ptr): ... this. All users updated.
1256 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1258 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1260 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1261 grub_dprintf() that was just added.
1263 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1265 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1266 (DEFAULT_VIDEO_MODE): Remove macros.
1267 (grub_linux_boot): Remove assumption that Linux has FB support,
1268 and use "text" as default video mode.
1270 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1272 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1274 * fs/fat.c (grub_fat_read_data): Likewise.
1276 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1278 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1280 (grub_module): Likewise.
1282 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1284 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1285 mbi->cmdline but free playground.
1287 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1289 Handle group offset on UFS1.
1291 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1292 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1294 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1296 Split ufs.mod into ufs1.mod and ufs2.mod.
1298 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1299 (grub_fstest_SOURCES): Likewise.
1300 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1301 (ufs_mod_SOURCES): Remove.
1302 (ufs_mod_CFLAGS): Likewise.
1303 (ufs_mod_LDFLAGS): Likewise.
1304 (ufs1_mod_SOURCES): New variable.
1305 (ufs1_mod_CFLAGS): Likewise.
1306 (ufs1_mod_LDFLAGS): Likewise.
1307 (ufs2_mod_SOURCES): New variable.
1308 (ufs2_mod_CFLAGS): Likewise.
1309 (ufs2_mod_LDFLAGS): Likewise.
1310 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1311 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1313 (grub_emu_SOURCES): Likewise.
1314 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1315 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1316 (grub_setup_SOURCES): Likewise.
1317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1318 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1319 (grub_setup_SOURCES): Likewise.
1320 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1322 * fs/ufs2.c: New file.
1323 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1325 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1329 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1330 subsystem at the end.
1331 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1332 (video_fb_mod_SOURCES): New variable.
1333 (video_fb_mod_CFLAGS): Likewise.
1334 (video_fb_mod_LDFLAGS): Likewise.
1335 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1336 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1337 * video/i386/pc/vbeblit.c: Moved from here ...
1338 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1339 * video/i386/pc/vbefill.c: Moved from here ...
1340 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1341 * video/i386/pc/vbeutil.c: Moved from here ...
1342 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1343 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1344 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1345 * include/grub/i386/pc/vbefill.h: Moved from here ...
1346 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1347 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1348 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1349 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1350 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1351 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1352 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1353 (grub_video_adapter): Added 'get_info_and_fini'.
1354 (grub_video_get_info_and_fini): New prototype.
1355 (grub_video_set_mode): make modestring const char *.
1356 * loader/i386/linux.c (grub_linux_setup_video): Use
1357 grub_video_get_info_and_fini.
1358 (grub_linux_boot): Move modesetting just before booting.
1359 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1360 grub_video_get_info_and_fini.
1361 * video/i386/pc/vbe.c: Moved framebuffer part ...
1362 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1363 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1364 grub_video_fbstd_colors and grub_video_fb_set_palette.
1365 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1367 (grub_video_vbe_fini): Use grub_video_fb_fini.
1368 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1369 render_target and use grub_video_fb_set_active_render_target and
1370 grub_video_fb_set_palette.
1371 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1372 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1373 (grub_video_vbe_adapter): Use framebuffer.
1374 * video/video.c (grub_video_get_info_and_fini): New function.
1375 (grub_video_set_mode): Make modestring const char *.
1376 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1377 values are already initialised.
1379 2009-08-14 Pavel Roskin <proski@gnu.org>
1381 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1383 * boot/i386/pc/diskboot.S: Likewise.
1384 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1385 sectors allow compilation on MacOSX.
1386 * conf/i386-pc.rmk: Enable unconditional compilation of
1389 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1391 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1392 * util/grub.d/00_header.in: Enter interruptible sleep if
1393 GRUB_HIDDEN_TIMEOUT is set.
1395 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1397 * include/grub/symbol.h: Add the LOCAL macro.
1398 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1401 2009-08-13 Pavel Roskin <proski@gnu.org>
1403 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1404 any modern compilers we support.
1406 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1407 Use local labels starting with "L_" so that Apple assembler
1408 knows they are local.
1410 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1412 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1413 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1414 (bsd_kernel_types): ... this enum.
1416 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1417 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1418 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1420 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1421 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1422 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1425 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1427 * util/grub-dumpdevtree: Moved from here ...
1428 * util/i386/efi/grub-dumpdevtree: ... to here.
1429 (hexify): New function. Converts a string to its hex version.
1430 Generate hex versions of "efi" and "device-properties" by calling
1431 hexify() on the ASCII strings rather than by hardcoding numbers.
1433 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1435 * fs/jfs.c: Update copyright year.
1437 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1439 * util/grub.d/00_header.in: Fix a comment.
1440 * util/grub.d/10_linux.in: Likewise.
1441 * util/grub.d/10_windows.in: Likewise.
1442 * util/grub.d/10_hurd.in: Likewise.
1444 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1446 * util/grub-mkconfig.in: Allow the user to specify the used font
1449 2009-08-08 Pavel Roskin <proski@gnu.org>
1451 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1452 available, xfs.mod needs it now.
1454 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1455 the "g" modifier in sed when the intention is to strip something
1456 once. This fixes comparison of kernels with multiple dashes.
1458 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1459 on it. Add missing space before closing bracket. Fix
1460 misleading formatting.
1462 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1464 * docs/grub.texi: Major overhaul. Remove all sections that are
1465 specific to GRUB Legacy, or mostly composed of Legacy-specific
1468 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1470 * docs/version.texi: New file. Provides version information for
1473 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1475 * docs/grub.texi: Update CVS information to SVN.
1476 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1478 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1480 * util/grub-mkconfig.in: Remove a wrong `fi'.
1482 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1484 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1485 (grub_jfs_uuid): New function.
1486 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1488 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1490 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1492 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1493 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1495 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1497 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1498 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1501 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1502 not just "vmlinu[zx]".
1504 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1507 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1508 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1511 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1513 * util/grub.d/10_freebsd.in: Use an absolute device path for
1514 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1516 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1518 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1519 handling of multiple abstraction modules.
1521 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1523 Fix a bug resulting in black screen when loading Linux using a
1526 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1529 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1530 (grub_vbe_bios_getset_dac_palette_width): New function.
1531 (grub_vbe_bios_get_dac_palette_width)
1532 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1533 grub_vbe_bios_getset_dac_palette_width()).
1535 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1536 check for return status.
1537 (grub_vbe_get_video_mode_info): When getting information for a packed
1538 mode (<= 8 bpp), obtain DAC palette width using
1539 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1540 {red,green,blue}_mark_size.
1542 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1544 * commands/search.c (options): Fix help output to match actual code.
1546 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1548 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1551 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1553 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1556 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1558 Support Apple partition map with sector size different from 512 bytes.
1560 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1561 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1562 and 'apart.partmap_size'.
1564 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1565 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1569 * commands/i386/cpuid.c (options): New variable.
1570 (grub_cmd_cpuid): Return real error.
1571 (GRUB_MOD_INIT(cpuid)): Declare options.
1573 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1575 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1578 2009-07-31 Bean <bean123ch@gmail.com>
1580 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1582 (grub_fshelp_node): Move inode field to the end.
1583 (grub_xfs_data): Remove inode field.
1584 (grub_xfs_inode_block): Calculate inode size using sblock.
1585 (grub_xfs_inode_offset): Likewise.
1586 (grub_xfs_read_inode): Calculate inode size using sblock.
1587 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1588 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1589 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1590 to match inode size.
1591 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1592 not accessible when data is null.
1593 (grub_xfs_open): Likewise.
1595 2009-07-31 Bean <bean123ch@gmail.com>
1597 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1598 Don't change pv->disk if it's already set.
1600 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1601 (grub_raid_register): ... here.
1602 (grub_raid_rescan): Removed.
1604 * include/grub/raid.h (grub_raid_rescan): Removed.
1606 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1607 (fstest): Replace grub_raid_rescan with module fini function followed
1610 * util/grub-probe.c: Add include file <grub/raid.h>.
1611 (probe_raid_level): New function.
1612 (probe): Detect abstraction by walking the disk device, support two
1613 level of abstraction (LVM on RAID) when detecting partition map.
1615 2009-07-31 Pavel Roskin <proski@gnu.org>
1617 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1618 to grub_zalloc(), it was erroneous.
1619 Reported by Bean <bean123ch@gmail.com>
1621 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1623 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1624 embedding zone, not only the first one.
1626 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1628 * term/gfxterm.c (clear_char): New function.
1629 (grub_virtual_screen_setup): Use clear_char.
1630 (scroll_up): Likewise.
1631 (grub_virtual_screen_cls): Likewise.
1633 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1635 * util/deviceiter.c (get_acceleraid_disk_name): New static
1637 (grub_util_iterate_devices): Handle Accelraid devices.
1638 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1640 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1642 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1643 separator for the suggested gfxpayload string (';' collides with the
1644 parser and needs escaping).
1646 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1648 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1649 Clear direction flag before jumping to OS.
1650 (grub_multiboot2_real_boot): Likewise.
1652 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1654 * util/i386/pc/grub-install: Fix parsing of --disk-module
1657 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1659 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1662 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1664 * util/grub-mkconfig.in (package_version): New variable.
1665 Use it do display the version.
1667 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1669 * kern/file.c (grub_file_open): Revert to previous check with
1672 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1674 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1675 from help line. It's out of sync with code.
1677 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1679 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1680 entries on failed boot.
1682 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1684 * kern/file.c (grub_file_open): Fix an error check.
1686 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1688 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1689 partition map couldn't be identified.
1691 2009-07-23 Pavel Roskin <proski@gnu.org>
1693 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1694 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1695 case of little endian words becomes just an optimization.
1696 Respect const modifier.
1697 (md5_final): Use code that doesn't depend on endianness.
1699 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1700 to avoid loss of upper bits if align is unsigned and shorter
1703 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1705 UUID support for UFS
1707 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1708 (grub_ufs_uuid): New function.
1709 (grub_ufs_fs): add .uuid
1711 2009-07-21 Pavel Roskin <proski@gnu.org>
1713 * kern/dl.c (grub_dl_check_header): Make static.
1715 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1717 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1718 add drivemap for Vista. It breaks Windows 7.
1720 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1722 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1725 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1729 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1730 (grub_fstest_SOURCES): Likewise.
1731 (pkglib_MODULES): Add befs.mod.
1732 (befs_mod_SOURCES): New variable.
1733 (befs_mod_CFLAGS): Likewise.
1734 (befs_mod_LDFLAGS): Likewise.
1735 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1736 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1737 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1738 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1739 (grub_setup_SOURCES): Likewise.
1740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1741 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1742 (grub_setup_SOURCES): Likewise.
1743 * fs/befs.c: New file.
1744 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1745 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1746 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1747 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1748 (B_KEY_INDEX_ALIGN): New declaration.
1749 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1750 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1751 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1752 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1753 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1754 (grub_afs_mount) [MODE_BFS]: Likewise.
1755 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1756 (grub_afs_fs): Use GRUB_AFS_FSNAME
1757 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1758 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1759 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1760 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1762 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1764 * util/getroot.c (find_root_device): Add support for MacOSX.
1765 * util/hostdisk.c: Likewise.
1767 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1769 * font/font.c (find_glyph): Check whether a font is present to avoid
1772 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1774 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1776 2009-07-20 Pavel Roskin <proski@gnu.org>
1778 * configure.ac: Trim excessively wordy excuses.
1780 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1782 Add symlink, mtime and label support to AtheFS.
1784 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1785 (grub_afs_iterate_dir): Handle symlinks.
1786 (grub_afs_open): Use grub_afs_read_symlink.
1787 (grub_afs_dir): Likewise.
1789 (grub_afs_label): New function.
1790 (grub_afs_fs): Add grub_afs_label.
1791 (grub_afs_read_symlink): New function.
1793 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1797 * fs/afs.c: Fix comments style.
1798 (grub_afs_blockrun): Declare as packed.
1799 (grub_afs_datastream): Likewise.
1800 (grub_afs_bnode): Likewise.
1801 (grub_afs_btree): Likewise.
1802 (grub_afs_sblock): Likewise.
1803 Declare `name' as char.
1804 (grub_afs_inode): Declare as packed.
1805 Change void *vnode to grub_uint32_t unused.
1806 (grub_afs_iterate_dir): Check that key_size is positive.
1807 (grub_afs_mount): Don't read superblock twice.
1808 (grub_afs_dir): Don't free node in case of error,
1809 grub_fshelp_find_file already handles this.
1810 (grub_afs_open): Likewise.
1812 2009-07-19 Pavel Roskin <proski@gnu.org>
1814 * Makefile.in: Remove LIBLZO and enable_lzo.
1815 * conf/i386-pc.rmk: Remove lzo support.
1816 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1817 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1819 * kern/i386/pc/lzo1x.S: Remove.
1820 * kern/i386/pc/startup.S: Remove lzo support.
1821 * util/i386/pc/grub-mkimage.c: Likewise.
1823 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1825 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1826 * fs/xfs.c (grub_xfs_dir): Likewise.
1827 * fs/afs.c (grub_afs_dir): Likewise.
1828 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1829 (grub_iso9660_open): Likewise.
1830 * fs/jfs.c (grub_jfs_open): Likewise.
1831 * fs/ext2.c (grub_ext2_dir): Likewise.
1832 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1833 * script/sh/lexer.c (grub_script_yylex): Likewise.
1835 2009-07-16 Pavel Roskin <proski@gnu.org>
1837 * configure.ac: Never add "-c" to CFLAGS.
1839 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1841 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1842 grub_cv_cc_efiemu should be used.
1844 * configure.ac: Typo fixes.
1846 * kern/mm.c (grub_zalloc): New function.
1847 (grub_debug_zalloc): Likewise.
1848 * include/grub/mm.h: Declare grub_zalloc() and
1849 grub_debug_zalloc().
1850 * util/misc.c (grub_zalloc): New function.
1851 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1852 instead of grub_malloc(), remove unneeded initializations.
1853 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1854 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1855 * commands/parttool.c (grub_cmd_parttool): Likewise.
1856 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1857 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1858 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1859 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1860 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1861 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1862 (grub_cmd_efiemu_pnvram): Likewise.
1863 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1864 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1865 (grub_iso9660_iterate_dir): Likewise.
1866 * fs/jfs.c (grub_jfs_opendir): Likewise.
1867 * fs/ntfs.c (list_file): Likewise.
1868 (grub_ntfs_mount): Likewise.
1869 * kern/disk.c (grub_disk_open): Likewise.
1870 * kern/dl.c (grub_dl_load_core): Likewise.
1871 * kern/elf.c (grub_elf_file): Likewise.
1872 * kern/env.c (grub_env_context_open): Likewise.
1873 (grub_env_set): Likewise.
1874 (grub_env_set_data_slot): Likewise.
1875 * kern/file.c (grub_file_open): Likewise.
1876 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1877 * loader/i386/multiboot.c (grub_module): Likewise.
1878 * loader/xnu.c (grub_xnu_create_key): Likewise.
1879 (grub_xnu_create_value): Likewise.
1880 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1881 (read_config_file): Likewise.
1882 * normal/menu_entry.c (make_screen): Likewise.
1883 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1884 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1885 * script/sh/script.c (grub_script_parse): Likewise.
1886 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1887 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1888 * video/readers/png.c (grub_png_output_byte): Likewise.
1889 (grub_video_reader_png): Likewise.
1891 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1893 Enable all targets that can be built by default
1895 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1896 grub-mkfont and grub-fstest if they can be built
1898 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1900 Fix hang and segmentation fault in grub-emu-usb
1902 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1903 * util/usb.c (grub_libusb_devices): likewise
1904 (grub_libusb_init): rename to ...
1905 (GRUB_MOD_INIT (libusb)):...this
1906 (grub_libusb_fini): rename to ..
1907 (GRUB_MOD_FINI (libusb)):...this
1908 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1909 * include/grub/disk.h (grub_raid_init): removed, it's useless
1910 (grub_raid_fini): likewise
1911 (grub_lvm_init): likewise
1912 (grub_lvm_fini): likewise
1913 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1916 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1920 * Makefile.in (LIBUSB): new macro
1921 * genmk.rb (Utility/print_tail): new method
1922 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1923 (top level): call util.print_tail at the end.
1925 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1927 Make FreeBSD accept zpool.cache
1929 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1930 type is /boot/zfs/zpool.cache
1932 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1936 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1937 correct wrong typedef
1938 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1940 2009-07-15 Pavel Roskin <proski@gnu.org>
1942 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1943 * kern/disk.c (struct grub_disk_cache): Likewise.
1945 * commands/probe.c (options): Typo fix.
1947 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1948 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1950 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1952 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1953 the end of "Error" to make the message more readable.
1955 * boot/i386/pc/boot.S (kernel_segment): Remove.
1956 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1959 * boot/i386/pc/boot.S (boot_version): Remove.
1960 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1963 * include/grub/i386/pc/boot.h: Sort all offsets.
1964 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1965 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1966 * boot/i386/pc/boot.S: Assert location of every offset listed in
1967 include/grub/i386/pc/boot.h.
1969 2009-07-13 Pavel Roskin <proski@gnu.org>
1971 * include/grub/i386/coreboot/machine.h: Rename
1972 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1973 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1974 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1976 * kern/dl.c: Force native word size to suppress warnings when
1979 * kern/device.c (grub_device_iterate): Change struct part_ent to
1980 hold the name, not a pointer to it. Use one grub_malloc() per
1981 partition, not two. Free partition_name if grub_malloc() fails.
1982 Set ents to NULL only before grub_partition_iterate() is called.
1984 2009-07-11 Bean <bean123ch@gmail.com>
1986 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1989 2009-07-10 Bean <bean123ch@gmail.com>
1990 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
1992 * kern/ieee1275/openfw.c (grub_children_iterate)
1993 (grub_devalias_iterate): Fix size evaluation for property or path
1994 strings, which was broken since r2132.
1996 2009-07-07 Pavel Roskin <proski@gnu.org>
1998 * commands/search.c (search_file): Merge into ...
1999 (search_fs): ... this. Accept search type as argument.
2000 (grub_cmd_search): Pass search type to search_fs().
2002 * include/grub/util/console.h: New file.
2003 * util/console.c: Use it instead of grub/machine/console.h.
2004 * util/grub-emu.c: Likewise.
2006 * lib/arg.c (find_long_option): Remove.
2007 (find_long): Add `len' argument, make `s' const char *.
2008 (grub_arg_parse): Parse long options in place, not in a
2011 2009-07-06 Pavel Roskin <proski@gnu.org>
2013 * commands/search.c (search_fs): Fix potential NULL pointer
2016 * commands/search.c (search_fs): Replace QUID macro with quid_fn
2019 2009-07-06 Daniel Mierswa <impulze@impulze.org>
2021 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
2024 2009-07-05 Pavel Roskin <proski@gnu.org>
2026 * include/grub/i386/linux.h (struct linux_kernel_params):
2027 Restore padding3, it's still needed.
2029 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
2031 * util/osdetect.lua: Likewise.
2033 2009-07-05 Bean <bean123ch@gmail.com>
2035 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
2037 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
2038 (grub_lua_getenv): Likewise.
2039 (grub_lua_setenv): Likewise.
2040 (save_errno): New function.
2041 (push_result): Likewise.
2042 (grub_lua_enum_device): Likewise.
2043 (grub_lua_enum_file): Likewise.
2044 (grub_lua_file_open): Likewise.
2045 (grub_lua_file_close): Likewise.
2046 (grub_lua_file_seek): Likewise.
2047 (grub_lua_file_read): Likewise.
2048 (grub_lua_file_getline): Likewise.
2049 (grub_lua_file_getsize): Likewise.
2050 (grub_lua_file_getpos): Likewise.
2051 (grub_lua_file_eof): Likewise.
2052 (grub_lua_file_exist): Likewise.
2053 (grub_lua_add_menu): Likewise.
2055 * script/lua/grub_lua.h (isupper): New inline function.
2056 (islower): Likewise.
2057 (ispunct): Likewise.
2058 (isxdigit): Likewise.
2059 (strcspn): Change to normal function.
2060 (strpbkr): New function declaration.
2063 * script/lua/grub_main.c (scan_str): New function.
2064 (strcspn): Likewise.
2065 (strpbrk): Likewise.
2068 * script/lua/linit.c (lualibs): Enable the string library.
2070 * util/osdetect.lua: New file.
2072 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2074 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2075 `capabilities' member.
2077 2009-07-02 Pavel Roskin <proski@gnu.org>
2079 * genparttoollist.sh: Add missing newline at the end.
2081 2009-07-01 Pavel Roskin <proski@gnu.org>
2083 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2085 * util/hostdisk.c (open_device): Remove `const' from
2086 `sysctl_size', as sysctlbyname() can change it (in this case it
2087 doesn't actually happen).
2089 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2090 using signed long int constants.
2092 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2093 constant to avoid a warning on FreeBSD.
2095 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2098 * Makefile.in: Install include/grub/machine symlink.
2100 * Makefile.in: When installing symlinks, use "cp -fR", which
2101 works on FreeBSD and MacOSX.
2102 From Yves Blusseau <cl7m42e02@sneakemail.com>
2104 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2105 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2107 * util/misc.c: Move grub_reboot() and grub_halt() ...
2108 * util/grub-emu.c: ... here. Make main_env static.
2109 * include/grub/util/misc.h: Remove main_env.
2111 * kern/mm.c: Use correct format to print size_t.
2113 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2114 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2115 * kern/powerpc/dl.c: Likewise.
2116 * kern/sparc64/dl.c: Likewise.
2117 * kern/x86_64/dl.c: Likewise.
2119 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2121 Fix grub-emu build on sparc64-ieee1275.
2123 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2124 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2126 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2128 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2129 (grub_reboot, grub_halt): New functions.
2131 * util/i386/pc/misc.c: Delete. Update all users.
2132 * util/sparc64/ieee1275/misc.c: Likewise.
2133 * util/powerpc/ieee1275/misc.c: Likewise.
2135 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2137 * conf/i386.rmk (setjmp_mod_SOURCES)
2138 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2139 * conf/common.rmk (setjmp_mod_SOURCES)
2140 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2141 to use $(target_cpu).
2142 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2143 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2144 * conf/powerpc-ieee1275.rmk: Likewise.
2145 * conf/sparc64-ieee1275.rmk: Likewise.
2147 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2148 $(target_cpu) for kern/$(target_cpu)/dl.c.
2149 * conf/i386-efi.rmk: Likewise.
2150 * conf/i386-ieee1275.rmk: Likewise.
2151 * conf/x86_64-efi.rmk: Likewise.
2152 * conf/i386-coreboot.rmk: Likewise.
2153 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2154 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2155 kern/$(target_cpu)/cache.S.
2156 * conf/sparc64-ieee1275.rmk: Likewise.
2158 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2160 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2161 type to `grub_uint8_t', and adjust `padding9' accordingly.
2163 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2165 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2167 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2168 assembly in final jump, using register constraints.
2170 (grub_linux_boot): For text mode, initialize `have_vga' using
2171 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2173 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2174 right before the final jump.
2176 Set `video_mode' to 0x3.
2178 Document initialization of `video_page', `video_mode' and
2181 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2183 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2184 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2185 and set GRUB_LINUX_FLAG_QUIET appropriately.
2187 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2189 Fix build on Debian / sparc.
2191 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2193 2009-06-28 Pavel Roskin <proski@gnu.org>
2195 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2198 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2200 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2202 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2205 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2209 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2210 file can't be opened. grub_file_open() is already supposed to set
2211 grub_errno / grub_errmsg appropriately.
2212 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2214 2009-06-27 Pavel Roskin <proski@gnu.org>
2215 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2217 * include/grub/dl.h: Include grub/elf.h.
2218 (struct grub_dl): Add symtab field.
2219 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2220 GRUB_MODULES_MACHINE_READONLY.
2221 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2222 of the header for read-only modules.
2223 (grub_dl_unload): Free mod->symtab for read-only modules.
2224 * kern/i386/dl.c: Use mod->symtab.
2225 * kern/powerpc/dl.c: Likewise.
2226 * kern/sparc64/dl.c: Likewise.
2227 * kern/x86_64/dl.c: Likewise.
2229 * conf/i386-qemu.rmk: New file.
2230 * kern/i386/qemu/startup.S: Likewise.
2231 * kern/i386/qemu/mmap.c: Likewise.
2232 * boot/i386/qemu/boot.S: Likewise.
2233 * include/grub/i386/qemu/time.h: Likewise.
2234 * include/grub/i386/qemu/serial.h: Likewise.
2235 * include/grub/i386/qemu/kernel.h: Likewise.
2236 * include/grub/i386/qemu/console.h: Likewise.
2237 * include/grub/i386/qemu/boot.h: Likewise.
2238 * include/grub/i386/qemu/init.h: Likewise.
2239 * include/grub/i386/qemu/machine.h: Likewise.
2240 * include/grub/i386/qemu/loader.h: Likewise.
2241 * include/grub/i386/qemu/memory.h: Likewise.
2243 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2244 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2245 [qemu] (pkglib_IMAGES): Add `boot.img'.
2246 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2247 [qemu] (boot_img_FORMAT): New variables.
2248 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2249 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2250 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2251 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2252 [qemu] (kernel_img_FORMAT): New variables.
2254 * configure.ac: Recognise `i386-qemu'.
2256 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2257 (for no compression).
2258 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2259 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2260 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2261 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2264 2009-06-27 Pavel Roskin <proski@gnu.org>
2266 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2268 * efiemu/prepare32.c: Likewise.
2269 * efiemu/prepare64.c: Likewise.
2271 2009-06-26 Pavel Roskin <proski@gnu.org>
2273 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2274 * include/grub/elf.h: Define symbols without "32" or "64" based
2275 on GRUB_TARGET_WORDSIZE.
2276 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2277 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2279 * efiemu/loadcore64.c: Likewise.
2280 * loader/i386/bsd32.c: Likewise.
2281 * loader/i386/bsd64.c: Likewise.
2282 * kern/dl.c: Remove own ELF definitions.
2283 * util/i386/efi/grub-mkimage.c: Likewise.
2285 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2287 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2288 segment 0x0 unconditionally, because the reference generated by
2289 GAS is an absolute address.
2291 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2293 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2294 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2296 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2298 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2299 indexes. Check for -f explicitly.
2300 (search_file): Improve error message.
2301 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2303 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2305 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2306 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2308 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2310 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2311 * conf/i386-ieee1275.rmk: Likewise.
2312 * conf/i386-coreboot.rmk: Likewise.
2314 * kern/i386/pc/startup.S (grub_stop): Remove function.
2315 * kern/i386/ieee1275/startup.S: Likewise.
2316 * kern/i386/coreboot/startup.S: Likewise.
2317 * kern/i386/misc.S (grub_stop): New function.
2319 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2321 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2322 * kern/i386/realmode.S (real_to_prot): ... to here.
2324 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2326 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2328 (kernel_elf_SOURCES): Rename to ...
2329 (kernel_img_SOURCES): ... this.
2330 (kernel_elf_HEADERS): Rename to ...
2331 (kernel_img_HEADERS): ... this. Update all users.
2332 (kernel_elf_ASFLAGS): Rename to ...
2333 (kernel_img_ASFLAGS): ... this.
2334 (kernel_elf_CFLAGS): Rename to ...
2335 (kernel_img_CFLAGS): ... this.
2336 (kernel_elf_LDFLAGS): Rename to ...
2337 (kernel_img_LDFLAGS): ... this.
2338 * conf/i386-coreboot.rmk: Likewise.
2339 * conf/powerpc-ieee1275.rmk: Likewise.
2341 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2344 2009-06-21 Pavel Roskin <proski@gnu.org>
2346 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2347 to match nested functions.
2348 * loader/sparc64/ieee1275/linux.c: Likewise.
2350 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2352 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2354 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2357 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2359 Fix asm file handling on ELF, and remove workarounds.
2361 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2362 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2363 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2364 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2366 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2368 Load BSD ELF modules
2370 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2371 and loader/i386/bsd64.c
2372 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2373 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2374 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2375 (grub_freebsd_load_elfmodule32): New declaration
2376 (grub_freebsd_load_elfmoduleobj64): Likewise
2377 (grub_freebsd_load_elf_meta32): Likewise
2378 (grub_freebsd_load_elf_meta64): Likewise
2379 (grub_freebsd_add_meta): Likewise
2380 (grub_freebsd_add_meta_module): Likewise
2381 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2382 (grub_freebsd_add_meta_module): Likewise and move module-specific
2383 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2384 (grub_cmd_freebsd): Add elf-kernel specific parts
2385 based on grub_freebsd_add_meta_module
2386 (grub_cmd_freebsd_module): Add type parsing moved from
2387 grub_freebsd_add_meta_module
2388 (grub_cmd_freebsd_module_elf): New function
2389 (cmd_freebsd_module_elf): New variable
2390 (GRUB_MOD_INIT): Register freebsd_module_elf
2391 * loader/i386/bsd32.c: New file
2392 * loader/i386/bsd64.c: Likewise
2393 * loader/i386/bsdXX.c: Likewise
2394 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2395 (grub_elf64_load): Likewise
2396 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2398 (grub_elf64_load_hook_t): Likewise
2400 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2402 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2404 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2405 don't write a menu entry for recovery mode.
2407 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2409 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2410 after it's no longer needed.
2412 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2414 * include/grub/i386/loader.h (grub_linux_prot_size)
2415 (grub_linux_tmp_addr, grub_linux_real_addr)
2416 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2417 GRUB_MACHINE_PCBIOS.
2418 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2419 common grub_util_info() call to ...
2420 (generate_image): ... here.
2421 Fix use of uninitialized memory, comparison of signed with
2422 unsigned integers and memory leak.
2423 Remove bogus module address message.
2425 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2427 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2429 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2431 2009-06-19 Pavel Roskin <proski@gnu.org>
2433 * configure.ac: Remove stray AC_MSG_CHECKING.
2435 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2437 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2439 2009-06-18 Pavel Roskin <proski@gnu.org>
2441 * conf/common.rmk: Add fs_file.mod.
2442 * disk/fs_file.c: New file.
2443 * include/grub/disk.h (enum grub_disk_dev_id): Add
2444 GRUB_DISK_DEVICE_FILE_ID.
2446 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2448 Fix build with Apple's toolchain. Part 2
2450 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2453 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2455 Fix build with Apple's toolchain. Part 1
2457 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2459 * configure.ac: remove a leftover AC_MSG_RESULT
2460 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2463 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2467 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2468 (decomp_block): initialize ch
2469 use grub_memcpy instead of memcpy
2471 2009-06-17 Pavel Roskin <proski@gnu.org>
2473 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2474 version, use declarations needed to use vga_text as the startup
2477 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2478 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2480 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2481 and grub_at_keyboard_fini(), it's done on module load and
2484 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2486 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2487 file can't be found.
2488 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2490 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2492 Fix newline handling
2494 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2495 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2496 (grub_script_yylex): don't segfault on unterminated script
2497 newline terminates command and variable
2499 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2501 avoid double grub_adjust_range call. Bug reported by David Simner
2503 * kern/disk.c (grub_disk_write): change to raw disk access before
2506 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2508 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2509 spaces, for the benefit of help2man.
2510 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2512 2009-06-16 Pavel Roskin <proski@gnu.org>
2514 * kern/i386/halt.c: Include grub/machine/init.h.
2515 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2517 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2519 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2522 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2524 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2527 2009-06-16 Pavel Roskin <proski@gnu.org>
2529 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2530 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2531 save %dx, we only need %dl and we never change it.
2532 * boot/i386/pc/cdboot.S: Don't set the root drive.
2533 * boot/i386/pc/pxeboot.S: Likewise.
2534 * include/grub/i386/pc/boot.h: Remove
2535 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2536 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2537 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2538 * kern/i386/pc/init.c (make_install_device): Remove references
2540 * kern/i386/pc/startup.S: Likewise.
2541 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2543 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2547 * commands/xnu_uuid.c: new file
2548 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2549 (xnu_uuid_mod_SOURCES): new variable
2550 (xnu_uuid_mod_CFLAGS): likewise
2551 (xnu_uuid_mod_LDFLAGS): likewise
2552 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2553 * conf/i386-ieee1275.rmk: likewise
2554 * conf/i386-pc.rmk: likewise
2555 * conf/powerpc-ieee1275.rmk: likewise
2556 * conf/sparc64-ieee1275.rmk: likewise
2557 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2559 2009-06-16 Pavel Roskin <proski@gnu.org>
2561 * configure.ac: Avoid '==' in test command, it's not portable.
2563 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2567 * commands/probe.c: new file
2568 * conf/common.rmk (pkglib_MODULES): add probe.mod
2569 (probe_mod_SOURCES): new variable
2570 (probe_mod_CFLAGS): likewise
2571 (probe_mod_LDFLAGS): likewise
2572 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2573 * conf/i386-ieee1275.rmk: likewise
2574 * conf/i386-pc.rmk: likewise
2575 * conf/powerpc-ieee1275.rmk: likewise
2576 * conf/sparc64-ieee1275.rmk: likewise
2578 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2580 Fix handling of string like \"hello\" and "a
2583 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2584 (grub_script_yylex): fix parsing of quoting, escaping and newline
2586 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2588 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2591 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2593 * util/grub-mkconfig.in: Fix parsing of --output option.
2595 2009-06-12 Pavel Roskin <proski@gnu.org>
2597 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2598 genmk.rb don't need to be generated or installed.
2600 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2602 * commands/i386/pc/drivemap_int13h.S: add more comments
2604 2009-06-11 Pavel Roskin <proski@gnu.org>
2606 * Makefile.in (uninstall): Uninstall manuals.
2608 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2609 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2610 and update-grub_lib in two places.
2611 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2613 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2616 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2617 `entry_lo' to fix variable shadowing.
2619 2009-06-11 Christian Franke <franke@computer.org>
2621 * kern/misc.c (__enable_execute_stack): Add missing return type
2622 to prevent gcc warning.
2624 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2626 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2628 2009-06-11 Pavel Roskin <proski@gnu.org>
2630 * Makefile.in: Don't rely on any scripts being executable.
2631 Always use $(SHELL) to run shell scripts.
2633 * configure.ac: Always define ___main if using -nostdlib. This
2634 fixes tests on Cygwin.
2636 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2640 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2641 is in bytes and not in blocks
2643 2009-06-11 Pavel Roskin <proski@gnu.org>
2645 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2648 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2650 * util/grub.d/30_os-prober.in: Fix a comment. Source
2651 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2652 to set the root device. Place drivemap command in the generated
2655 2009-06-11 Pavel Roskin <proski@gnu.org>
2657 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2658 have long been resolved.
2660 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2662 * util/grub.d/10_linux.in: Capitalise "Linux".
2664 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2666 2009-06-11 Pavel Roskin <proski@gnu.org>
2668 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2669 fix a gcc warning and ensure that the function won't ever exit.
2671 * kern/i386/ieee1275/init.c: Add missing prototype for
2674 * loader/ieee1275/multiboot2.c [__i386__]: Include
2675 grub/cpu/multiboot.h.
2677 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2678 casts to short - they are not portable and cause warnings. Fix
2679 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2681 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2685 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2687 (grub_get_root_biosnumber_saved): new variable
2688 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2689 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2690 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2691 %dx after the call if necessary
2692 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2693 (boot_mod_SOURCES): remove
2694 (boot_mod_CFLAGS): remove
2695 (boot_mod_LDFLAGS): remove
2696 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2697 (boot_mod_SOURCES): new variable
2698 (boot_mod_CFLAGS): likewise
2699 (boot_mod_LDFLAGS): likewise
2700 * conf/i386-efi.rmk: likewise
2701 * conf/i386-ieee1275.rmk: likewise
2702 * conf/i386-pc.rmk: likewise
2703 * conf/powerpc-ieee1275.rmk: likewise
2704 * conf/sparc64-ieee1275.rmk: likewise
2705 * conf/x86_64-efi.rmk: likewise
2706 * include/grub/i386/pc/biosnum.h: new file
2707 * lib/i386/pc/biosnum.c: likewise
2708 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2709 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2710 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2712 2009-06-10 Pavel Roskin <proski@gnu.org>
2714 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2715 Use separate variables. Read only the file size at the end, but
2716 not the checksum that we don't use.
2718 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2721 * kern/ieee1275/openfw.c: Remove libc includes.
2722 * kern/ieee1275/cmain.c: Likewise.
2723 * include/grub/ieee1275/ieee1275.h: Likewise.
2725 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2728 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2730 * Makefile.in: Remove all trailing whitespace.
2731 * conf/i386-pc.rmk: Likewise.
2732 * conf/powerpc-ieee1275.rmk: Likewise.
2733 * conf/sparc64-ieee1275.rmk: Likewise.
2734 * docs/grub.texi: Likewise.
2735 * docs/texinfo.tex: Likewise.
2736 * disk/fs_uuid.c: Likewise.
2737 * disk/lvm.c: Likewise.
2738 * disk/scsi.c: Likewise.
2739 * disk/ata.c: Likewise.
2740 * disk/ieee1275/ofdisk.c: Likewise.
2741 * disk/i386/pc/biosdisk.c: Likewise.
2742 * disk/host.c: Likewise.
2743 * disk/raid.c: Likewise.
2744 * disk/efi/efidisk.c: Likewise.
2745 * disk/usbms.c: Likewise.
2746 * disk/memdisk.c: Likewise.
2747 * disk/loopback.c: Likewise.
2748 * kern/powerpc/dl.c: Likewise.
2749 * kern/device.c: Likewise.
2750 * kern/dl.c: Likewise.
2751 * kern/sparc64/dl.c: Likewise.
2752 * kern/ieee1275/ieee1275.c: Likewise.
2753 * kern/term.c: Likewise.
2754 * kern/fs.c: Likewise.
2755 * kern/i386/dl.c: Likewise.
2756 * kern/i386/pc/startup.S: Likewise.
2757 * kern/i386/pc/init.c: Likewise.
2758 * kern/i386/pc/mmap.c: Likewise.
2759 * kern/i386/pc/lzo1x.S: Likewise.
2760 * kern/i386/ieee1275/init.c: Likewise.
2761 * kern/i386/realmode.S: Likewise.
2762 * kern/i386/tsc.c: Likewise.
2763 * kern/partition.c: Likewise.
2764 * kern/corecmd.c: Likewise.
2765 * kern/file.c: Likewise.
2766 * kern/efi/efi.c: Likewise.
2767 * kern/efi/init.c: Likewise.
2768 * kern/efi/mm.c: Likewise.
2769 * kern/main.c: Likewise.
2770 * kern/err.c: Likewise.
2771 * kern/env.c: Likewise.
2772 * kern/disk.c: Likewise.
2773 * kern/generic/millisleep.c: Likewise.
2774 * kern/generic/rtc_get_time_ms.c: Likewise.
2775 * kern/misc.c: Likewise.
2776 * kern/parser.c: Likewise.
2777 * genmk.rb: Likewise.
2778 * configure.ac: Likewise.
2779 * boot/i386/pc/diskboot.S: Likewise.
2780 * boot/i386/pc/pxeboot.S: Likewise.
2781 * boot/i386/pc/boot.S: Likewise.
2782 * boot/i386/pc/lnxboot.S: Likewise.
2783 * boot/i386/pc/cdboot.S: Likewise.
2784 * parttool/pcpart.c: Likewise.
2785 * video/readers/tga.c: Likewise.
2786 * video/video.c: Likewise.
2787 * video/bitmap.c: Likewise.
2788 * lib/envblk.c: Likewise.
2789 * lib/i386/setjmp.S: Likewise.
2790 * fs/xfs.c: Likewise.
2791 * fs/afs.c: Likewise.
2792 * fs/fat.c: Likewise.
2793 * fs/ntfs.c: Likewise.
2794 * fs/udf.c: Likewise.
2795 * fs/affs.c: Likewise.
2796 * fs/iso9660.c: Likewise.
2797 * fs/hfs.c: Likewise.
2798 * fs/fshelp.c: Likewise.
2799 * fs/ext2.c: Likewise.
2800 * fs/jfs.c: Likewise.
2801 * fs/reiserfs.c: Likewise.
2802 * fs/hfsplus.c: Likewise.
2803 * fs/minix.c: Likewise.
2804 * fs/cpio.c: Likewise.
2805 * fs/sfs.c: Likewise.
2806 * fs/ufs.c: Likewise.
2807 * efiemu/prepare.c: Likewise.
2808 * efiemu/loadcore_common.c: Likewise.
2809 * efiemu/runtime/efiemu.sh: Likewise.
2810 * efiemu/runtime/efiemu.S: Likewise.
2811 * efiemu/runtime/efiemu.c: Likewise.
2812 * efiemu/pnvram.c: Likewise.
2813 * efiemu/main.c: Likewise.
2814 * efiemu/i386/pc/cfgtables.c: Likewise.
2815 * efiemu/i386/loadcore64.c: Likewise.
2816 * efiemu/i386/loadcore32.c: Likewise.
2817 * efiemu/loadcore.c: Likewise.
2818 * efiemu/symbols.c: Likewise.
2819 * efiemu/mm.c: Likewise.
2820 * include/grub/autoefi.h: Likewise.
2821 * include/grub/datetime.h: Likewise.
2822 * include/grub/term.h: Likewise.
2823 * include/grub/hfs.h: Likewise.
2824 * include/grub/lvm.h: Likewise.
2825 * include/grub/i386/tsc.h: Likewise.
2826 * include/grub/i386/linux.h: Likewise.
2827 * include/grub/i386/xnu.h: Likewise.
2828 * include/grub/i386/efiemu.h: Likewise.
2829 * include/grub/i386/pc/biosdisk.h: Likewise.
2830 * include/grub/i386/pc/memory.h: Likewise.
2831 * include/grub/i386/pc/vbe.h: Likewise.
2832 * include/grub/parttool.h: Likewise.
2833 * include/grub/video.h: Likewise.
2834 * include/grub/memory.h: Likewise.
2835 * include/grub/fs.h: Likewise.
2836 * include/grub/partition.h: Likewise.
2837 * include/grub/xnu.h: Likewise.
2838 * include/grub/efi/api.h: Likewise.
2839 * include/grub/efi/pe32.h: Likewise.
2840 * include/grub/efi/memory.h: Likewise.
2841 * include/grub/multiboot.h: Likewise.
2842 * include/grub/usbdesc.h: Likewise.
2843 * include/grub/multiboot2.h: Likewise.
2844 * include/grub/acpi.h: Likewise.
2845 * include/grub/efiemu/efiemu.h: Likewise.
2846 * include/grub/disk.h: Likewise.
2847 * include/grub/ieee1275/ieee1275.h: Likewise.
2848 * include/grub/net.h: Likewise.
2849 * include/grub/machoload.h: Likewise.
2850 * include/grub/macho.h: Likewise.
2851 * include/multiboot.h: Likewise.
2852 * genmoddep.awk: Likewise.
2853 * normal/main.c: Likewise.
2854 * normal/menu_entry.c: Likewise.
2855 * normal/menu_viewer.c: Likewise.
2856 * normal/completion.c: Likewise.
2857 * normal/cmdline.c: Likewise.
2858 * normal/misc.c: Likewise.
2859 * normal/datetime.c: Likewise.
2860 * bus/usb/usbtrans.c: Likewise.
2861 * bus/usb/ohci.c: Likewise.
2862 * bus/usb/uhci.c: Likewise.
2863 * bus/usb/usb.c: Likewise.
2864 * mmap/efi/mmap.c: Likewise.
2865 * mmap/i386/pc/mmap_helper.S: Likewise.
2866 * mmap/i386/pc/mmap.c: Likewise.
2867 * mmap/i386/mmap.c: Likewise.
2868 * mmap/i386/uppermem.c: Likewise.
2869 * mmap/mmap.c: Likewise.
2870 * commands/acpi.c: Likewise.
2871 * commands/echo.c: Likewise.
2872 * commands/blocklist.c: Likewise.
2873 * commands/loadenv.c: Likewise.
2874 * commands/usbtest.c: Likewise.
2875 * commands/boot.c: Likewise.
2876 * commands/parttool.c: Likewise.
2877 * commands/search.c: Likewise.
2878 * commands/cat.c: Likewise.
2879 * commands/i386/pc/play.c: Likewise.
2880 * commands/i386/pc/drivemap.c: Likewise.
2881 * commands/i386/pc/vbeinfo.c: Likewise.
2882 * commands/i386/pc/acpi.c: Likewise.
2883 * commands/i386/pc/vbetest.c: Likewise.
2884 * commands/ls.c: Likewise.
2885 * commands/cmp.c: Likewise.
2886 * commands/test.c: Likewise.
2887 * commands/efi/acpi.c: Likewise.
2888 * commands/gptsync.c: Likewise.
2889 * commands/help.c: Likewise.
2890 * partmap/amiga.c: Likewise.
2891 * partmap/apple.c: Likewise.
2892 * partmap/acorn.c: Likewise.
2893 * partmap/pc.c: Likewise.
2894 * partmap/sun.c: Likewise.
2895 * partmap/gpt.c: Likewise.
2896 * script/sh/lexer.c: Likewise.
2897 * script/sh/function.c: Likewise.
2898 * font/font.c: Likewise.
2899 * font/font_cmd.c: Likewise.
2900 * loader/powerpc/ieee1275/linux.c: Likewise.
2901 * loader/efi/chainloader.c: Likewise.
2902 * loader/multiboot_loader.c: Likewise.
2903 * loader/macho.c: Likewise.
2904 * loader/i386/multiboot.c: Likewise.
2905 * loader/i386/linux.c: Likewise.
2906 * loader/i386/pc/linux.c: Likewise.
2907 * loader/i386/pc/multiboot2.c: Likewise.
2908 * loader/i386/pc/chainloader.c: Likewise.
2909 * loader/i386/pc/xnu.c: Likewise.
2910 * loader/i386/bsd_trampoline.S: Likewise.
2911 * loader/i386/efi/linux.c: Likewise.
2912 * loader/i386/multiboot_elfxx.c: Likewise.
2913 * loader/i386/bsd_helper.S: Likewise.
2914 * loader/i386/bsd.c: Likewise.
2915 * loader/i386/linux_trampoline.S: Likewise.
2916 * loader/i386/xnu_helper.S: Likewise.
2917 * loader/i386/xnu.c: Likewise.
2918 * loader/i386/bsd_pagetable.c: Likewise.
2919 * loader/i386/multiboot_helper.S: Likewise.
2920 * loader/xnu.c: Likewise.
2921 * loader/xnu_resume.c: Likewise.
2922 * io/gzio.c: Likewise.
2923 * term/efi/console.c: Likewise.
2924 * term/terminfo.c: Likewise.
2925 * term/ieee1275/ofconsole.c: Likewise.
2926 * term/i386/pc/serial.c: Likewise.
2927 * term/i386/pc/vesafb.c: Likewise.
2928 * term/i386/pc/vga.c: Likewise.
2929 * term/usb_keyboard.c: Likewise.
2930 * term/gfxterm.c: Likewise.
2931 * aclocal.m4: Likewise.
2932 * util/lvm.c: Likewise.
2933 * util/grub.d/30_os-prober.in: Likewise.
2934 * util/grub.d/10_hurd.in: Likewise.
2935 * util/console.c: Likewise.
2936 * util/grub-macho2img.c: Likewise.
2937 * util/grub-probe.c: Likewise.
2938 * util/hostfs.c: Likewise.
2939 * util/i386/pc/grub-mkimage.c: Likewise.
2940 * util/i386/pc/grub-setup.c: Likewise.
2941 * util/i386/efi/grub-mkimage.c: Likewise.
2942 * util/grub-mkconfig.in: Likewise.
2943 * util/raid.c: Likewise.
2944 * util/resolve.c: Likewise.
2945 * util/grub-mkdevicemap.c: Likewise.
2946 * util/grub-emu.c: Likewise.
2947 * util/getroot.c: Likewise.
2948 * util/hostdisk.c: Likewise.
2949 * util/usb.c: Likewise.
2950 * util/grub-editenv.c: Likewise.
2951 * util/misc.c: Likewise.
2953 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2955 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2956 `genparttoollist.sh'.
2957 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2958 Add `*.sh' to the list find searches for and change `mdate.sh'
2961 2009-06-10 Pavel Roskin <proski@gnu.org>
2963 * include/grub/multiboot2.h: Provide compatibility defines for
2965 * include/multiboot2.h: Include stdint.h only if needed, using
2967 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2969 * loader/ieee1275/multiboot2.c: Likewise.
2970 * loader/multiboot2.c: Likewise.
2971 * loader/multiboot_loader.c: Likewise.
2973 * configure.ac: Use -nostdlib when probing for the target. It
2974 should not be required to have libc for the target.
2976 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2977 they fail without libc headers for the target.
2978 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2980 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2981 preprocessor conditionals.
2983 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2984 build system doesn't need to be aware of the tar.c internals.
2986 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2988 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
2990 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
2992 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
2993 disk limit to 26 for IDE, Virtio, Xen and SCSI.
2995 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
2997 * util/i386/pc/grub-install.in: Change the error message if UUIDs
2998 aren't available if ata.mod gets used.
3000 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
3002 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
3003 initialising controller.
3004 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3006 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3008 * util/i386/pc/grub-install.in: Add a parameter --disk-module
3009 to choose between ata and biosdisk module on i386-pc.
3011 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
3013 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
3014 Subclass and Programming Interface fields in terms of the 3 byte
3015 Class Code register.
3016 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3018 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
3019 interface is OHCI. Add grub_dprintf for symmetry with
3021 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
3022 interface is UHCI. Add interf variable for programming
3023 interface. Print interface with class/subclass.
3025 * bus/usb/ohci.c: Set interf with correct field.
3027 * bus/usb/uhci.c: Remove unneeded doubled lines.
3028 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
3029 Remove whitespace inside comment.
3031 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
3033 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
3034 as fallback an equivalent option without depth.
3036 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3038 Not fail if unable to retrieve C/H/S on LBA disks
3040 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3041 if unable to retrieve C/H/S on LBA disks
3043 2009-06-08 Pavel Roskin <proski@gnu.org>
3045 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3048 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3050 * Makefile.in (uninstall): Remove all $lib_DATA files.
3052 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3054 Bugfix: install on partitionless device
3056 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3059 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3061 * Makefile.in (uninstall): Remove all $include_DATA files.
3063 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3065 * commands/true.c: New file. Implement the true and false commands.
3066 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3067 (true_mod_SOURCES): New variable.
3068 (true_mod_CFLAGS): Likewise.
3069 (true_mod_LDFLAGS): Likewise.
3071 2009-06-05 Colin D Bennett <colin@gibibit.com>
3073 Optimized font character lookup using binary search instead of linear
3074 search. Fonts now are required to have the character index ordered by
3077 * font/font.c (load_font_index): Verify that fonts have ordered
3079 (find_glyph): Use binary search instead of linear search to find a
3080 character in a font.
3082 2009-06-05 Michael Scherer <misc@mandriva.org>
3084 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3085 uses case sensitive btree.
3086 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3087 only for case insensitive filesystems.
3089 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3091 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3092 * conf/common.rmk (search_mod_CFLAGS): likewise
3094 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3096 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3097 compensate a compiler bug
3099 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3101 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3104 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3106 Definitions for creating asm symbols with Apple's CC
3108 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3109 [APPLE_CC] (VARIABLE): likewise
3111 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3113 Disable lnxboot.img when compiled
3116 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3117 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3118 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3119 [! APPLE_CC] (CODE_LENG): skip
3120 [! APPLE_CC] (setup_sects): likewise
3121 [! APPLE_CC]: skip filling
3123 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3125 Address in trampolines based on 32-bit registers when compiled
3128 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3130 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3132 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3134 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3136 * kern/misc.c [APPLE_CC] (memcpy): new function
3137 [APPLE_CC] (memmove): likewise
3138 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3139 (memcpy): define alias conditionally on !APPLE_CC
3142 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3143 APPLE_CC are defined
3144 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3145 (grub_assert_fail): make prototype conditional
3147 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3149 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3151 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3153 (CLEANFILES): add grub-macho2img
3154 (grub_macho2img_SOURCES): new variable
3155 * kern/i386/pc/startup.S (bss_start): new variable
3157 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3158 * util/grub-macho2img.c: new file
3160 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3162 Use objconv when compiling with Apple's CC
3164 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3165 (efiemu64.o): likewise
3166 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3167 when compiling with Apple's CC
3168 (efiemu64_s.o): likewise
3169 * configure.ac: check for objconv when compiling with Apple's CC
3170 * genmk.rb: use objconv for modules when compiled with Apple's CC
3172 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3174 Define segment as well as section when compiling with
3177 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3178 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3179 (efiemu_convert_pointer): likewise
3180 (efiemu_set_virtual_address_map): likewise
3181 (efiemu_convert_pointer): likewise
3182 (efiemu_getcrc32): likewise
3183 (init_crc32_table): likewise
3185 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3186 (GRUB_MOD_DEP): likewise
3188 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3190 Allow a compilation without -mcmodel=large
3192 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3193 when compiled without -mcmodel=large
3194 (filter_memory_map): remove memory post 4 GiB when compiled
3195 without -mcmodel=large
3196 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3197 TARGET_CFLAGS when -mcmodel=large isn't supported
3199 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3201 Remove nested functions in efiemu core
3203 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3205 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3207 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3209 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3211 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3213 (grub_cpu_is_tsc_supported): likewise
3214 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3216 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3218 Absolute addressing through constant with Apple's cc
3220 * kern/i386/pc/startup.S: Define necessary constants
3221 and address through it when using ABS with Apple's CC
3222 * boot/i386/pc/diskboot.S: likewise
3223 * boot/i386/pc/boot.S: likewise
3224 * boot/i386/pc/lnxboot.S: likewise
3225 * boot/i386/pc/cdboot.S: likewise
3226 * mmap/i386/pc/mmap_helper.S: likewise
3227 * commands/i386/pc/drivemap_int13h.S: likewise
3229 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3231 Check if compiler is apple cc
3233 * Makefile.in (ASFLAGS): new variable
3234 (TARGET_ASFLAGS): likewise
3235 (TARGET_MODULE_FORMAT): likewise
3236 (TARGET_APPLE_CC): likewise
3238 (TARGET_IMG_CFLAGS): likewise
3239 (TARGET_CPPFLAGS): add includedir
3240 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3241 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3242 Check for linker script only if compiler isn't Apple's CC
3243 (TARGET_MODULE_FORMAT): set
3244 (TARGET_APPLE_CC): likewise
3245 (TARGET_ASFLAGS): likewise
3247 Check for objcopy only if compiler isn't Apple's CC
3248 Check for BSS symbol only if compiler isn't Apple's CC
3249 * genmk.rb: adapt nm options if we use Apple's utils
3250 * aclocal.m4 (grub_apple_cc): new test
3251 (grub_apple_target_cc): likewise
3253 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3255 Simplify sed expressions and improve awk
3257 * Makefile.in (install-local): simplify sed expression
3258 * gencmdlist.sh: likewise
3259 * genmoddep.awk: avoid adding module as a dependency of itself
3261 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3263 Add missing start symbols
3265 * boot/i386/pc/boot.S: add start
3266 * boot/i386/pc/pxeboot.S: likewise
3268 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3270 Fix wrong assumptions with grub-mkimage on EFI
3272 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3273 (relocate_addresses): consider both r_addend and value at offset
3274 (make_mods_section): zerofill modinfo and header
3275 (convert_elf): write prefix here
3277 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3279 Use .asciz instead of .string
3281 * i386/pc/diskboot.S: use .asciz instead of .string
3282 * i386/pc/boot.S: likewise
3283 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3284 (GRUB_MOD_NAME): likewise
3286 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3290 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3291 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3292 (grub_video_setup): remove
3293 (grub_video_set_mode): new prototype
3294 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3296 (linux_vesafb_res): compile only on PCBIOS
3297 (grub_linux_boot): support gfxpayload
3298 * loader/i386/pc/xnu.c (video_hook): new function
3299 (grub_xnu_set_video): support gfxpayload
3300 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3301 (DEFAULT_VIDEO_HEIGHT): likewise
3302 (DEFAULT_VIDEO_FLAGS): likewise
3303 (DEFAULT_VIDEO_MODE): new definition
3304 (video_hook): new function
3305 (grub_gfxterm_init): use grub_video_set_mode
3306 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3308 * video/video.c (grub_video_setup): removed
3309 (grub_video_set_mode): new function based on grub_gfxterm_init and
3312 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3314 Avoid calling biosdisk in drivemap
3316 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3317 (revparse_biosdisk): likewise
3318 (list_mappings): derive name from id directly
3319 (grub_cmd_drivemap): use tryparse_diskstring
3321 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3325 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3326 (grub_lexer_param): add tokenonhold
3327 (grub_script_create_cmdline): remove cmdline. All callers updated
3328 (grub_script_function_create): make functionname
3329 grub_script_arg. All callers updated
3330 (grub_script_execute_argument_to_string): new prototype
3331 * kern/parser.c (state_transitions): reorder
3332 (grub_parser_cmdline_state): fix a bug and make more compact
3333 * script/sh/execute.c (grub_script_execute_argument_to_string):
3335 (grub_script_execute_cmdline): use new format
3336 * script/sh/function.c (grub_script_function_create): make functionname
3337 grub_script_arg. All callers updated
3338 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3339 (grub_script_yylex): remove
3340 (grub_script_yylex2): renamed to ...
3341 (grub_script_yylex): ...renamed
3342 parse the expressions like a${b}c
3343 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3344 (GRUB_PARSER_TOKEN_VAR): remove
3345 (GRUB_PARSER_TOKEN_NAME): likewise
3346 ("if"): declare as typeless
3348 ("function"): likewise
3353 (argument): likewise
3354 (script): accept empty scripts and make exit on error
3355 (arguments): use GRUB_PARSER_TOKEN_ARG
3356 (function): likewise
3357 (command): move error handling to script
3358 (menuentry): move grub_script_lexer_ref before
3359 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3360 argument. All callers updated
3362 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3364 Prevent GRUB from probing floppies during boot.
3366 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3367 * commands/search.c (options): Add --no-floppy.
3368 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3369 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3370 --no-floppy when searching for UUIDs.
3372 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3374 Simplify the code duplication in commands/search.c.
3376 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3377 (search_fs): ... this. Update all users.
3379 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3381 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3383 2009-05-28 Pavel Roskin <proski@gnu.org>
3385 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3386 Remove the original symlink explicitly.
3388 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3389 just one slash. That's how grub_fshelp_find_file() does it.
3391 2009-05-26 Pavel Roskin <proski@gnu.org>
3393 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3396 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3399 2009-05-25 Christian Franke <franke@computer.org>
3401 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3403 (grub_atapi_identify): Add wait after drive select.
3404 (grub_ata_identify): Do more strict status register check before
3405 calling grub_atapi_identify (). Suppress error message if status
3406 register is 0x00 after command failure. Add status register
3407 check after PIO read to avoid bogus identify due to stuck DRQ.
3408 Thanks to Pavel Roskin for testing.
3409 (grub_device_initialize): Remove unsafe status register check.
3410 Thanks to 'phcoder' for problem report and patch.
3411 Prevent sign extension in debug message.
3413 2009-05-23 Colin D Bennett <colin@gibibit.com>
3415 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3416 definition file, and functions defined in `normal/menu.c' have had
3417 their prototypes moved to `include/grub/menu.h' for consistency.
3419 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
3421 (grub_menu_get_entry): Likewise.
3422 (grub_menu_get_timeout): Likewise.
3423 (grub_menu_set_timeout): Likewise.
3424 (grub_menu_execute_entry): Likewise.
3425 (grub_menu_execute_with_fallback): Likewise.
3426 (grub_menu_entry_run): Likewise.
3428 * include/grub/normal.h: Re-ordered and grouped function
3429 prototypes by file that the function is defined in.
3430 (grub_menu_execute_callback): Removed; moved to menu.h.
3431 (grub_menu_get_entry): Likewise.
3432 (grub_menu_get_timeout): Likewise.
3433 (grub_menu_set_timeout): Likewise.
3434 (grub_menu_execute_entry): Likewise.
3435 (grub_menu_execute_with_fallback): Likewise.
3436 (grub_menu_entry_run): Likewise.
3437 (grub_menu_addentry): Renamed from this ...
3438 (grub_normal_add_menu_entry): ... to this.
3440 * normal/main.c (grub_menu_addentry): Renamed from this ...
3441 (grub_normal_add_menu_entry): ... to this.
3443 * script/sh/execute.c (grub_script_execute_menuentry): Update
3444 reference to renamed grub_menu_addentry function.
3446 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3448 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3450 2009-05-22 Pavel Roskin <proski@gnu.org>
3452 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3453 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3454 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3455 compiling for the i386 targets, but not for the utilities.
3457 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3459 (grub_root_drive): Likewise.
3460 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3462 (grub_root_drive): Change size to byte.
3463 (grub_start_addr): Remove.
3464 (grub_end_addr): Likewise.
3465 (grub_apm_bios_info): Likewise.
3467 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3469 * normal/i386: Remove.
3470 * normal/powerpc: Likewise.
3471 * normal/sparc64: Likewise.
3472 * normal/x86_64: Likewise.
3474 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3476 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3477 * loader/i386/linux_trampoline.S: Fix indentation
3478 * loader/i386/xnu_helper.S: Likewise
3480 2009-05-18 Colin D Bennett <colin@gibibit.com>
3482 Display error messages when parsing a Lua statement fails.
3483 Previously, executing a syntactically invalid statement like
3484 ")foo" or "bar;" would silently fail.
3486 * script/lua/grub_main.c (handle_lua_error): New function.
3487 (grub_lua_parse_line): Improved reporting of Lua parser and
3490 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3492 Remove -Werror which causes build to fail on some systems
3494 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3495 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3496 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3498 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3500 trampoline for linux on 64-bit platform
3502 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3503 loader/i386/efi/linux_trampoline.S
3504 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3506 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3508 * loader/i386/linux_trampoline.S: moved here
3509 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3511 (jumpvector): removed
3512 (grub_linux_trampoline_start): new declaration
3513 (grub_linux_trampoline_end): likewise
3514 (grub_linux_boot): use trampoline when on 64-bit platform
3515 * loader/i386/linux.c: likewise
3517 2009-05-16 Pavel Roskin <proski@gnu.org>
3519 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3520 const to avoid a warning.
3521 (grub_lua_setenv): Likewise.
3522 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3523 lmsg to fix a warning.
3525 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3527 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3528 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3529 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3530 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3531 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3532 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3533 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3534 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3536 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3538 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3540 2009-05-16 Bean <bean123ch@gmail.com>
3542 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3543 (lua_mod_SOURCES): New variable.
3544 (lua_mod_CFLAGS): Likewise.
3545 (lua_mod_LDFLAGS): Likewise.
3547 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3548 (setjmp_mod_SOURCES): New variable.
3549 (setjmp_mod_CFLAGS): Likewise.
3550 (setjmp_LDFLAGS): Likewise.
3552 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3553 (setjmp_mod_SOURCES): New variable.
3554 (setjmp_mod_CFLAGS): Likewise.
3555 (setjmp_LDFLAGS): Likewise.
3557 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3558 (setjmp_mod_SOURCES): New variable.
3559 (setjmp_mod_CFLAGS): Likewise.
3560 (setjmp_LDFLAGS): Likewise.
3562 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3563 (setjmp_mod_SOURCES): New variable.
3564 (setjmp_mod_CFLAGS): Likewise.
3565 (setjmp_LDFLAGS): Likewise.
3567 * normal/i386/setjmp.S: Moved from here ...
3568 * lib/i386/setjmp.S: ... Moved here
3569 * normal/x86_64/setjmp.S: Moved from here ...
3570 * lib/x86_64/setjmp.S: ... Moved here
3571 * normal/powerpc/setjmp.S: Moved from here ...
3572 * lib/powerpc/setjmp.S: ... Moved here
3573 * normal/sparc64/setjmp.S: Moved from here ...
3574 * lib/sparc64/setjmp.S: ... Moved here
3576 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3577 returns_twice in mingw.
3579 * script/lua/grub_lib.c: New file.
3580 * script/lua/grub_lib.h: Likewise.
3581 * script/lua/grub_lua.h: Likewise.
3582 * script/lua/grub_main.c: Likewise.
3583 * script/lua/lapi.c: Likewise.
3584 * script/lua/lapi.h: Likewise.
3585 * script/lua/lauxlib.c: Likewise.
3586 * script/lua/lauxlib.h: Likewise.
3587 * script/lua/lbaselib.c: Likewise.
3588 * script/lua/lcode.c: Likewise.
3589 * script/lua/lcode.h: Likewise.
3590 * script/lua/ldblib.c: Likewise.
3591 * script/lua/ldebug.c: Likewise.
3592 * script/lua/ldebug.h: Likewise.
3593 * script/lua/ldo.c: Likewise.
3594 * script/lua/ldo.h: Likewise.
3595 * script/lua/ldump.c: Likewise.
3596 * script/lua/lfunc.c: Likewise.
3597 * script/lua/lfunc.h: Likewise.
3598 * script/lua/lgc.c: Likewise.
3599 * script/lua/lgc.h: Likewise.
3600 * script/lua/linit.c: Likewise.
3601 * script/lua/liolib.c: Likewise.
3602 * script/lua/llex.c: Likewise.
3603 * script/lua/llex.h: Likewise.
3604 * script/lua/llimits.h: Likewise.
3605 * script/lua/lmathlib.c: Likewise.
3606 * script/lua/lmem.c: Likewise.
3607 * script/lua/lmem.h: Likewise.
3608 * script/lua/loadlib.c: Likewise.
3609 * script/lua/lobject.c: Likewise.
3610 * script/lua/lobject.h: Likewise.
3611 * script/lua/lopcodes.c: Likewise.
3612 * script/lua/lopcodes.h: Likewise.
3613 * script/lua/loslib.c: Likewise.
3614 * script/lua/lparser.c: Likewise.
3615 * script/lua/lparser.h: Likewise.
3616 * script/lua/lstate.c: Likewise.
3617 * script/lua/lstate.h: Likewise.
3618 * script/lua/lstring.c: Likewise.
3619 * script/lua/lstring.h: Likewise.
3620 * script/lua/lstrlib.c: Likewise.
3621 * script/lua/ltable.c: Likewise.
3622 * script/lua/ltable.h: Likewise.
3623 * script/lua/ltablib.c: Likewise.
3624 * script/lua/ltm.c: Likewise.
3625 * script/lua/ltm.h: Likewise.
3626 * script/lua/lua.h: Likewise.
3627 * script/lua/luaconf.h: Likewise.
3628 * script/lua/lualib.h: Likewise.
3629 * script/lua/lundump.c: Likewise.
3630 * script/lua/lundump.h: Likewise.
3631 * script/lua/lvm.c: Likewise.
3632 * script/lua/lvm.h: Likewise.
3633 * script/lua/lzio.c: Likewise.
3634 * script/lua/lzio.h: Likewise.
3636 2009-05-16 Bean <bean123ch@gmail.com>
3638 * include/grub/kernel.h (grub_module_header_types): Add type
3641 * kern/main.c (grub_load_config): New function.
3642 (grub_main): Call grub_load_config to read boot config.
3644 * grub-mkimage (generate_image): New parameter config_path.
3645 (options): New option --config.
3646 (main): Parse --config option, and pass it to generate_image.
3648 2009-05-14 Christian Franke <franke@computer.org>
3650 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3651 This fixes build on Cygwin.
3653 2009-05-14 Pavel Roskin <proski@gnu.org>
3655 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3656 jump. This saves two bytes, so the typical case of 2 swapped
3657 drives would fit 32 bytes.
3659 2009-05-13 Pavel Roskin <proski@gnu.org>
3661 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3662 grub_uint32_t to avoid a warning.
3664 * loader/i386/linux.c (allocate_pages): When assigning
3665 real_mode_mem, cast through grub_size_t to fix a warning. The
3666 code already makes sure that the value would fit a pointer.
3667 (grub_linux_setup_video): Cast render_target->data to
3668 grub_size_t to fix a warning.
3670 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3672 * commands/i386/pc/drivemap.c: New file - implement drivemap
3674 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3675 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3677 2009-05-13 Pavel Roskin <proski@gnu.org>
3679 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3680 embedding_area_exists.
3682 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3684 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3685 it easier to understand / work with.
3686 Improve warning messages for cases where there's no embedding area,
3687 or when it is too small (or core.img too large).
3689 2009-05-13 Pavel Roskin <proski@gnu.org>
3691 * loader/i386/pc/multiboot2.c: Add necessary includes for
3692 grub_multiboot2_real_boot().
3694 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3695 PX record is always little-endian. We only need the lower 2
3698 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3699 facilitate code reuse.
3700 (grub_cpio_mount): Use "struct head", not a char buffer. This
3701 fixes a warning reported by gcc 4.4.
3703 * kernel/disk.c (grub_disk_read): Use void pointer for the
3705 (grub_disk_write): Use const void pointer for the buffer.
3706 Adjust all callers. Remove unnecessary casts.
3708 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3710 * util/i386/pc/grub-install.in: Update copyright year.
3712 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3716 * commands/gptsync.c: new file
3717 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3718 (gptsync_mod_SOURCES): new variable
3719 (gptsync_mod_CFLAGS): likewise
3720 (gptsync_mod_LDFLAGS): likewise
3721 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3723 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3724 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3725 * conf/i386-ieee1275.rmk: likewise
3726 * conf/i386-pc.rmk: likewise
3727 * conf/powerpc-ieee1275.rmk: likewise
3729 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3733 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3734 (grub_dl_ref): likewise
3736 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3738 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3739 split in two functions (one for msdos and one for gpt).
3741 2009-05-08 Pavel Roskin <proski@gnu.org>
3743 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3746 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3747 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3748 Initialize them with -1. Add sanity check for bad1. Eliminate
3751 2009-05-08 David S. Miller <davem@davemloft.net>
3753 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3755 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3757 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3760 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3762 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3763 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3765 2009-05-05 David S. Miller <davem@davemloft.net>
3767 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3769 2009-05-05 Pavel Roskin <proski@gnu.org>
3771 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3772 of grub_dl_ref() and grub_dl_unref().
3773 * commands/parttool.c: Remove preprocessor conditionals around
3774 grub_dl_ref() and grub_dl_unref().
3775 * fs/affs.c: Likewise.
3776 * fs/afs.c: Likewise.
3777 * fs/cpio.c: Likewise.
3778 * fs/ext2.c: Likewise.
3779 * fs/fat.c: Likewise.
3780 * fs/hfs.c: Likewise.
3781 * fs/hfsplus.c: Likewise.
3782 * fs/iso9660.c: Likewise.
3783 * fs/jfs.c: Likewise.
3784 * fs/minix.c: Likewise.
3785 * fs/ntfs.c: Likewise.
3786 * fs/reiserfs.c: Likewise.
3787 * fs/sfs.c: Likewise.
3788 * fs/udf.c: Likewise.
3789 * fs/ufs.c: Likewise.
3790 * fs/xfs.c: Likewise.
3791 * include/grub/dl.h: Likewise.
3792 * loader/xnu.c: Likewise.
3794 2009-05-04 Pavel Roskin <proski@gnu.org>
3796 * commands/acpi.c: Remove unused variable my_mod.
3797 * partmap/amiga.c: Likewise.
3798 * partmap/apple.c: Likewise.
3799 * partmap/gpt.c: Likewise.
3800 * partmap/pc.c: Likewise.
3801 * partmap/sun.c: Likewise.
3802 * term/gfxterm.c: Likewise.
3803 * term/i386/pc/vesafb.c: Likewise.
3804 * term/i386/pc/vga.c: Likewise.
3806 2009-05-04 David S. Miller <davem@davemloft.net>
3808 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3809 pointer args to grub_ieee1275_get_property().
3811 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3813 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3814 devices, and do not traverse down under controller nodes.
3816 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3817 (grub_ofdisk_open): Use it to un-escape "," characters.
3818 * kern/disk.c (find_part_sep): New.
3819 (grub_disk_open): Use it to find the first non-escaped ','
3820 character in the disk name.
3821 * util/ieee1275/devicemap.c (escape_of_path): New.
3822 (grub_util_emit_devicemap_entry): Use it.
3823 * util/sparc64/ieee1275/grub-install.in: Update script to
3824 strip partition specifiers properly by not triggering on
3825 '\' escaped ',' characters.
3827 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3829 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3831 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3833 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3834 on documentation from Wikipedia).
3836 2009-05-04 Pavel Roskin <proski@gnu.org>
3838 * disk/ata.c: Spelling fixes.
3839 * disk/raid.c: Likewise.
3840 * disk/usbms.c: Likewise.
3841 * disk/dmraid_nvidia.c: Likewise.
3842 * kern/ieee1275/openfw.c: Likewise.
3843 * kern/ieee1275/init.c: Likewise.
3844 * kern/ieee1275/cmain.c: Likewise.
3845 * boot/i386/pc/cdboot.S: Likewise.
3846 * video/readers/png.c: Likewise.
3847 * video/i386/pc/vbe.c: Likewise.
3848 * fs/udf.c: Likewise.
3849 * fs/hfs.c: Likewise.
3850 * fs/reiserfs.c: Likewise.
3851 * efiemu/runtime/efiemu.c: Likewise.
3852 * efiemu/main.c: Likewise.
3853 * efiemu/mm.c: Likewise.
3854 * include/grub/elf.h: Likewise.
3855 * include/grub/xnu.h: Likewise.
3856 * include/grub/usbdesc.h: Likewise.
3857 * include/grub/usb.h: Likewise.
3858 * include/grub/script_sh.h: Likewise.
3859 * include/grub/lib/LzmaEnc.h: Likewise.
3860 * include/grub/efiemu/efiemu.h: Likewise.
3861 * include/grub/command.h: Likewise.
3862 * normal/menu.c: Likewise.
3863 * normal/main.c: Likewise.
3864 * normal/datetime.c: Likewise.
3865 * bus/usb/uhci.c: Likewise.
3866 * mmap/i386/uppermem.c: Likewise.
3867 * mmap/mmap.c: Likewise.
3868 * commands/acpi.c: Likewise.
3869 * commands/test.c: Likewise.
3870 * partmap/apple.c: Likewise.
3871 * font/font.c: Likewise.
3872 * loader/sparc64/ieee1275/linux.c: Likewise.
3873 * loader/macho.c: Likewise.
3874 * loader/i386/bsd_trampoline.S: Likewise.
3875 * loader/i386/bsd.c: Likewise.
3876 * loader/xnu.c: Likewise.
3877 * term/i386/pc/vesafb.c: Likewise.
3878 * term/usb_keyboard.c: Likewise.
3879 * util/resolve.c: Likewise.
3880 * util/getroot.c: Likewise.
3882 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3884 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3886 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3888 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3891 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3893 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3894 parameter only available on BIOS.
3896 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3898 Removed wrong semicolon in declaration
3900 * grub/misc.h (grub_dprintf): remove semicolon
3902 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3904 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3905 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3906 is done by grub_cmd_linux() now).
3907 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3908 restore video to text mode.
3909 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3910 indicates lack of "vga=" parameter. "vga=0" is mapped to
3911 `GRUB_LINUX_VID_MODE_NORMAL'.
3913 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3915 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3916 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3917 and `normal/script.c'. Add `kern/rescue_reader.c',
3918 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3919 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3920 `grub_script.tab.c'.
3922 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3923 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3925 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3926 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3928 * Makefile.in: Remove duplicated 2008 in Copyright line.
3930 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3932 * util/misc.c (grub_util_warn): New function. Emits a warning
3934 * include/grub/util/misc.h (grub_util_warn): New declaration.
3936 * util/i386/pc/grub-install.in: Understand --force and pass it down
3939 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3941 (setup): Improve error messages and add warnings when requested to
3942 install in odd layouts. Refuse to install using blocklists unless
3945 2009-05-04 martin f. krafft <madduck@madduck.net>
3947 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3949 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3951 Updated copyright year
3953 * fs/hfsplus.c: updated copyright year
3955 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3959 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3960 in the space previously used by unused3
3961 (grub_hfsplus_uuid): new function
3962 (grub_hfsplus_fs): added uuid field
3964 2009-05-03 Pavel Roskin <proski@gnu.org>
3966 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3967 suppress warnings. It's no longer needed.
3968 * disk/host.c: Likewise.
3969 * disk/ata_pthru.c: Likewise.
3970 * disk/loopback.c: Likewise.
3971 * hook/datehook.c: Likewise.
3972 * parttool/pcpart.c: Likewise.
3973 * fs/i386/pc/pxe.c: Likewise.
3974 * fs/ntfscomp.c: Likewise.
3975 * efiemu/main.c: Likewise.
3976 * mmap/mmap.c: Likewise.
3977 * commands/crc.c: Likewise.
3978 * commands/hexdump.c: Likewise.
3979 * commands/hdparm.c: Likewise.
3980 * commands/acpi.c: Likewise.
3981 * commands/echo.c: Likewise.
3982 * commands/minicmd.c: Likewise.
3983 * commands/blocklist.c: Likewise.
3984 * commands/memrw.c: Likewise.
3985 * commands/loadenv.c: Likewise.
3986 * commands/usbtest.c: Likewise.
3987 * commands/lsmmap.c: Likewise.
3988 * commands/boot.c: Likewise.
3989 * commands/parttool.c: Likewise.
3990 * commands/configfile.c: Likewise.
3991 * commands/search.c: Likewise.
3992 * commands/ieee1275/suspend.c: Likewise.
3993 * commands/cat.c: Likewise.
3994 * commands/i386/pc/pxecmd.c: Likewise.
3995 * commands/i386/pc/play.c: Likewise.
3996 * commands/i386/pc/halt.c: Likewise.
3997 * commands/i386/pc/vbeinfo.c: Likewise.
3998 * commands/i386/pc/vbetest.c: Likewise.
3999 * commands/lspci.c: Likewise.
4000 * commands/date.c: Likewise.
4001 * commands/handler.c: Likewise.
4002 * commands/ls.c: Likewise.
4003 * commands/test.c: Likewise.
4004 * commands/cmp.c: Likewise.
4005 * commands/efi/loadbios.c: Likewise.
4006 * commands/efi/fixvideo.c: Likewise.
4007 * commands/halt.c: Likewise.
4008 * commands/help.c: Likewise.
4009 * commands/reboot.c: Likewise.
4010 * hello/hello.c: Likewise.
4011 * script/sh/main.c: Likewise.
4012 * loader/xnu.c: Likewise.
4013 * term/terminfo.c: Likewise.
4014 * term/i386/pc/serial.c: Likewise.
4015 * term/usb_keyboard.c: Likewise.
4017 2009-05-03 David S. Miller <davem@davemloft.net>
4019 * normal/menu.c: Include grub/parser.h
4021 2009-05-03 Pavel Roskin <proski@gnu.org>
4023 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
4025 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
4026 Suggested by Javier MartÃn <lordhabbit@gmail.com>
4028 * util/i386/pc/grub-mkrescue.in: Allow for the case when
4029 efiemu??.o doesn't exist.
4030 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
4033 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
4035 FreeBSD 64-bit support
4037 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
4038 and loader/i386/bsd_trampoline.S
4039 (bsd_mod_ASFLAGS): new variable
4040 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4041 (FREEBSD_MODTYPE_KERNEL64): likewise
4042 (grub_bsd64_trampoline_start): likewise
4043 (grub_bsd64_trampoline_end): likewise
4044 (grub_bsd64_trampoline_selfjump): likewise
4045 (grub_bsd64_trampoline_gdt): likewise
4046 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4047 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4048 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4049 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4050 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4052 * loader/i386/bsd_pagetable.c: new file
4053 * loader/i386/bsd_trampoline.S: likewise
4054 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4055 (ALIGN_VAR): likewise
4056 (entry_hi): new variable
4057 (kern_end_mdofs): likewise
4058 (is_64bit): likewise
4059 (grub_freebsd_add_meta): use ALIGN_VAR
4060 (grub_e820_mmap): new declaration
4061 (grub_freebsd_add_mmap): new function
4062 (grub_freebsd_add_meta_module): support 64 bit kernels
4063 (grub_freebsd_list_modules): use ALIGN_VAR
4064 (gdt_descriptor): new declaration
4065 (grub_freebsd_boot): support 64 bit kernels
4066 (grub_bsd_elf64_hook): new function
4067 (grub_bsd_load_elf): support elf64
4069 2009-05-03 Bean <bean123ch@gmail.com>
4071 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4072 after we get the result of if statement.
4074 2009-05-03 Bean <bean123ch@gmail.com>
4076 * Makefile.in (enable_efiemu): New variable.
4078 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4080 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4082 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4083 path, add -mno-red-zone option.
4084 (efiemu64_s.o): Likewise.
4085 (efiemu64.o): Use macro $^ for source file.
4087 * configure.ac (--enable-efiemu): New option.
4089 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4093 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4094 (pkglib_MODULES): add xnu.mod
4095 (xnu_mod_SOURCES): new variable
4096 (xnu_mod_CFLAGS): likewise
4097 (xnu_mod_LDFLAGS): likewise
4098 (xnu_mod_ASFLAGS): likewise
4099 * conf/i386-pc.rmk: likewise
4100 * conf/x86_64-efi.rmk: likewise
4101 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4103 * include/grub/i386/macho.h: new file
4104 * include/grub/i386/xnu.h: likewise
4105 * include/grub/macho.h: likewise
4106 * include/grub/machoload.h: likewise
4107 * include/grub/x86_64/macho.h: likewise
4108 * include/grub/x86_64/xnu.h: likewise
4109 * include/grub/xnu.h: likewise
4110 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4111 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4112 * loader/i386/efi/xnu.c: new file
4113 * loader/i386/pc/xnu.c: likewise
4114 * loader/i386/xnu.c: likewise
4115 * loader/i386/xnu_helper.S: likewise
4116 * loader/macho.c: likewise
4117 * loader/xnu.c: likewise
4118 * loader/xnu_resume.c: likewise
4119 * util/grub-dumpdevtree: likewise
4120 * include/grub/i386/pit.h: include grub/err.h
4121 (grub_pit_wait): export
4122 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4124 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4128 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4129 _linux_efi, linux_efi.
4130 new files in grub-emu
4131 new targets efiemu32.o and efiemu64.o
4132 * loader/linux_normal_efiemu.c: likewise
4133 * loader/i386/efi/linux.c: added preliminary efiemu support
4134 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4136 * include/grub/autoefi.h: new file
4137 * include/grub/i386/efiemu.h: likewise
4138 * include/grub/i386/pc/efiemu.h: likewise
4139 * include/grub/efi/api.h: add LL suffix when necessary
4140 new definitions relating to tables
4141 * include/grub/efiemu/efiemu.h: new file
4142 * include/grub/efiemu/runtime.h: likewise
4143 * efiemu/prepare.c: likewise
4144 * efiemu/loadcore_common.c: likewise
4145 * efiemu/loadcore64.c: likewise
4146 * efiemu/runtime/efiemu.sh: likewise
4147 * efiemu/runtime/efiemu.S: likewise
4148 * efiemu/runtime/efiemu.c: likewise
4149 * efiemu/runtime/config.h: likewise
4150 * efiemu/prepare32.c: likewise
4151 * efiemu/main.c: likewise
4152 * efiemu/modules/pnvram.c: likewise
4153 * efiemu/modules/i386: likewise
4154 * efiemu/modules/i386/pc: likewise
4155 * efiemu/modules/acpi.c: likewise
4156 * efiemu/i386/pc/cfgtables.c: likewise
4157 * efiemu/i386/loadcore64.c: likewise
4158 * efiemu/i386/loadcore32.c: likewise
4159 * efiemu/prepare64.c: likewise
4160 * efiemu/loadcore.c: likewise
4161 * efiemu/symbols.c: likewise
4162 * efiemu/mm.c: likewise
4163 * efiemu/loadcore32.c: likewise
4165 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4169 * commands/acpi.c: new file
4170 * commands/i386/pc/acpi.c: likewise
4171 * commands/efi/acpi.c: likewise
4172 * include/grub/acpi.h: likewise
4173 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4174 (acpi_mod_SOURCES): new variable
4175 (acpi_mod_CFLAGS): likewise
4176 (acpi_mod_LDFLAGS): likewise
4177 * conf/i386-efi.rmk: likewise
4178 * conf/x86_64-efi.rmk: likewise
4180 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4182 Missing part from mmap patch
4184 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4185 (grub_mmap_unregister)
4186 (grub_mmap_free_and_unregister): use grub_mmap_register
4188 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4192 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4193 * loader/i386/linux.c (find_mmap_size): likewise
4194 (allocate_pages): likewise
4195 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4196 (grub_fill_multiboot_mmap): likewise
4197 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4198 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4199 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4200 (OPENBSD_MMAP_RESERVED): likewise
4201 * include/grub/i386/pc/memory.h: include grub/memory.h
4202 (grub_lower_mem): removed
4203 (grub_upper_mem): likewise
4204 (GRUB_MACHINE_MEMORY_ACPI): new definition
4205 (GRUB_MACHINE_MEMORY_NVS): likewise
4206 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4207 (GRUB_MACHINE_MEMORY_HOLE): likewise
4208 (grub_machine_mmap_register): likewise
4209 (grub_machine_mmap_unregister): likewise
4210 (grub_machine_get_upper): likewise
4211 (grub_machine_get_lower): likewise
4212 (grub_machine_get_post64): likewise
4213 * include/grub/i386/efi/memory.h: new file
4214 * include/grub/x86_64/efi/memory.h: likewise
4215 * include/grub/efi/memory.h: likewise
4216 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4217 (mmap_mod_SOURCES): new variable
4218 (mmap_mod_LDFLAGS): likewise
4219 (mmap_mod_ASFLAGS): likewise
4220 * conf/i386-coreboot.rmk: likewise
4221 * conf/i386-ieee1275.rmk: likewise
4222 * conf/i386-efi.rmk: likewise
4223 * conf/x86_64-efi.rmk: likewise
4224 * include/grub/types.h (UINT_TO_PTR): new macro
4225 (PTR_TO_UINT32): likewise
4226 (PTR_TO_UINT64): likewise
4227 * include/grub/memory.h: new file
4228 * mmap/i386/pc/mmap.c: likewise
4229 * mmap/i386/pc/mmap_helper.S: likewise
4230 * mmap/i386/uppermem.c: likewise
4231 * mmap/mmap.c: likewise
4232 * mmap/efi/mmap.c: likewise
4233 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4235 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4236 (grub_upper_mem): likewise
4237 (grub_machine_init): don't use grub_upper_mem,
4238 make grub_lower_mem local
4239 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4240 grub_mmap_iterate and grub_mmap_get_upper
4241 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4243 2009-05-02 Bean <bean123ch@gmail.com>
4245 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4247 (pkglib_MODULES): Add normal.mod and sh.mod.
4248 (normal_SOURCES): New variable.
4249 (normal_mod_CFLAGS): Likewise.
4250 (normal_mod_LDFLAGS): Likewise.
4251 (sh_mod_SOURCES): Likewise.
4252 (sh_mod_CFLAGS): Likewise.
4253 (sh_mod_LDFLAGS): Likewise.
4255 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4256 script/sh/lexer.c_DEPENDENCIES.
4257 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4258 kern/rescue_reader.c and kern/rescue_parser.c.
4259 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4260 (grub_emu_SOURCES): Change source files.
4261 (pkglib_MODULES): Remove normal.mod.
4262 (normal_SOURCES): Removed.
4263 (normal_mod_CFLAGS): Likewise.
4264 (normal_mod_LDFLAGS): Likewise.
4265 * conf/i386-coreboot.rmk: Likewise.
4266 * conf/i386-efi.rmk: Likewise.
4267 * conf/i386-ieee1276.rmk: Likewise.
4268 * conf/powerpc-ieee1275.rmk: Likewise.
4269 * conf/sparc64-ieee1275.rmk: Likewise.
4270 * conf/x86_64-efi.rmk: Likewise.
4272 * include/grub/command.h (grub_command_execute): New inline function.
4274 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4276 * include/grub/normal.h: Remove <grub/setjmp.h>.
4277 (grub_fs_module_list): Moved to normal/autofs.c.
4278 (grub_exit_env): Removed.
4279 (grub_command_execute): Likewise.
4280 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4282 (read_command_list): New function declaration.
4283 (read_fs_list): Likewise.
4285 * include/parser.h: Include <grub/reader.h>.
4286 (grub_parser_split_cmdline): Change type of getline parameter.
4287 (grub_parser): New structure.
4288 (grub_parser_class): New variable.
4289 (grub_parser_execute): New function declaration.
4290 (grub_register_rescue_parser): Likewise.
4291 (grub_parser_register): New inline function.
4292 (grub_parser_unregister): Likewise.
4293 (grub_parser_get_current): Likewise.
4294 (grub_parser_set_current): Likewise.
4296 * include/grub/reader.h: New file.
4297 * kern/reader.c: Likewise.
4298 * kern/rescue_parser.c: Likewise.
4299 * kern/rescue_reader.c: Likewise.
4300 * normal/autofs.c: Likewise.
4301 * normal/dyncmd.c: Likewise.
4303 * include/grub/rescue.h: Removed.
4304 * normal/command.h: Likewise.
4306 * include/grub/script.h: Moved to ...
4307 * include/grub/script_sh.h: ... Moved here.
4308 * normal/execute.c: Moved to ...
4309 * script/sh/execute.c: ... Moved here.
4310 * normal/function.c: Moved to ...
4311 * script/sh/function.c: ... Moved here.
4312 * normal/lexer.c: Moved to ...
4313 * script/sh/lexer.c: ... Moved here.
4314 * normal/parser.y: Moved to ...
4315 * script/sh/parser.y: ... Moved here.
4316 * normal/script.c: Moved to ...
4317 * script/sh/script.c: ... Moved here.
4319 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4321 (grub_exit_env): Removed.
4322 (fs_module_list): Moved to normal/autofs.c.
4323 (grub_file_getline): Don't handle comment here.
4324 (free_menu): Skip removed field entry->commands.
4325 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4327 (read_config_file): Removed nested parameter, change getline function.
4328 (grub_enter_normal_mode): Removed.
4329 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4330 (read_command_list): Likewise.
4331 (autoload_fs_module): Moved to normal/autofs.c.
4332 (read_fs_list): Likewise.
4333 (reader_nested): New variable.
4334 (grub_normal_execute): Run parser.sh to switch to sh parser.
4335 (grub_cmd_rescue): Removed.
4336 (cmd_normal): Removed.
4337 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4339 (grub_cmdline_run): New function.
4340 (grub_normal_reader_init): Likewise.
4341 (grub_normal_read_line): Likewise.
4342 (grub_env_write_pager): Likewise.
4343 (cmdline): New variable.
4344 (grub_normal_reader): Likewise.
4345 (GRUB_MOD_INIT): Register normal reader and set as current, register
4346 pager hook, register normal command with grub_register_command_prio,
4347 so that it won't show up in command.lst.
4348 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4349 grub_fs_autoload_hook.
4351 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4352 (grub_menu_execute_entry): Replace grub_script_execute with
4353 grub_parser_execute, change parameter to grub_command_execute.
4355 * normal/menu_text.c: Remove <grub/script.h>.
4357 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4358 and <grub/parser.h>.
4359 (run): Change editor_getline to use new parser interface. Change
4360 parameter to grub_command_execute.
4362 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4363 <grub/reader.h> and <grub/parser.h>.
4364 (grub_load_normal_mode): Execute normal command.
4365 (grub_main): Call grub_register_core_commands,
4366 grub_register_rescue_parser and grub_register_rescue_reader, use
4367 grub_reader_loop to enter input loop.
4369 * kern/parser.c (grub_parser_split_cmdline): Change type of
4371 (grub_parser_class): New variable.
4372 (grub_parser_execute): New function.
4374 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4375 * loader/multiboot2.c: Likewise.
4376 * loader/sparc64/ieee1275/linux.c: Likewise.
4378 * util/grub-emu.c (read_command_list): New dummy function.
4380 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4382 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4383 count to 16 for CCISS and IDA.
4385 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4387 * normal/menu_text.c (grub_wait_after_message): Print a newline
4388 after waiting for user input.
4390 * loader/i386/linux.c: Include `<grub/normal.h>'.
4391 (grub_cmd_linux): Improve the error message about `ask' mode, by
4392 waiting for user input so it's not missed (we can do this, since
4393 user requested interaction).
4395 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4397 Added missing lst to grub-mkrescue
4399 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4400 and ${input_dir}/parttool.lst
4402 2009-04-30 David S. Miller <davem@davemloft.net>
4404 * util/hostdisk.c (device_is_wholedisk): New function.
4405 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4406 zero only if device_is_wholedisk() returns true.
4408 * util/hostdisk.c (convert_system_partition_to_system_disk):
4409 Handle virtual disk devices named /dev/vdiskX as found on sparc
4412 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4413 lettered partition specifier is found, convert to numbered.
4415 2009-04-29 David S. Miller <davem@davemloft.net>
4417 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4418 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4420 * normal/command.c: Add missing newline at end of file.
4422 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4424 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4425 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4426 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4427 ihandles have a 32-bit type but need to be stored in a "void *".
4429 2009-04-28 Pavel Roskin <proski@gnu.org>
4431 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4432 not disk. Adjust all dependencies.
4433 (grub_fs_uuid_close): Use grub_device_close(), not
4436 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4437 parent's partition, don't copy it by reference, as it gets freed
4440 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4442 Preboot hooks support
4444 * commands/boot.c (struct grub_preboot_t): new declaration
4445 (preboots_head): new variable
4446 (preboots_tail): likewise
4447 (grub_loader_register_preboot_hook): new function
4448 (grub_loader_unregister_preboot_hook): likewise
4449 (grub_loader_set): launch preboot hooks
4450 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4451 (grub_loader_register_preboot_hook): new declaration
4452 (grub_loader_unregister_preboot_hook): likewise
4454 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4458 * disk/scsi.c (grub_scsi_open): added missing cast when
4459 calling grub_dprintf
4461 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4463 Bug and warning fixes
4465 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4467 * commands/test.c (test_parse): fixed bug with file tests and corrected
4468 declaration of find_file
4470 2009-04-26 Pavel Roskin <proski@gnu.org>
4472 * Makefile.in: Don't install empty manual pages if help2man is
4473 missing. Use help2man option for output, not shell redirection.
4475 2009-04-26 David S. Miller <davem@davemloft.net>
4477 * util/grub-mkdevicemap.c (make_device_map): Add missing
4478 NESTED_FUNC_ATTR to process_device().
4480 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4484 * commands/test.c: rewritten to use bash-like test
4486 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4488 Parttool autoloading and improvements
4490 * Makefile.in (pkglib_DATA): add parttool.lst
4491 (parttool.lst): new target
4492 * genmk.rb: generate parttool-*
4493 (CLEANFILES): add #{parttool}
4494 (PARTTOOLFILES): new variable
4495 * genparttoollist.sh: new file
4496 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4497 (grub_pcpart_type): likewise
4498 * commands/parttool.c (helpmsg): new variable
4499 (grub_cmd_parttool): output help if not enough arguments are supplied
4501 (GRUB_MOD_INIT(parttool)): use helpmsg
4503 2009-04-24 David S. Miller <davem@davemloft.net>
4505 Avoiding opening same device multiple times in device iterator.
4507 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4508 and use it to build a list of partitions in iterate_disk() and
4509 iterate_partition().
4511 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4514 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4515 grub_devalias_iterate() result instead of unconditional 0.
4516 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4517 Also, capture hook return value, either directly or via
4518 grub_children_iterate(), and propagate to caller.
4519 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4520 grub_children_iterate): Return value is now 'int' instead of
4522 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4523 like a proper iterator, stopping when hooks return non-zero.
4524 (grub_devalias_iterate): Likewise.
4526 2009-04-23 David S. Miller <davem@davemloft.net>
4528 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4530 2009-04-22 David S. Miller <davem@davemloft.net>
4532 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4533 is larger than address_cells, use that value for address_cells too.
4535 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4536 IEEE1275_MAX_PATH_LEN): Define.
4537 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4538 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4539 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4540 'devtype'. Explicitly NULL terminate devalias expansion.
4542 * util/sparc64/ieee1275/misc.c: New file.
4543 * util/sparc64/ieee1275/grub-setup.c: New file.
4544 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4545 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4546 * util/sparc64/ieee1275/grub-install.in: New file.
4547 * util/ieee1275/ofpath.c: New file.
4548 * util/ieee1275/devicemap.c: New file.
4549 * util/devicemap.c: New file.
4550 * util/deviceiter.c: New file.
4551 * kern/sparc64/ieee1275/init.c: New file.
4552 * include/grub/util/ofpath.h: New file.
4553 * include/grub/util/deviceiter.h: New file.
4554 * util/grub-mkdevicemap.c: Include deviceiter.h.
4555 Implement using grub_util_emit_devicemap_entry and
4556 grub_util_iterate_devices.
4557 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4558 util/devicemap.c into grub-mkdevicemap
4559 * conf/i386-efi.rmk: Likewise.
4560 * conf/i386-ieee1275.rmk: Likewise.
4561 * conf/i386-pc.rmk: Likewise.
4562 * conf/powerpc-ieee1275.rmk: Likewise.
4563 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4564 images and installation utilities. Build kernel as image
4565 instead of as elf binary. Use common rules as much as possible.
4567 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4569 Correct GPT definition
4571 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4574 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4576 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4578 2009-04-19 David S. Miller <davem@davemloft.net>
4580 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4581 (grub_rescue_cmd_linux): Rename to...
4582 (grub_cmd_linux): and fix prototype.
4583 (grub_rescue_cmd_initrd): Rename to...
4584 (grub_cmd_initrd): and fix prototype.
4585 (cmd_linux, cmd_initrd): New.
4586 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4587 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4589 2009-04-17 Pavel Roskin <proski@gnu.org>
4591 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4593 (grub_ohci_transfer): Likewise.
4595 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4597 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4598 return without a value. Fix inconsistent indentation.
4600 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4601 match struct grub_fs.
4603 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4604 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4605 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4606 * commands/lspci.c (grub_lspci_iter): Likewise.
4608 2009-04-16 Bean <bean123ch@gmail.com>
4610 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4613 2009-04-15 Pavel Roskin <proski@gnu.org>
4615 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4616 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4617 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4620 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4622 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4623 that no multiple data or metadata areas are supported and `Unknown
4626 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4628 Move loader out of the kernel
4630 * kern/loader.c: moved to ...
4631 * commands/boot.c: ... moved here
4632 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4633 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4634 * include/grub/kernel.h (grub_machine_fini): export
4635 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4636 (grub_loader_set): likewise
4637 (grub_loader_unset): likewise
4638 (grub_loader_boot): likewise
4639 * conf/common.rmk: new module boot.mod
4640 (pkglib_MODULES): add boot.mod
4641 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4642 (grub_emu_SOURCES): likewise
4643 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4644 (grub_emu_SOURCES): likewise
4645 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4646 (grub_emu_SOURCES): likewise
4647 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4648 (grub_emu_SOURCES): likewise
4649 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4650 (grub_emu_SOURCES): likewise
4651 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4652 (grub_emu_SOURCES): likewise
4653 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4654 (grub_emu_SOURCES): likewise
4656 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4658 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4660 * kern/misc.c (grub_itoa): Removed function
4661 (grub_ltoa): likewise
4662 (grub_vsprintf): use grub_lltoa
4664 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4668 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4669 * conf/i386-coreboot.rmk: likewise
4670 * conf/i386-ieee1275.rmk: likewise
4671 * conf/powerpc-ieee1275.rmk: likewise
4673 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4675 * INSTALL: Add that `./autogen.sh' needs to be run before
4678 2009-04-14 Bean <bean123ch@gmail.com>
4680 * Makefile.in (pkglib_DATA): Add handler.lst.
4681 (handler.lst): New rule.
4683 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4684 * conf/i386-coreboot.rmk: Likewise.
4685 * conf/i386-ieee1275.rmk: Likewise.
4686 * conf/i386-efi.rmk: Likewise.
4687 * conf/x86_64-efi.rmk: Likewise.
4688 * conf/powerpc-ieee1275.rmk: Likewise.
4689 * conf/sparc64-ieee1275.rmk: Likewise.
4691 * genhandlerlist.sh: New file.
4693 * genmk.rb: Add rules to generate handler.lst.
4695 * include/grub/normal.h (grub_file_getline): New function definition.
4696 (read_handler_list): Likewise.
4697 (free_handler_list): Likewise.
4699 * include/grub/term.h (grub_term_register_input): Add name parameter
4700 for auto generation of handler.lst.
4701 (grub_term_register_output): Likewise.
4703 * normal/handler.c: New file.
4705 * normal/main.c (get_line): Renamed to grub_file_getline.
4706 (read_config_file): Use the newly renamed grub_file_getline.
4707 (read_command_list): Likewise.
4708 (read_fs_list): Likewise.
4709 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4710 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4712 * term/efi/console.c (grub_console_init): Add name parameter for auto
4713 generation of handler.lst.
4714 * term/gfxterm.c: Likewise.
4715 * term/i386/pc/at_keyboard.c: Likewise.
4716 * term/i386/pc/console.c: Likewise.
4717 * term/i386/pc/serial.c: Likewise.
4718 * term/i386/pc/vesafb.c: Likewise.
4719 * term/i386/pc/vga.c: Likewise.
4720 * term/i386/pc/vga_text.c: Likewise.
4721 * term/ieee1275/ofconsole.c: Likewise.
4722 * term/usb_keyboard.c: Likewise.
4724 2009-04-14 Bean <bean123ch@gmail.com>
4726 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4727 properly with null character.
4729 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4731 * configure: Remove.
4732 * config.h.in: Likewise.
4733 * stamp-h.in: Likewise.
4734 * DISTLIST: Likewise.
4735 * conf/common.mk: Likewise.
4736 * conf/i386-coreboot.mk: Likewise.
4737 * conf/i386-efi.mk: Likewise.
4738 * conf/i386-ieee1275.mk: Likewise.
4739 * conf/i386.mk: Likewise.
4740 * conf/i386-pc.mk: Likewise.
4741 * conf/powerpc-ieee1275.mk: Likewise.
4742 * conf/sparc64-ieee1275.mk: Likewise.
4743 * conf/x86_64-efi.mk: Likewise.
4745 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4748 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4749 David S. Miller <davem@davemloft.net>
4751 * util/hostdisk.c (make_device_name): Fix buffer length
4754 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4756 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4757 <sys/param.h> and <sys/sysctl.h>.
4758 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4759 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4760 opening the device and reset them afterwards.
4762 2009-04-13 Pavel Roskin <proski@gnu.org>
4764 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4765 Reported by John Stanley <jpsinthemix@verizon.net>
4767 2009-04-13 Robert Millan <rmh@aybabtu.com>
4769 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4770 that name for menuentries when appropriate.
4772 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4774 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4776 2009-04-13 Robert Millan <rmh@aybabtu.com>
4778 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4779 to Linux, simply abort telling the user it's no longer supported.
4781 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4783 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4784 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4785 `freebsd_loadenv' only when devices.hints exist.
4787 2009-04-13 Pavel Roskin <proski@gnu.org>
4789 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4791 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4793 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4795 (grub_drive): Likewise.
4797 2009-04-13 David S. Miller <davem@davemloft.net>
4799 * kern/sparc64/ieee1275/ieee1275.c: New file.
4800 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4801 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4802 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4803 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4804 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4805 grub_ieee1275_alloc_physmem): Declare new exported functions.
4807 * include/grub/sparc64/ieee1275/loader.h: New file.
4808 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4809 * include/grub/sparc64/kernel.h: Likewise.
4810 * loader/sparc64/ieee1275/linux.c: Likewise.
4812 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4813 (grub_fstest_SOURCES): Likewise.
4815 * util/hostdisk.c (make_device_name): Do not make any assumptions
4816 about the length of drive names.
4818 * kern/dl.c (grub_dl_load_file): Close file immediately when
4819 we are done using it.
4821 2009-04-12 David S. Miller <davem@davemloft.net>
4823 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4824 values. Noticed by Pavel Roskin.
4826 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4829 * genmk.rb: Add more flexible image type specification, also
4830 pass --strip-unneeded to objcopy.
4831 * conf/i386-pc.rmk: Use *_FORMAT.
4832 * conf/i386-pc.mk: Rebuilt.
4834 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4835 (OFDISK_HASH_SZ): Define.
4836 (ofdisk_hash): New hash table.
4837 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4838 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4839 instead of device phandle which is not unique.
4841 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4842 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4843 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4844 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4845 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4846 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4847 GRUB_KERNEL_MACHINE_DATA_END): Define.
4848 (grub_kernel_image_size, grub_total_module_size): Declare.
4850 2009-04-12 Pavel Roskin <proski@gnu.org>
4852 * configure.ac: Change the logic when we check for target tools.
4853 Do it when the target is specified and it's different from the
4854 specified value of the host.
4856 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4858 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4859 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4860 GNU/kFreeBSD. Check if a device is a character device. Use
4861 DIOCGMEDIASIZE to get the size.
4862 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4863 support for GNU/kFreeBSD.
4864 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4865 is a character device instead of a block device. Add support for
4866 FreeBSD device names.
4868 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4869 is a character device instead of a block device.
4871 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4872 is a character device instead of a block device.
4874 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4876 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4877 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4878 FreeBSD. Check if a device is a character device. Use
4879 DIOCGMEDIASIZE to get the size.
4880 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4881 support for FreeBSD.
4882 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4883 is a character device instead of a block device. Add support for
4884 FreeBSD device names.
4886 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4887 a character device instead of a block device.
4888 (grub_util_check_char_device): New function.
4890 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4891 a character device instead of a block device.
4893 * include/grub/util/getroot.h (grub_util_check_char_device): New
4896 2009-04-11 David S. Miller <davem@davemloft.net>
4898 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4900 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4901 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4902 function, if present.
4903 (__bswapdi2): Likewise.
4905 * include/grub/sparc64/ieee1275/boot.h: New file.
4906 * boot/sparc64/ieee1275/boot.S: Likewise.
4907 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4909 * kern/misc.c (grub_ltoa): New function.
4910 (grub_vsprintf): Use it to format 'long' integers.
4912 2009-04-10 David S. Miller <davem@davemloft.net>
4914 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4915 slots are of type grub_ieee1275_cell_t.
4916 (grub_nand_read): Likewise.
4917 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4918 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4919 macros are used to compare values in arg/ret block of the call.
4920 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4921 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4922 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4923 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4924 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4925 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4926 grub_ieee1275_close, grub_ieee1275_set_property,
4927 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4928 grub_ieee1275_cell_t.
4929 * kern/ieee1275/openfw.c (grub_map): Likewise.
4930 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4931 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4933 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4934 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4935 (grub_devalias_iterate): Likewise.
4937 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4941 * fs/ufs.c (INODE_NBLOCKS): new definition
4942 (struct grub_ufs_dirent): added fields for non-BSD dirents
4943 (grub_ufs_get_file_block): fixed double indirect handling
4944 (grub_ufs_lookup_symlink): use more robust way to determine whether
4946 (grub_ufs_find_file): support for non-BSD dirents
4947 (grub_ufs_dir): support for non-BSD dirents
4949 2009-04-10 Bean <bean123ch@gnail.com>
4951 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4952 attribute, otherwise the size would be wrong for i386 platform.
4954 * include/grub/pci.h (grub_pci_read_word): New inline function.
4955 (grub_pci_read_byte): Likewise.
4956 (grub_pci_write): Likewise.
4957 (grub_pci_write_word): Likewise.
4958 (grub_pci_write_byte): Likewise.
4960 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4962 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4963 (find_framebuf): Scan pci to locate the frame buffer address.
4965 * commands/efi/fixvideo.c: New file.
4967 * commands/efi/loadbios.c: Likewise.
4969 * commands/memrw.c: Likewise.
4971 * util/grub-dumpbios.in: Likewise.
4973 * conf/common.rmk (grub-dumpbios): New utility.
4974 (pkglib_MODULES): New module memrw.mod.
4975 (memrw_mod_SOURCE): New macro.
4976 (memrw_mod_CFLAGS): Likewise.
4977 (memrw_mod_LDFLAGS): Likewise.
4979 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4981 (loadbios_mod_SOURCE): New macro.
4982 (loadbios_mod_CFLAGS): Likewise.
4983 (loadbios_mod_LDFLAGS): Likewise.
4984 (fixvideo_mod_SOURCE): Likewise.
4985 (fixvideo_mod_CFLAGS): Likewise.
4986 (fixvideo_mod_LDFLAGS): Likewise.
4988 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
4990 (loadbios_mod_SOURCE): New macro.
4991 (loadbios_mod_CFLAGS): Likewise.
4992 (loadbios_mod_LDFLAGS): Likewise.
4993 (fixvideo_mod_SOURCE): Likewise.
4994 (fixvideo_mod_CFLAGS): Likewise.
4995 (fixvideo_mod_LDFLAGS): Likewise.
4997 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
4999 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
5001 2009-04-07 David S. Miller <davem@davemloft.net>
5003 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
5004 support for R_SPARC_OLO10 relocations. Fix compile warning for
5005 R_SPARC_WDISP30 case.
5006 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
5008 2009-04-06 Pavel Roskin <proski@gnu.org>
5010 * include/grub/misc.h (ARRAY_SIZE): New macro.
5011 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
5013 * loader/i386/linux.c (allocate_pages): Use free_pages().
5014 (grub_linux_unload): Don't use free_pages().
5015 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
5016 wrong index. Treat all other modes as text modes.
5017 (grub_cmd_linux): Initialize vid_mode unconditionally to
5018 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
5020 * commands/help.c (print_command_help): Use cmd->prio, not
5021 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
5023 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5027 * parttool/pcpart.c: new file
5028 * commands/parttool.c: likewise
5029 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
5030 (parttool_mod_SOURCES): new variable
5031 (parttool_mod_CFLAGS): likewise
5032 (parttool_mod_LDFLAGS): likewise
5033 (pcpart_mod_SOURCES): likewise
5034 (pcpart_mod_CFLAGS): likewise
5035 (pcpart_mod_LDFLAGS): likewise
5036 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
5037 and parttool/pcpart.c
5038 * conf/i386-efi.rmk: likewise
5039 * conf/i386-ieee1275.rmk: likewise
5040 * conf/i386-pc.rmk: likewise
5041 * conf/powerpc-ieee1275.rmk: likewise
5042 * conf/sparc64-ieee1275.rmk: likewise
5043 * conf/x86_64-ieee1275.rmk: likewise
5045 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5047 Support for mtime and further expandability of dir command
5049 * include/grub/lib/datetime.h: moved to ...
5050 * include/grub/datetime.h: ... moved here and added
5051 declaration of grub_unixtime2datetime. All users updated
5052 * include/grub/fs.h: new syntax for dir and mtime functions in
5054 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5055 and GRUB_FSHELP_FLAGS_MASK
5056 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5057 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5058 (grub_ext2_mtime): new function
5059 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5060 (grub_hfsplus_mtime): new function
5061 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5062 (GRUB_UFS_ATTR_FILE): likewise
5063 (GRUB_UFS_ATTR_LNK): likewise
5064 (struct grub_ufs_sblock): new fields mtime
5065 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5067 (grub_ufs_dir): mtime support
5068 (grub_ufs_mtime): new function
5069 * fs/affs.c (grub_affs_dir): use new dir syntax
5070 * fs/afs.c (grub_afs_dir): likewise
5071 * fs/cpio.c (grub_cpio_dir): likewise
5072 * fs/fat.c (grub_fat_find_dir): likewise
5073 * fs/hfs.c (grub_hfs_dir): likewise
5074 * fs/iso9660.c (grub_iso9660_dir): likewise
5075 * fs/jfs.c (grub_jfs_dir): likewise
5076 * fs/minix.c (grub_minix_dir): likewise
5077 * fs/ntfs.c (grub_ntfs_dir): likewise
5078 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5079 * fs/sfs.c (grub_sfs_dir): likewise
5080 * fs/xfs.c (grub_xfs_dir): likewise
5081 * util/hostfs.c (grub_hostfs_dir): likewise
5082 * lib/datetime.c: moved to ...
5083 * normal/datetime.c: ... moved here
5084 (grub_unixtime2datetime): new function
5085 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5086 * normal/completion.c (iterate_dir): use new dir syntax
5087 * normal/misc.c (grub_normal_print_device_info): tell the
5088 last modification time of a volume
5089 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5090 * conf/common.rmk: added lib/datetime.c to ls.mod
5091 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5092 (normal_mod_SOURCES): likewise
5093 (datetime_mod_SOURCES): Removed lib/datetime.c
5094 * conf/i386-efi.rmk: likewise
5095 * conf/i386-ieee1275.rmk: likewise
5096 * conf/i386-pc.rmk: likewise
5097 * conf/powerpc-ieee1275.rmk: likewise
5098 * conf/sparc64-ieee1275.rmk: likewise
5099 * conf/x86_64-efi.rmk: likewise
5101 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5103 Trim trailing spaces in FAT label and support mtools-like labels
5105 * fs/fat.c (grub_fat_iterate_dir): New function based
5106 on grub_fat_find_dir
5107 (grub_fat_find_dir): use grub_fat_iterate_dir
5108 (grub_fat_label): likewise
5110 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5112 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5114 remove extraneous kernel_elf_HEADERS
5116 2009-04-04 Bean <bean123ch@gnail.com>
5118 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5120 * util/misc.c: Likewise.
5122 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5124 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5125 instead of grub_printf.
5127 2009-04-03 Robert Millan <rmh@aybabtu.com>
5129 * loader/i386/linux.c (grub_linux_setup_video): Fill
5130 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5131 values from `mode info' structure instead of hardcoded
5134 2009-04-01 Pavel Roskin <proski@gnu.org>
5136 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5138 * genmk.rb: Likewise.
5139 * configure.ac: Likewise.
5141 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5143 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5144 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5146 2009-04-01 David S. Miller <davem@davemloft.net>
5148 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5149 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5150 (grub_setjmp): Mark with 'returns_twice' attribute.
5151 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5152 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5153 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5155 2009-04-01 Robert Millan <rmh@aybabtu.com>
5157 Reapply fix from 2008-07-28 which was accidentally reverted; also
5158 perform the same fix to a similar check in same function.
5160 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5161 with the same number are found, just use issue a warning with
5162 grub_dprintf(), as this error has been reported to be non-fatal.
5164 2009-03-31 Pavel Roskin <proski@gnu.org>
5166 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5167 for cross-compilation.
5169 2009-03-30 Robert Millan <rmh@aybabtu.com>
5171 Fix i386-ieee1275 build.
5173 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5176 2009-03-30 Pavel Roskin <proski@gnu.org>
5178 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5179 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5180 zero-terminated, rely only on the strlen value. Fix comparison
5181 of strings differing in length.
5183 2009-03-30 Robert Millan <rmh@aybabtu.com>
5185 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5186 checking for abi version. Improve error messages on BIOS to notify
5187 user about `linux16' command.
5189 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5193 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5194 in case of collision
5195 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5197 2009-03-29 Robert Millan <rmh@aybabtu.com>
5199 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5200 set `vid_mode' accordingly.
5201 (grub_linux_boot): Process `vid_mode' and set video mode.
5203 2009-03-29 Robert Millan <rmh@aybabtu.com>
5205 * util/grub.d/10_linux.in (linux_entry): New function.
5206 Factorize generation of Linux boot entries.
5208 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5210 Make the format of Environment Block plain text. The boot loader
5211 part is not tested well yet.
5213 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5216 (usage): Remove "info" and "clear". Add "unset". Update the
5217 description of "set", as this does not delete variables any
5219 (create_envblk_file): Complete rewrite.
5220 (open_envblk_file): Likewise.
5221 (cmd_info): Removed.
5222 (cmd_list): Likewise.
5223 (cmd_set): Likewise.
5224 (cmd_clear): Likewise.
5225 (list_variables): New function.
5226 (write_envblk): Likewise.
5227 (set_variables): Likewise.
5228 (unset_variables): Likewise.
5229 (main): Complete rewrite.
5231 * commands/loadenv.c (buffer): Removed.
5233 (open_envblk_file): New function.
5234 (read_envblk_file): Complete rewrite.
5235 (grub_cmd_load_env): Likewise.
5236 (grub_cmd_list_env): Likewise.
5237 (struct blocklist): New struct.
5238 (free_blocklists): New function.
5239 (check_blocklists): Likewise.
5240 (write_blocklists): Likewise.
5241 (grub_cmd_save_env): Complete rewrite.
5243 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5244 a plain text signature.
5245 (GRUB_ENVBLK_MAXLEN): Removed.
5246 (struct grub_envblk): Complete rewrite.
5247 (grub_envblk_find): Removed.
5248 (grub_envblk_insert): Likewise.
5249 (grub_envblk_open): New prototype.
5250 (grub_envblk_set): Likewise.
5251 (grub_envblk_delete): Put const to VALUE.
5252 (grub_envblk_iterate): Put const to NAME and VALUE.
5253 (grub_envblk_close): New prototype.
5254 (grub_envblk_buffer): New inline function.
5255 (grub_envblk_size): Likewise.
5257 * lib/envblk.c: Include grub/mm.h.
5258 (grub_env_find): Removed.
5259 (grub_envblk_open): New function.
5260 (grub_envblk_close): Likewise.
5261 (escaped_value_len): Likewise.
5262 (find_next_line): Likewise.
5263 (grub_envblk_insert): Removed.
5264 (grub_envblk_set): New function.
5265 (grub_envblk_delete): Complete rewrite.
5266 (grub_envblk_iterate): Likewise.
5268 2009-03-28 Robert Millan <rmh@aybabtu.com>
5270 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5271 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5272 variables. Use 16-bit loader.
5273 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5275 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5276 (grub_linux16_boot): ... this. Update all users.
5277 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5278 (grub_linux_boot): ... this. Update all users.
5280 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5281 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5282 commands to `linux16' and `initrd16'.
5283 (GRUB_MOD_FINI(linux)): Rename to ...
5284 (GRUB_MOD_FINI(linux16)): ... this.
5286 2009-03-24 Pavel Roskin <proski@gnu.org>
5288 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5289 not just for compilation.
5291 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5293 Move multiboot helper out of kernel
5295 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5296 `loader/i386/multiboot_helper.S'.
5297 * conf/i386-coreboot.rmk: Likewise
5298 * conf/i386-ieee1275.rmk: Likewise
5300 * kern/i386/loader.S: Move multiboot helpers from here...
5301 * loader/i386/multiboot_helper.S: ...moved here
5302 * include/grub/i386/loader.h: Move declarations of multiboot
5303 helpers from here...
5304 * include/grub/i386/multiboot.h: ...moved here
5305 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5307 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5309 * kern/env.c (grub_env_context_open): Added an argument to specify
5310 whether a new context inherits exported variables from current
5311 one. This is useful when making a sandbox to interpret a config
5313 All callers updated.
5315 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5317 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5319 * kern/env.c (grub_env_context_close): Fix memory leaks.
5321 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5323 * normal/main.c (grub_normal_execute): Added an argument
5324 BATCH to specify if an interactive interface should be provided
5325 after reading a config file.
5326 All callers updated.
5327 (read_command_list): Prevent being executed twice.
5328 (read_fs_list): Likewise.
5330 * include/grub/normal.h (grub_normal_execute): Updated the
5333 2009-03-22 Pavel Roskin <proski@gno.org>
5335 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5337 * kern/i386/pc/startup.S: Likewise.
5338 * kern/i386/efi/startup.S: Likewise.
5339 * kern/i386/ieee1275/startup.S: Likewise.
5340 * kern/i386/coreboot/startup.S: Likewise.
5341 * kern/x86_64/efi/startup.S: Likewise.
5343 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5344 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5345 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5347 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5349 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5351 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5353 Use vaddr of correct segment for entry_point.
5355 2009-03-21 Bean <bean123ch@gmail.com>
5357 * commands/blocklist.c: Add include file <grub/command.h>, remove
5358 <grub/normal.h> and <grub/arg.h>.
5359 (grub_cmd_blocklist): Use the new command interface.
5360 (GRUB_MOD_INIT): Likewise.
5361 (GRUB_MOD_FINI): Likewise.
5362 * commands/boot.c: Likewise.
5363 * commands/cat.c: Likewise.
5364 * commands/cmp.c: Likewise.
5365 * commands/configfile.c: Likewise.
5366 * commands/crc.c: Likewise.
5367 * commands/echo.c: Likewise.
5368 * commands/halt.c: Likewise.
5369 * commands/handler.c: Likewise.
5370 * commands/hdparm.c: Likewise.
5371 * commands/help.c: Likewise.
5372 * commands/hexdump.c: Likewise.
5373 * commands/loadenv.c: Likewise.
5374 * commands/ls.c: Likewise.
5375 * commands/lsmmap.c: Likewise.
5376 * commands/lspci.c: Likewise.
5377 * commands/loadenv.c: Likewise.
5378 * commands/read.c: Likewise.
5379 * commands/reboot.c: Likewise.
5380 * commands/search.c: Likewise.
5381 * commands/sleep.c: Likewise.
5382 * commands/test.c: Likewise.
5383 * commands/usbtest.c: Likewise.
5384 * commands/videotest.c: Likewise.
5385 * commands/i386/cpuid.c: Likewise.
5386 * commands/i386/pc/halt.c: Likewise.
5387 * commands/i386/pc/play.c: Likewise.
5388 * commands/i386/pc/pxecmd.c: Likewise.
5389 * commands/i386/pc/vbeinfo.c: Likewise.
5390 * commands/i386/pc/vbetest.c: Likewise.
5391 * commands/ieee1275/suspend.c: Likewise.
5392 * disk/loopback.c: Likewise.
5393 * font/font_cmd.c: Likewise.
5394 * hello/hello.c: Likewise.
5395 * loader/efi/appleloader.c: Likewise.
5396 * loader/efi/chainloader.c: Likewise.
5397 * loader/i386/bsd.c: Likewise.
5398 * loader/i386/efi/linux.c: Likewise.
5399 * loader/i386/ieee1275/linux.c: Likewise.
5400 * loader/i386/linux.c: Likewise.
5401 * loader/i386/pc/chainloader.c: Likewise.
5402 * loader/i386/pc/linux.c: Likewise.
5403 * loader/powerpc/ieee1275/linux.c: Likewise.
5404 * loader/multiboot_loader.c: Likewise.
5405 * term/gfxterm.c: Likewise.
5406 * term/i386/pc/serial.c: Likewise.
5407 * term/terminfo.c: Likewise.
5409 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5410 * term/i386/pc/vga.c: Likewise.
5411 * video/readers/jpeg.c: Likewise.
5412 * video/readers/png.c: Likewise.
5413 * video/readers/tga.c: Likewise.
5415 * util/grub-fstest (cmd_loopback): Removed.
5416 (cmd_blocklist): Likewise.
5418 (grub_register_command): Likewise.
5419 (grub_unregister_command): Likewise.
5420 (execute_command): Use grub_command_find to locate command and execute
5423 * include/grub/efi/chainloader.h: Removed.
5424 * loader/efi/chainloader_normal.c: Likewise.
5425 * loader/i386/bsd_normal.c: Likewise.
5426 * loader/i386/pc/chainloader_normal.c: Likewise.
5427 * loader/i386/pc/multiboot_normal.c: Likewise.
5428 * loader/linux_normal.c: Likewise.
5429 * loader/multiboot_loader_normal.c: Likewise.
5430 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5432 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5433 and grub_register_command_p1.
5435 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5436 kern/command.c, lib/arg.c and commands/extcmd.c.
5437 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5438 (minicmd_mod_SOURCES): New variable.
5439 (minicmd_mod_CFLAGS): Likewise.
5440 (minicmd_mod_LDFLAGS): Likewise.
5441 (extcmd_mod_SOURCES): Likewise.
5442 (extcmd_mod_CFLAGS): Likewise.
5443 (extcmd_mod_LDFLAGS): Likewise.
5444 (boot_mod_SOURCES): Removed.
5445 (boot_mod_CFLAGS): Likewise.
5446 (boot_mod_LDFLAGS): Likewise.
5448 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5450 (kernel_img_HEADERS): Add command.h.
5451 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5452 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5454 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5455 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5456 remove the corresponding normal mode command.
5457 (normal_mod_SOURCES): Remove normal/arg.c.
5458 * conf/i386-coreboot.rmk: Likewise.
5459 * conf/i386-efi.rmk: Likewise.
5460 * conf/i386-ieee1275.rmk: Likewise.
5461 * conf/powerpc-ieee1275.rmk: Likewise.
5462 * conf/x86_64-efi.rmk: Likewise.
5464 * include/grub/arg.h: Move from here ...
5465 * include/grub/lib/arg.h: ... to here.
5467 * normal/arg.c: Move from here ...
5468 * lib/arg.c: ... to here.
5470 * commands/extcmd.c: New file.
5471 * commands/minicmd.c: Likewise.
5472 * include/grub/command.h: Likewise.
5473 * include/grub/extcmd.h: Likewise.
5474 * kern/command.c: Likewise.
5475 * kern/corecmd.c: Likewise.
5477 * kern/list.c (grub_list_iterate): Return int instead of void.
5478 (grub_list_insert): New function.
5479 (grub_prio_list_insert): Likewise.
5481 * kern/rescue.c (grub_rescue_command): Removed.
5482 (grub_rescue_command_list): Likewise.
5483 (grub_rescue_register_command): Likewise.
5484 (grub_rescue_unregister_command): Likewise.
5485 (grub_rescue_cmd_boot): Move to minicmd.c
5486 (grub_rescue_cmd_help): Likewise.
5487 (grub_rescue_cmd_info): Likewise.
5488 (grub_rescue_cmd_boot): Likewise.
5489 (grub_rescue_cmd_testload): Likewise.
5490 (grub_rescue_cmd_dump): Likewise.
5491 (grub_rescue_cmd_rmmod): Likewise.
5492 (grub_rescue_cmd_lsmod): Likewise.
5493 (grub_rescue_cmd_exit): Likewise.
5494 (grub_rescue_print_devices): Moved to corecmd.c.
5495 (grub_rescue_print_files): Likewise.
5496 (grub_rescue_cmd_ls): Likewise.
5497 (grub_rescue_cmd_insmod): Likewise.
5498 (grub_rescue_cmd_set): Likewise.
5499 (grub_rescue_cmd_unset): Likewise.
5500 (attempt_normal_mode): Use grub_command_find to get normal module.
5501 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5502 commands, remove grub_rescue_register_command calls.
5504 * normal/command.c (grub_register_command): Removed.
5505 (grub_unregister_command): Likewise.
5506 (grub_command_find): Likewise.
5507 (grub_iterate_commands): Likewise.
5508 (rescue_command): Likewise.
5509 (export_command): Moved to corecmd.c.
5510 (set_command): Removed.
5511 (unset_command): Likewise.
5512 (insmod_command): Likewise.
5513 (rmmod_command): Likewise.
5514 (lsmod_command): Likewise.
5515 (grub_command_init): Likewise.
5517 * normal/completion.c (iterate_command): Use cmd->prio to check for
5519 (complete_arguments): Use grub_extcmd_t structure to find options.
5520 (grub_normal_do_completion): Change function grub_iterate_commands to
5521 grub_command_iterate.
5523 * normal/execute.c (grub_script_execute_cmd): No need to parse
5526 * normal/main.c (grub_dyncmd_dispatcher): New function.
5527 (read_command_list): Register unload commands as dyncmd.
5528 (grub_cmd_normal): Use new command interface, register rescue,
5529 unregister normal at entry, register normal, unregister rescue at exit.
5531 * include/grub/list.h (grub_list_test_t): New type.
5532 (grub_list_iterate): Return int instead of void.
5533 (grub_list_insert): New function.
5534 (GRUB_AS_NAMED_LIST_P): New macro.
5535 (GRUB_AS_PRIO_LIST): Likewise.
5536 (GRUB_AS_PRIO_LIST_P): Likewise.
5537 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5538 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5539 (grub_prio_list): New structure.
5540 (grub_prio_list_insert): New function.
5541 (grub_prio_list_remove): New inline function.
5543 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5544 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5545 (GRUB_COMMAND_FLAG_MENU): Likewise.
5546 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5547 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5548 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5549 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5550 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5551 (grub_command): Likewise.
5552 (grub_register_command): Likewise.
5553 (grub_command_find): Likewise.
5554 (grub_iterate_commands): Likewise.
5555 (grub_command_init): Likewise.
5556 (grub_arg_parse): Likewise.
5557 (grub_arg_show_help): Likewise.
5559 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5560 (grub_rescue_unregister_command): Likewise.
5562 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5563 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5564 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5566 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5567 grub_rescue_cmd_initrd.
5568 * include/grub/i386/loader.h: Likewise.
5569 * include/grub/x86_64/loader.h: Likewise.
5571 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5573 2009-03-21 Bean <bean123ch@gmail.com>
5575 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5576 instead of stat in mingw environment.
5578 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5580 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5582 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5585 2009-03-21 Bean <bean123ch@gmail.com>
5587 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5590 2009-03-18 Michel Dänzer <michel@daenzer.net>
5592 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5593 checking inode flags for EXT4_EXTENTS_FLAG.
5595 2009-03-18 Robert Millan <rmh@aybabtu.com>
5597 * loader/i386/linux.c: Include `<grub/video.h>' and
5598 `<grub/i386/pc/vbe.h>'..
5599 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5600 (grub_linux32_boot): Attempt to configure video settings with
5601 grub_linux_setup_video().
5602 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5603 to avoid grub_console_fini() which would step out of graphical mode
5606 2009-03-14 Robert Millan <rmh@aybabtu.com>
5608 Fix build on powerpc.
5609 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5611 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5613 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5614 background image command.
5616 2009-03-12 Colin D Bennett <colin@gibibit.com>
5618 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5619 (grub_gfxterm_putchar): Extract pairs of identical calls to
5620 draw_cursor out of conditional blocks.
5622 2009-03-11 Pavel Roskin <proski@gnu.org>
5624 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5625 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5627 2009-03-11 Robert Millan <rmh@aybabtu.com>
5629 * loader/i386/multiboot_elfxx.c
5630 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5632 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5634 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5637 2009-03-11 Robert Millan <rmh@aybabtu.com>
5639 * loader/i386/multiboot.c (code_size): New variable.
5640 (grub_multiboot): Define offsets by adding to `code_size' rather
5641 than subtracting from `grub_multiboot_payload_size'. Provide
5642 4-byte alignment to MBI and others by increasing
5643 `boot_loader_name_length' appropriately.
5645 * loader/i386/multiboot_elfxx.c
5646 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5648 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5653 2009-03-08 Robert Millan <rmh@aybabtu.com>
5655 Make loader/i386/linux.c usable on i386-pc again.
5657 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5659 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5662 2009-03-07 Bean <bean123ch@gmail.com>
5664 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5667 2009-03-06 Robert Millan <rmh@aybabtu.com>
5669 Fix display issue on terminals with screen size other than 80x25
5670 (e.g. gfxterm with resolution higher than 640x480).
5672 * normal/main.c (grub_normal_init_page): Display title text in a
5673 position relative to the center of the terminal instead of relying
5674 on a hardcoded offset.
5676 2009-03-04 Robert Millan <rmh@aybabtu.com>
5678 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5681 * Makefile.in (host_kernel): New variable.
5682 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5683 scripts instead of just the windows one.
5684 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5686 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5688 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5690 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5691 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5692 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5694 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5695 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5697 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5699 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5700 or if there's no space for the disk label and print the partition number on a
5703 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5705 * util/misc.c: Include <time.h>.
5706 (grub_millisleep): New function.
5708 2009-03-04 Bean <bean123ch@gmail.com>
5710 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5711 another option -mno-red-zone.
5713 * commands/handler.c: Change module description.
5715 * kern/handler.c: Add missing space at the end of description line.
5717 * kern/list.c: Likewise.
5719 2009-03-03 Robert Millan <rmh@aybabtu.com>
5721 Move more components to the relocation area, and fix mbi pointer
5722 handling to use the destination rather than the origin (thanks to
5723 Vladimir Serbinenko for spotting).
5725 * loader/i386/multiboot.c (mbi_dest): New variable.
5726 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5727 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5730 2009-03-01 Bean <bean123ch@gmail.com>
5732 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5733 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5734 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5735 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5737 * loader/i386/efi/linux.c (acpi_guid): New variable.
5738 (acpi_guid): Likewise.
5739 (EBDA_SEG_ADDR): New constant.
5740 (LOW_MEM_ADDR): Likewise.
5741 (FAKE_EBDA_SEG): Likewise.
5742 (fake_bios_data): New function.
5743 (grub_linux_boot): Call fake_bios_data.
5745 2009-03-01 Bean <bean123ch@gmail.com>
5747 * commands/terminal.c: Removed.
5749 * commands/handler.c: New file.
5751 * include/grub/list.h: Likewise.
5753 * include/grub/handler.h: Likewise.
5755 * kern/list.c: Likewise.
5757 * kern/handler.c: Likewise.
5759 * kern/term.h: Include header file <grub/handler.h>.
5760 (grub_term_input): Move next field to the beginning.
5761 (grub_term_output): Likewise.
5762 (grub_term_input_class): New variable.
5763 (grub_term_output_class): Likewise.
5764 (grub_term_register_input): Changed to inline function.
5765 (grub_term_register_output): Likewise.
5766 (grub_term_unregister_input): Likewise.
5767 (grub_term_unregister_output): Likewise.
5768 (grub_term_set_current_input): Likewise.
5769 (grub_term_set_current_output): Likewise.
5770 (grub_term_get_current_input): Likewise.
5771 (grub_term_get_current_output): Likewise.
5772 (grub_term_iterate_input): Removed.
5773 (grub_term_iterate_output): Likewise.
5775 * kern/term.c (grub_term_list_input): Removed.
5776 (grub_term_list_output): Likewise.
5777 (grub_term_input_class): New variable.
5778 (grub_term_output_class): Likewise.
5779 (grub_cur_term_input): Change variable as macro.
5780 (grub_cur_term_output): Likewise.
5781 (grub_term_register_input): Removed.
5782 (grub_term_register_output): Likewise.
5783 (grub_term_unregister_input): Likewise.
5784 (grub_term_unregister_output): Likewise.
5785 (grub_term_set_current_input): Likewise.
5786 (grub_term_set_current_output): Likewise.
5787 (grub_term_iterate_input): Likewise.
5788 (grub_term_iterate_output): Likewise.
5789 (grub_term_get_current_input): Likewise.
5790 (grub_term_get_current_output): Likewise.
5792 * util/grub-editenv.c: Include header file <grub/handler.h>.
5793 (grub_term_get_current_input): Removed.
5794 (grub_term_get_current_output): Likewise.
5795 (grub_term_input_class): New variable.
5796 (grub_term_output_class): Likewise.
5798 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5799 (grub_term_get_current_output): Likewise.
5800 (grub_term_input_class): New variable.
5801 (grub_term_output_class): Likewise.
5803 * util/grub-probe.c (grub_term_get_current_input): Removed.
5804 (grub_term_get_current_output): Likewise.
5805 (grub_term_input_class): New variable.
5806 (grub_term_output_class): Likewise.
5808 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5809 (grub_term_get_current_output): Likewise.
5810 (grub_term_input_class): New variable.
5811 (grub_term_output_class): Likewise.
5813 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5814 (terminal_mod_SOURCES): Likewise.
5815 (terminal_mod_CFLAGS): Likewise.
5816 (terminal_mod_LDFLAGS): Likewise.
5818 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5820 (kernel_img_SOURCES): Add list.c and handler.c.
5821 (kernel_img_HEADERS): Add list.h and handler.h.
5823 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5825 (kernel_mod_SOURCES): Add list.c and handler.c.
5826 (kernel_mod_HEADERS): Add list.h and handler.h.
5828 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5830 (kernel_elf_SOURCES): Add list.c and handler.c.
5831 (kernel_elf_HEADERS): Add list.h and handler.h.
5833 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5835 (kernel_elf_SOURCES): Add list.c and handler.c.
5836 (kernel_elf_HEADERS): Add list.h and handler.h.
5838 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5840 (kernel_mod_SOURCES): Add list.c and handler.c.
5841 (kernel_mod_HEADERS): Add list.h and handler.h.
5843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5845 (kernel_elf_SOURCES): Add list.c and handler.c.
5846 (kernel_elf_HEADERS): Add list.h and handler.h.
5848 2009-02-27 Robert Millan <rmh@aybabtu.com>
5850 Factorize elf32 / elf64 code in Multiboot loader. This will
5851 prevent it from getting out of sync again.
5853 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5854 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5855 grub_multiboot_load_elf64): Move from here ...
5856 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5857 grub_multiboot_load_elf): ... to here (new file).
5859 2009-02-27 Robert Millan <rmh@aybabtu.com>
5861 * util/grub.d/10_linux.in: Rename "single-user mode" to
5864 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5866 Don't leak in SCSI code.
5867 * disk/scsi.c (grub_scsi_close): free `scsi'.
5869 2009-02-27 Robert Millan <rmh@aybabtu.com>
5871 * loader/i386/pc/multiboot.c: Move from here ...
5872 * loader/i386/multiboot.c: ... to here. Update all users.
5874 2009-02-27 Robert Millan <rmh@aybabtu.com>
5876 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5877 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5879 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5881 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5884 2009-02-27 Robert Millan <rmh@aybabtu.com>
5886 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5887 `0x' qualifier as 0 when base is specified as parameter).
5889 2009-02-24 Bean <bean123ch@gmail.com>
5891 * configure.ac: Check for -mcmodel=large in x86_64 target.
5893 * include/grub/efi/api.h (efi_call_10): New macro.
5894 (efi_wrap_10): New function.
5896 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5897 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5898 (GRUB_PE32_REL_BASED_LOW): Likewise.
5899 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5900 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5901 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5902 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5903 (GRUB_PE32_REL_BASED_REL): Likewise.
5904 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5905 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5906 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5908 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5911 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5912 (efi_wrap_10): New function.
5914 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5916 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5917 MB/MBP model (NV chipset).
5918 (devdata_devs): Add devpath_5 to the list.
5920 * load/i386/efi/linux.c (video_base): Remove variable.
5921 (RGB_MASK): New macro.
5922 (RGB_MAGIC): Likewise.
5923 (LINE_MIN): Likewise.
5924 (LINE_MAX): Likewise.
5925 (FBTEST_STEP): Likewise.
5926 (FBTEST_COUNT): Likewise.
5927 (fb_list): New variable.
5928 (grub_find_video_card): Remove function.
5929 (find_framebuf): New function.
5930 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5933 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5936 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5938 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5940 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5943 2009-02-22 Robert Millan <rmh@aybabtu.com>
5945 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5946 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5947 in our relocation, instead of using it directly from heap. Also
5948 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5950 2009-02-21 Robert Millan <rmh@aybabtu.com>
5952 Implement USB keyboard support (based on patch by Marco Gerards)
5954 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5955 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5956 (usb_keyboard_mod_LDFLAGS): New variables.
5958 * term/usb_keyboard.c: New file.
5960 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5962 Corrected wrong declaration
5964 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5966 2009-02-14 Christian Franke <franke@computer.org>
5968 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5969 (grub_lspci_iter): Print class code and programming interface byte.
5971 2009-02-14 Christian Franke <franke@computer.org>
5973 * gendistlist.sh: Ignore `.svn' directories.
5975 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5977 * fs/fat.c: Add 2009 to Copyright line.
5979 2009-02-14 Christian Franke <franke@computer.org>
5981 * commands/hdparm.c: New file. Provides `hdparm' command
5982 which sends ATA commands via grub_disk_ata_pass_through ().
5984 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5986 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5987 and <grub/cpu/io.h> to include/grub/ata.h.
5988 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5989 (GRUB_CDROM_SECTOR_SIZE): Remove.
5990 (GRUB_ATA_*): Move to include/grub/ata.h.
5991 (GRUB_ATAPI_*): Likewise.
5992 (enum grub_ata_commands): Likewise.
5993 (enum grub_ata_timeout_milliseconds): Likewise.
5994 (struct grub_ata_device): Likewise.
5995 (grub_ata_regset): Likewise.
5996 (grub_ata_regget): Likewise.
5997 (grub_ata_regset2): Likewise.
5998 (grub_ata_regget2): Likewise.
5999 (grub_ata_check_ready): Likewise.
6000 (grub_ata_wait_not_busy): Remove static, exported in
6002 (grub_ata_wait_drq): Likewise.
6003 (grub_ata_pio_read): Likewise.
6005 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
6006 function for hdparm.mod.
6008 * include/grub/ata.h: New file, contains declarations from
6010 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
6012 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
6013 (grub_disk_ata_pass_through): New exported variable.
6015 * kern/disk.c (grub_disk_ata_pass_through): New variable.
6017 2009-02-13 Colin D Bennett <colin@gibibit.com>
6019 Support multiple fallback entries, and provide an API to support
6020 executing default+fallback menu entries. Renamed the `terminal' menu
6023 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
6024 variable declaration.
6025 (grub_menu_execute_callback): New structure declaration.
6026 (grub_menu_execute_callback_t): New typedef.
6027 (grub_menu_execute_with_fallback): New function declaration.
6028 (grub_menu_get_entry): Likewise.
6029 (grub_menu_get_timeout): Likewise.
6030 (grub_menu_set_timeout): Likewise.
6032 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
6034 * normal/menu.c (grub_wait_after_message): Moved to
6035 `normal/menu_text.c'.
6036 (draw_border): Likewise.
6037 (print_message): Likewise.
6038 (print_entry): Likewise.
6039 (print_entries): Likewise.
6040 (grub_menu_init_page): Likewise.
6041 (get_entry_number): Likewise.
6042 (print_timeout): Likewise.
6043 (run_menu): Likewise.
6044 (grub_menu_execute_entry): Likewise.
6045 (show_text_menu): Likewise.
6046 (get_and_remove_first_entry_number): New function.
6047 (grub_menu_execute_with_fallback): Likewise.
6048 (get_entry): Renamed to ...
6049 (grub_menu_get_entry): .. this and made it global.
6050 (get_timeout): Renamed to ...
6051 (grub_menu_get_timeout): ... this and made it global.
6052 (set_timeout): Renamed to ...
6053 (grub_menu_set_timeout): ... this and made it global.
6054 (grub_normal_terminal_menu_viewer): Renamed to ...
6055 (grub_normal_text_menu_viewer): ... this.
6057 * normal/menu_text.c: New file. Extracted text-menu-specific code
6060 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6061 (normal_mod_SOURCES): Likewise.
6063 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6064 (normal_mod_SOURCES): Likewise.
6066 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6067 (normal_mod_SOURCES): Likewise.
6069 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6070 (normal_mod_SOURCES): Likewise.
6072 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6073 (normal_mod_SOURCES): Likewise.
6075 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6076 (normal_mod_SOURCES): Likewise.
6078 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6079 (normal_mod_SOURCES): Likewise.
6081 2009-02-11 Robert Millan <rmh@aybabtu.com>
6083 * util/grub.d/00_header.in: Update old reference to `font' command.
6085 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6087 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6089 Based on patch from Javier MartÃn.
6091 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6093 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6094 to avoid false positives with FAT.
6095 (grub_fstest_SOURCES): Likewise.
6096 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6097 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6099 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6100 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6101 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6103 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6105 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6106 bpb.version_specific.fat12_or_fat16.fstype and
6107 bpb.version_specific.fat32.fstype.
6109 2009-02-08 Robert Millan <rmh@aybabtu.com>
6111 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6113 2009-02-08 Robert Millan <rmh@aybabtu.com>
6115 * Makefile.in (host_os, host_cpu): New variables.
6116 (target_os): Remove. Update all users.
6118 2009-02-08 Marco Gerards <marco@gnu.org>
6120 * Makefile.in (enable_grub_emu_usb): New variable.
6121 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6122 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6123 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6124 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6125 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6126 `usbtest.mod' and `usbms.mod'.
6127 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6128 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6129 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6130 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6131 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6134 * disk/usbms.c: New file.
6136 * include/grub/usb.h: Likewise.
6138 * include/grub/usbtrans.h: Likewise.
6140 * include/grub/usbdesc.h: Likewise.
6142 * bus/usb/usbtrans.c: Likewise.
6144 * bus/usb/ohci.c: Likewise.
6146 * bus/usb/uhci.c: Likewise.
6148 * bus/usb/usbhub.c: Likewise.
6150 * bus/usb/usb.c: Likewise.
6152 * commands/usbtest.c: Likewise.
6154 * util/usb.c: Likewise.
6156 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6158 * configure.ac: Test for libusb presence.
6160 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6162 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6164 * kern/mm.c: Add more comments.
6166 2009-02-08 Robert Millan <rmh@aybabtu.com>
6168 Patch from Javier MartÃn.
6169 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6170 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6172 2009-02-08 Robert Millan <rmh@aybabtu.com>
6174 * fs/cpio.c: Split tar functionality to ...
6175 * fs/tar.c: ... here (new file). Update all users.
6177 2009-02-07 Robert Millan <rmh@aybabtu.com>
6179 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6180 backward-incompatible features.
6182 Based on patch from Javier MartÃn, with some adjustments.
6184 2009-02-07 Michael Scherer <misc@mandriva.org>
6186 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6188 2009-02-07 Robert Millan <rmh@aybabtu.com>
6190 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6191 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6192 after the RAID stuff.
6194 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6196 Fixes problem when running vbetest command as reported by
6197 Vladimir Serbinenko <phcoder@gmail.com>.
6199 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6201 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6203 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6204 /dev/md/NpN style mdraid devices.
6206 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6208 * util/unifont2pff.rb: Remove.
6210 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6212 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6215 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6217 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6218 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6219 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6220 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6222 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6223 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6225 2009-02-02 Christian Franke <franke@computer.org>
6227 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6229 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6231 * INSTALL: Note that we now require at least autoconf 2.59 and
6232 that LZO is optional.
6234 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6236 Base on patch on bug #24154 created by Tomas Tintera
6239 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6241 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6243 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6244 <bero@arklinux.org>.
6246 * normal/parser.y (script_init): Add missing semicolon.
6248 2009-01-31 Colin D Bennett <colin@gibibit.com>
6250 * normal/main.c: Add include to grub/menu_viewer.h.
6251 (free_menu_entry_classes): Added.
6252 (grub_normal_menu_addentry): Added class property handling.
6253 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6254 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6256 * normal/menu_viewer.c: New file.
6258 * normal/menu.c (run_menu_entry): Renamed to ...
6259 (grub_menu_execute_entry): ... this and made it as global.
6260 (grub_menu_run): Renamed to ...
6261 (show_text_menu): ... this and made it local.
6262 (show_text_menu): Adapt to new function names.
6263 (grub_normal_terminal_menu_viewer): New global variable.
6265 * include/grub/menu.h: New file.
6267 * include/grub/menu_viewer.h: New file.
6269 * include/grub/normal.h: Added include to grub/menu.h.
6270 (grub_menu_entry): Moved to include/grub/menu.h.
6271 (grub_menu_entry_t): Likewise.
6272 (grub_menu): Likewise.
6273 (grub_menu_t): Likewise.
6274 (grub_normal_terminal_menu_viewer): Added.
6275 (grub_menu_execute_entry): Likewise.
6276 (grub_menu_run): Removed.
6278 * DISTLIST: Added include/grub/menu.h.
6279 Added include/grub/menu_viewer.h.
6280 Added normal/menu_viewer.c.
6282 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6284 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6285 arglist for menutitle arguments.
6287 * normal/main.c (grub_normal_menu_addentry): Likewise.
6289 * normal/parser.y (menuentry): Likewise.
6291 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6293 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6294 (grub_script_create_cmdmenu): Likewise.
6296 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6298 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6301 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6303 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6305 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6307 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6309 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6311 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6313 2009-01-30 Christian Franke <franke@computer.org>
6315 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6316 in option help text.
6318 2009-01-27 Pavel Roskin <proski@gnu.org>
6320 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6322 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6324 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6326 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6328 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6329 unregister function.
6331 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6333 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6335 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6337 * util/grub-mkfont.c (usage): Fix typo.
6339 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6341 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6343 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6345 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6347 * kern/misc.c (grub_strcasecmp): New function.
6348 (grub_strcasecmp): Use grub_size_t instead of int for length.
6350 * include/grub/misc.h: Update function prototypes.
6352 2009-01-26 Robert Millan <rmh@aybabtu.com>
6354 * configure.ac: Fix cross-compilation check.
6356 2009-01-22 Christian Franke <franke@computer.org>
6358 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6359 (precision) digit string. Allow `.format2' without `format1' (width).
6360 Limit input chars for `%s' output to `format2' if specified. This is
6361 compatible with standard printf ().
6363 2009-01-22 Christian Franke <franke@computer.org>
6365 * disk/ata.c (grub_ata_wait_status): Replace by ...
6366 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6367 other status bits may be invalid while BSY is asserted.
6368 (grub_ata_check_ready): New function.
6369 (grub_ata_cmd): Removed.
6370 (grub_ata_wait_drq): New function.
6371 (grub_ata_strncpy): Remove inline.
6372 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6373 and error check now done by grub_ata_wait_drq ().
6374 (grub_ata_pio_write): Likewise.
6375 (grub_atapi_identify): Set DEV before check for !BSY. Use
6376 grub_ata_wait_drq () to wait for data.
6377 (grub_ata_device_initialize): Add status register check to
6378 detect missing SATA slave devices. Add debug messages.
6379 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6380 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6381 transfer loop by grub_ata_pio_write ().
6382 (grub_ata_identify): Set DEV before check for !BSY. Use
6383 grub_ata_wait_drq () to wait for data.
6384 (grub_ata_setaddress): Set DEV before check for !BSY.
6385 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6386 read/write in one loop. Fix invalid command on write. Fix incomplete
6387 command on (size % batch) == 0. Add missing error check after write of
6388 last block. Add debug messages.
6389 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6391 2009-01-19 Christian Franke <franke@computer.org>
6393 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6394 (GRUB_ATAPI_IREASON_*): Likewise.
6395 (grub_ata_pio_write): Fix timeout error return.
6396 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6397 (grub_atapi_wait_drq): New function.
6398 (grub_atapi_packet): New parameter `size'.
6399 Use grub_atapi_wait_drq () and direct write instead of
6400 grub_ata_pio_write ().
6401 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6402 reads the number of bytes requested by the device for each DRQ
6404 (grub_atapi_write): Remove old implementation, return not
6405 implemented instead.
6407 2009-01-19 Christian Franke <franke@computer.org>
6409 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6410 of 512 to calculate data size.
6411 (grub_scsi_read12): Likewise.
6412 (grub_scsi_write10): Likewise.
6413 (grub_scsi_write12): Likewise.
6414 (grub_scsi_read): Adjust size according to blocksize.
6415 Add checks for invalid blocksize and unaligned transfer.
6417 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6419 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6421 * term/gfxterm.c (write_char): Fix background rendering for wide
6424 2009-01-19 Robert Millan <rmh@aybabtu.com>
6426 * config.guess: Update to latest version from config git.
6427 * config.sub: Likewise.
6429 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6431 * Makefile.in: Change font compilation to use new grub-mkfont instead
6434 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6435 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6436 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6437 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6438 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6439 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6440 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6441 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6442 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6444 2009-01-16 Christian Franke <franke@computer.org>
6446 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6447 (enum grub_ata_timeout_milliseconds): New enum.
6448 (grub_ata_wait_status): Add parameter milliseconds.
6449 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6450 recovery from timed-out commands.
6451 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6452 return grub_errno instead of REG_ERROR.
6453 (grub_ata_pio_write): Add parameter milliseconds.
6454 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6455 Pass milliseconds to grub_ata_wait_status () and
6456 grub_ata_pio_read ().
6457 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6458 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6459 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6460 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6461 It is not suitable for device detection, because DEV bit is ignored,
6462 the command may run too long, and not all devices set the signature
6464 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6465 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6466 Fix device selection, DEV bit must be set first to address the registers
6467 of the correct device.
6468 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6469 grub_ata_pio_read/write ().
6470 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6471 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6473 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6475 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6477 2009-01-13 Bean <bean123ch@gmail.com>
6479 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6481 2009-01-13 Bean <bean123ch@gmail.com>
6483 * Makefile.in: (enable_grub_mkfont): New variable.
6484 (freetype_cflags): Likewise.
6485 (freetype_libs): Likewise.
6487 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6488 (grub_mkfont_SOURCES): New variable.
6489 (grub_mkfont_CFLAGS): Likewise.
6490 (grub_mkfont_LDFLAGS): Likewise.
6492 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6493 library if `--enable-grub-mkfont' is requested.
6494 (enable_grub_mkfont): New variable.
6495 (freetype_cflags): Likewise.
6496 (freetype_libs): Likewise.
6498 * util/grub-mkfont.c: New file.
6500 2009-01-12 Christian Franke <franke@computer.org>
6502 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6503 mode check. Fix setting of compat_use[].
6505 2009-01-10 Robert Millan <rmh@aybabtu.com>
6507 Update a few copyright years which we forgot to do in 2008 (only for
6508 files whose changes made in 2008 were copyright-significant)
6510 * Makefile.in: Add 2008 to Copyright line.
6511 * disk/ieee1275/ofdisk.c: Likewise.
6512 * disk/efi/efidisk.c: Likewise.
6513 * kern/dl.c: Likewise.
6514 * kern/sparc64/ieee1275/init.c: Likewise.
6515 * kern/mm.c: Likewise.
6516 * kern/efi/mm.c: Likewise.
6517 * boot/i386/pc/boot.S: Likewise.
6518 * genfslist.sh: Likewise.
6519 * fs/iso9660.c: Likewise.
6520 * fs/hfs.c: Likewise.
6521 * fs/jfs.c: Likewise.
6522 * fs/minix.c: Likewise.
6523 * fs/ufs.c: Likewise.
6524 * gensymlist.sh.in: Likewise.
6525 * genkernsyms.sh.in: Likewise.
6526 * include/grub/misc.h: Likewise.
6527 * include/grub/types.h: Likewise.
6528 * include/grub/symbol.h: Likewise.
6529 * include/grub/elf.h: Likewise.
6530 * include/grub/kernel.h: Likewise.
6531 * include/grub/disk.h: Likewise.
6532 * include/grub/dl.h: Likewise.
6533 * include/grub/i386/linux.h: Likewise.
6534 * include/grub/i386/pc/biosdisk.h: Likewise.
6535 * include/grub/efi/api.h: Likewise.
6536 * include/grub/efi/pe32.h: Likewise.
6537 * include/grub/util/misc.h: Likewise.
6538 * normal/execute.c: Likewise.
6539 * normal/arg.c: Likewise.
6540 * normal/completion.c: Likewise.
6541 * normal/lexer.c: Likewise.
6542 * normal/parser.y: Likewise.
6543 * normal/misc.c: Likewise.
6544 * commands/i386/pc/vbeinfo.c: Likewise.
6545 * commands/hexdump.c: Likewise.
6546 * commands/terminal.c: Likewise.
6547 * commands/ls.c: Likewise.
6548 * commands/help.c: Likewise.
6549 * partmap/pc.c: Likewise.
6550 * loader/efi/chainloader.c: Likewise.
6551 * loader/multiboot_loader.c: Likewise.
6552 * loader/i386/pc/multiboot2.c: Likewise.
6553 * term/efi/console.c: Likewise.
6554 * term/i386/pc/serial.c: Likewise.
6555 * util/lvm.c: Likewise.
6556 * util/console.c: Likewise.
6557 * util/i386/efi/grub-mkimage.c: Likewise.
6558 * util/raid.c: Likewise.
6560 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6562 * commands/videotest.c: Removed include to grub/machine/memory.h.
6564 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6565 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6566 (video_mod_SOURCES): Removed.
6567 (video_mod_CFLAGS): Likewise.
6568 (video_mod_LDFLAGS): Likewise.
6569 (gfxterm_mod_SOURCES): Likewise.
6570 (gfxterm_mod_CFLAGS): Likewise.
6571 (gfxterm_mod_LDFLAGS): Likewise.
6572 (videotest_mod_SOURCES): Likewise.
6573 (videotest_mod_CFLAGS): Likewise.
6574 (videotest_mod_LDFLAGS): Likewise.
6575 (bitmap_mod_SOURCES): Likewise.
6576 (bitmap_mod_CFLAGS): Likewise.
6577 (bitmap_mod_LDFLAGS): Likewise.
6578 (tga_mod_SOURCES): Likewise.
6579 (tga_mod_CFLAGS): Likewise.
6580 (tga_mod_LDFLAGS): Likewise.
6581 (jpeg_mod_SOURCES): Likewise.
6582 (jpeg_mod_CFLAGS): Likewise.
6583 (jpeg_mod_LDFLAGS): Likewise.
6584 (png_mod_SOURCES): Likewise.
6585 (png_mod_CFLAGS): Likewise.
6586 (png_mod_LDFLAGS): Likewise.
6588 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6589 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6590 (video_mod_SOURCES): Added.
6591 (video_mod_CFLAGS): Likewise.
6592 (video_mod_LDFLAGS): Likewise.
6593 (videotest_mod_SOURCES): Likewise.
6594 (videotest_mod_CFLAGS): Likewise.
6595 (videotest_mod_LDFLAGS): Likewise.
6596 (bitmap_mod_SOURCES): Likewise.
6597 (bitmap_mod_CFLAGS): Likewise.
6598 (bitmap_mod_LDFLAGS): Likewise.
6599 (tga_mod_SOURCES): Likewise.
6600 (tga_mod_CFLAGS): Likewise.
6601 (tga_mod_LDFLAGS): Likewise.
6602 (jpeg_mod_SOURCES): Likewise.
6603 (jpeg_mod_CFLAGS): Likewise.
6604 (jpeg_mod_LDFLAGS): Likewise.
6605 (png_mod_SOURCES): Likewise.
6606 (png_mod_CFLAGS): Likewise.
6607 (png_mod_LDFLAGS): Likewise.
6608 (gfxterm_mod_SOURCES): Likewise.
6609 (gfxterm_mod_CFLAGS): Likewise.
6610 (gfxterm_mod_LDFLAGS): Likewise.
6612 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6613 grub/machine/console.h.
6615 2009-01-04 Jerone Young <jerone@gmail.com>
6617 Make on screen instructions clearer
6619 Based on patch created by Jidanni <jidanni@jidanni.org>
6621 * normal/menu.c: print clearer instructions on the screen
6623 2009-01-02 Colin D Bennett <colin@gibibit.com>
6627 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6628 build system and fixed gfxterm.c to work with different sized fonts.
6630 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6632 * configure: Re-generated.
6634 * DISTLIST: Removed font/manager.c.
6636 Added font/font_cmd.c.
6638 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6641 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6643 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6645 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6647 * normal/menu.c: Likewise.
6649 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6650 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6652 * include/grub/font.h: Replaced with new file.
6654 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6655 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6656 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6657 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6658 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6659 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6660 fg_red, fg_green, fg_blue, fg_alpha.
6661 (grub_video_adapter): Removed blit_glyph.
6662 (grub_video_blit_glyph): Removed.
6664 * font/manager.c: Removed file.
6666 * font/font.c: New file.
6668 * font/font_cmd.c: Likewise.
6670 * video/video.c (grub_video_blit_glyph): Removed.
6672 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6673 (grub_video_vbe_map_rgba): Likewise.
6674 (grub_video_vbe_unmap_color_int): Likewise.
6675 (grub_video_vbe_blit_glyph): Removed.
6676 (grub_video_vbe_adapter): Removed blit_glyph.
6678 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6679 (get_pixel): Likewise.
6680 (set_pixel): Likewise.
6682 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6684 * term/gfxterm.c: Adapted to new font engine.
6686 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6688 * term/i386/pc/vga.c: Likewise.
6690 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6692 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6694 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6696 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6698 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6700 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6702 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6704 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6706 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6708 * util/grub.d/00_header.in: Changed to use new loadfont command.
6710 * util/grub-mkconfig_lib.in: Changed font extension.
6712 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6714 * util/getroot.c (grub_util_get_grub_dev): Add support for
6715 /dev/md/dNNpNN style partitionable mdraid devices.
6717 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6719 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6720 at a time limit of the PXE TFTP API correctly.
6721 (grub_pxefs_close): Likewise.
6723 2008-11-29 Robert Millan <rmh@aybabtu.com>
6725 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6726 grub_ata_device_initialize() calls.
6728 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6730 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6732 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6734 2008-11-28 Robert Millan <rmh@aybabtu.com>
6736 Fix build on powerpc-ieee1275. Based on patch created by
6737 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6738 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6739 `kern/ieee1275/mmap.c'.
6740 * include/grub/powerpc/ieee1275/memory.h: New file.
6742 Provide grub-install on coreboot.
6743 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6744 (grub_install_SOURCES): New variable.
6745 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6748 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6750 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6751 to `grub_term_input_t'.
6752 (grub_term_get_current_output): Change return type to
6753 `grub_term_output_t'.
6755 2008-11-22 Robert Millan <rmh@aybabtu.com>
6757 Fix breakage on coreboot due to declaration mismatch.
6758 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6759 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6760 grub_vga_text_cls().
6762 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6763 comments. Avoid copying one more byte than necessary (just in case).
6765 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6766 to 0x200000 (avoids trouble with some OFW implementations, and matches
6767 with the one in Yaboot).
6768 Reported by Manoel Abranches
6770 2008-11-20 Robert Millan <rmh@aybabtu.com>
6772 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6773 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6775 * util/grub-mkconfig_lib.in (grub_warn): New function.
6776 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6777 warnings, to obtain consistent formatting.
6778 * util/grub.d/00_header.in: Likewise.
6779 * util/update-grub_lib.in: Likewise.
6781 * loader/i386/linux.c (allocate_pages): Fix a warning.
6782 Move comment text to `#error' stanza.
6784 Harmonize ieee1275's grub_available_iterate() with the generic
6785 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6786 build problem on i386-ieee1275):
6787 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6788 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6789 parameter `type'. Update all users of this function.
6790 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6791 `kern/ieee1275/mmap.c'.
6792 * kern/ieee1275/init.c
6793 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6795 (grub_machine_mmap_iterate): ... this.
6796 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6797 return type to `grub_err_t'. Update all implementations of this
6799 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6802 Add `lsmmap' command (lists firmware-provided memory map):
6803 * commands/lsmmap.c: New file.
6804 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6805 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6807 * conf/powerpc-ieee1275.rmk: Likewise.
6808 * conf/i386-coreboot.rmk: Likewise.
6809 * conf/i386-ieee1275.rmk: Likewise.
6811 2008-11-19 Robert Millan <rmh@aybabtu.com>
6813 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6814 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6815 constraints to initrd allocation (based on code from
6816 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6817 for Linux to find it.
6819 2008-11-14 Robert Millan <rmh@aybabtu.com>
6821 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6822 order to cope with duplicate slashes.
6824 2008-11-14 Robert Millan <rmh@aybabtu.com>
6826 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6827 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6828 don't want to mess with lower memory, because it is used in the Linux
6831 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6832 an appropriate place in lower memory, between 0x10000 and 0x90000,
6833 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6834 is in our heap (probably as a result of it being corrupted during
6835 decompression). Add #error instance with comment to explain why this
6836 loader isn't currently usable on PC/BIOS.
6838 2008-11-14 Robert Millan <rmh@aybabtu.com>
6840 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6841 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6843 2008-11-12 Robert Millan <rmh@aybabtu.com>
6845 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6847 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6848 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6850 * include/grub/i386/pc/memory.h: ... to here.
6852 2008-11-12 Robert Millan <rmh@aybabtu.com>
6854 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6857 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6858 (grub_console_cur_color, grub_console_real_putchar)
6859 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6860 (grub_console_setcolorstate, grub_console_setcolor)
6861 (grub_console_getcolor): Move from here ...
6862 * include/grub/i386/vga_common.h: ... to here (new file).
6864 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6865 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6867 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6868 `<grub/i386/vga_common.h>'.
6870 2008-11-12 Robert Millan <rmh@aybabtu.com>
6872 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6873 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6874 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6876 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6877 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6879 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6880 grub_console_init() with call to grub_vga_text_init().
6881 (grub_machine_fini): Replace call to
6882 grub_console_fini() with call to grub_vga_text_fini() and
6883 grub_at_keyboard_fini().
6885 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6886 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6887 (grub_console_setcolorstate, grub_console_setcolor)
6888 (grub_console_getcolor): New function prototypes.
6890 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6891 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6892 (grub_vga_text_setcursor): Static-ize.
6893 (grub_vga_text_term): New structure.
6894 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6896 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6897 (grub_console_cur_color, grub_console_standard_color)
6898 (grub_console_normal_color, grub_console_highlight_color)
6899 (map_char, grub_console_putchar, grub_console_getcharwidth)
6900 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6901 (grub_console_getcolor): Move from here ...
6902 * term/i386/vga_common.c: ... to here (same function names).
6904 2008-11-12 Robert Millan <rmh@aybabtu.com>
6906 Use newly-added Multiboot support in coreboot.
6908 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6909 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6911 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6912 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6913 (codestart): Store the MBI in `startup_multiboot_info' when we're
6914 being loaded using Multiboot.
6916 * kern/i386/coreboot/init.c (grub_machine_init): Move
6917 grub_at_keyboard_init() call to beginning of function (useful for
6918 debugging). Call grub_machine_mmap_init() before attempting to use
6919 grub_machine_mmap_iterate().
6920 (grub_lower_mem, grub_upper_mem): Move from here ...
6921 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6924 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6927 2008-11-12 Robert Millan <rmh@aybabtu.com>
6929 Fix a regression introduced by the at_keyboard.mod split. Because
6930 some terminals are default on some platforms and non-default on
6931 others, the first terminal being registered determines which is
6932 going to be default.
6934 * kern/term.c (grub_term_register_input): If this is the first
6935 terminal being registered, set it as the current one.
6936 (grub_term_register_output): Likewise.
6938 * term/efi/console.c (grub_console_init): Do not call
6939 grub_term_set_current_output() or grub_term_set_current_input().
6940 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6941 * term/i386/pc/console.c (grub_console_init): Likewise.
6942 (grub_console_fini): Do not call grub_term_set_current_input()
6943 (but leave grub_term_set_current_output() to restore text mode).
6945 2008-11-10 Robert Millan <rmh@aybabtu.com>
6947 * util/grub.d/00_header.in: Add backward compatibility check for
6948 versions of terminal.mod that don't understand `terminal_input' or
6951 2008-11-09 Robert Millan <rmh@aybabtu.com>
6953 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6954 `terminal_input' / `terminal_output', not `terminal'.
6956 2008-11-08 Robert Millan <rmh@aybabtu.com>
6958 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6959 (DISTCLEANFILES): Add `build_env.mk'.
6961 2008-11-08 Robert Millan <rmh@aybabtu.com>
6963 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6964 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6965 members. Update all users.
6966 * util/console.c (grub_ncurses_term): Split in ...
6967 (grub_ncurses_term_input): ... this, and ...
6968 (grub_ncurses_term_output): ... this. Update all users.
6969 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6971 2008-11-08 Robert Millan <rmh@aybabtu.com>
6973 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6974 (PKGDATA): Add $(pkgdata_SRCDIR).
6975 (pkglib_BUILDDIR): New variable.
6976 (pkgdata_SRCDIR): New variable.
6977 (build_env.mk): New target.
6978 (include_DATA): New variable.
6979 (install-local): Install $(include_DATA) files in $(includedir).
6981 2008-11-07 Pavel Roskin <proski@gnu.org>
6983 * gendistlist.sh: Use C locale for sorting to ensure consistent
6984 output on all systems.
6986 * util/grub.d/00_header.in: Remove incorrect space before
6989 2008-11-07 Robert Millan <rmh@aybabtu.com>
6991 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
6993 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
6994 * loader/multiboot_loader.c (find_multi_boot2_header): New function
6995 (based on find_multi_boot1_header).
6996 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
6997 using find_multi_boot2_header(), and abort if neither Multiboot or
6998 Multiboot headers were found.
7000 2008-11-07 Robert Millan <rmh@aybabtu.com>
7002 Modularize at_keyboard.mod:
7004 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
7005 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
7006 (at_keyboard_mod_LDFLAGS): New variables.
7008 Actual terminal split:
7010 * include/grub/term.h (struct grub_term): Split in ...
7011 (struct grub_term_input): ... this, and ...
7012 (struct grub_term_output): ... this. Update all users.
7013 (grub_term_set_current): Split in ...
7014 (grub_term_set_current_input): ... this, and ...
7015 (grub_term_set_current_output): ... this.
7016 (grub_term_get_current): Split in ...
7017 (grub_term_get_current_input): ... this, and ...
7018 (grub_term_get_current_output): ... this.
7019 (grub_term_register): Split in ...
7020 (grub_term_register_input): ... this, and ...
7021 (grub_term_register_output): ... this.
7022 (grub_term_unregister): Split in ...
7023 (grub_term_unregister_input): ... this, and ...
7024 (grub_term_unregister_output): ... this.
7025 (grub_term_iterate): Split in ...
7026 (grub_term_iterate_input): ... this, and ...
7027 (grub_term_iterate_output): ... this.
7029 * kern/term.c (grub_term_list): Split in ...
7030 (grub_term_list_input): ... this, and ...
7031 (grub_term_list_output): ... this. Update all users.
7032 (grub_cur_term): Split in ...
7033 (grub_cur_term_input): ... this, and ...
7034 (grub_cur_term_output): ... this. Update all users.
7035 (grub_term_set_current): Split in ...
7036 (grub_term_set_current_input): ... this, and ...
7037 (grub_term_set_current_output): ... this.
7038 (grub_term_get_current): Split in ...
7039 (grub_term_get_current_input): ... this, and ...
7040 (grub_term_get_current_output): ... this.
7041 (grub_term_register): Split in ...
7042 (grub_term_register_input): ... this, and ...
7043 (grub_term_register_output): ... this.
7044 (grub_term_unregister): Split in ...
7045 (grub_term_unregister_input): ... this, and ...
7046 (grub_term_unregister_output): ... this.
7047 (grub_term_iterate): Split in ...
7048 (grub_term_iterate_input): ... this, and ...
7049 (grub_term_iterate_output): ... this.
7051 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7052 a check for input and one for output (and only attempt to get keys
7053 from user when input works).
7055 * util/grub-probe.c (grub_term_get_current): Split in ...
7056 (grub_term_get_current_input): ... this, and ...
7057 (grub_term_get_current_output): ... this.
7058 * util/grub-fstest.c: Likewise.
7059 * util/i386/pc/grub-setup.c: Likewise.
7060 * util/grub-editenv.c: Likewise.
7062 Portability adjustments:
7064 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7065 `term/i386/pc/at_keyboard.c'.
7066 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7067 grub_keyboard_controller_init() (now handled by terminal .init).
7068 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7069 grub_at_keyboard_init().
7070 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7071 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7072 at_keyboard.mod via input terminal interface).
7073 * include/grub/i386/coreboot/console.h: Convert into a stub for
7074 `<grub/i386/pc/console.h>'.
7076 Migrate full terminals to new API:
7078 * term/efi/console.c (grub_console_term): Split into ...
7079 (grub_console_term_input): ... this, and ...
7080 (grub_console_term_output): ... this. Update all users.
7081 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7082 (grub_ofconsole_init): Split into ...
7083 (grub_ofconsole_init_input): ... this, and ...
7084 (grub_ofconsole_init_output): ... this.
7085 (grub_ofconsole_term): Split into ...
7086 (grub_ofconsole_term_input): ... this, and ...
7087 (grub_ofconsole_term_output): ... this. Update all users.
7088 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7089 (grub_serial_term_input): ... this, and ...
7090 (grub_serial_term_output): ... this. Update all users.
7091 * term/i386/pc/console.c (grub_console_term): Split into ...
7092 (grub_console_term_input): ... this, and ...
7093 (grub_console_term_output): ... this. Update all users.
7094 (grub_console_term_input): Only enable it on PC/BIOS platform.
7095 (grub_console_init): Remove grub_keyboard_controller_init() call.
7097 Migrate input terminals to new API:
7099 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7100 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7101 i386-specific anyway).
7102 (grub_console_checkkey): Rename to ...
7103 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7105 (grub_keyboard_controller_orig): New variable.
7106 (grub_console_getkey): Rename to ...
7107 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7109 (grub_keyboard_controller_init): Static-ize. Save original
7110 controller value so that it can be restored ...
7111 (grub_keyboard_controller_fini): ... here (new function).
7112 (grub_at_keyboard_term): New structure.
7113 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7116 Migrate output terminals to new API:
7118 * term/i386/pc/vga.c (grub_vga_term): Change type to
7119 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7120 members. Update all users.
7121 * term/gfxterm.c (grub_video_term): Change type to
7122 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7123 members. Update all users.
7124 * include/grub/i386/pc/console.h (grub_console_checkkey)
7125 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7128 Migrate `terminal' command and userland tools to new API:
7130 * commands/terminal.c (grub_cmd_terminal): Split into ...
7131 (grub_cmd_terminal_input): ... this, and ...
7132 (grub_cmd_terminal_output): ... this.
7133 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7134 `terminal_input' and `terminal_output'.
7135 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7136 `terminal_input' / `terminal_output' API.
7137 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7138 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7139 provided ${GRUB_TERMINAL}, convert it).
7141 2008-11-04 Robert Millan <rmh@aybabtu.com>
7143 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7145 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7147 2008-11-03 Bean <bean123ch@gmail.com>
7149 * kern/elf.c (grub_elf32_load): Revert to previous code.
7150 (grub_elf64_load): Likewise.
7152 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7154 2008-11-01 Robert Millan <rmh@aybabtu.com>
7156 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7157 (TARGET_CPPFLAGS): Likewise.
7158 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7160 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7162 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7164 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7166 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7167 addition of objects until the code is not going to be able to fail.
7169 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7171 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7172 (add a missing NULL check, and correct them by moving the pointer
7173 operations after the actual check).
7175 2008-10-29 Robert Millan <rmh@aybabtu.com>
7177 * util/i386/pc/grub-install.in: Handle empty string as output from
7178 make_system_path_relative_to_its_root().
7180 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7182 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7183 circular metadata worst case scenario. If the metadata is circular
7184 then copy the wrap in place.
7185 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7186 project lib/format_text/layout.h
7187 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7189 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7191 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7193 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7195 * util/update-grub_lib.in: Mention filename in warning message.
7197 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7199 * NEWS: Update for rename of update-grub to grub-mkconfig.
7201 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7203 * util/update-grub_lib.in: Copy to ...
7204 * util/grub-mkconfig_lib.in: ... this. Update all users.
7205 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7206 * util/update-grub.in: Rename to ...
7207 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7208 option. Add `--output' option to allow users to specify the generated
7209 configuration file. Default to stdout.
7210 (update_grub_dir): Rename to ...
7211 (grub_mkconfig_dir): ... this.
7212 (grub_cfg): Default to an empty string.
7213 * conf/common.rmk (update-grub): Rename to ...
7214 (grub-mkconfig): ... this.
7215 (update-grub_lib): Copy to ...
7216 (grub-mkconfig_lib): ... this.
7217 (update-grub_SCRIPTS): Copy to ...
7218 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7219 (update-grub_DATA): Rename to ...
7220 (grub-mkconfig_DATA): ... this.
7222 2008-09-28 Robert Millan <rmh@aybabtu.com>
7224 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7225 to `modified'. Add the real `created' field.
7226 (grub_iso9660_uuid): Use `modified' rather than `created' for
7227 constructing the UUID.
7229 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7231 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7232 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7234 2008-09-28 Bean <bean123ch@gmail.com>
7236 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7237 Thanks to Christian Franke for finding this bug.
7239 2008-09-25 Robert Millan <rmh@aybabtu.com>
7241 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7242 instances of grub_util_get_disk_name() (see previous commit).
7244 2008-09-25 Robert Millan <rmh@aybabtu.com>
7246 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7247 `util/i386/get_disk_name.c'.
7248 * conf/i386-efi.rmk: Likewise.
7249 * conf/x86_64-efi.rmk: Likewise.
7250 * conf/i386-coreboot.rmk: Likewise.
7251 * conf/i386-ieee1275.rmk: Likewise.
7252 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7253 `util/ieee1275/get_disk_name.c'.
7254 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7255 * util/ieee1275/get_disk_name.c: Remove file.
7256 * util/i386/get_disk_name.c: Remove file.
7257 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7258 "hd%d" for device.map entries, rather than using
7259 grub_util_get_disk_name().
7261 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7263 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7265 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7267 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7269 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7271 (GRUB_TERM_PPAGE): Changed to 0x4900.
7273 2008-09-24 Robert Millan <rmh@aybabtu.com>
7275 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7276 macros (they were i386-pc specific).
7277 * include/grub/sparc64/ieee1275/console.h: Likewise.
7278 * include/grub/efi/console.h: Likewise.
7280 2008-09-22 Bean <bean123ch@gmail.com>
7282 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7283 resident and in attribute list.
7285 * include/grub/ntfs.h (BMP_LEN): Removed.
7287 2008-09-22 Bean <bean123ch@gmail.com>
7289 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7290 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7292 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7293 error occurs, as grub_disk_open will call grub_disk_close, which will
7294 call p->close (scsi).
7296 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7298 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7299 (AC_PREREQ): Bumped to 2.59.
7300 (AC_TRY_COMPILE): Replace obsolete macro with ...
7301 (AC_COMPILE_IFELSE): ... this.
7302 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7303 (AC_LINK_IFELSE): ... this.
7305 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7307 * autogen.sh: Add a call to `gendistlist.sh'.
7309 2008-09-19 Christian Franke <franke@computer.org>
7311 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7312 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7313 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7314 Export __enable_execute_stack() to modules.
7315 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7318 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7320 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7323 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7325 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7326 #include <grub/util/hostdisk.h>.
7328 2008-09-08 Robert Millan <rmh@aybabtu.com>
7330 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7331 segments when their filesz is zero (grub_file_read() interprets
7332 zero-size as "read until EOF", which results in memory corruption).
7333 Use `lowest_segment' rather than 0 for calculating the current
7334 segment load address.
7336 2008-09-08 Robert Millan <rmh@aybabtu.com>
7338 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7339 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7340 clobbered useful information.
7342 2008-09-08 Robert Millan <rmh@aybabtu.com>
7344 * include/grub/util/biosdisk.h: Move to ...
7345 * include/grub/util/hostdisk.h: ... here. Update all users.
7346 * util/biosdisk.c: Move to ...
7347 * util/hostdisk.c: ... here. Update all users.
7349 2008-09-07 Robert Millan <rmh@aybabtu.com>
7351 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7353 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7354 and length can be stored directly in the `mbi->mmap_addr' and
7355 `mbi->mmap_length' struct fields.
7357 2008-09-07 Robert Millan <rmh@aybabtu.com>
7359 * conf/i386.rmk: New file. Provides declaration for building
7361 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7362 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7364 Include `conf/i386.mk'.
7365 * conf/i386-efi.rmk: Likewise.
7366 * conf/x86_64-efi.rmk: Likewise.
7367 * conf/i386-coreboot.rmk: Likewise.
7368 * conf/i386-ieee1275.rmk: Likewise.
7370 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7372 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7373 Adds optimization support for BGR based modes.
7375 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7376 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7377 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7378 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7379 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7380 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7381 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7382 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7383 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7384 (grub_video_i386_vbeblit_index_index): Likewise.
7385 (grub_video_i386_vbeblit_replace_directN): Added.
7386 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7387 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7388 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7389 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7390 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7391 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7392 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7393 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7394 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7395 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7396 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7397 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7398 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7400 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7401 (grub_video_i386_vbefill_R8G8B8): Likewise.
7402 (grub_video_i386_vbefill_index): Likewise.
7403 (grub_video_i386_vbefill_direct32): Added.
7404 (grub_video_i386_vbefill_direct24): Likewise.
7405 (grub_video_i386_vbefill_direct16): Likewise.
7406 (grub_video_i386_vbefill_direct8): Likewise.
7408 * include/grub/video.h (grub_video_blit_format): Removed
7409 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7410 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7411 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7412 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7413 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7415 * video/video.c (grub_video_get_blit_format): Updated to use new
7416 blit formats. Added handling for 16 bit color modes.
7418 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7420 (common_blitter): Updated to use new blitters.
7422 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7424 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7425 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7426 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7427 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7428 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7429 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7430 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7431 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7432 (grub_video_i386_vbeblit_index_index): Likewise.
7433 (grub_video_i386_vbeblit_replace_directN): Added.
7434 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7435 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7436 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7437 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7438 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7439 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7440 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7441 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7442 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7443 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7444 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7445 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7446 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7448 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7449 (grub_video_i386_vbefill_R8G8B8): Likewise.
7450 (grub_video_i386_vbefill_index): Likewise.
7451 (grub_video_i386_vbefill_direct32): Added.
7452 (grub_video_i386_vbefill_direct24): Likewise.
7453 (grub_video_i386_vbefill_direct16): Likewise.
7454 (grub_video_i386_vbefill_direct8): Likewise.
7456 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7459 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7462 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7465 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7468 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7470 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7473 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7475 * fs/iso9660.c (grub_iso9660_date): New structure.
7476 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7477 (grub_iso9660_uuid): New function.
7479 2008-09-05 Bean <bean123ch@gmail.com>
7481 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7483 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7484 insensitive bit for names in Win32 and Win32 & DOS namespace.
7486 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7488 * include/grub/types.h (LONG_MAX): Likewise.
7490 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7492 * util/getroot.c: Include <config.h>.
7493 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7494 add support for /dev/md/N devices and handle LVM double dash escaping.
7496 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7498 * config.guess: Update to latest version from config git.
7499 * config.sub: Likewise.
7501 2008-09-03 Robert Millan <rmh@aybabtu.com>
7503 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7504 `disk->total_sectors'.
7506 2008-09-01 Colin D Bennett <colin@gibibit.com>
7508 * include/grub/normal.h: Fixed incorrect comment for
7509 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7511 2008-09-01 Colin D Bennett <colin@gibibit.com>
7513 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7514 values with defines.
7516 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7517 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7518 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7519 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7520 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7521 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7522 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7523 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7524 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7525 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7526 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7527 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7528 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7529 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7530 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7531 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7532 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7533 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7534 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7536 2008-08-31 Robert Millan <rmh@aybabtu.com>
7538 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7540 (grub_multiboot): Fix a few warnings.
7542 2008-08-31 Robert Millan <rmh@aybabtu.com>
7544 * loader/i386/pc/multiboot.c: Update comment not to say that
7545 boot_device support is unimplemented.
7547 2008-08-31 Robert Millan <rmh@aybabtu.com>
7549 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7550 or memory map support are unimplemented.
7552 2008-08-31 Colin D Bennett <colin@gibibit.com>
7554 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7556 2008-08-31 Colin D Bennett <colin@gibibit.com>
7558 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7559 total video memory in 'vbeinfo' output; show color format details for
7562 2008-08-30 Pavel Roskin <proski@gnu.org>
7564 * util/genmoddep.c: Remove for real this time.
7565 * DISTLIST: Remove util/genmoddep.c.
7567 2008-08-30 Robert Millan <rmh@aybabtu.com>
7569 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7570 as required by Multiboot spec (it was already 4-byte aligned, but
7573 2008-08-29 Pavel Roskin <proski@gnu.org>
7575 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7576 * kern/powerpc/ieee1275/startup.S: ... this.
7577 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7578 * DISTLIST: Likewise.
7580 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7581 grub/cpu/kernel.h. Add start label for consistency with other
7582 platforms. Add grub_prefix immediately after start. Add jump
7583 to the code after grub_prefix.
7584 * include/grub/powerpc/kernel.h: Provide valid values for
7585 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7587 2008-08-29 Bean <bean123ch@gmail.com>
7589 * configure.ac: Change host_os to cygwin for mingw.
7590 (asprintf): New check for function.
7592 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7593 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7595 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7596 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7597 sync, sleep and grub_util_get_disk_size for mingw.
7599 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7600 to get size in mingw.
7601 (open_device): Use flag O_BINARY if it's defined.
7602 (find_root_device): Add dummy code for mingw.
7604 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7605 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7606 (get_scsi_disk_name): Return 0 for mingw.
7608 * util/hostfs.c: #include <grub/util/misc.h>.
7609 (grub_hostfs_open): Use "rb" flag to open file, use
7610 grub_util_get_disk_size to get disk size for mingw.
7612 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7613 (asprintf): New function if HAVE_ASPRINTF is not set.
7614 (sync): New function for mingw.
7616 (grub_util_get_disk_size): Likewise.
7618 2008-08-28 Pavel Roskin <proski@gnu.org>
7620 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7623 2008-08-28 Robert Millan <rmh@aybabtu.com>
7625 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7627 2008-08-28 Robert Millan <rmh@aybabtu.com>
7629 Change find_grub_drive() syntax so it doesn't prevent it from
7630 detecting NULL names as errors.
7632 * util/biosdisk.c (find_grub_drive): Move free slot search code
7634 (find_free_slot): ... to here.
7635 (read_device_map): Use find_free_slot() to search for free slots.
7637 2008-08-27 Marco Gerards <marco@gnu.org>
7639 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7640 (scsi_mod_SOURCES): New variable.
7641 (scsi_mod_CFLAGS): Likewise
7642 (scsi_mod_LDFLAGS): Likewise.
7644 * disk/scsi.c: New file.
7646 * include/grub/scsi.h: Likewise.
7648 * include/grub/scsicmd.h: Likewise.
7650 * disk/ata.c: Include <grub/scsi.h>.
7651 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7653 (grub_ata_iterate): Skip ATAPI devices.
7654 (grub_ata_open): Only handle ATAPI devices.
7655 (struct grub_atapi_read): Removed.
7656 (grub_atapi_readsector): Likewise.
7657 (grub_ata_read): No longer handle ATAPI devices.
7658 (grub_ata_write): Likewise.
7659 (grub_atapi_iterate): New function.
7660 (grub_atapi_read): Likewise.
7661 (grub_atapi_write): Likewise.
7662 (grub_atapi_open): Likewise.
7663 (grub_atapi_close): Likewise.
7664 (grub_atapi_dev): New variable.
7665 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7666 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7668 * include/grub/disk.h (enum grub_disk_dev_id): Add
7669 `GRUB_DISK_DEVICE_SCSI_ID'.
7671 2008-08-26 Robert Millan <rmh@aybabtu.com>
7673 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7674 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7677 2008-08-23 Bean <bean123ch@gmail.com>
7679 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7680 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7681 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7682 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7684 (raid5rec_mod_SOURCES): New macro.
7685 (raid5rec_mod_CFLAGS): Likewise.
7686 (raid5rec_mod_LDFLAGS): Likewise.
7687 (raid6rec_mod_SOURCES): Likewise.
7688 (raid6rec_mod_CFLAGS): Likewise.
7689 (raid6rec_mod_LDFLAGS): Likewise.
7690 (mdraid_mod_SOURCES): Likewise.
7691 (mdraid_mod_CFLAGS): Likewise.
7692 (mdraid_mod_LDFLAGS): Likewise.
7693 (dm_nv_mod_SOURCES): Likewise.
7694 (dm_nv_mod_CFLAGS): Likewise.
7695 (dm_nv_mod_LDFLAGS): Likewise.
7697 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7698 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7699 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7701 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7702 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7704 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7706 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7708 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7710 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7712 * disk/raid5_recover.c: New file.
7714 * disk/raid6_recover.c: Likewise.
7716 * disk/mdraid_linux.c: Likewise.
7718 * disk/dmraid_nvidia.c: Likewise.
7720 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7723 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7724 calculate the size of raid device.
7725 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7726 different layout of raid5.
7727 (grub_raid_scan_device): Remove code specific to mdraid.
7728 (grub_raid_list): New variable.
7729 (free_array): New function.
7730 (grub_raid_register): Likewise.
7731 (grub_raid_unregister): Likewise.
7732 (grub_raid_rescan): Likewise.
7733 (GRUB_MOD_INIT): Don't iterate device here.
7734 (GRUB_MOD_FINI): Use free_array to release resource.
7736 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7737 (grub_raid5_recover_func_t): New function variable type.
7738 (grub_raid6_recover_func_t): Likewise.
7739 (grub_raid5_recover_func): New variable.
7740 (grub_raid6_recover_func): Likewise.
7741 (grub_raid_register): New function.
7742 (grub_raid_unregister): Likewise.
7743 (grub_raid_rescan): Likewise.
7744 (grub_raid_block_xor): Likewise.
7746 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7747 (CMD_CRC): New macro.
7749 (read_file): Handle device as well as file.
7750 (cmd_crc): New function.
7751 (fstest): Handle multiple disks.
7752 (options): Remove part, raw and long, add root and diskcount.
7753 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7754 (main): Find the first non option entry and ignore subsequent options,
7755 add handling for the new options, support multiple disks.
7757 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7759 2008-08-23 Bean <bean123ch@gmail.com>
7761 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7763 * genfslist.sh: Ignore kernel.mod.
7765 * genpartmaplist.sh: Likewise.
7767 2008-08-23 Robert Millan <rmh@aybabtu.com>
7769 * util/getroot.c (find_root_device): Skip anything that starts with
7770 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7772 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7774 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7775 * util/grub.d/00_header.in: Allow the administrator to change default
7776 gfxmode via ${GRUB_GFXMODE}.
7778 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7780 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7782 2008-08-21 Robert Millan <rmh@aybabtu.com>
7784 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7786 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7787 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7789 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7791 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7792 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7794 2008-08-19 Robert Millan <rmh@aybabtu.com>
7796 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7797 (struct grub_virtual_screen): Remove `cursor_color'.
7798 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7800 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7802 2008-08-18 Robert Millan <rmh@aybabtu.com>
7804 Unify (identical) linux_normal.c files.
7805 * loader/i386/efi/linux_normal.c: Move from here ...
7806 * loader/linux_normal.c: ... to here. Update all users.
7807 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7808 * loader/i386/ieee1275/linux_normal.c: Likewise.
7810 2008-08-18 Robert Millan <rmh@aybabtu.com>
7812 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7813 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7814 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7815 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7816 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7818 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7819 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7820 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7821 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7822 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7823 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7824 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7825 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7826 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7827 portably using grub_getxy().
7828 Replace `-EFI' with `-bzImage' in boot message.
7830 2008-08-17 Robert Millan <rmh@aybabtu.com>
7832 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7834 2008-08-17 Robert Millan <rmh@aybabtu.com>
7836 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7838 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7839 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7840 (grub_machine_mmap_iterate): New function declaration.
7841 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7843 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7846 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7847 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7848 Move e820 parsing from here ...
7849 * kern/i386/pc/mmap.c: New file.
7850 (grub_machine_mmap_iterate): ... to here.
7852 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7853 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7854 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7855 (grub_available_iterate): Redeclare to return `void', and redeclare
7856 its hook to use grub_uint64_t as addr and size parameters, and rename
7858 (grub_machine_mmap_iterate): ... this. Update all users.
7860 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7861 to make it more readable. Rename to ...
7862 (grub_machine_mmap_iterate): ... this.
7864 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7865 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7866 (grub_multiboot): Allocate an extra region after the payload, and fill
7867 it with a Multiboot memory map. Adjust a.out loader to calculate size
7868 with the extra space.
7869 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7870 with the extra space.
7872 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7874 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7876 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7878 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7879 mdate-sh to the list `find' searches for.
7880 * DISTLIST: Regenerated.
7882 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7884 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7885 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7886 genmoddep.awk, gensymlist.sh.in.
7887 (DISTDIRS): Add bus, docs, hook, lib.
7888 * DISTLIST: Regenerated.
7889 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7891 2008-08-16 Robert Millan <rmh@aybabtu.com>
7893 * disk/raid.c (grub_raid_init): Handle/report errors set by
7894 grub_device_iterate().
7895 * disk/lvm.c (grub_lvm_init): Likewise.
7897 2008-08-15 Bean <bean123ch@gmail.com>
7899 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7901 (datetime_mod_SOURCES): New macro.
7902 (datetime_mod_CFLAGS): Likewise.
7903 (datetime_mod_LDFLAGS): Likewise.
7904 (date_mod_SOURCES): Likewise.
7905 (date_mod_CFLAGS): Likewise.
7906 (date_mod_LDFLAGS): Likewise.
7907 (datehook_mod_SOURCES): Likewise.
7908 (datehook_mod_CFLAGS): Likewise.
7909 (datehook_mod_LDFLAGS): Likewise.
7911 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7913 (datetime_mod_SOURCES): New macro.
7914 (datetime_mod_CFLAGS): Likewise.
7915 (datetime_mod_LDFLAGS): Likewise.
7916 (date_mod_SOURCES): Likewise.
7917 (date_mod_CFLAGS): Likewise.
7918 (date_mod_LDFLAGS): Likewise.
7919 (datehook_mod_SOURCES): Likewise.
7920 (datehook_mod_CFLAGS): Likewise.
7921 (datehook_mod_LDFLAGS): Likewise.
7923 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7925 (datetime_mod_SOURCES): New macro.
7926 (datetime_mod_CFLAGS): Likewise.
7927 (datetime_mod_LDFLAGS): Likewise.
7928 (date_mod_SOURCES): Likewise.
7929 (date_mod_CFLAGS): Likewise.
7930 (date_mod_LDFLAGS): Likewise.
7931 (datehook_mod_SOURCES): Likewise.
7932 (datehook_mod_CFLAGS): Likewise.
7933 (datehook_mod_LDFLAGS): Likewise.
7935 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7937 (datetime_mod_SOURCES): New macro.
7938 (datetime_mod_CFLAGS): Likewise.
7939 (datetime_mod_LDFLAGS): Likewise.
7940 (date_mod_SOURCES): Likewise.
7941 (date_mod_CFLAGS): Likewise.
7942 (date_mod_LDFLAGS): Likewise.
7943 (datehook_mod_SOURCES): Likewise.
7944 (datehook_mod_CFLAGS): Likewise.
7945 (datehook_mod_LDFLAGS): Likewise.
7947 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7949 (datetime_mod_SOURCES): New macro.
7950 (datetime_mod_CFLAGS): Likewise.
7951 (datetime_mod_LDFLAGS): Likewise.
7952 (date_mod_SOURCES): Likewise.
7953 (date_mod_CFLAGS): Likewise.
7954 (date_mod_LDFLAGS): Likewise.
7955 (datehook_mod_SOURCES): Likewise.
7956 (datehook_mod_CFLAGS): Likewise.
7957 (datehook_mod_LDFLAGS): Likewise.
7959 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7961 * commands/date.c: New file.
7963 * hook/datehook.c: Likewise.
7965 * include/grub/lib/datetime.h: Likewise.
7967 * include/grub/i386/cmos.h: Likewise.
7969 * lib/datetime.c: Likewise.
7971 * lib/i386/datetime.c: Likewise.
7973 * lib/efi/datetime.c: Likewise.
7975 2008-08-14 Robert Millan <rmh@aybabtu.com>
7977 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7978 (grub_mkelfimage_SOURCES): New variable.
7979 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7981 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7982 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7983 * conf/powerpc-ieee1275.rmk: Likewise.
7984 * conf/i386-ieee1275.rmk: Likewise.
7986 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7987 * kern/i386/coreboot/init.c: Likewise.
7989 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
7990 with `<grub/cpu/kernel.h>'.
7991 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
7993 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
7994 * kern/i386/coreboot/startup.S: Likewise.
7996 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
7997 (GRUB_MOD_GAP): Remove.
7998 * include/grub/powerpc/kernel.h: New file.
7999 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
8000 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8001 * include/grub/i386/kernel.h: New file.
8002 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
8003 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
8004 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8006 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
8008 Use --directory when invoking grub_mkimage.
8010 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
8011 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
8012 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
8013 and GRUB_KERNEL_CPU_PREFIX.
8015 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
8017 * include/grub/err.h (grub_err_printf): New function prototype.
8018 * util/misc.c (grub_err_printf): New function.
8019 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
8021 * kern/err.c (grub_print_error): Use grub_err_printf.
8023 2008-08-13 Robert Millan <rmh@aybabtu.com>
8025 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
8027 2008-08-13 Robert Millan <rmh@aybabtu.com>
8029 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
8032 2008-08-12 Robert Millan <rmh@aybabtu.com>
8034 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
8035 of the relocation code from here ...
8036 (grub_multiboot): ... to here.
8037 (forward_relocator, backward_relocator): Move from here ...
8038 * kern/i386/loader.S (grub_multiboot_forward_relocator)
8039 (grub_multiboot_backward_relocator): ... to here.
8040 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8041 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8042 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8043 (grub_multiboot_forward_relocator_end)
8044 (grub_multiboot_backward_relocator)
8045 (grub_multiboot_backward_relocator_end): New variables.
8047 2008-08-12 Bean <bean123ch@gmail.com>
8049 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8051 2008-08-11 Robert Millan <rmh@aybabtu.com>
8053 * kern/i386/linuxbios/startup.S: Move from here ...
8054 * kern/i386/coreboot/startup.S: ... to here.
8056 * kern/i386/linuxbios/init.c: Move from here ...
8057 * kern/i386/coreboot/init.c: ... to here.
8059 * kern/i386/linuxbios/table.c: Move from here ...
8060 * kern/i386/coreboot/mmap.c: ... to here.
8062 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8064 2008-08-11 Robert Millan <rmh@aybabtu.com>
8066 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8067 errors. Leave it to the upper layer to handle them.
8069 2008-08-09 Christian Franke <franke@computer.org>
8071 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8072 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8073 Install `grub.d/10_windows' only on Cygwin.
8074 * configure.ac: Add subst of `target_os'.
8075 Check `target_os' also before setting TARGET_OBJ2ELF.
8076 Add `--enable-grub-pe2elf'.
8078 2008-08-08 Robert Millan <rmh@aybabtu.com>
8080 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8081 (grub_last_time): Change type to grub_uint64_t.
8082 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8083 (grub_disk_close): Likewise.
8085 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8086 (run_menu): Migrate code from to using grub_get_time_ms().
8088 * util/misc.c (grub_get_time_ms): New function.
8090 2008-08-08 Marco Gerards <marco@gnu.org>
8092 * disk/ata.c (grub_ata_regget): Change return type to
8094 (grub_ata_regget2): Likewise.
8095 (grub_ata_wait_status): New function.
8096 (grub_ata_wait_busy): Removed function, updated all users to use
8097 `grub_ata_wait_status'.
8098 (grub_ata_wait_drq): Likewise.
8099 (grub_ata_cmd): New function.
8100 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8102 (grub_ata_pio_write): Add error handling.
8103 (grub_atapi_identify): Likewise.
8104 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8106 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8107 handling. Actually use the detected registers. Reorder the
8108 detection logic such that it is easier to read.
8109 (grub_ata_pciinit): Do not assign the same ID to each controller.
8110 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8112 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8114 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8116 2008-08-08 Marco Gerards <marco@gnu.org>
8120 2008-08-07 Bean <bean123ch@gmail.com>
8122 * include/grub/x86_64/pci.h: New file.
8124 2008-08-07 Christian Franke <franke@computer.org>
8126 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8127 (TIMER2_GATE): Likewise.
8128 (grub_pit_wait): Add enable/disable of the timer2 gate
8129 bit of port 0x61. This fixes a possible infinite loop.
8131 2008-08-07 Bean <bean123ch@gmail.com>
8133 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8134 kern/i386/tsc.c and kern/i386/pit.c.
8136 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8139 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8142 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8144 2008-08-07 Bean <bean123ch@gmail.com>
8146 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8148 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8150 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8151 multiple inclusion. Add #include <grub/types.h>.
8153 2008-08-06 Christian Franke <franke@computer.org>
8155 * conf/common.rmk: Build and install `10_windows'.
8156 * util/grub.d/10_windows.in: New script.
8158 2008-08-06 Pavel Roskin <proski@gnu.org>
8160 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8162 2008-08-06 Robert Millan <rmh@aybabtu.com>
8164 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8165 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8167 2008-08-06 Bean <bean123ch@gmail.com>
8169 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8170 (grub_pxefs_fs_int): Remove dummy definition.
8171 (grub_pxefs_open): Use data->block_size to store the current block
8173 (grub_pxefs_read): Use block size stored in data->block_size. As the
8174 value of grub_pxe_blksize can be changed after the file is opened.
8176 2008-08-06 Bean <bean123ch@gmail.com>
8178 * fs/i386/pc/pxe.c (curr_file): new variable.
8179 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8180 require the dummy internal file system anymore.
8181 (grub_pxefs_read): Removed.
8182 (grub_pxefs_close): Likewise.
8183 (grub_pxefs_fs_int): Likewise.
8184 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8185 connection when we switch file.
8186 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8188 2008-08-06 Robert Millan <rmh@aybabtu.com>
8190 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8192 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8193 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8195 * kern/i386/halt.c: New file.
8196 * kern/i386/reboot.c: Likewise.
8197 * include/grub/i386/reboot.h: Likewise.
8198 * include/grub/i386/halt.h: Likewise.
8200 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8201 Include `<grub/cpu/halt.h>'.
8202 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8203 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8205 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8206 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8207 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8208 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8209 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8210 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8212 * include/grub/i386/at_keyboard.h: ... to here.
8214 2008-08-05 Robert Millan <rmh@aybabtu.com>
8216 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8217 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8218 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8219 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8220 `kern/generic/millisleep.c'.
8222 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8223 instead of grub_get_rtc().
8224 (grub_tsc_init): Initialize `tsc_boot_time'.
8226 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8227 (grub_machine_init): Use grub_tsc_init() rather than
8228 installing an RTC-based handler via grub_install_get_time_ms().
8230 * kern/i386/pit.c: New file.
8231 * include/grub/i386/pit.h: Likewise.
8233 2008-08-05 Bean <bean123ch@gmail.com>
8235 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8237 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8238 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8239 (pxe_mod_SOURCES): New macro.
8240 (pxe_mod_CFLAGS): Likewise.
8241 (pxe_mod_LDFLAGS): Likewise.
8242 (pxecmd_mod_SOURCES): Likewise.
8243 (pxecmd_mod_CFLAGS): Likewise.
8244 (pxecmd_mod_LDFLAGS): Likewise.
8246 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8247 (grub_pxe_call): Likewise.
8249 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8251 * commands/i386/pc/pxecmd.c: New file.
8253 * fs/i386/pc/pxe.c: Likewise.
8255 * include/grub/i386/pc/pxe.h: Likewise.
8257 2008-08-05 Bean <bean123ch@gmail.com>
8259 * util/console.c (grub_console_cur_color): New variable.
8260 (grub_console_standard_color): Likewise.
8261 (grub_console_normal_color): Likewise.
8262 (grub_console_highlight_color): Likewise.
8263 (color_map): Likewise.
8264 (use_color): Likewise.
8265 (NUM_COLORS): New macro.
8266 (grub_ncurses_setcolorstate): Handle color properly.
8267 (grub_ncurses_setcolor): Don't change color here, just remember the
8268 settings, color will be set in grub_ncurses_setcolorstate.
8269 (grub_ncurses_getcolor): New function.
8270 (grub_ncurses_init): Initialize color pairs.
8271 (grub_ncurses_term): New member grub_ncurses_getcolor.
8273 2008-08-05 Colin D Bennett <colin@gibibit.com>
8275 High resolution timer support. Implemented for x86 CPUs using TSC.
8276 Extracted generic grub_millisleep() so it's linked in only as needed.
8277 This requires a Pentium compatible CPU; if the RDTSC instruction is
8278 not supported, then it falls back on the generic grub_get_time_ms()
8279 implementation that uses the machine's RTC.
8281 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8282 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8283 `kern/generic/millisleep.c'.
8285 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8286 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8288 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8289 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8291 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8293 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8294 `kern/generic/millisleep.c'.
8296 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8298 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8300 * kern/generic/rtc_get_time_ms.c: New file.
8302 * kern/generic/millisleep.c: New file.
8304 * kern/misc.c: Don't include
8305 <kern/time.h> anymore.
8306 (grub_millisleep_generic): Removed.
8308 * commands/sleep.c (grub_interruptible_millisleep): Uses
8309 grub_get_time_ms() instead of grub_get_rtc().
8311 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8313 (grub_cpu_is_cpuid_supported): New inline function.
8314 (grub_cpu_is_tsc_supported): New inline function.
8315 (grub_tsc_init): New function prototype.
8316 (grub_tsc_get_time_ms): New function prototype.
8318 * kern/i386/tsc.c (grub_get_time_ms): New file.
8320 * include/grub/time.h: Include <grub/types.h.
8321 (grub_millisleep_generic): Removed.
8322 (grub_get_time_ms): New prototype.
8323 (grub_install_get_time_ms): New prototype.
8324 (grub_rtc_get_time_ms): New prototype.
8326 * kern/time.c (grub_get_time_ms): New function.
8327 (grub_install_get_time_ms): New function.
8329 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8330 <grub/time.h> anymore.
8331 (grub_millisleep): Removed.
8332 (grub_machine_init): Call grub_tsc_init.
8334 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8335 get_time_ms() implementation.
8337 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8338 (ieee1275_get_time_ms): New function.
8339 (grub_machine_init): Install get_time_ms() implementation.
8341 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8342 (grub_machine_init): Call grub_tsc_init().
8343 (grub_millisleep): Removed.
8345 * kern/ieee1275/init.c (grub_millisleep): Removed.
8346 (grub_machine_init): Install ieee1275_get_time_ms()
8348 (ieee1275_get_time_ms): New function.
8349 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8352 2008-08-05 Marco Gerards <marco@gnu.org>
8354 * disk/ata.c: Include <grub/pci.h>.
8355 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8356 (grub_ata_initialize): Rewritten.
8357 (grub_ata_device_initialize): New function.
8359 2008-08-04 Pavel Roskin <proski@gnu.org>
8361 * kern/main.c: Include grub/mm.h.
8363 2008-08-04 Robert Millan <rmh@aybabtu.com>
8365 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8366 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8367 corruption problem).
8369 2008-08-04 Robert Millan <rmh@aybabtu.com>
8371 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8372 warnings introduced in my last commit.
8374 2008-08-03 Robert Millan <rmh@aybabtu.com>
8376 Make PCI available on all i386 architectures.
8378 * include/grub/i386/pc/pci.h: Move from here ...
8379 * include/grub/i386/pci.h: ... to here.
8381 * include/grub/i386/pc/pci.h: Remove.
8382 * include/grub/i386/efi/pci.h: Remove.
8383 * include/grub/x86_64/efi/pci.h: Remove.
8385 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8388 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8389 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8390 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8392 * conf/i386-ieee1275.rmk: Likewise.
8394 2008-08-03 Robert Millan <rmh@aybabtu.com>
8396 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8397 (grub_console_setcursor): Make it possible to set cursor off.
8399 2008-08-03 Robert Millan <rmh@aybabtu.com>
8401 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8402 of modules instead of assuming which platform provides what.
8403 * util/update-grub.in: Likewise.
8405 2008-08-03 Robert Millan <rmh@aybabtu.com>
8407 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8408 instead of `grub_install_dos_part' to determine whether a drive needs
8409 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8410 because it can be overridden when loading GRUB via Multiboot).
8412 2008-08-02 Robert Millan <rmh@aybabtu.com>
8414 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8416 2008-08-02 Robert Millan <rmh@aybabtu.com>
8418 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8419 of informational grub_dprintf() calls.
8421 2008-08-02 Robert Millan <rmh@aybabtu.com>
8423 * disk/memdisk.c (memdisk_size): Don't initialize.
8424 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8426 * include/grub/i386/pc/kernel.h
8427 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8428 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8429 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8430 (grub_arch_memdisk_size): Remove.
8432 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8433 field (was only used to transfer a constant). Add `type' field to
8434 support multiple module types.
8435 (grub_module_iterate): New function.
8437 * kern/device.c (grub_device_open): Do not hide error messages
8438 when grub_disk_open() fails. Use grub_print_error() instead.
8440 * kern/i386/pc/init.c (grub_arch_modules_addr)
8441 (grub_arch_memdisk_size): Remove functions.
8442 (grub_arch_modules_addr): Return the module address in high memory
8443 (now that it isn't copied anymore).
8445 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8446 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8447 decompression routine (grub_total_module_size already includes that
8448 now). Don't copy modules back to low memory.
8450 * kern/main.c: Include `<grub/mm.h>'.
8451 (grub_load_modules): Split out (and use) ...
8452 (grub_module_iterate): ... this function, which iterates through
8453 module objects and runs a hook.
8454 Comment out grub_mm_init_region() call, as it would cause non-ELF
8455 modules to be overwritten.
8457 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8458 the memdisk image in its own region, make it part of the module list.
8459 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8460 (main): Parse --memdisk|-m option, and pass user-provided path as
8461 parameter to generate_image().
8462 (add_segments): Pass `memdisk_path' down to load_modules().
8463 (load_modules): Embed memdisk image in module section when requested.
8464 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8465 `header.type' instead of `header.offset'.
8467 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8468 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8469 (memdisk_mod_LDFLAGS): New variables.
8470 * conf/i386-coreboot.rmk: Likewise.
8471 * conf/i386-ieee1275.rmk: Likewise.
8473 2008-08-02 Robert Millan <rmh@aybabtu.com>
8475 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8476 (backward_relocator): New variables. Used to allocate and relocate
8477 the payload, respectively.
8478 (grub_multiboot_load_elf32): Load into heap instead of requested
8479 address, install the appropriate relocator code in each bound of
8480 the payload, and set the entry point such that
8481 grub_multiboot_real_boot() will jump to one of them.
8483 * kern/i386/loader.S (grub_multiboot_payload_size)
8484 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8485 (grub_multiboot_payload_entry_offset): New variables.
8486 (grub_multiboot_real_boot): Set cpu context to what the relocator
8487 expects, and jump to the relocator instead of the payload.
8489 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8490 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8491 (grub_multiboot_payload_entry_offset): Export.
8493 2008-08-01 Bean <bean123ch@gmail.com>
8495 * normal/menu_entry.c (editor_getline): Don't return the original
8496 string as result, as it will be released by lexer once it has done
8499 2008-08-01 Robert Millan <rmh@aybabtu.com>
8501 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8502 within menuentries, not before them.
8503 util/grub.d/10_hurd.in: Likewise.
8505 2008-08-01 Bean <bean123ch@gmail.com>
8507 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8508 (bufio_mod_SOURCES): New macro.
8509 (bufio_mod_CFLAGS): Likewise.
8510 (bufio_mod_LDFLAGS): Likewise.
8512 * include/grub/bufio.h: New file.
8514 * io/bufio.c: Likewise.
8516 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8517 (grub_video_reader_png): Use grub_buffile_open to open file.
8519 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8520 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8522 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8523 (grub_video_reader_tga): Use grub_buffile_open to open file.
8525 * font/manager.c: Include <grub/bufio.h>.
8526 (add_font): Use grub_buffile_open to open file.
8528 2008-07-31 Robert Millan <rmh@aybabtu.com>
8530 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8531 ELF segments, use a macro for arbitrarily accessing any of them instead
8532 of preparing a pointer that allows access to one at a time.
8533 (grub_multiboot_load_elf64): Likewise.
8535 2008-07-31 Bean <bean123ch@gmail.com>
8537 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8538 GRUB_KERNEL_MACHINE_DATA_END.
8540 2008-07-30 Robert Millan <rmh@aybabtu.com>
8542 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8543 Increase from 0x50 to 0x60.
8544 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8545 use UUIDs to identify the root drive for them. If that's not
8547 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8548 check, for cross-disk installs.
8550 2008-07-30 Robert Millan <rmh@aybabtu.com>
8552 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8553 is non-empty, use it to set the `prefix' environment variable instead
8554 of the usual approach.
8555 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8556 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8557 environment variable instead of dummy make_install_device().
8559 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8560 (start): Insert a data section, with `grub_prefix' variable.
8561 * kern/i386/linuxbios/startup.S: Likewise.
8563 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8564 New variable reference.
8565 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8566 New macro. Defines offset of `grub_prefix' within startup.S (relative
8568 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8569 section within startup.S (relative to `start').
8570 * include/grub/i386/coreboot/kernel.h: Likewise.
8572 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8573 Overwrite grub_prefix with its contents, at the beginning of the
8575 (main): Understand -p|--prefix.
8577 2008-07-30 Robert Millan <rmh@aybabtu.com>
8579 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8581 2008-07-30 Robert Millan <rmh@aybabtu.com>
8583 * term/i386/pc/vga_text.c (grub_console_cls): Use
8584 grub_console_gotoxy() to go back to beginning of the screen.
8585 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8587 2008-07-29 Christian Franke <franke@computer.org>
8589 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8590 Add conversion of emulated mount points on Cygwin.
8592 2008-07-29 Christian Franke <franke@computer.org>
8594 * util/update-grub.in: Add a check for admin
8596 Remove old `grub.cfg.new' before creation.
8597 Add `-f' to `mv' to handle the different filesystem
8598 semantics of Windows.
8600 2008-07-29 Bean <bean123ch@gmail.com>
8602 * normal/main.c (get_line): Fix buffer overflow bug.
8604 2008-07-28 Robert Millan <rmh@aybabtu.com>
8606 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8607 (struct grub_apple_header): New struct. Describes the layout of
8609 (apple_partition_map_iterate): Check the header magic as well as the
8610 partition magic (which was already being checked).
8612 2008-07-28 Pavel Roskin <proski@gnu.org>
8614 * genmk.rb: Add a warning to the beginning of the output that
8615 it's a generated file and should not be edited.
8617 2008-07-28 Robert Millan <rmh@aybabtu.com>
8619 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8620 with the same number are found, just use issue a warning with
8621 grub_dprintf(), as this error has been reported to be non-fatal.
8623 2008-07-27 Robert Millan <rmh@aybabtu.com>
8625 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8628 2008-07-27 Bean <bean123ch@gmail.com>
8630 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8631 (grub_fat_find_dir): Ignore case when comparing filename.
8633 2008-07-27 Bean <bean123ch@gmail.com>
8635 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8636 smallino, as it's more descriptive, and i8count can be confused with
8637 the other field count.
8638 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8641 2008-07-27 Bean <bean123ch@gmail.com>
8643 * commands/crc.c: New file.
8645 * lib/crc.c: Likewise.
8647 * include/grub/lib/crc.h: Likewise.
8649 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8651 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8652 (hexdump): Move this function to ...
8654 * lib/hexdump.c: ... here.
8656 * include/grub/hexdump.h: Renamed to ...
8658 * include/grub/lib/hexdump.h: ... this.
8660 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8662 * util/grub-editenv.c: Likewise.
8664 * include/envblk.h: Renamed to ...
8666 * include/lib/envblk.h: ... this.
8668 * util/envblk.c: Renamed to ...
8670 * lib/envblk.c: ... this.
8672 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8674 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8675 (pkglib_MODULES): Add crc.mod.
8676 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8677 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8678 (crc_mod_SOURCES): New macro.
8679 (crc_mod_CFLAGS): Likewise.
8680 (crc_mod_LDFLAGS): Likewise.
8682 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8684 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8686 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8688 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8690 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8692 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8694 * commands/help.c: Include <grub/term.h>.
8695 (TERM_WIDTH): Removed. Updated all users.
8697 2008-07-27 Pavel Roskin <proski@gnu.org>
8699 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8700 spurious warnings about a comment within a comment.
8702 2008-07-25 Robert Millan <rmh@aybabtu.com>
8704 * util/getroot.c (find_root_device): Skip devices that match
8705 /dev/dm-[0-9]. This lets the real device be found for any type of
8706 abstraction (LVM, EVMS, RAID..).
8707 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8708 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8709 device is found first, find_root_device() will now skip it.
8711 2008-07-24 Pavel Roskin <proski@gnu.org>
8713 * include/grub/types.h: Use __builtin_bswap32() and
8714 __builtin_bswap64() with gcc 4.3 and newer.
8716 2008-07-24 Christian Franke <franke@computer.org>
8718 * util/i386/pc/grub-install.in: If `--debug' is specified,
8719 pass `--verbose' to grub-setup.
8720 Abort script if make_system_path_relative_to_its_root() fails.
8722 2008-07-24 Bean <bean123ch@gmail.com>
8724 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8725 variable `target_platform' should be `platform'.
8727 2008-07-24 Bean <bean123ch@gmail.com>
8729 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8730 (grub_png_init_fixed_block): New function.
8731 (grub_png_decode_image_data): Handle fixed huffman code compression.
8733 2008-07-24 Bean <bean123ch@gmail.com>
8735 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8736 (grub_pe2elf_SOURCES): New macro.
8737 (CLEANFILES): Add grub-pe2elf.
8739 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8740 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8741 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8742 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8743 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8744 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8745 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8746 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8747 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8748 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8749 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8750 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8751 (GRUB_PE32_DT_FUNCTION): Likewise.
8752 (GRUB_PE32_REL_I386_DIR32): Likewise.
8753 (GRUB_PE32_REL_I386_REL32): Likewise.
8754 (grub_pe32_symbol): New structure.
8755 (grub_pe32_reloc): Likewise.
8757 * util/grub-pe2elf.c: New file.
8759 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8760 start symbol in non pc platform.
8762 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8764 The following patches are from Christian Franke.
8766 * include/grub/dl.h: Remove .previous, gas supports this only
8769 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8770 Remove .type, gas supports this only for ELF format.
8772 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8773 nullbytes in symbol table. This fixes an infinite loop if table is
8776 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8777 TARGET_IMG_LDFLAGS and EXEEXT.
8779 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8780 TARGET_IMG_LDFLAGS_AC.
8781 (grub_CHECK_STACK_ARG_PROBE): New function.
8783 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8785 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8787 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8788 to set TARGET_IMG_LD* accordingly.
8789 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8790 Add call to grub_CHECK_STACK_ARG_PROBE.
8791 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8793 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8795 * genmk.rb: Add EXEEXT to CLEANFILES.
8797 2008-07-23 Robert Millan <rmh@aybabtu.com>
8799 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8800 define the codes for arrows and lines used for the menu).
8801 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8804 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8805 fonts, because the latter are too slow.
8807 2008-07-21 Bean <bean123ch@gmail.com>
8809 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8810 a20. Run keyboard test last, as it will cause macbook to halt.
8812 2008-07-18 Pavel Roskin <proski@gnu.org>
8814 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8815 load foreign architecture modules correctly anyway. Keep
8816 support for loading host architecture modules, whether we
8817 compile them or not.
8819 2008-07-17 Pavel Roskin <proski@gnu.org>
8821 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8822 change target_cpu. The compiler default can mismatch target_cpu
8825 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8826 * kern/efi/efi.c: Likewise.
8828 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8829 target compiler is functional.
8830 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8833 * configure.ac: Default to efi platform for x86_64-apple. Allow
8834 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8835 adjustments from the rest, only do them if target is not
8836 explicitly given. Merge other adjustments with the final sanity
8837 check. Remove an extraneous check for supported CPU. Be
8838 specific which CPU and which platform is not supported.
8840 * configure.ac: Default to pc platform for x86_64.
8842 2008-07-17 Robert Millan <rmh@aybabtu.com>
8844 Partial LinuxBIOS -> Coreboot rename.
8846 * conf/i386-linuxbios.rmk: Renamed to ...
8847 * conf/i386-coreboot.rmk: ... this.
8848 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8849 * configure.ac: Accept "coreboot" as input platform (but maintain
8850 compatibility with "linuxbios").
8851 * include/grub/i386/linuxbios: Renamed to ...
8852 * include/grub/i386/coreboot: ... this.
8854 2008-07-17 Bean <bean123ch@gmail.com>
8856 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8857 (appleldr_mod_SOURCE): New variable.
8858 (appleldr_mod_CFLAGS): Likewise.
8859 (appleldr_mod_LDFLAGS): Likewise.
8860 (pci_mod_SOURCES): Likewise.
8861 (pci_mod_CFLAGS): Likewise.
8862 (pci_mod_LDFLAGS): Likewise.
8863 (lspci_mod_SOURCES): Likewise.
8864 (lspci_mod_CFLAGS): Likewise.
8865 (lspci_mod_LDFLAGS): Likewise.
8867 * conf/x86_64-efi.rmk: New file.
8869 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8871 (grub_efidisk_write): Likewise.
8873 * include/efi/api.h (efi_call_0): New macro.
8874 (efi_call_1): Likewise.
8875 (efi_call_2): Likewise.
8876 (efi_call_3): Likewise.
8877 (efi_call_4): Likewise.
8878 (efi_call_5): Likewise.
8879 (efi_call_6): Likewise.
8881 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8882 grub_rescue_cmd_chainloader.
8884 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8885 (grub_pe32_optional_header): Change some fields based on i386 or
8887 (GRUB_PE32_PE32_MAGIC): Likewise.
8889 * include/grub/efi/uga_draw.h: New file.
8891 * include/grub/elf.h (STN_ABS): New constant.
8892 (R_X86_64_NONE): Relocation constant for x86_64.
8893 (R_X86_64_64): Likewise.
8894 (R_X86_64_PC32): Likewise.
8895 (R_X86_64_GOT32): Likewise.
8896 (R_X86_64_PLT32): Likewise.
8897 (R_X86_64_COPY): Likewise.
8898 (R_X86_64_GLOB_DAT): Likewise.
8899 (R_X86_64_JUMP_SLOT): Likewise.
8900 (R_X86_64_RELATIVE): Likewise.
8901 (R_X86_64_GOTPCREL): Likewise.
8902 (R_X86_64_32): Likewise.
8903 (R_X86_64_32S): Likewise.
8904 (R_X86_64_16): Likewise.
8905 (R_X86_64_PC16): Likewise.
8906 (R_X86_64_8): Likewise.
8907 (R_X86_64_PC8): Likewise.
8909 * include/grub/i386/efi/pci.h: New file.
8911 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8912 Change it value based on platform.
8913 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8914 (GRUB_E820_RAM): Likewise.
8915 (GRUB_E820_RESERVED): Likewise.
8916 (GRUB_E820_ACPI): Likewise.
8917 (GRUB_E820_NVS): Likewise.
8918 (GRUB_E820_EXEC_CODE): Likewise.
8919 (GRUB_E820_MAX_ENTRY): Likewise.
8920 (grub_e820_mmap): New structure.
8921 (linux_kernel_header): Change the efi field according to different
8922 kernel version, also field from linux_kernel_header.
8924 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8926 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8927 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8928 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8929 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8930 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8931 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8932 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8933 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8934 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8935 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8937 * include/grub/x86_64/efi/kernel.h: New file.
8939 * include/grub/x86_64/efi/loader.h: Likewise.
8941 * include/grub/x86_64/efi/machine.h: Likewise.
8943 * include/grub/x86_64/efi/pci.h: Likewise.
8945 * include/grub/x86_64/efi/time.h: Likewise.
8947 * include/grub/x86_64/linux.h: Likewise.
8949 * include/grub/x86_64/setjmp.h: Likewise.
8951 * include/grub/x86_64/time.h: Likewise.
8953 * include/grub/x86_64/types.h: Likewise.
8955 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8956 GRUB_TARGET_SIZEOF_VOID_P.
8958 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8959 (grub_efi_locate_handle): Likewise.
8960 (grub_efi_open_protocol): Likewise.
8961 (grub_efi_set_text_mode): Likewise.
8962 (grub_efi_stall): Likewise.
8963 (grub_exit): Likewise.
8964 (grub_reboot): Likewise.
8965 (grub_halt): Likewise.
8966 (grub_efi_exit_boot_services): Likewise.
8967 (grub_get_rtc): Likewise.
8969 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8970 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8971 (grub_efi_allocate_pages): Wrap efi calls.
8972 (grub_efi_free_pages): Wrap efi calls.
8973 (grub_efi_get_memory_map): Wrap efi calls.
8975 * kern/x86_64/dl.c: New file.
8977 * kern/x86_64/efi/callwrap.S: Likewise.
8979 * kern/x86_64/efi/startup.S: Likewise.
8981 * loader/efi/appleloader.c: Likewise.
8983 * loader/efi/chainloader.c (cmdline): New variable.
8984 (grub_chainloader_unload): Wrap efi calls.
8985 (grub_chainloader_boot): Likewise.
8986 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8989 * loader/efi/chainloader_normal.c (chainloader_command):
8990 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
8993 * loader/i386/efi/linux.c (allocate_pages): Change allocation
8995 (grub_e820_add_region): New function.
8996 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
8998 (grub_find_video_card): New function.
8999 (grub_linux_setup_video): New function.
9000 (grub_rescue_cmd_linux): Probe for video information.
9002 * normal/x86_64/setjmp.S: New file.
9004 * term/efi/console.c (map_char): New function.
9005 (grub_console_putchar): Map unicode char.
9006 (grub_console_checkkey): Wrap efi calls.
9007 (grub_console_getkey): Likewise.
9008 (grub_console_getwh): Likewise.
9009 (grub_console_gotoxy): Likewise.
9010 (grub_console_cls): Likewise.
9011 (grub_console_setcolorstate): Likewise.
9012 (grub_console_setcursor): Likewise.
9014 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
9016 2008-07-16 Pavel Roskin <proski@gnu.org>
9018 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
9021 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
9022 pointer, not an integer. This fixes a warning and prevents
9023 precision loss on 64-bit systems.
9024 (relocate_addresses): Remove unneeded cast.
9026 2008-07-15 Pavel Roskin <proski@gnu.org>
9028 * kern/i386/ieee1275/init.c: Include grub/cache.h.
9030 * term/ieee1275/ofconsole.c: Disable code unused on i386.
9032 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
9033 Fix comparison between signed and unsigned.
9035 * include/grub/i386/ieee1275/console.h: Declare
9036 grub_console_init() and grub_console_fini().
9038 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
9039 It's empty and unused.
9041 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9042 beginning to avoid warnings with some compilers.
9044 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9045 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9047 2008-07-14 Pavel Roskin <proski@gnu.org>
9049 * kern/env.c (grub_register_variable_hook): Don't copy empty
9050 string, it leaks memory. Pass "" to grub_env_set(), it should
9051 handle constant strings.
9053 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9054 * commands/cmp.c (grub_cmd_cmp): Likewise.
9055 * kern/dl.c (grub_dl_flush_cache): Likewise.
9056 (grub_dl_load_core): Likewise.
9057 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9058 (grub_elf64_load_phdrs): Likewise.
9060 2008-07-13 Pavel Roskin <proski@gnu.org>
9062 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9063 between signed and unsigned.
9064 (LzmaEnc_Finish): Fix warning about an unused parameter.
9066 2008-07-13 Bean <bean123ch@gmail.com>
9068 * Makefile.in (enable_lzo): New rule.
9070 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9072 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9074 * boot/i386/pc/lnxboot.S: #include <config.h>.
9076 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9077 its value according to the compression algorithm used, lzo or lzma.
9079 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9080 compression algorithm according to configure macro.
9082 * kern/i386/pc/startup.S (codestart): Likewise.
9084 * kern/i386/pc/lzma_decode.S: New file.
9086 * include/grub/lib/LzFind.h: Likewise.
9088 * include/grub/lib/LzHash.h: Likewise.
9090 * include/grub/lib/LzmaDec.h: Likewise.
9092 * include/grub/lib/LzmaEnc.h: Likewise.
9094 * include/grub/lib/LzmaTypes.h: Likewise.
9096 * lib/LzFind.c: Likewise.
9098 * lib/LzmaDec.c: Likewise.
9100 * lib/LzmaEnc.c: Likewise.
9102 2008-07-13 Bean <bean123ch@gmail.com>
9104 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9105 (grub_ext4_extent_header): New structure.
9106 (grub_ext4_extent): Likewise.
9107 (grub_ext4_extent_idx): Likewise.
9108 (grub_ext4_find_leaf): New function.
9109 (grub_ext2_read_block): Handle extents.
9111 2008-07-12 Robert Millan <rmh@aybabtu.com>
9113 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9115 2008-07-11 Robert Millan <rmh@aybabtu.com>
9117 * util/grub.d/40_custom.in: New file. Example on how to add custom
9118 entries to /etc/grub.d.
9119 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9120 40_custom (implicitly, by merging all the grub.d rules).
9122 2008-07-11 Pavel Roskin <proski@gnu.org>
9124 * commands/read.c (grub_getline): Fix invalid memory access.
9125 Don't add newline to the variable value.
9127 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9128 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9129 (serial_hw_get_port): Check validity of the port number.
9130 (grub_cmd_serial): Check return value of serial_hw_get_port().
9132 2008-07-07 Pavel Roskin <proski@gnu.org>
9134 * boot/i386/pc/diskboot.S (notification_string): Replace
9135 "Loading kernel" with just "loading". This is shorter, less
9136 confusing and saves a few bytes for possible future changes.
9138 2008-07-05 Pavel Roskin <proski@gnu.org>
9140 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9141 size for ATAPI devices, they are undefined. Output sector
9142 number in decimal form.
9144 * disk/ata.c: Use named constants for status bits.
9146 2008-07-04 Pavel Roskin <proski@gnu.org>
9148 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9149 grub_addr_t before casting it to the void pointer to fix a
9150 warning. Non-addressable regions are discarded earlier.
9151 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9152 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9153 (check_signature): Don't shadow table_header.
9154 (grub_linuxbios_table_iterate): Cast numeric constants to
9155 grub_linuxbios_table_header_t.
9156 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9159 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9162 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9163 pointer, which can cause warnings. Support 64-bit addresses.
9165 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9166 of sizeof(long). This fixes PowerPC image generation on x86_64.
9168 2008-07-04 Robert Millan <rmh@aybabtu.com>
9170 This fixes a performance issue when pc & gpt partmap iterators
9171 didn't abort iteration even after our hook found what it was
9172 looking for (often causing expensive probes of non-existent drives).
9174 Some callers relied on previous buggy behaviour, since they would
9175 raise an error when their own hooks caused early abortion of its
9178 * kern/device.c (grub_device_open): Improve error message.
9179 * disk/lvm.c (grub_lvm_open): Likewise.
9180 * disk/raid.c (grub_raid_open): Likewise.
9182 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9183 when hook requests it, independently of grub_errno.
9184 (pc_partition_map_probe): Do not fail when find_func() caused
9185 early abortion of pc_partition_map_iterate().
9187 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9188 when hook requests it, independently of grub_errno.
9189 (gpt_partition_map_probe): Do not fail when find_func() caused
9190 early abortion of gpt_partition_map_iterate().
9192 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9193 when hook requests it, independently of grub_errno. Do not fail when
9194 part_map_iterate_hook() caused early abortion of p->iterate().
9196 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9197 when grub_partition_iterate() returned with non-zero.
9199 2008-07-03 Pavel Roskin <proski@gnu.org>
9201 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9202 like we do in grub_ata_pio_read().
9203 (grub_ata_readwrite): Always write individual sectors. Fix the
9204 sector count for the remainder.
9205 (grub_ata_write): Enable writing to ATA devices. Correctly
9206 report error for ATAPI devices.
9208 2008-07-02 Pavel Roskin <proski@gnu.org>
9210 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9213 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9214 for every read sector, we already increment it for the whole
9215 batch. This fixes reading more than 256 sectors at once.
9217 * util/grub-editenv.c (cmd_info): Cast argument to long
9218 explicitly. ptrdiff_t reduces to int on i386.
9220 * util/grub-editenv.c (main): Be specific which parameter is
9223 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9224 (memdisk): Make memdisk_orig_addr a pointer.
9226 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9227 for file offsets, use grub_off_t instead. Fix printf format
9230 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9231 there. Real unexpected warnings should not drown in the noise
9232 about known problems.
9234 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9235 grub_disk_addr_t for memory addresses.
9237 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9238 explicitly to fix a warning.
9240 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9242 * Makefile.in (MODULE_LDFLAGS): New variable.
9243 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9244 the linker accepts --build-id=none.
9245 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9247 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9249 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9250 those in Linux XFS code. Provide a way to access 64-bit parent
9252 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9253 the end of struct grub_xfs_dir_header.
9255 2008-07-02 Bean <bean123ch@gmail.com>
9257 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9258 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9259 and GRUB_IEEE1275_FLAG_NO_ANSI.
9261 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9262 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9263 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9265 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9266 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9268 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9269 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9271 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9272 esc sequence on non ANSI terminal.
9273 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9275 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9278 2008-07-02 Bean <bean123ch@gmail.com>
9280 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9281 (grub_editenv_SOURCES): New variable.
9282 (pkglib_MODULES): Add loadenv.mod.
9283 (loadenv_mod_SOURCES): New variable.
9284 (loadenv_mod_CFLAGS): Likewise.
9285 (loadenv_mod_LDFLAGS): Likewise.
9287 * include/grub/envblk.h: New file.
9289 * util/envblk.c: New file.
9291 * util/grub-editenv.c: New file.
9293 * commands/loadenv.c: New file.
9295 2008-07-01 Pavel Roskin <proski@gnu.org>
9297 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9298 not unsigned char. This fixes warnings and is consistent with
9301 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9303 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9305 * term/tparm.c (analyze): Always set *popcount.
9307 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9308 cast to fix a warning.
9310 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9311 cast to suppress a warning.
9313 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9314 grub_fshelp_read_file() expects.
9316 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9317 write uuid as a 32-bit value in CPU byte order, so declare and
9320 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9321 long if the format specifier expects it.
9322 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9323 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9324 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9325 long to fix a warning.
9326 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9327 grub_dprintf() arguments to fix warnings.
9329 2008-06-30 Pavel Roskin <proski@gnu.org>
9331 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9332 install_bsd_part immediately before core.img is embedded or
9333 modified on disk. This fixes core.img verification if core.img
9336 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9337 core_path to calculate the blocklist.
9338 Patch from Javier MartÃn <lordhabbit@gmail.com>
9340 2008-06-29 Robert Millan <rmh@aybabtu.com>
9342 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9343 block to disk block.
9344 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9345 Patch from Niels Böhm <bitbucket@arcor.de>
9347 2008-06-29 Robert Millan <rmh@aybabtu.com>
9349 * util/update-grub_lib.in (font_path): Search for fonts in
9350 /boot/grub first, which is more likely to be readable (we aren't
9351 deciding where fonts live, just looking for them).
9353 2008-06-26 Pavel Roskin <proski@gnu.org>
9355 * util/biosdisk.c (read_device_map): Don't leave dead map
9356 entries for devices failing stat() check.
9358 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9359 core_path_dev for the core.img path on the target device.
9361 2008-06-26 Robert Millan <rmh@aybabtu.com>
9363 * disk/fs_uuid.c: New file.
9364 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9365 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9366 (fs_uuid_mod_LDFLAGS): New variables.
9367 * include/grub/disk.h (grub_disk_dev_id): Add
9368 `GRUB_DISK_DEVICE_UUID_ID'.
9369 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9370 implement iterate().
9372 2008-06-26 Robert Millan <rmh@aybabtu.com>
9374 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9375 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9376 Linux image includes no initrd.
9378 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
9380 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9381 call to resolve the core image location that effectively appended the
9384 2008-06-21 Robert Millan <rmh@aybabtu.com>
9386 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9389 * util/grub.d/10_hurd.in: ... to here ...
9390 * util/grub.d/10_linux.in: ... and here.
9392 2008-06-19 Robert Millan <rmh@aybabtu.com>
9394 * kern/main.c (grub_main): Export `prefix' variable immediately
9395 after it has been set by grub_machine_set_prefix().
9397 2008-06-19 Robert Millan <rmh@aybabtu.com>
9399 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9400 search result when not saving to variable, not the other way around.
9401 When saving to variable, abort iteration as soon as a match is found.
9403 2008-06-19 Robert Millan <rmh@aybabtu.com>
9405 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9406 check for partition that provides /boot/grub. Its logic is flawed,
9407 as it prevents prepare_grub_to_access_device() from being called
9410 2008-06-19 Robert Millan <rmh@aybabtu.com>
9412 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9413 "insmod" command directly when abstraction modules are needed,
9414 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9415 since it had already been processed).
9417 2008-06-19 Pavel Roskin <proski@gnu.org>
9419 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9420 changed. This is needed in case GRUB_LIBDIR changes.
9421 * conf/i386-ieee1275.rmk: Likewise.
9422 * conf/i386-linuxbios.rmk: Likewise.
9423 * conf/i386-pc.rmk: Likewise.
9424 * conf/powerpc-ieee1275.rmk: Likewise.
9426 2008-06-18 Pavel Roskin <proski@gnu.org>
9428 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9429 kernel_elf_symlist.c to symlist.c for consistency with other
9430 architectures. Update all users.
9431 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9433 2008-06-18 Robert Millan <rmh@aybabtu.com>
9435 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9438 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9439 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9440 a RAID device, run setup() for all members independently on whether
9441 LVM abstraction is being used.
9442 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9443 If grub-mkimage has set `*install_dos_part == -2', don't override this
9445 Perform *install_dos_part adjustments independently on whether
9446 we're embedding or not.
9447 Clarify error message when image is too big for embedding.
9448 Remove duplicate *install_dos_part stanza.
9450 2008-06-17 Robert Millan <rmh@aybabtu.com>
9452 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9453 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9455 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9456 values in grub_ofconsole_normal_color and
9457 grub_ofconsole_highlight_color (they're not directly related to
9458 background and foreground).
9459 (grub_ofconsole_setcolorstate): Extract background and foreground
9460 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9462 2008-06-17 Robert Millan <rmh@aybabtu.com>
9464 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9465 /boot/grub for the check in last commit, not /boot (they could be
9466 different partitions).
9468 2008-06-16 Robert Millan <rmh@aybabtu.com>
9470 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9471 asked to setup access for the same partition that provides /boot,
9472 don't bother using UUIDs since our root already has the value we
9475 2008-06-16 Robert Millan <rmh@aybabtu.com>
9477 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9479 Patch from Sven Mueller <sven@debian.org>.
9481 2008-06-16 Robert Millan <rmh@aybabtu.com>
9483 * util/update-grub.in: Check for $EUID instead of $UID.
9484 Reported by Vincent Zweije.
9486 2008-06-16 Bean <bean123ch@gmail.com>
9488 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9489 (grub_ext2_read_block): Likewise.
9490 (grub_ext2_read_inode): Likewise.
9491 (grub_ext2_mount): Likewise.
9492 (grub_ext2_close): Likewise.
9493 (grub_ext3_get_journal): Removed.
9495 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9496 (grub_reiserfs_read_symlink): Likewise.
9497 (grub_reiserfs_mount): Likewise.
9498 (grub_reiserfs_open): Likewise.
9499 (grub_reiserfs_read): Likewise.
9500 (grub_reiserfs_close): Likewise.
9501 (grub_reiserfs_get_journal): Removed.
9503 * fs/fshelp.c (grub_fshelp_read): Removed.
9504 (grub_fshelp_map_block): Likewise.
9506 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9507 (grub_fshelp_journal): Likewise.
9508 (grub_fshelp_read): Likewise.
9509 (grub_fshelp_map_block): Likewise.
9511 2008-06-16 Pavel Roskin <proski@gnu.org>
9513 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9514 floating point anymore.
9515 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9517 2008-06-15 Pavel Roskin <proski@gnu.org>
9519 * commands/ls.c (grub_ls_list_files): Use integer calculations
9520 for human readable format, avoid floating point use.
9521 * kern/misc.c (grub_ftoa): Remove.
9522 (grub_vsprintf): Remove floating point support.
9524 2008-06-15 Robert Millan <rmh@aybabtu.com>
9526 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9528 Reported by Max Vozeler.
9530 2008-06-15 Robert Millan <rmh@aybabtu.com>
9532 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9533 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9535 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9536 the beginning of the prefix.
9538 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9539 It is assumed that if we have a memdisk, grub-mkimage has set
9540 grub_prefix to include the "(memdisk)" drive in it.
9542 2008-06-15 Robert Millan <rmh@aybabtu.com>
9544 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9545 Initialize keyboard controller after registering the terminal, so that
9546 grub_printf() can be called from grub_keyboard_controller_init().
9548 2008-06-15 Robert Millan <rmh@aybabtu.com>
9550 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9551 extent-btree which is written as big endian on disk.
9552 Reported by Alain Greppin <al@chilibi.org>.
9554 2008-06-14 Robert Millan <rmh@aybabtu.com>
9556 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9557 * util/i386/pc/grub-install.in (modules): Likewise.
9559 2008-06-13 Pavel Roskin <proski@gnu.org>
9561 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9563 2008-06-13 Bean <bean123ch@gmail.com>
9565 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9567 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9569 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9570 to indicate sparse block.
9572 2008-06-12 Pavel Roskin <proski@gnu.org>
9574 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9575 number, grub_fshelp_read() does it for us.
9577 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9578 linear disk read with journal translation.
9579 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9580 * include/grub/fshelp.h: Declare grub_fshelp_read().
9582 2008-06-09 Pavel Roskin <proski@gnu.org>
9584 * fs/minix.c (grub_minix_mount): Handle error reading
9587 2008-06-08 Robert Millan <rmh@aybabtu.com>
9589 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9590 don't append the RAID prefix afterwards.
9591 Reported by Clint Adams.
9593 2008-06-08 Robert Millan <rmh@aybabtu.com>
9595 Based on description from Pavel:
9596 * kern/disk.c (grub_disk_check_range): Rename to ...
9597 (grub_disk_adjust_range): ... this. Add a comment explaining the
9598 tasks performed by this function.
9600 2008-06-08 Robert Millan <rmh@aybabtu.com>
9602 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9603 `num_serial' (for consistency with other variables).
9604 (struct grub_ntfs_data): Add `uuid' member.
9605 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9606 (grub_ntfs_uuid): New function.
9607 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9609 2008-06-07 Pavel Roskin <proski@gnu.org>
9611 * util/biosdisk.c (open_device): Revert last change to the
9612 function, it broke installation. The sector needs to be
9613 different dependent on which device is opened.
9615 2008-06-06 Robert Millan <rmh@aybabtu.com>
9617 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9618 rest of GRUB, and breakage doesn't happen if its value were modified.
9620 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9621 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9622 a constant (same value).
9623 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9624 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9626 2008-06-06 Robert Millan <rmh@aybabtu.com>
9628 * util/biosdisk.c (open_device): Do not modify sector offset when
9629 accessing a partition. kern/disk.c already handles this for us.
9631 2008-06-06 Robert Millan <rmh@aybabtu.com>
9633 * util/grub-emu.c (grub_machine_init): Move code in this function from
9635 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9636 segfault in case grub_printf() is called).
9638 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9639 grub_probe. Update all users not to explicitly add it again.
9640 (grub_device): New variable; contains corresponding device for grubdir.
9641 (fs_module, partmap_module, devabstraction_module): Pass
9642 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9645 2008-06-05 Robert Millan <rmh@aybabtu.com>
9647 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9648 is found, print it (same layout as with labels).
9650 2008-06-04 Robert Millan <rmh@aybabtu.com>
9652 * util/biosdisk.c (get_drive): Rename to ...
9653 (find_grub_drive): ... this. Update all users.
9655 (get_os_disk): Rename to ...
9656 (convert_system_partition_to_system_disk): ... this. Update all users.
9658 (find_drive): Rename to ...
9659 (find_system_device): ... this. Update all users.
9661 2008-06-04 Robert Millan <rmh@aybabtu.com>
9663 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9664 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9665 (make_device_map): Likewise.
9667 2008-06-01 Robert Millan <rmh@aybabtu.com>
9669 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9670 before dereferencing it.
9672 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9673 union with fat12/fat16-specific ones. Add some new fields, including
9674 `num_serial' for both versions.
9675 (struct grub_fat_data): Add `uuid' member.
9676 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9677 names. Initialize `data->uuid' using `num_serial'.
9678 (grub_fat_uuid): New function.
9679 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9681 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9682 (grub_reiserfs_uuid): New function.
9683 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9686 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9687 (grub_xfs_uuid): New function.
9688 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9690 2008-06-01 Robert Millan <rmh@aybabtu.com>
9692 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9693 code that is backward compatible with pre-uuid search command.
9695 2008-05-31 Robert Millan <rmh@aybabtu.com>
9697 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9698 floppies after everything else, to ensure floppy drive isn't accessed
9699 unnecessarily (patch from Bean).
9701 2008-05-31 Robert Millan <rmh@aybabtu.com>
9703 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9704 not print device names when we were asked to set a variable.
9706 2008-05-31 Robert Millan <rmh@aybabtu.com>
9708 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9709 using "cursor-on" and "cursor-off" commands (understood at least by
9710 the Open Firmware flavour on OLPC).
9712 2008-05-31 Michael Gorven <michael@gorven.za.net>
9714 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9715 on and off sequences.
9717 2008-05-31 Robert Millan <rmh@aybabtu.com>
9719 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9720 * util/update-grub.in: Likewise.
9722 2008-05-30 Pavel Roskin <proski@gnu.org>
9724 * util/biosdisk.c (linux_find_partition): Simplify logic and
9725 make the code more universal. Keep special processing for
9726 devfs, but use a simple rule for all other devices. If the
9727 device ends with a number, append 'p' and the partition number.
9728 Otherwise, append only the partition number.
9730 2008-05-30 Robert Millan <rmh@aybabtu.com>
9732 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9733 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9734 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9735 the `root' parameter to Linux.
9737 2008-05-30 Robert Millan <rmh@aybabtu.com>
9739 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9740 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9741 --fs_uuid with --fs-uuid.
9742 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9743 all filesystems support them).
9745 2008-05-30 Robert Millan <rmh@aybabtu.com>
9747 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9748 grub_printf() flags, since we're printing in units of 2 bytes.
9750 2008-05-30 Robert Millan <rmh@aybabtu.com>
9752 * util/grub.d/00_header.in: Remove obsolete comment referencing
9753 convert_system_path_to_grub_path().
9754 * util/update-grub.in: Likewise.
9755 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9756 (convert_system_path_to_grub_path): Add a warning message explaining
9757 that this function is deprecated. Rely on is_path_readable_by_grub()
9758 for the readability checks.
9759 (font_path): Use is_path_readable_by_grub() for the readability
9760 check rather than convert_system_path_to_grub_path().
9762 2008-05-30 Robert Millan <rmh@aybabtu.com>
9764 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9765 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9766 converting it first.
9767 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9768 grub.cfg for access to font file, and afterwards call it again to set
9771 2008-05-30 Robert Millan <rmh@aybabtu.com>
9773 * commands/search.c (options): Add --fs_uuid option.
9774 (search_fs_uuid): New function.
9775 (grub_cmd_search): Fix --set argument passing.
9776 Use search_fs_uuid() when requested via --fs_uuid.
9777 (grub_search_init): Update help message.
9778 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9779 and redeclare it as an array of 16-bit words.
9780 (grub_ext2_uuid): New function.
9781 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9782 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9783 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9784 (GRUB_DEVICE_BOOT_UUID): New variables.
9785 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9786 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9788 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9789 just assume `root' variable has the right value.
9790 * util/grub.d/10_linux.in: Likewise.
9791 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9793 (main): Recognise `-t fs_uuid' argument.
9795 2008-05-30 Robert Millan <rmh@aybabtu.com>
9797 * util/biosdisk.c (map): Redefine structure to hold information
9798 about GRUB drive name.
9799 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9801 (call_hook): Remove.
9802 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9803 member. Assume drive has partitions.
9804 (grub_util_biosdisk_open): Access device names via `.device' struct
9806 (open_device): Likewise.
9807 (find_drive): Likewise.
9808 (read_device_map): Adjust map[] usage to match the new struct
9809 definition. Don't check for duplicates (still possible, but not cheap
9811 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9812 (make_device_name): Remove assumption of BIOS-like drive names.
9814 2008-05-30 Pavel Roskin <proski@gnu.org>
9816 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9817 compiling execute.c doesn't need grub_script.tab.h anymore.
9818 (normal/command.c_DEPENDENCIES): Likewise.
9819 (normal/function.c_DEPENDENCIES): Likewise.
9820 * conf/i386-ieee1275.rmk: Likewise.
9821 * conf/i386-linuxbios.rmk: Likewise.
9822 * conf/i386-pc.rmk: Likewise.
9823 * conf/powerpc-ieee1275.rmk: Likewise.
9824 * conf/sparc64-ieee1275.rmk: Likewise.
9826 2008-05-29 Pavel Roskin <proski@gnu.org>
9828 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9829 when scanning metadata for volume group name.
9831 * include/grub/script.h: Don't include grub_script.tab.h. It's
9832 a generated file, which may only be included from the files with
9833 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9834 use union YYSTYPE, as the later allows forward declaration.
9835 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9837 2008-05-29 Robert Millan <rmh@aybabtu.com>
9839 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9840 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9841 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9842 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9845 2008-05-29 Robert Millan <rmh@aybabtu.com>
9847 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9848 control key combinations.
9850 2008-05-29 Robert Millan <rmh@aybabtu.com>
9852 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9853 * util/ieee1275/grub-install.in: ... to here.
9854 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9855 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9856 (grub_install_SOURCES): Likewise.
9858 2008-05-29 Robert Millan <rmh@aybabtu.com>
9860 * fs/affs.c: Update copyright year.
9861 * fs/ext2.c: Likewise.
9862 * fs/fshelp.c: Likewise.
9863 * fs/hfsplus.c: Likewise.
9864 * fs/ntfs.c: Likewise.
9865 * fs/xfs.c: Likewise.
9866 * include/grub/fshelp.h: Likewise.
9867 * util/grub-mkdevicemap.c: Likewise.
9869 2008-05-28 Robert Millan <rmh@aybabtu.com>
9871 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9872 might need to be fatfs to support some firmware implementations
9875 2008-05-28 Robert Millan <rmh@aybabtu.com>
9877 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9879 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9880 (make_device_map): Likewise.
9882 2008-05-20 Bean <bean123ch@gmail.com>
9884 * fs/fshelp.c (grub_fshelp_map_block): New function.
9885 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9886 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9888 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9889 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9890 (grub_fshelp_journal): New structure.
9891 (grub_fshelp_map_block): New function prototype.
9892 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9893 (grub_fshelp_map_block): Likewise.
9895 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9896 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9897 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9898 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9899 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9900 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9901 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9902 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9903 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9904 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9905 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9906 (grub_ext2_sblock): New members for journal support.
9907 (grub_ext3_journal_header): New structure.
9908 (grub_ext3_journal_revoke_header): Likewise.
9909 (grub_ext3_journal_block_tag): Likewise.
9910 (grub_ext3_journal_sblock): Likewise.
9911 (grub_fshelp_node): New members logfile and journal.
9912 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9913 grub_fshelp_map_block to get real block number.
9914 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9916 (grub_ext2_read_inode): Likewise.
9917 (grub_ext3_get_journal): New function.
9918 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9919 (grub_ext2_close): Release memory used by journal.
9921 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9922 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9923 (grub_reiserfs_transaction_header): Renamed to
9924 grub_reiserfs_description_block, replace field data with real_blocks.
9925 (grub_reiserfs_commit_block): New structure.
9926 (grub_reiserfs_data): New member journal.
9927 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9929 (grub_reiserfs_read_symlink): Likewise.
9930 (grub_reiserfs_iterate_dir): Likewise.
9931 (grub_reiserfs_open): Likewise.
9932 (grub_reiserfs_read): Likewise.
9933 (grub_reiserfs_get_journal): New function.
9934 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9935 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9936 using grub_reiserfs_get_journal.
9937 (grub_reiserfs_close): Release memory used by journal.
9939 * fs/affs.c (grub_affs_read_block): Change block type to
9940 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9942 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9944 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9946 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9948 * fs/udf.c (grub_udf_read_block): Change block type to
9949 grub_disk_addr_t. Use type cast to avoid warning.
9951 * fs/xfs.c (grub_xfs_read_block): Likewise.
9953 2008-05-16 Christian Franke <franke@computer.org>
9955 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9956 to ensure that break with ESC will always work.
9957 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9958 Remove ESC from keyboard queue.
9960 2008-05-16 Christian Franke <franke@computer.org>
9962 * util/biosdisk.c: [__CYGWIN__] Add includes.
9963 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9964 (get_os_disk): Move variable declarations to OS specific
9965 parts to avoid warning.
9966 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9967 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9968 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9970 * util/getroot.c: [__CYGWIN__] Add includes.
9971 (strip_extra_slashes): Fix "/" case.
9972 [__CYGWIN__] (get_win32_path): New function.
9973 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9974 [__CYGWIN__] (find_root_device): Disable.
9975 [__CYGWIN__] (get_bootsec_serial): New function.
9976 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9977 [__linux__] (grub_guess_root_device): Add early returns to simplify
9979 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9980 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9981 check for Linux only.
9983 2008-05-15 Bean <bean123ch@gmail.com>
9985 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9986 keyboard hang problem in apple's intel mac.
9988 2008-05-09 Robert Millan <rmh@aybabtu.com>
9990 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
9992 * util/grub-mkdevicemap.c (get_virtio_disk_name)
9993 (make_device_map): Likewise.
9994 Reported by Aurelien Jarno <aurel32@debian.org>
9996 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
9998 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
9999 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
10000 (make_device_map): Output entries for xvd type disks.
10002 2008-05-07 Robert Millan <rmh@aybabtu.com>
10004 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
10006 * util/grub-mkdevicemap.c (get_cciss_disk_name)
10007 (make_device_map): Likewise.
10008 Reported by Roland Dreier <rdreier@cisco.com>
10010 2008-05-07 Robert Millan <rmh@aybabtu.com>
10012 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
10013 grub_strstr() call. Correct a few mistakes in failure path handling.
10015 2008-05-06 Robert Millan <rmh@aybabtu.com>
10017 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
10018 Do not print a trailing slash (therefore, the root directory is an
10020 (convert_system_path_to_grub_path): Do not remove trailing slash
10021 from make_system_path_relative_to_its_root() output.
10023 * util/i386/pc/grub-install.in: Add trailing slash to output from
10024 make_system_path_relative_to_its_root().
10026 2008-05-06 Robert Millan <rmh@aybabtu.com>
10028 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
10029 ensures that output lines aren't intermangled with those sent to
10030 stderr (via grub_util_info()).
10031 * util/grub-probe.c (grub_refresh): Likewise.
10032 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
10034 2008-05-05 Christian Franke <franke@computer.org>
10036 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
10037 Add Cygwin device names.
10038 (get_ide_disk_name) [__CYGWIN__]: Likewise.
10039 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10040 (check_device): Return error instead of success on empty name.
10041 (make_device_map): Move label inside linux specific code to
10042 prevent compiler warning.
10044 2008-04-30 Robert Millan <rmh@aybabtu.com>
10046 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10047 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10049 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10051 2008-04-29 Robert Millan <rmh@aybabtu.com>
10053 * docs/grub.cfg: New file (example GRUB configuration).
10055 2008-04-26 Robert Millan <rmh@aybabtu.com>
10057 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10058 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10059 and `disk/ieee1275/nand.c'.
10061 2008-04-25 Bean <bean123ch@gmail.com>
10063 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10066 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10067 change the buffer size to 4096 for cdrom device.
10069 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10071 (_linux_mod_SOURCES): New variable.
10072 (_linux_mod_CFLAGS): Likewise.
10073 (_linux_mod_LDFLAGS): Likewise.
10074 (linux_mod_SOURCES): Likewise.
10075 (linux_mod_CFLAGS): Likewise.
10076 (linux_mod_LDFLAGS): Likewise.
10077 (nand_mod_SOURCES): Likewise.
10078 (nand_mod_CFLAGS): Likewise.
10079 (nand_mod_LDFLAGS): Likewise.
10081 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10082 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10083 type property. (nand device in olpc don't have this property)
10085 * include/grub/disk.h (grub_disk_dev_id): New macro
10086 GRUB_DISK_DEVICE_NAND_ID.
10088 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10089 function prototype.
10090 (grub_rescue_cmd_initrd): Likewise.
10092 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10093 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10094 ofw_cif_handler and ofw_idt, adjust padding number.
10096 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10097 GRUB_MACHINE_IEEE1275 is defined.
10099 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10100 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10102 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10103 on nested function heap_init.
10104 (grub_upper_mem): New variable for i386-ieee1275.
10105 (grub_get_extended_memory): New function for i386-ieee1275.
10106 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10108 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10109 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10112 * loader/i386/ieee1275/linux.c: New file.
10114 * loader/i386/ieee1275/linux_normal.c: New file.
10116 * disk/ieee1275/nand.c: New file.
10118 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10120 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10122 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10124 2008-04-18 Robert Millan <rmh@aybabtu.com>
10126 Restructures early code path on ieee1275 to unify grub_main() as
10127 the first C function that is executed in every platform.
10129 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10130 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10132 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10133 * kern/ieee1275/cmain.c (cmain): Rename to ...
10134 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10135 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10138 2008-04-18 Robert Millan <rmh@aybabtu.com>
10140 * util/update-grub.in: Fix syntax error when setting
10141 `GRUB_PRELOAD_MODULES'.
10142 Reported by Stephane Chazelas <stephane@artesyncp.com>
10144 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10146 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10147 section into account, newer toolchains generate unique build ids
10148 * configure.ac: remove the test for --build-id=none acceptance,
10149 we want build ids to be preserved
10150 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10151 far from other sections don't cause the raw binary images grow
10154 2008-04-15 Robert Millan <rmh@aybabtu.com>
10156 * disk/lvm.c: Update copyright year.
10157 * kern/misc.c: Likewise.
10159 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10161 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10162 there is no memory left for physical volume name.
10164 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10166 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10167 volume name mapping to support bigger than 9 character names properly.
10169 2008-04-13 Robert Millan <rmh@aybabtu.com>
10171 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10172 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10174 2008-04-13 Christian Franke <franke@computer.org>
10176 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10177 to create a floppy emulation boot CD when non emulation mode
10179 Enable Joliet CD filesystem extension.
10181 2008-04-13 Robert Millan <rmh@aybabtu.com>
10183 * kern/misc.c (grub_strncat): Fix off-by-one error.
10184 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10186 * kern/env.c (grub_env_context_close): Clear current context, not
10188 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10190 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10192 2008-04-13 Robert Millan <rmh@aybabtu.com>
10194 Improve robustness when handling LVM.
10196 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10197 (and leave `*p' unmodified).
10198 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10200 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10201 iterating through it.
10202 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10204 (grub_lvm_scan_device): Check the return value (and fail gracefully
10205 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10206 Don't assume `vg->pvs != NULL' when iterating through it.
10208 2008-04-13 Robert Millan <rmh@aybabtu.com>
10210 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10211 * genmk.rb (partmap): New variable.
10212 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10213 (#{partmap}): New target rule.
10214 * genpartmaplist.sh: New file.
10215 * Makefile.in (pkglib_DATA): Add partmap.lst.
10216 (partmap.lst): New target rule.
10217 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10218 modules (including all partition maps), instead of preloading them.
10220 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10222 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10223 `linux-boot-prober' (if installed) to detect other operating
10224 systems which are installed on the computer and add them to
10226 * conf/common.rmk: Build and install 30_os-prober.
10228 2008-04-12 Robert Millan <rmh@aybabtu.com>
10230 * kern/powerpc/ieee1275/init.c: Move from here ...
10231 * kern/ieee1275/init.c: ... to here. Update all users.
10233 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10234 * kern/ieee1275/cmain.c: ... to here. Update all users.
10236 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10237 * kern/ieee1275/openfw.c: ... to here. Update all users.
10239 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10240 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10242 2008-04-10 Pavel Roskin <proski@gnu.org>
10244 * configure.ac: Always use "_cv_" in cache variables for
10245 compatibility with Autoconf 2.62.
10247 2008-04-07 Robert Millan <rmh@aybabtu.com>
10249 Revert grub/machine/init.h addition by Pavel (since it breaks on
10250 i386-ieee1275 and others):
10251 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10252 * util/powerpc/ieee1275/misc.c: Likewise.
10254 2008-04-07 Robert Millan <rmh@aybabtu.com>
10256 * util/grub-probe.c (probe): Improve error message.
10258 2008-04-07 Robert Millan <rmh@aybabtu.com>
10260 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10261 (this prevents the presence of a bogus entry from ruining the whole
10264 2008-04-06 Pavel Roskin <proski@gnu.org>
10266 * util/biosdisk.c: Include grub/util/biosdisk.h.
10267 * util/grub-fstest.c (execute_command): Make static.
10268 * util/grub-mkdevicemap.c (check_device): Likewise.
10269 * util/i386/pc/misc.c: Include grub/machine/init.h.
10270 * util/powerpc/ieee1275/misc.c: Likewise.
10271 * util/lvm.c: Include grub/util/lvm.h.
10272 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10274 * util/raid.c: Include grub/util/raid.h.
10275 (grub_util_getdiskname): Make static.
10277 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10278 grub_hostfs_fini(), as they are called from grub_init_all() and
10279 grub_fini_all() respectively. This fixes an infinite loop in
10280 grub-fstest due to double registration of hostfs.
10281 Reported by Christian Franke <Christian.Franke@t-online.de>
10283 2008-04-05 Pavel Roskin <proski@gnu.org>
10285 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10286 all 8 functions. Otherwise, probe function 0 only.
10288 2008-04-04 Pavel Roskin <proski@gnu.org>
10290 * commands/lspci.c (grub_lspci_iter): Print the bus number
10293 * commands/lspci.c (grub_pci_classes): Fix typos.
10294 (grub_lspci_iter): Don't print func twice. Print vendor ID
10295 before device ID, as it's normally done.
10297 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10298 Fix signedness warnings.
10299 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10301 * util/ieee1275/get_disk_name.c: Include config.h so that
10302 _GNU_SOURCE is defined and getline() is declared. Mark an
10303 unused argument as such. Fix a signedness warning.
10305 2008-04-02 Pavel Roskin <proski@gnu.org>
10307 * genkernsyms.sh.in: Use more robust assignments for CC and
10308 srcdir. Quote srcdir.
10309 * gensymlist.sh.in: Likewise. Assert at the compile time that
10310 the symbol table is not empty.
10312 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10313 * fs/cpio.c (grub_cpio_read): Likewise.
10315 2008-04-01 Pavel Roskin <proski@gnu.org>
10317 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10318 * disk/host.c (grub_host_open): Likewise.
10319 * disk/loopback.c (grub_loopback_open): Likewise.
10320 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10321 disk->id as in disk/host.c, not a multi-character constant.
10323 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10324 later is obsolete, potentially dangerous and sets a bad example.
10325 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10326 * util/misc.c (grub_util_get_image_size): Likewise.
10328 * disk/loopback.c (options): Improve help for "--partitions".
10330 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10331 options to align them with the short options, e.g. "echo -e".
10333 2008-03-31 Bean <bean123ch@gmail.com>
10335 * video/reader/png.c (grub_png_data): New member is_16bit and
10337 (grub_png_decode_image_header): Detect 16 bit png image.
10338 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10339 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10340 (grub_video_reader_png): Release memory occupied by image_data.
10342 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10344 (grub_nfs_mount): Skip the test for sector per cluster.
10346 * include/grub/ntfs.h (MAX_SPC): Removed.
10348 2008-03-31 Bean <bean123ch@gmail.com>
10350 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10351 (grub_probe_SOURCES): Add fs/afs.c.
10352 (grub_fstest_SOURCES): Likewise.
10353 (afs_mod_SOURCES): New variable.
10354 (afs_mod_CFLAGS): Likewise.
10355 (afs_mod_LDFLAGS): Likewise.
10357 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10358 (grub_emu_SOURCES): Likewise.
10360 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10362 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10364 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10366 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10368 * fs/afs.c: New file.
10370 2008-03-30 Pavel Roskin <proski@gnu.org>
10372 * disk/host.c: Include grub/misc.h to fix a warning.
10373 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10374 warnings about implicit declarations.
10376 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10378 * include/grub/i386/loader.h: Change declaration of
10379 grub_linux_boot() to match what grub_loader_set() expects.
10380 * util/getroot.c (grub_guess_root_device): Return const char* to
10382 * util/grub-probe.c (probe): Fix a warning about uninitialized
10383 abstraction_name variable.
10384 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10385 second argument as unused to fix a warning.
10387 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10388 missing grub_error() call.
10390 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10391 2.60 and newer uses it to define datadir.
10393 * commands/sleep.c: Fix warning about implicit declaration.
10394 * disk/memdisk.c: Likewise.
10395 * loader/aout.c: Likewise.
10396 * loader/i386/bsd_normal.c: Likewise.
10397 * util/grub-probe.c: Likewise.
10399 * commands/i386/cpuid.c (has_longmode): Make static.
10400 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10401 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10403 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10404 GDT. This is more robust, as %ds can change.
10405 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10406 calling real_to_prot().
10407 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10409 2008-03-28 Pavel Roskin <proski@gnu.org>
10411 * kern/i386/pc/startup.S: Assert that uncompressed functions
10412 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10413 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10414 code, as they push parts of the code (error handlers) beyond
10415 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10416 code as correctness and size.
10418 2008-03-28 Pavel Roskin <proski@gnu.org>
10420 * kern/i386/pc/startup.S
10421 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10422 data block address to the real mode, keep offset minimal. This
10423 works around a bug in AWARD BIOS on old Athlon systems, which
10424 makes CD detection hang.
10426 2008-03-26 Pavel Roskin <proski@gnu.org>
10428 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10430 * include/grub/normal.h: Add grub_parse_color_name_pair()
10433 2008-03-24 Bean <bean123ch@gmail.com>
10435 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10436 (cd_count): Removed.
10437 (cd_drive): New variable.
10438 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10439 (grub_biosdisk_call_hook): Likewise.
10440 (grub_biosdisk_iterate): Change cdrom detection method.
10441 (grub_biosdisk_open): Replace cd_start with cd_drive.
10442 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10443 detect cdrom device.
10445 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10447 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10448 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10449 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10450 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10451 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10452 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10453 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10454 (grub_biosdisk_cdrp): New structure.
10455 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10457 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10459 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10462 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10465 2008-03-20 Robert Millan <rmh@aybabtu.com>
10467 Remove 2 TiB limit in ata.mod.
10468 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10469 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10470 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10471 grub_uint64_t instead of grub_uint32_t.
10473 2008-03-05 Bean <bean123ch@gmail.com>
10475 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10476 (grub_multiboot): Set boot device.
10478 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10480 2008-03-02 Bean <bean123ch@gmail.com>
10482 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10485 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10487 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10490 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10493 * docs/fdl.texi: New file.
10495 * docs/mdate-sh: New file. Copied from gnulib.
10496 * docs/texinfo.tex: Likewise.
10498 * config.guess: Updated from gnulib.
10499 * install-sh: Likewise.
10501 2008-02-28 Robert Millan <rmh@aybabtu.com>
10503 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10504 (aout_mod_SOURCES): New variable.
10505 (aout_mod_CFLAGS): Likewise.
10506 (aout_mod_LDFLAGS): Likewise.
10508 * conf/i386-ieee1275.rmk: Likewise.
10510 2008-02-28 Robert Millan <rmh@aybabtu.com>
10512 * util/update-grub.in: Reorganise terminal validity check. Accept
10513 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10514 Based on suggestion by Franklin PIAT.
10516 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10518 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10520 * util/getroot.c (grub_util_check_block_device): New function that
10521 returns the given argument if it is a block device and returns NULL else.
10522 * util/grub-probe.c (argument_is_device): New variable.
10523 (probe): Promote device_name from a variable to an argument. Receive
10524 device_name from grub_util_check_block_device() if path is NULL and from
10525 grub_guess_root_device() else. Do not free() device_name anymore.
10526 (options): Introduce new parameter '-d, --device'.
10527 (main): Add description of the new parameter to the help screen.
10528 Rename path variable to argument. Set argument_is_device if the '-d'
10529 option is given. Pass argument to probe() depending on
10530 argument_is_device.
10532 2008-02-24 Bean <bean123ch@gmail.com>
10534 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10535 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10536 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10537 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10538 (GRUB_ISO9660_VOLDESC_END): Likewise.
10539 (grub_iso9660_primary_voldesc): New member escape.
10540 (grub_iso9660_data): New member joliet.
10541 (grub_iso9660_convert_string): New function.
10542 (grub_iso9660_mount): Detect joliet extension.
10543 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10544 (grub_iso9660_iso9660_label): Likewise.
10546 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10547 (grub_setup_SOURCES): Add fs/udf.c.
10548 (grub_fstest_SOURCES): Likewise.
10549 (udf_mod_SOURCES): New variable.
10550 (udf_mod_CFLAGS): Likewise.
10551 (udf_mod_LDFLAGS): Likewise.
10553 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10554 (grub_emu_SOURCES): Likewise.
10556 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10558 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10560 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10564 * fs/udf.c: New file.
10566 2008-02-24 Robert Millan <rmh@aybabtu.com>
10568 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10569 (normal/lexer.c_DEPENDENCIES): New variables.
10570 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10571 (normal/lexer.c_DEPENDENCIES): Likewise.
10572 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10573 (normal/lexer.c_DEPENDENCIES): Likewise.
10574 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10575 (normal/lexer.c_DEPENDENCIES): Likewise.
10576 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10577 (normal/lexer.c_DEPENDENCIES): Likewise.
10578 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10579 (normal/lexer.c_DEPENDENCIES): Likewise.
10581 2008-02-23 Robert Millan <rmh@aybabtu.com>
10583 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10584 since they were intended to be in hex. This didn't break previously
10585 because of a bug in gpt_partition_map_iterate() (see below).
10587 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10588 when checking the validity of GPT header.
10589 Remove `partno', since it always provides the same information as `i'.
10591 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10593 * include/grub/efi/time.h: Fix a wrong comment.
10595 2008-02-19 Pavel Roskin <proski@gnu.org>
10597 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10600 2008-02-19 Bean <bean123ch@gmail.com>
10602 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10603 (aout_mod_SOURCES): New variable.
10604 (aout_mod_CFLAGS): Likewise.
10605 (aout_mod_LDFLAGS): Likewise.
10606 (_bsd_mod_SOURCES): New variable.
10607 (_bsd_mod_CFLAGS): Likewise.
10608 (_bsd_mod_LDFLAGS): Likewise.
10609 (bsd_mod_SOURCES): New variable.
10610 (bsd_mod_CFLAGS): Likewise.
10611 (bsd_mod_LDFLAGS): Likewise.
10613 * include/grub/aout.h: New file.
10615 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10617 * include/grub/i386/bsd.h: New file.
10619 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10622 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10623 function is called, so that it's possible to change it inside the hook.
10624 (grub_elf64_load): Likewise.
10625 (grub_elf_file): Don't close the file if elf header is not found.
10626 (grub_elf_close): Close the file if grub_elf_file fails (The new
10627 grub_elf_file won't close it).
10628 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10629 (grub_elf64_size): Likewise.
10631 * kern/i386/loader.S (grub_unix_real_boot): New function.
10633 * loader/aout.c: New file.
10635 * loader/i386/bsd.c: New file.
10637 * loader/i386/bsd_normal.c: New file.
10639 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10641 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10642 can test other formats.
10644 2008-02-19 Robert Millan <rmh@aybabtu.com>
10646 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10647 (grub_gpt_partition_type_empty): Redefine with macro from
10648 `<grub/gpt_partition.h>'.
10649 (gpt_partition_map_iterate): Adjust partition type comparison.
10651 Export `entry' as partmap-specific `part.data' struct.
10652 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10654 * include/grub/gpt_partition.h (grub_gpt_header)
10655 (grub_gpt_partentry): ... to here (new file).
10657 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10659 (grub_gpt_partition_type_bios_boot): New const variable, defined
10660 with macro from `<grub/gpt_partition.h>'.
10662 (setup): Replace `first_start' with `embed_region', which keeps
10663 track of the embed region (and is partmap-agnostic).
10665 Replace find_first_partition_start() with find_usable_region(),
10666 which finds a usable region for embedding using partmap-specific
10667 knowledge (supports PC/MSDOS and GPT).
10669 Fix all assumptions that the embed region start at sector 1, using
10670 `embed_region.start' from now on. Similarly, use `embed_region.end'
10671 rather than `first_start' to calculate available size.
10673 In grub_util_info() message, replace "into after the MBR" with an
10674 indication of the specific sector our embed region starts at.
10676 2008-02-19 Robert Millan <rmh@aybabtu.com>
10678 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10679 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10680 `commands/reboot.c'.
10681 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10682 (halt_mod_SOURCES): Likewise.
10683 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10684 (halt_mod_SOURCES): Likewise.
10686 2008-02-17 Christian Franke <franke@computer.org>
10688 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10690 2008-02-17 Robert Millan <rmh@aybabtu.com>
10692 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10693 set `first_start' to 0 for non-PC/MSDOS partition maps.
10695 2008-02-16 Robert Millan <rmh@aybabtu.com>
10697 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10698 do not assume partition map is PC/MSDOS before performing checks that
10699 are specific to that layout.
10701 2008-02-13 Robert Millan <rmh@aybabtu.com>
10703 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10704 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10705 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10707 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10709 * configure.ac: Only a cosmetic change on the handling of
10710 -fno-stack-protector.
10712 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10714 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10715 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10717 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10718 (halt_mod_SOURCES): New variable.
10719 (halt_mod_CFLAGS): Likewise.
10720 (halt_mod_LDFLAGS): Likewise.
10721 (reboot_mod_SOURCES): Likewise.
10722 (reboot_mod_CFLAGS): Likewise.
10723 (reboot_mod_LDFLAGS): Likewise.
10725 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10726 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10728 (halt_mod_SOURCES): Likewise.
10729 (reboot_mod_SOURCES): Likewise.
10731 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10732 commands/i386/pc/reboot.c by commands/reboot.c.
10733 (reboot_mod_SOURCES): Likewise.
10735 * commands/i386/pc/reboot.c: merge this file ...
10737 * commands/ieee1275/reboot.c: ... and this file ...
10739 * commands/reboot.c: ... to this file.
10740 Add some precompiler directive to include the correct header for
10743 * commands/ieee1275/halt.c: move this file ...
10745 * commands/halt.c: ... to here.
10746 Add some precompiler directive to include the correct header for
10749 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10750 (grub_halt): Likewise.
10752 * kern/efi/efi.c (grub_reboot): New function.
10753 (grub_halt): Likewise.
10755 2008-02-12 Robert Millan <rmh@aybabtu.com>
10757 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10758 /dev (like it is done for /dev/mapper). This doesn't provide support
10759 for EVMS, but at least it is now easy to identify the problem when it
10762 2008-02-11 Robert Millan <rmh@aybabtu.com>
10764 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10765 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10766 comparing it with -1, not 0.
10768 2008-02-10 Robert Millan <rmh@aybabtu.com>
10770 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10773 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10775 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10776 `disk/lvm.c' to the end of the list.
10777 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10778 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10780 2008-02-10 Robert Millan <rmh@aybabtu.com>
10782 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10783 grub_print_error() instead. This will let user know why we're entering
10785 Based on suggestions from Sam Morris.
10787 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10789 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10790 on remaining N args, instead of "--" arg N times.
10792 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10794 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10795 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10796 pattern for unknown glyphs.
10798 2008-02-09 Robert Millan <rmh@aybabtu.com>
10800 * configure.ac: Probe for `help2man'.
10801 * Makefile.in (builddir): New variable.
10802 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10803 or otherwise add a few flags/options to it.
10804 (install-local): For every executable utility or script that is
10805 installed, invoke $(HELP2MAN) to install a manpage based on --help
10808 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10809 that it doesn't prevent --help from working in build tree.
10811 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10812 with `bug-grub@gnu.org'.
10813 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10814 * util/update-grub.in (usage): New function.
10815 Implement proper argument check, with support for --help and --version
10816 (as well as existing -y).
10818 2008-02-09 Christian Franke <franke@computer.org>
10820 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10821 avoid overwriting previous output.
10822 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10824 2008-02-09 Robert Millan <rmh@aybabtu.com>
10826 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10829 2008-02-09 Robert Millan <rmh@aybabtu.com>
10831 * commands/sleep.c: New file.
10832 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10833 (sleep_mod_SOURCES): New variable.
10834 (sleep_mod_CFLAGS): Likewise.
10835 (sleep_mod_LDFLAGS): Likewise.
10837 2008-02-09 Robert Millan <rmh@aybabtu.com>
10839 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10840 situations in which we can deduce the RAID size and the superblock
10843 2008-02-09 Robert Millan <rmh@aybabtu.com>
10845 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10846 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10847 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10849 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10850 and return a grub_diskmemberlist_t composed of physical array members.
10851 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10853 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10855 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10856 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10857 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10859 * util/grub-probe.c (probe): Move partmap probing code from here ...
10860 (probe_partmap): ... to here.
10861 (probe): Use probe_partmap() once for the disk we're probing, and
10862 additionally, when such disk contains a memberlist() struct member,
10863 once for each disk that is contained in the structure returned by
10866 2008-02-09 Robert Millan <rmh@aybabtu.com>
10868 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10869 environment variable to 'all' in order to obtain debug output from
10871 * util/i386/pc/grub-setup.c (main): Likewise.
10873 2008-02-08 Robert Millan <rmh@aybabtu.com>
10875 * disk/raid.c (grub_raid_scan_device): Check for
10876 `array->device[sb.this_disk.number]' rather than for
10877 `array->device[sb.this_disk.number]->name', since the latter is not
10878 guaranteed to be accessible.
10880 2008-02-08 Robert Millan <rmh@aybabtu.com>
10882 * disk/raid.c: Update copyright.
10883 * fs/cpio.c: Likewise.
10884 * include/grub/raid.h: Likewise.
10885 * loader/i386/pc/multiboot.c: Likewise.
10886 * util/hostfs.c: Likewise.
10888 2008-02-08 Robert Millan <rmh@aybabtu.com>
10890 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10891 to a grub_disk_t array.
10892 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10894 (grub_raid_scan_device): Replace `device[x].name' accesses with
10895 `device[x]->name'. Simplify initialization of `array->device[x]'.
10897 2008-02-08 Robert Millan <rmh@aybabtu.com>
10899 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10900 grub_dprintf() calls.
10901 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10904 2008-02-07 Christian Franke <franke@computer.org>
10906 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10907 instead of fseek and ftell to support large files.
10908 (grub_hostfs_read): Likewise.
10910 2008-02-07 Robert Millan <rmh@aybabtu.com>
10912 Patch from Jeroen Dekkers.
10913 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10914 failure, since successfully reading all array members might not be
10917 2008-02-06 Robert Millan <rmh@aybabtu.com>
10919 * util/grub-probe.c (probe): Simplify partmap probing (with the
10920 assumption that the first word up to the underscore equals to
10923 2008-02-06 Christian Franke <franke@computer.org>
10925 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10926 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10927 last block of a cpio or tar stream.
10928 Check for "TRAILER!!!" instead of any empty data
10929 block to detect last block of a cpio stream.
10930 (grub_cpio_dir): Fix constness of variable np.
10931 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10932 cpio or tar trailer is detected. This fixes a crash
10933 on open of a non existing file.
10935 2008-02-05 Bean <bean123ch@gmail.com>
10937 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10939 (grub_multiboot_load_elf64): Likewise.
10940 (grub_multiboot): Initialize mbi structure.
10942 * util/grub-fstest.c: Don't include unused header file script.h.
10944 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10946 (grub_fstest_SOURCES): Likewise.
10948 2008-02-05 Robert Millan <rmh@aybabtu.com>
10950 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10951 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10952 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10953 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10955 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10956 (translation_table): Replace hardcoded values with macros
10957 provided by `<grub/term.h>'.
10959 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10960 (keyboard_map): Correct/add a few values, with macros provided
10961 by `<grub/term.h>'.
10962 (keyboard_map_shift): Zero values that don't differ from their
10963 `keyboard_map' equivalents.
10964 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10965 Discard the second scan code that is always sent by Caps lock.
10966 Only use `keyboard_map_shift' when it provides a non-zero value,
10967 otherwise fallback to `keyboard_map'.
10969 2008-02-04 Bean <bean123ch@gmail.com>
10971 * Makefile.in (enable_grub_fstest): New variable.
10973 * conf/common.rmk (grub_fstest_init.lst): New rule.
10974 (grub_fstest_init.h): Likewise.
10975 (grub_fstest_init.c): Likewise.
10976 (util/grub-fstest.c_DEPENDENCIES): New variable.
10977 (grub_fstest_SOURCES): Likewise.
10979 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10981 * util/grub-fstest.c: New file.
10983 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10985 Make grub-setup handle a separate root device.
10987 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10988 so that the root device can be compared with the destination
10990 When embedding the core image, if the root and destination devices
10991 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
10993 When not embedding, set ROOT_DRIVE to 0xFF.
10995 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10997 Add support for having a grub directory in a different drive. This
10998 is still only the data handling part.
11000 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
11001 (codestart): Save %dh in GRUB_ROOT_DRIVE.
11002 (grub_root_drive): New variable.
11004 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
11005 instead of GRUB_BOOT_DRIVE to construct a device name. Set
11006 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
11009 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
11011 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
11013 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
11015 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
11016 is bogus, because PXE booting does not specify any drive
11019 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
11020 am not sure if this is really correct.
11022 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
11023 is always identical to the boot drive when booting from a CD.
11025 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
11027 (root_drive): New variable.
11028 (real_start): Unconditionally set %dh to ROOT_DRIVE.
11029 (setup_sectors): Push %dx right after popping it, because %dh will
11031 (copy_buffer): Restore %dx.
11033 2008-02-03 Robert Millan <rmh@aybabtu.com>
11035 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
11036 use `cdboot.img' for cdrom images.
11038 2008-02-03 Robert Millan <rmh@aybabtu.com>
11040 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11041 only setup gfxterm when `font' command has succeeded.
11043 2008-02-03 Robert Millan <rmh@aybabtu.com>
11045 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11046 (grub_rescue_cmd_multiboot_loader)
11047 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11049 2008-02-03 Pavel Roskin <proski@gnu.org>
11051 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11052 %edx and %esi from stack only after grub_gate_a20() is called.
11053 grub_gate_a20() clobbers %edx.
11055 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11057 * configure.ac (AC_INIT): Bumped to 1.96.
11059 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11060 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11061 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11062 video/readers/png.c.
11064 2008-02-03 Bean <bean123ch@gmail.com>
11066 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11067 (cdboot_img_SOURCES): New variable.
11068 (cdboot_img_ASFLAGS): New variable.
11069 (cdboot_img_LDFLAGS): New variable.
11071 * boot/i386/pc/cdboot.S: New file.
11073 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11074 (cd_count): Likewise.
11075 (grub_biosdisk_get_drive): Add support for cd device.
11076 (grub_biosdisk_call_hook): Likewise.
11077 (grub_biosdisk_iterate): Likewise.
11078 (grub_biosdisk_open): Likewise.
11079 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11080 (grub_biosdisk_rw): Support reading from cd device.
11081 (GRUB_MOD_INIT): Iterate cd devices.
11083 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11084 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11085 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11087 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11089 2008-02-02 Robert Millan <rmh@aybabtu.com>
11091 * commands/read.c: New file.
11092 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11093 (read_mod_SOURCES): New variable.
11094 (read_mod_CFLAGS): Likewise.
11095 (read_mod_LDFLAGS): Likewise.
11097 2008-02-02 Robert Millan <rmh@aybabtu.com>
11099 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11100 determining whether menu has to be displayed.
11102 2008-02-02 Marco Gerards <marco@gnu.org>
11104 * bus/pci.c: New file.
11106 * include/grub/pci.h: Likewise.
11108 * include/grub/i386/pc/pci.h: Likewise.
11110 * commands/lspci.c: Likewise.
11112 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11114 (pci_mod_SOURCES): New variable.
11115 (pci_mod_CFLAGS): Likewise.
11116 (pci_mod_LDFLAGS): Likewise.
11117 (lspci_mod_SOURCES): Likewise.
11118 (lspci_mod_CFLAGS): Likewise.
11119 (lspci_mod_LDFLAGS): Likewise.
11121 2008-02-02 Bean <bean123ch@gmail.com>
11123 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11124 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11126 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11127 (grub_xfs_btree_node): New structure.
11128 (grub_xfs_btree_root): New structure.
11129 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11130 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11131 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11132 (GRUB_XFS_EXTENT_SIZE): Likewise.
11133 (grub_xfs_read_block): Support btree format type.
11134 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11135 Use directory block as basic unit.
11137 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11139 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11140 __attribute__ ((__regparm__ (1))).
11142 2008-02-01 Robert Millan <rmh@aybabtu.com>
11144 Correct a mistake in previous commit.
11146 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11148 (normal/command.c_DEPENDENCIES): New variable.
11150 2008-02-01 Robert Millan <rmh@aybabtu.com>
11152 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11154 (normal/command.c_DEPENDENCIES): New variable.
11155 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11156 * conf/i386-ieee1275.rmk: Likewise.
11157 * conf/i386-linuxbios.rmk: Likewise.
11158 * conf/i386-pc.rmk: Likewise.
11159 * conf/sparc64-ieee1275.rmk: Likewise.
11160 * conf/powerpc-ieee1275.rmk: Likewise.
11161 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11163 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11165 2008-02-01 Robert Millan <rmh@aybabtu.com>
11167 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11168 call at beginning of function.
11170 2008-01-31 Pavel Roskin <proski@gnu.org>
11172 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11173 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11174 (grub_mkrescue_SOURCES): Likewise.
11175 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11177 2008-01-30 Robert Millan <rmh@aybabtu.com>
11179 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11180 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11181 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11182 (grub_probe_SOURCES): ... to here.
11184 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11185 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11186 * conf/i386-ieee1275.rmk: Likewise.
11187 * conf/i386-linuxbios.rmk: Likewise.
11188 * conf/powerpc-ieee1275.rmk: Likewise.
11190 2008-01-30 Tristan Gingold <gingold@free.fr>
11192 * kern/rescue.c: Silently accept empty lines.
11194 2008-01-29 Bean <bean123ch@gmail.com>
11196 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11197 (real_code_2): Code cleanup and change comment style.
11198 (move_memory): Avoid using 32-bit address mode.
11200 2008-01-29 Bean <bean123ch@gmail.com>
11202 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11203 (png_mod_SOURCES): New variable.
11204 (png_mod_CFLAGS): Likewise.
11205 (png_mod_LDFLAGS): Likewise.
11207 * video/readers/png.c: New file.
11209 2008-01-28 Robert Millan <rmh@aybabtu.com>
11211 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11212 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11213 `ifndef GRUB_MOD_GAP' hack.
11214 * util/elf/grub-mkimage.c (add_segments): Likewise.
11216 2008-01-27 Robert Millan <rmh@aybabtu.com>
11218 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11219 `GRUB_MOD_GAP' for platforms in which it's not defined.
11220 * util/elf/grub-mkimage.c (add_segments): Likewise.
11222 2008-01-27 Robert Millan <rmh@aybabtu.com>
11224 Get grub-emu to build again (including parallel builds).
11226 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11228 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11229 (normal/execute.c_DEPENDENCIES): ... this, ...
11230 (grub-emu_DEPENDENCIES): ... and this.
11232 * conf/i386-efi.rmk: Likewise.
11233 * conf/i386-linuxbios.rmk: Likewise.
11234 * conf/i386-ieee1275.rmk: Likewise.
11235 * conf/powerpc-ieee1275.rmk: Likewise.
11236 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11238 2008-01-27 Robert Millan <rmh@aybabtu.com>
11240 * NEWS: Add a few items.
11242 2008-01-27 Robert Millan <rmh@aybabtu.com>
11244 Fix parallel builds with grub-emu. Based on earlier commit for
11245 grub-probe and grub-setup.
11247 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11248 (util/grub-emu.c_DEPENDENCIES): ... this.
11249 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11250 (util/grub-emu.c_DEPENDENCIES): ... this.
11251 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11252 (util/grub-emu.c_DEPENDENCIES): ... this.
11253 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11254 (util/grub-emu.c_DEPENDENCIES): ... this.
11255 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11256 (util/grub-emu.c_DEPENDENCIES): ... this.
11258 2008-01-27 Pavel Roskin <proski@gnu.org>
11260 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11261 to create a gap between _end and the modules added to the image
11262 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11263 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11264 * util/elf/grub-mkimage.c (add_segments): Likewise.
11266 2008-01-26 Pavel Roskin <proski@gnu.org>
11268 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11269 just return an error.
11271 2008-01-26 Bean <bean123ch@gmail.com>
11273 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11274 (grub_reiserfs_get_item): Save offset of the next item.
11275 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11277 2008-01-25 Robert Millan <rmh@aybabtu.com>
11279 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11280 make all filesystem sources appear together (possibly fixing omissions
11282 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11283 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11284 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11287 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11289 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11290 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11291 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11292 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11294 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11295 (probe): Add a sanity check to make sure of our ability to read
11296 requested files when probing for filesystem type.
11298 * genmk.rb: Update copyright year (2007).
11300 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11301 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11302 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11303 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11304 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11305 : Remove function prototypes.
11307 2008-01-25 Robert Millan <rmh@aybabtu.com>
11309 Revert my previous commits (based on wrong assumption of how grub_errno
11312 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11313 * kern/file.c (grub_file_open): Likewise.
11315 2008-01-24 Pavel Roskin <proski@gnu.org>
11317 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11318 that hang if GRUB tries to setup colors.
11319 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11320 colors for firmwares that don't support it.
11321 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11322 Recognize Open Hack'Ware, set flags to work around its
11325 2008-01-24 Robert Millan <rmh@aybabtu.com>
11327 * kern/file.c (grub_file_open): Do not account previous failures of
11328 unrelated functions when grub_errno is checked for.
11329 Reported by Oleg Strikov.
11331 2008-01-24 Bean <bean123ch@gmail.com>
11333 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11334 (grub_ufs_sblock): New member volume name.
11335 (grub_ufs_find_file): Fix string copy bug.
11336 (grub_ufs_label): Implement this function properly.
11338 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11339 (grub_hfs_iterate_records): Use the correct file number for extents
11340 and catalog file. Fix problem in next index calculation.
11341 (grub_hfs_find_node): Replace recursive function call with loop.
11342 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11344 2008-01-23 Robert Millan <rmh@aybabtu.com>
11346 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11347 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11348 (grub_multiboot2_real_boot): New function prototype.
11350 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11351 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11353 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11354 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11356 2008-01-23 Robert Millan <rmh@aybabtu.com>
11358 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11359 #ifdef'ed out grub_printf().
11361 2008-01-23 Robert Millan <rmh@aybabtu.com>
11363 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11364 grub_dprintf calls, since they make "debug=all" mode unusable.
11365 (grub_console_checkkey): Likewise.
11367 2008-01-23 Robert Millan <rmh@aybabtu.com>
11369 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11370 `term/i386/pc/at_keyboard.c'.
11371 (pkglib_MODULES): Add `serial.mod'.
11372 (serial_mod_SOURCES): New variable.
11373 (serial_mod_CFLAGS): Likewise.
11374 (serial_mod_LDFLAGS): Likewise.
11376 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11377 `<grub/powerpc/ieee1275/console.h>'.
11378 (grub_keyboard_controller_init): New function prototype.
11379 (grub_console_checkkey): Likewise.
11380 (grub_console_getkey): Likewise.
11382 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11385 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11386 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11388 2008-01-23 Robert Millan <rmh@aybabtu.com>
11390 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11391 present, "(memdisk)/boot/grub" becomes the default prefix.
11393 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11394 a memdisk tarball with all the modules. Add --overlay=DIR option that
11395 allows users to overlay additional files into the image.
11397 2008-01-23 Robert Millan <rmh@aybabtu.com>
11399 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11400 and `machine/memory.h'.
11401 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11402 (_multiboot_mod_SOURCES): New variable.
11403 (_multiboot_mod_CFLAGS): Likewise.
11404 (_multiboot_mod_LDFLAGS): Likewise.
11405 (multiboot_mod_SOURCES): Likewise.
11406 (multiboot_mod_CFLAGS): Likewise.
11407 (multiboot_mod_LDFLAGS): Likewise.
11409 * include/grub/i386/ieee1275/loader.h: New file.
11411 * include/grub/i386/ieee1275/machine.h: Likewise.
11413 * include/grub/i386/ieee1275/memory.h: Likewise.
11415 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11416 variable declaration.
11417 (grub_os_area_size): Likewise.
11419 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11420 (grub_lower_mem, grub_upper_mem): New variables.
11421 (grub_stop_floppy): New function (just to make
11422 grub_multiboot2_real_boot() happy).
11424 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11425 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11426 (grub_stop): New function.
11427 Include `"../realmode.S"' and `"../loader.S"'.
11429 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11430 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11432 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11433 rely on grub_multiboot2_real_boot() for final boot.
11435 2008-01-22 Robert Millan <rmh@aybabtu.com>
11437 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11438 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11439 device that doesn't look like an SD card.
11440 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11441 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11442 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11443 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11446 2008-01-22 Robert Millan <rmh@aybabtu.com>
11448 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11449 avoid claiming over our own code.
11451 2008-01-22 Bean <bean123ch@gmail.com>
11453 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11454 (jpeg_mod_SOURCES): New variable.
11455 (jpeg_mod_CFLAGS): Likewise.
11456 (jpeg_mod_LDFLAGS): Likewise.
11458 * video/readers/jpeg.c : New file.
11460 2008-01-22 Bean <bean123ch@gmail.com>
11462 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11463 there are no more items.
11465 2008-01-21 Robert Millan <rmh@aybabtu.com>
11467 * kern/mm.c (grub_mm_init_region): Improve debug message.
11469 2008-01-21 Robert Millan <rmh@aybabtu.com>
11471 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11472 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11474 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11476 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11477 Indicates start of upper memory.
11478 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11479 (generate_image): Abort when image size is big enough to corrupt
11482 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11483 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11484 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11485 instead of hardcoding 0xA0000.
11486 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11487 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11488 instead of hardcoding 0xA0000.
11490 2008-01-21 Robert Millan <rmh@aybabtu.com>
11492 * disk/memdisk.c (memdisk_size): New variable.
11493 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11495 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11496 image to dynamic memory.
11497 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11498 `memdisk_size'. Free memdisk block.
11500 2008-01-21 Robert Millan <rmh@aybabtu.com>
11502 Fix detection of very small filesystems (like tar).
11504 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11505 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11506 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11507 a problem with this disk).
11509 2008-01-21 Robert Millan <rmh@aybabtu.com>
11511 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11512 on grub_biosdisk_rw_standard() error.
11514 2008-01-21 Robert Millan <rmh@aybabtu.com>
11516 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11518 * kern/elf.c: Likewise.
11519 * kern/ieee1275/ieee1275.c: Likewise.
11520 * kern/powerpc/ieee1275/openfw.c: Likewise.
11521 * term/ieee1275/ofconsole.c: Likewise.
11523 2008-01-21 Robert Millan <rmh@aybabtu.com>
11525 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11527 * include/grub/kernel.h (grub_arch_memdisk_addr)
11528 (grub_arch_memdisk_size): Moved from here ...
11530 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11531 (grub_arch_memdisk_size): ... to here.
11533 2008-01-21 Robert Millan <rmh@aybabtu.com>
11535 Mostly based on bugfix from Bean.
11537 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11538 attribute with hook() parameter.
11539 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11541 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11542 attribute with hook() parameter.
11543 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11546 2008-01-21 Robert Millan <rmh@aybabtu.com>
11548 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11549 (pkglib_MODULES): Add `memdisk.mod'.
11550 (memdisk_mod_SOURCES): New variable.
11551 (memdisk_mod_CFLAGS): Likewise.
11552 (memdisk_mod_LDFLAGS): Likewise.
11554 * disk/memdisk.c: New file.
11556 * include/grub/disk.h (grub_disk_dev_id): Add
11557 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11559 * include/grub/i386/pc/kernel.h
11560 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11561 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11562 (grub_kernel_image_size): New variable declaration.
11563 (grub_total_module_size): Likewise.
11564 (grub_memdisk_image_size): Likewise.
11566 * include/grub/i386/pc/memory.h
11567 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11569 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11570 (grub_arch_memdisk_addr): New variable declaration.
11571 (grub_arch_memdisk_size): Likewise.
11573 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11574 (grub_arch_memdisk_size): Likewise.
11576 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11577 (codestart): Replace hardcoded `0x100000' with
11578 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11580 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11581 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11582 not NULL, append the contents of the file it refers to, at the end of
11583 the compressed kernel image. Initialize `grub_memdisk_image_size'
11584 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11585 (options): Add "memdisk"|'m' option.
11586 (main): Parse --memdisk|-m option, and pass user-provided path as
11587 parameter to generate_image().
11589 2008-01-20 Robert Millan <rmh@aybabtu.com>
11591 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11592 grub_dprintf() calls from here ...
11593 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11595 2008-01-20 Robert Millan <rmh@aybabtu.com>
11597 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11599 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11601 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11602 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11603 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11604 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11606 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11607 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11609 2008-01-19 Robert Millan <rmh@aybabtu.com>
11611 Get rid of confusing function (superseded by
11612 `grub_ieee1275_get_integer_property')
11613 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11615 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11617 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11618 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11619 in native endianness from grub_ieee1275_get_integer_property().
11621 2008-01-19 Robert Millan <rmh@aybabtu.com>
11623 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11624 command after "shut-down", since implementations differ on which
11625 the command for halt is.
11627 2008-01-19 Robert Millan <rmh@aybabtu.com>
11629 * include/grub/i386/linuxbios/console.h: Add header protection.
11630 (grub_keyboard_controller_init): New function prototype.
11631 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11632 (KEYBOARD_COMMAND_READ): Likewise.
11633 (KEYBOARD_COMMAND_WRITE): Likewise.
11634 (KEYBOARD_SCANCODE_SET1): Likewise.
11635 (grub_keyboard_controller_write): New function.
11636 (grub_keyboard_controller_read): Likewise.
11637 (grub_keyboard_controller_init): Likewise.
11639 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11640 (grub_console_init): On coreboot/LinuxBIOS, call
11641 grub_keyboard_controller_init().
11643 2008-01-19 Robert Millan <rmh@aybabtu.com>
11645 PowerPC changes provided by Pavel Roskin.
11647 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11648 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11649 don't rely on cmain() doing it.
11650 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11651 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11653 2008-01-16 Robert Millan <rmh@aybabtu.com>
11655 * include/grub/i386/linuxbios/memory.h
11656 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11657 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11658 receive `table_header' as argument. Instead, probe for it in the
11659 known memory ranges where it can be present.
11660 (grub_available_iterate): Do not pass a fixed `table_header' address
11661 to grub_linuxbios_table_iterate().
11663 2008-01-15 Robert Millan <rmh@aybabtu.com>
11665 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11666 * conf/i386-ieee1275.rmk: New file.
11667 * include/grub/i386/ieee1275/console.h: Likewise.
11668 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11669 * include/grub/i386/ieee1275/kernel.h: Likewise.
11670 * include/grub/i386/ieee1275/time.h: Likewise.
11671 * kern/i386/ieee1275/init.c: Likewise.
11672 * kern/i386/ieee1275/startup.S: Likewise.
11674 2008-01-15 Robert Millan <rmh@aybabtu.com>
11676 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11677 when pointers are 32-bit (but still do set it to one when they are
11680 2008-01-15 Robert Millan <rmh@aybabtu.com>
11682 * include/grub/ieee1275/ieee1275.h
11683 (grub_ieee1275_get_integer_property): New function prototype.
11685 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11686 (grub_ieee1275_get_integer_property): New function. Wraps around
11687 grub_ieee1275_get_property() to handle endianness.
11689 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11690 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11692 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11693 (grub_map): Likewise.
11694 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11696 2008-01-15 Bean <bean123ch@gmail.com>
11698 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11699 (grub_script_execute_cmdline): Reset grub_errno.
11701 * normal/main.c (read_config_file): Reset grub_errno.
11703 * normal/parse.y (script_init): New.
11704 (script): Move function and menuentry here.
11706 (command): Add delimiter at the end of command.
11707 (commands): Adjust to match the new command.
11708 (commandblock): Remove grub_script_lexer_record_start.
11709 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11710 (if): Use the new commands.
11712 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11714 2008-01-15 Robert Millan <rmh@aybabtu.com>
11716 * normal/menu.c (run_menu): Move timeout message from here ...
11717 (print_timeout): ... to here.
11718 (run_menu): Use print_timeout() once during initial draw to print
11719 the whole message, and again in every clock tick to update only
11720 the number of seconds.
11722 2008-01-15 Robert Millan <rmh@aybabtu.com>
11724 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11725 actual size of `available' from grub_ieee1275_get_property(), and
11726 restrict parsing to that bound.
11728 2008-01-15 Christian Franke <franke@computer.org>
11730 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11731 (argp_program_version): Remove variable.
11732 (argp_program_bug_address): Likewise.
11733 (options): Convert from struct argp_option to struct option.
11734 (struct arguments): Remove.
11735 (parse_opt): Remove.
11736 (usage): New function.
11737 (main): Replace struct args members by simple variables.
11738 Replace argp_parse() by getopt_long().
11739 Add switch to evaluate options.
11740 Add missing "(...)" around root_dev in prefix string.
11742 2008-01-14 Robert Millan <rmh@aybabtu.com>
11744 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11745 for grub_ieee1275_exit(), in order to improve portability.
11747 2008-01-14 Robert Millan <rmh@aybabtu.com>
11749 * util/grub.d/10_linux.in (prefix): Define.
11750 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11752 2008-01-13 Pavel Roskin <proski@gnu.org>
11754 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11755 grub_errno if no errors have been detected.
11757 2008-01-12 Robert Millan <rmh@aybabtu.com>
11759 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11760 (grub_util_get_dev_abstraction): New function prototype.
11762 * util/getroot.c: Include `<grub/util/getroot.h>'
11763 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11764 (grub_util_get_dev_abstraction): ... here (new function).
11766 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11767 `PRINT_ABSTRACTION'.
11768 (probe): Probe for abstraction type when requested.
11769 (main): Understand `--target=abstraction'.
11771 * util/i386/efi/grub-install.in: Add abstraction module to core
11772 image when it is found to be necessary.
11773 * util/i386/pc/grub-install.in: Likewise.
11774 * util/powerpc/ieee1275/grub-install.in: Likewise.
11776 * util/update-grub_lib.in (font_path): Return system path without
11777 converting to GRUB path.
11778 * util/update-grub.in: Convert system path returned by font_path()
11779 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11780 abstraction module is needed for loading fonts (if any). Export
11781 that as `GRUB_PRELOAD_MODULES'.
11782 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11785 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11787 Remove some unused code from reiserfs.
11789 * fs/reiserfs.c (struct grub_reiserfs_key)
11790 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11791 (struct grub_reiserfs_node_body): Removed.
11792 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11794 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11796 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11798 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11800 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11802 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11804 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11805 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11806 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11808 2008-01-10 Robert Millan <rmh@aybabtu.com>
11810 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11811 Determines if a file is garbage left by packaging systems, etc.
11812 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11813 for processing /etc/grub.d scripts.
11814 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11815 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11816 as a condition for processing Linux images.
11818 2008-01-10 Pavel Roskin <proski@gnu.org>
11820 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11821 to compile reiserfs.c on PowerPC.
11823 2008-01-10 Robert Millan <rmh@aybabtu.com>
11825 * kern/device.c (grub_device_iterate): Do not abort device iteration
11826 when one of the devices cannot be opened.
11827 * kern/disk.c (grub_disk_open): Do not account previous failures of
11828 unrelated functions when grub_errno is checked for.
11830 2008-01-08 Robert Millan <rmh@aybabtu.com>
11832 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11833 `! grub_linux_is_bzimage', change order of address comparison to make
11834 it more intuitive, and improve "too big zImage" error message.
11836 2008-01-08 Robert Millan <rmh@aybabtu.com>
11838 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11839 `$(update-grub_DATA)'.
11840 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11843 2008-01-07 Robert Millan <rmh@aybabtu.com>
11845 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11846 which instruction is modified by grub-setup during installation
11847 (since it wasn't obvious by only looking at this file).
11849 2008-01-07 Robert Millan <rmh@aybabtu.com>
11851 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11852 listing actual TODO items.
11854 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11856 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11858 (grub_reiserfs_get_key_offset): Likewise.
11859 (grub_reiserfs_set_key_offset): Likewise.
11860 (grub_reiserfs_set_key_type): Likewise.
11861 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11863 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11864 better to remove the bitfield version completely.
11866 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11868 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11869 allocated from the heap, due to the fshelp implementation.
11870 (grub_reiserfs_dir): Free NODE, due to the same reason.
11872 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11874 Mostly from Vincent Pelletier:
11876 * fs/reiserfs.c: New file.
11878 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11879 (reiserfs_mod_SOURCES): New variable.
11880 (reiserfs_mod_CFLAGS): Likewise.
11881 (reiserfs_mod_LDFLAGS): Likewise.
11883 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11884 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11885 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11888 2008-01-06 Robert Millan <rmh@aybabtu.com>
11890 * normal/color.c: Remove `<grub/env.h>'.
11892 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11894 * include/grub/normal.h: Include <grub/env.h>.
11896 2008-01-05 Robert Millan <rmh@aybabtu.com>
11898 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11899 usage example with `(hd0,1)'.
11900 Reported by Samuel Thibault.
11902 2008-01-05 Robert Millan <rmh@aybabtu.com>
11904 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11905 (grub_linux_boot_zimage): Rename to ...
11906 (grub_linux_boot): ... this.
11907 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11908 (grub_linux_boot_zimage): Conditionalize zImage copy.
11910 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11911 (grub_linux_boot_bzimage): Remove prototype.
11912 (grub_linux_boot_zimage): Rename to ...
11913 (grub_linux_boot): ... this.
11915 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11916 (grub_linux_boot): Remove function.
11918 2008-01-05 Robert Millan <rmh@aybabtu.com>
11920 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11921 (grub_env_write_color_highlight): Likewise.
11922 (grub_wait_after_message): Likewise.
11924 * normal/color.c: New file.
11926 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11927 (normal_mod_DEPENDENCIES): Likewise.
11929 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11930 (normal_mod_DEPENDENCIES): Likewise.
11932 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11933 (normal_mod_DEPENDENCIES): Likewise.
11935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11936 (normal_mod_DEPENDENCIES): Likewise.
11938 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11939 for waiting after a message is printed.
11940 * normal/main.c (read_config_file): Likewise.
11941 (grub_normal_init): Register grub_env_write_color_normal() and
11942 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11943 `color_highlight' variables as global.
11945 * normal/menu.c (grub_wait_after_message): New function.
11946 (grub_color_menu_normal): New variable. Replaces ...
11947 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11948 (grub_color_menu_highlight): New variable. Replaces ...
11949 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11950 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11951 `GRUB_TERM_COLOR_STANDARD'.
11952 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11953 `normal_code' and `highlight_code' to `old_color_normal' and
11954 `old_color_highlight', respectively.
11955 (grub_menu_init_page): Update colors when drawing the menu, based on
11956 `menu_color_normal' and `menu_color_highlight' variables.
11957 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11958 a message is printed.
11960 2008-01-05 Robert Millan <rmh@aybabtu.com>
11962 * kern/env.c (grub_env_context_open): Propagate hooks for global
11963 variables to new context.
11965 * kern/main.c (grub_set_root_dev): Export `root' variable.
11967 2008-01-05 Robert Millan <rmh@aybabtu.com>
11969 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11970 discs unconditionally, since udev and others have options to provide
11973 2008-01-05 Robert Millan <rmh@aybabtu.com>
11975 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11977 2008-01-04 Christian Franke <franke@computer.org>
11979 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11982 2008-01-03 Pavel Roskin <proski@gnu.org>
11984 * kern/i386/linuxbios/init.c: Put "void" to all function
11985 declarations with no arguments.
11986 * kern/powerpc/ieee1275/init.c: Likewise.
11987 * term/i386/pc/at_keyboard.c: Likewise.
11988 * term/i386/pc/vga_text.c: Likewise.
11989 * util/grub-mkdevicemap.c: Likewise.
11991 2008-01-02 Robert Millan <rmh@aybabtu.com>
11993 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
11994 message when loaded image is out of bounds.
11995 (grub_multiboot_load_elf64): Likewise.
11997 2008-01-02 Pavel Roskin <proski@gnu.org>
11999 * util/grub.d/10_linux.in: Try version without ".old" when
12000 looking for initrd. It's better to use initrd from the newer
12001 kernel of the same version than no initrd at all.
12003 2008-01-01 Robert Millan <rmh@aybabtu.com>
12005 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
12007 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
12009 * include/grub/video.h: Added grub_video_unmap_color and
12010 grub_video_get_active_render_target.
12011 (grub_video_adapter): Added unmap_color and get_active_render_target.
12013 * video/video.c: Added grub_video_unmap_color and
12014 grub_video_get_active_render_target.
12015 (grub_video_get_info): Changed method to accept NULL pointer as an
12016 argument to allow detection of active video adapter.
12018 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
12019 grub_video_vbe_unmap_color_int.
12020 Added grub_video_vbe_unmap_color and
12021 grub_video_vbe_get_active_render_target.
12022 (grub_video_vbe_adapter): Added unmap_color and
12023 get_active_render_target.
12025 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
12026 with grub_video_vbe_unmap_color_int.
12028 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
12029 (DEFAULT_NORMAL_COLOR): Likewise.
12030 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
12031 (DEFAULT_FG_COLOR): Removed.
12032 (DEFAULT_BG_COLOR): Likewise.
12033 (DEFAULT_CURSOR_COLOR): Changed value.
12034 (grub_virtual_screen): Added standard_color_setting,
12035 normal_color_setting, highlight_color_setting and term_color.
12036 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
12037 (bitmap_width): Added.
12038 (bitmap_height): Likewise.
12039 (bitmap): Likewise.
12040 (set_term_color): Likewise.
12041 (grub_virtual_screen_setup): Changed to use new terminal coloring
12043 (grub_gfxterm_init): Added init for bitmap.
12044 (grub_gfxterm_fini): Added destroy for bitmap.
12045 (redraw_screen_rect): Updated to use background bitmap and new
12047 (scroll_up): Added optimization for case when there is no bitmap.
12048 (grub_gfxterm_cls): Fixed to use correct background color.
12049 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12051 (grub_virtual_screen_setcolor): Likewise.
12052 (grub_virtual_screen_getcolor): Added.
12053 (grub_gfxterm_background_image_cmd): Likewise.
12054 (grub_video_term): Added setcolor and getcolor.
12055 (MOD_INIT): Added registration of background_image command.
12056 (MOD_TERM): Added unregistration for background_image command.
12058 2007-12-30 Pavel Roskin <proski@gnu.org>
12060 * loader/multiboot_loader.c: Fix multiboot command
12061 unregistration. Fix all typos in the word "multiboot".
12063 2007-12-29 Pavel Roskin <proski@gnu.org>
12065 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12066 support for initrd names used in Fedora.
12068 2007-12-26 Bean <bean123ch@gmail.com>
12070 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12071 (cpio_mod_SOURCES): New variable.
12072 (cpio_mod_CFLAGS): Likewise.
12073 (cpio_mod_LDFLAGS): Likewise.
12075 * fs/cpio.c: New file.
12077 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12079 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12081 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12085 2007-12-25 Robert Millan <rmh@aybabtu.com>
12087 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12088 (grub_getcolor): New function.
12090 * kern/term.c (grub_getcolor): New function.
12091 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12092 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12093 (print_entry): Set normal and highlight colors to
12094 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12095 respectively, before printing and restore them to old
12097 (grub_menu_init_page): Likewise. Fill an additional colored space
12098 that would otherwise be left blank.
12100 * term/efi/console.c (grub_console_getcolor): New function.
12101 (struct grub_console_term.getcolor): New variable.
12102 * term/i386/pc/console.c (grub_console_getcolor): New function.
12103 (struct grub_console_term.getcolor): New variable.
12104 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12105 (struct grub_console_term.getcolor): New variable.
12107 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12108 (struct grub_console_term.setcolor): Remove variable.
12109 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12110 (struct grub_console_term.setcolor): Remove variable.
12111 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12112 (struct grub_console_term.setcolor): Remove variable.
12113 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12114 (struct grub_console_term.setcolor): Remove variable.
12116 2007-12-25 Robert Millan <rmh@aybabtu.com>
12118 * configure.ac: Search for possible unifont.hex locations, and
12119 define UNIFONT_HEX if found.
12121 * Makefile.in (UNIFONT_HEX): Define variable.
12122 (DATA): Rename to ...
12123 (PKGLIB): ... this. Update all users.
12124 (PKGDATA): New variable.
12125 (pkgdata_IMAGES): Rename to ...
12126 (pkglib_IMAGES): ... this. Update all users.
12127 (pkgdata_MODULES): Rename to ...
12128 (pkglib_MODULES): ... this. Update all users.
12129 (pkgdata_PROGRAMS): Rename to ...
12130 (pkglib_PROGRAMS): ... this. Update all users.
12131 (pkgdata_DATA): Rename to ...
12132 (pkglib_DATA): ... this. Update all users.
12133 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12134 (unicode.pff, ascii.pff): New rules.
12135 (all-local): Add `$(PKGDATA)' dependency.
12136 (install-local): Process `$(PKGDATA)'.
12138 * util/update-grub_lib.in (font_path): Search for *.pff files in
12139 a few more locations, including `${pkgdata}'.
12141 2007-12-23 Robert Millan <rmh@aybabtu.com>
12143 Patch from Bean <bean123ch@gmail.com>:
12144 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12147 2007-12-21 Bean <bean123ch@gmail.com>
12149 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12150 (ntfscomp_mod_SOURCES): New variable.
12151 (ntfscomp_mod_CFLAGS): Likewise.
12152 (ntfscomp_mod_LDFLAGS): Likewise.
12154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12155 (grub_probe_SOURCES): Likewise.
12156 (grub_emu_SOURCES): Likewise.
12158 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12159 (grub_emu_SOURCES): Likewise.
12161 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12162 (grub_emu_SOURCES): Likewise.
12164 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12165 (grub_emu_SOURCES): Likewise.
12167 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12168 (read_run_list): Renamed to grub_ntfs_read_run_list.
12169 (decomp_nextvcn): Moved to ntfscomp.c.
12170 (decomp_getch): Likewise.
12171 (decomp_get16): Likewise.
12172 (decomp_block): Likewise.
12173 (read_block): Likewise.
12174 (read_data): Partially moved to ntfscomp.c.
12175 (fixup): Change unsigned to grub_uint16_t.
12176 (read_mft): Change unsigned long to grub_uint32_t.
12177 (read_attr): Likewise.
12178 (read_data): Likewise.
12179 (read_run_data): Likewise.
12180 (read_run_list): Likewise.
12181 (read_mft): Likewise.
12183 * fs/ntfscomp.c: New file.
12185 * include/grub/ntfs.h: New file.
12187 2007-12-16 Robert Millan <rmh@aybabtu.com>
12189 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12190 IDE disk check, since Linux is known to support 20 IDE disks.
12191 Reported by Colin Watson.
12193 2007-12-15 Bean <bean123ch@gmail.com>
12195 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12196 (lnxboot_img_SOURCES): New variable.
12197 (lnxboot_img_ASFLAGS): Likewise.
12198 (lnxboot_img_LDFLAGS): Likewise.
12200 * boot/i386/pc/lnxboot.S: New file.
12202 2007-11-24 Pavel Roskin <proski@gnu.org>
12204 * configure.ac: Test if '--build-id=none' is supported by the
12205 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12206 objcopy to generate incorrect binary files (binutils
12207 2.17.50.0.18-1 as shipped by Fedora 8).
12208 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12209 linking, so that build ID doesn't break the test.
12211 2007-11-24 Pavel Roskin <proski@gnu.org>
12213 * include/grub/i386/time.h: use "void" in the argument list
12214 of grub_cpu_idle().
12215 * include/grub/powerpc/time.h: Likewise.
12216 * include/grub/sparc64/time.h: Likewise.
12218 2007-11-18 Christian Franke <franke@computer.org>
12220 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12221 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12222 This fixes the problem that function keys did not work in grub-emu.
12224 2007-11-18 Christian Franke <franke@computer.org>
12226 * disk/host.c (grub_host_open): Remove attribute unused from
12227 name parameter. Add check for "host". This fixes the problem
12228 that grub-emu does not find partitions.
12230 2007-11-18 Christian Franke <franke@computer.org>
12232 * util/hostfs.c (is_dir): New function.
12233 (grub_hostfs_dir): Handle missing dirent.d_type case.
12234 (grub_hostfs_read): Add missing fseek().
12235 (grub_hostfs_label): Clear label pointer. This fixes a crash
12236 of grub-emu on "ls (host)".
12238 2007-11-18 Christian Franke <franke@computer.org>
12240 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12241 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12242 to 64 bit boundary by default.
12244 2007-11-18 Bean <bean123ch@gmail.com>
12246 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12247 (hexdump_mod_SOURCES): New variable.
12248 (hexdump_mod_CFLAGS): Likewise.
12249 (hexdump_mod_LDFLAGS): Likewise.
12251 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12253 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12255 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12259 * include/grub/hexdump.h: New file.
12261 * commands/hexdump.c: New file.
12263 2007-11-10 Robert Millan <rmh@aybabtu.com>
12265 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12266 in grub_outb() calls.
12267 (beep_on): Likewise.
12269 2007-11-10 Christian Franke <franke@computer.org>
12271 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12272 (grub_menu_run): Likewise.
12274 2007-11-10 Robert Millan <rmh@aybabtu.com>
12276 * include/grub/i386/efi/machine.h: New file.
12277 * include/grub/i386/linuxbios/machine.h: Likewise.
12278 * include/grub/i386/pc/machine.h: Likewise.
12279 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12280 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12282 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12283 (serial_hw_io_addr): New variable.
12284 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12285 instead of `(unsigned short *) 0x400'.
12287 2007-11-10 Bean <bean123ch@gmail.com>
12289 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12291 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12293 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12294 (vga_mod_SOURCES): Added.
12295 (vga_mod_CFLAGS): Likewise.
12296 (vga_mod_LDFLAGS): Likewise.
12298 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12300 (set_map_mask): Likewise.
12301 (set_read_map): Likewise.
12302 (set_read_address): Likewise.
12303 (vga_font): Removed variable.
12304 (get_vga_glyph): Removed function.
12305 (invalidate_char): Likewise.
12306 (write_char): Changed to use grub_font_get_glyph() for font
12308 (grub_vga_putchar): Likewise.
12309 (grub_vga_getcharwidth): Likewise.
12311 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12313 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12315 (pxeboot_img_LDFLAGS): Likewise.
12316 (diskboot_img_LDFLAGS): Likewise.
12317 (kernel_img_LDFLAGS): Likewise.
12319 2007-11-06 Robert Millan <rmh@aybabtu.com>
12321 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12322 in grub_outb() calls.
12323 (serial_hw_init): Likewise.
12325 2007-11-05 Robert Millan <rmh@aybabtu.com>
12327 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12328 spaces. Skip non-regular files.
12330 2007-11-05 Robert Millan <rmh@aybabtu.com>
12332 * kern/disk.c (grub_disk_firmware_fini)
12333 (grub_disk_firmware_is_tainted): New variables.
12335 * include/grub/disk.h (grub_disk_firmware_fini)
12336 (grub_disk_firmware_is_tainted): Likewise.
12338 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12339 (grub_disk_biosdisk_fini): ... to here.
12340 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12341 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12342 is set. Register grub_disk_biosdisk_fini() in
12343 `grub_disk_firmware_fini'.
12345 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12346 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12347 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12348 to finish existing firmware disk interface.
12350 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12351 (ata_mod_SOURCES): New variable.
12352 (ata_mod_CFLAGS): Likewise.
12353 (ata_mod_LDFLAGS): Likewise.
12355 2007-11-05 Robert Millan <rmh@aybabtu.com>
12357 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12358 (grub_ata_wait): Reimplement using grub_millisleep().
12360 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12361 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12363 2007-11-03 Marco Gerards <marco@gnu.org>
12365 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12366 (CRTC_ADDR_PORT): New macro.
12367 (CRTC_DATA_PORT): Likewise.
12368 (CRTC_CURSOR): Likewise.
12369 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12370 (CRTC_CURSOR_ADDR_LOW): Likewise.
12371 (update_cursor): New function.
12372 (grub_console_real_putchar): Call `update_cursor'.
12373 (grub_console_gotoxy): Likewise.
12374 (grub_console_cls): Set the default color when clearing the
12376 (grub_console_setcursor): Implemented.
12378 2007-11-03 Marco Gerards <marco@gnu.org>
12380 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12382 (grub_ata_pio_write): Likewise.
12384 (grub_atapi_identify): Wait after issuing an ATA command.
12385 (grub_atapi_packet): Likewise.
12386 (grub_ata_identify): Likewise.
12387 (grub_ata_readwrite): Likewise.
12389 2007-11-03 Marco Gerards <marco@gnu.org>
12391 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12392 (grub_ata_pio_write): Likewise.
12393 (grub_ata_readwrite): Use `grub_error', instead of
12394 returning `grub_errno'.
12396 2007-11-03 Marco Gerards <marco@gnu.org>
12398 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12399 grub_ata_pio_write once for every single sector, instead of for
12402 2007-10-31 Robert Millan <rmh@aybabtu.com>
12404 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12406 * conf/i386-linuxbios.rmk: New file.
12408 * kern/i386/pc/hardware.c: Likewise.
12409 * term/i386/pc/at_keyboard.c: Likewise.
12410 * term/i386/pc/vga_text.c: Likewise.
12412 * include/grub/i386/linuxbios/boot.h: Likewise.
12413 * include/grub/i386/linuxbios/console.h: Likewise.
12414 * include/grub/i386/linuxbios/init.h: Likewise.
12415 * include/grub/i386/linuxbios/kernel.h: Likewise.
12416 * include/grub/i386/linuxbios/loader.h: Likewise.
12417 * include/grub/i386/linuxbios/memory.h: Likewise.
12418 * include/grub/i386/linuxbios/serial.h: Likewise.
12419 * include/grub/i386/linuxbios/time.h: Likewise.
12421 * kern/i386/linuxbios/init.c: Likewise.
12422 * kern/i386/linuxbios/startup.S: Likewise.
12423 * kern/i386/linuxbios/table.c: Likewise.
12425 2007-10-31 Marco Gerards <marco@gnu.org>
12427 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12428 (ata_mod_SOURCES): New variable.
12429 (ata_mod_CFLAGS): Likewise.
12430 (ata_mod_LDFLAGS): Likewise.
12432 * disk/ata.c: New file.
12434 * include/grub/disk.h (grub_disk_dev_id): Add
12435 `GRUB_DISK_DEV_ATA_ID'.
12437 2007-10-31 Robert Millan <rmh@aybabtu.com>
12439 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12440 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12442 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12443 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12445 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12448 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12450 2007-10-27 Robert Millan <rmh@aybabtu.com>
12452 * include/grub/types.h (ULONG_MAX): Define macro.
12454 2007-10-22 Robert Millan <rmh@aybabtu.com>
12456 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12458 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12460 2007-10-22 Robert Millan <rmh@aybabtu.com>
12462 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12463 (pkgdata_MODULES): Add `biosdisk.mod'.
12464 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12467 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12468 (grub_biosdisk_init): Replace with ...
12469 (GRUB_MOD_INIT(biosdisk)): ... this.
12470 (grub_biosdisk_fini): Replace with ...
12471 (GRUB_MOD_FINI(biosdisk)): ... this.
12473 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12474 (grub_machine_init): Remove call to grub_biosdisk_init().
12475 (grub_machine_fini): Remove call to grub_machine_fini().
12477 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12479 2007-10-22 Robert Millan <rmh@aybabtu.com>
12481 * include/grub/time.h: New file.
12482 * include/grub/i386/time.h: Likewise.
12483 * include/grub/powerpc/time.h: Likewise.
12484 * include/grub/sparc64/time.h: Likewise.
12486 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12488 (KERNEL_MACHINE_TIME_HEADER): ... this.
12489 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12491 (KERNEL_MACHINE_TIME_HEADER): ... this.
12492 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12494 (KERNEL_MACHINE_TIME_HEADER): ... this.
12496 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12497 (grub_millisleep): New function.
12498 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12499 (grub_millisleep): New function.
12500 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12501 Remove `grub/machine/time.h' include.
12502 (grub_millisleep): New function.
12503 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12504 Remove `grub/machine/time.h' include.
12505 (grub_millisleep): New function.
12507 * include/grub/misc.h (grub_div_roundup): New function.
12509 * kern/misc.c: Include `<grub/time.h>'.
12510 (grub_millisleep_generic): New function.
12512 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12514 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12516 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12517 `machine/time.h'. Add `time.h'.
12518 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12520 2007-10-21 Robert Millan <rmh@aybabtu.com>
12522 * include/grub/misc.h (grub_max): New function.
12524 2007-10-21 Robert Millan <rmh@aybabtu.com>
12526 * util/misc.c (grub_util_info): Call fflush() before returning.
12528 2007-10-20 Robert Millan <rmh@aybabtu.com>
12530 * genmk.rb (Image): Copy `extra_flags' from here ...
12531 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12533 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12534 to `argc' and `args' arguments.
12536 2007-10-17 Robert Millan <rmh@aybabtu.com>
12538 * kern/i386/loader.S: New file.
12540 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12541 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12542 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12543 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12544 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12545 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12546 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12547 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12548 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12549 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12550 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12551 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12552 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12553 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12555 * kern/i386/realmode.S: New file.
12557 * kern/i386/pc/startup.S (protstack): Moved from here ...
12558 * kern/i386/realmode.S (protstack)... to here.
12559 * kern/i386/pc/startup.S (gdt): Moved from here ...
12560 * kern/i386/realmode.S (gdt)... to here.
12561 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12562 * kern/i386/realmode.S (prot_to_real)... to here.
12564 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12565 `kern/i386/realmode.S'.
12567 2007-10-17 Robert Millan <rmh@aybabtu.com>
12569 * include/grub/i386/loader.h: New file.
12571 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12572 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12573 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12574 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12575 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12576 * include/grub/i386/loader.h (grub_linux_prot_size)
12577 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12578 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12579 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12580 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12582 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12584 2007-10-15 Robert Millan <rmh@aybabtu.com>
12586 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12587 filesystem when dev->disk is unset.
12588 Do probe for filesystem even when dev->disk->has_partitions is set.
12589 In case a filesystem is found, always report it.
12590 In case it isn't, if dev->disk->has_partitions is set, report that
12591 a partition table was found instead of reporting that no filesystem
12592 could be identified.
12594 2007-10-12 Robert Millan <rmh@aybabtu.com>
12596 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12597 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12599 * include/grub/types.h (grub_host_to_target16): New macro.
12600 (grub_host_to_target32): Likewise.
12601 (grub_host_to_target64): Likewise.
12602 (grub_target_to_host16): Likewise.
12603 (grub_target_to_host32): Likewise.
12604 (grub_target_to_host64): Likewise.
12606 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12607 Renamed from to ...
12608 (GRUB_MOD_ALIGN): ...this. Update all users.
12610 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12611 grub_host_to_target32.
12612 Replace grub_be_to_cpu32 with grub_target_to_host32.
12613 (load_modules): Likewise.
12614 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12615 Replace grub_be_to_cpu32 with grub_target_to_host32.
12616 Replace grub_cpu_to_be16 with grub_host_to_target16.
12617 Replace grub_cpu_to_be32 grub_host_to_target32.
12619 2007-10-12 Robert Millan <rmh@aybabtu.com>
12621 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12622 * util/elf/grub-mkimage.c: ... here.
12624 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12625 `util/powerpc/ieee1275/grub-mkimage.c'.
12627 2007-10-07 Robert Millan <rmh@aybabtu.com>
12629 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12630 and make it easier to figure out.
12631 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12632 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12633 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12634 leave us with less than HEAP_MIN_SIZE total heap.
12635 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12637 2007-10-03 Robert Millan <rmh@aybabtu.com>
12639 * include/grub/i386/io.h: New file.
12640 * commands/i386/pc/play.c (inb): Removed.
12642 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12644 * term/i386/pc/serial.c (inb): Removed.
12646 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12648 * term/i386/pc/vga.c (inb): Removed.
12650 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12653 2007-10-02 Robert Millan <rmh@aybabtu.com>
12655 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12657 Reported by Marcin Kurek.
12659 2007-09-07 Robert Millan <rmh@aybabtu.com>
12661 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12662 SmartFirmware version updates (as released by Sven Luther), and avoid
12663 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12664 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12667 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12669 From Hitoshi Ozeki:
12670 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12671 when merging two regions.
12673 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12675 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12676 * normal/completion.c (grub_normal_do_completion): Likewise.
12677 Reported by Hitoshi Ozeki.
12679 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12681 Do not use devices at boot in chainloading.
12683 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12684 (boot_part_addr): Likewise.
12685 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12686 with BOOT_DRIVE and BOOT_PART_ADDR.
12687 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12688 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12690 2007-08-29 Robert Millan <rmh@aybabtu.com>
12692 Patch from Simon Peter <dn.tlp@gmx.net>:
12693 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12694 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12695 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12696 util/i386/pc/grub-setup.c_DEPENDENCIES.
12697 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12698 util/grub-probe.c_DEPENDENCIES.
12699 * conf/powerpc-ieee1275.rmk: Likewise.
12701 2007-08-28 Robert Millan <rmh@aybabtu.com>
12703 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12704 to tell grub-mkdevicemap how to name devices.
12705 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12708 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12709 util/i386/get_disk_name.c.
12710 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12711 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12712 util/ieee1275/get_disk_name.c.
12714 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12716 * DISTLIST: Add util/i386/get_disk_name.c and
12717 util/ieee1275/get_disk_name.c.
12719 * util/grub-mkdevicemap.c: Replace device naming logic with
12720 grub_util_get_disk_name() calls.
12722 2007-08-20 Robert Millan <rmh@aybabtu.com>
12724 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12725 (so that it works for both plural and singular quantities).
12727 2007-08-05 Robert Millan <rmh@aybabtu.com>
12729 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12730 so that [xz] isn't taken into account when determining order.
12732 2007-08-02 Marco Gerards <marco@gnu.org>
12734 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12735 `include/multiboot2.h', `include/grub/elfload.h',
12736 `include/multiboot.h', `include/grub/multiboot.h',
12737 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12738 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12739 `kern/elf.c', `loader/multiboot_loader.c',
12740 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12741 `loader/i386/pc/multiboot2.c',
12742 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12743 `util/i386/pc/grub-mkrescue.in'. Remove
12744 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12745 `include/grub/i386/pc/util/biosdisk.h' and
12746 `include/grub/powerpc/ieee1275/multiboot.h'.
12748 2007-08-02 Bean <bean123ch@gmail.com>
12750 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12751 (ntfs_mod_SOURCES): New variable.
12752 (ntfs_mod_CFLAGS): Likewise.
12753 (ntfs_mod_LDFLAGS): Likewise.
12755 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12756 (grub_probe_SOURCES): Likewise.
12757 (grub_emu_SOURCES): Likewise.
12759 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12760 (grub_emu_SOURCES): Likewise.
12762 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12763 (grub_emu_SOURCES): Likewise.
12765 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12767 * fs/ntfs.c: New file.
12769 2007-08-02 Bean <bean123ch@gmail.com>
12771 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12773 * file.h (grub_file): Likewise.
12775 * fshelp.h (grub_fshelp_read_file): Likewise.
12777 * util/i386/pc/grub-setup.c (setup): Likewise.
12778 (save_first_sector): Likewise.
12779 (save_blocklists): Likewise.
12781 * fs/affs.c (grub_affs_read_file): Likewise.
12783 * fs/ext2.c (grub_ext2_read_file): Likewise.
12785 * fs/fat.c (grub_fat_read_data): Likewise.
12787 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12789 * fs/hfs.c (grub_hfs_read_file): Likewise.
12791 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12793 * fs/jfs.c (grub_jfs_read_file): Likewise.
12795 * fs/minix.c (grub_minix_read_file): Likewise.
12797 * fs/sfs.c (grub_sfs_read_file): Likewise.
12799 * fs/ufs.c (grub_ufs_read_file): Likewise.
12801 * fs/xfs.c (grub_xfs_read_file): Likewise.
12803 * command/blocklist.c (read_blocklist): Likewise.
12804 (print_blocklist): Likewise.
12806 2007-08-02 Marco Gerards <marco@gnu.org>
12808 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12811 * disk/host.c: New file.
12813 * util/hostfs.c: Likewise.
12815 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12816 return `GRUB_ERR_BAD_FS'.
12817 * fs/sfs.c (grub_sfs_mount): Likewise.
12818 * fs/xfs.c (grub_xfs_mount): Likewise.
12820 * include/grub/disk.h (enum grub_disk_dev_id): Add
12821 `GRUB_DISK_DEVICE_HOST_ID'.
12823 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12825 2007-07-24 Jerone Young <jerone@gmail.com>
12827 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12828 modules for compilation.
12829 * conf/powerpc-ieee1275.rmk: Likewise.
12831 * include/multiboot.h: Move multiboot definitions to one file. Rename
12832 many definitions to not get grub specific.
12833 * include/multiboot2.h: Create header with multiboot 2 definitions.
12834 * include/grub/multiboot.h: Header for grub specific function
12835 prototypes and definitions.
12836 * include/grub/multiboot2.h: Likewise.
12837 * include/grub/multiboot_loader.h: Likewise.
12838 * include/grub/i386/pc/multiboot.h: Removed.
12839 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12841 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12842 and 2 to allow for one multiboot and module commands.
12843 * loader/multiboot2.c: Add multiboot2 functionality.
12844 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12845 and definition names.
12846 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12848 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12849 ieee1275 specific multiboot2 code.
12851 * kern/i386/pc/startup.S: Change headers and definition names for
12852 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12854 2007-07-22 Robert Millan <rmh@aybabtu.com>
12856 * geninitheader.sh: Process file specified in first parameter rather
12857 than hardcoding grub_modules_init.lst.
12858 * geninit.sh: Likewise. Also, construct header name dynamically rather
12859 than hardcoding grub_modules_init.h.
12861 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12862 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12863 grub_probe_init.[ch] and grub_setup_init.[ch].
12865 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12866 grub_modules_init.h with grub_emu_init.h.
12867 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12868 grub_probe_init.[ch] files.
12869 * conf/i386-efi.rmk: Likewise.
12870 * conf/i386-pc.rmk: Likewise.
12871 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12872 grub_setup_init.[ch] files.
12874 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12875 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12876 to initialize modules rather than a list of hardcoded functions.
12877 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12878 grub_init_all() to initialize modules rather than a list of hardcoded
12881 2007-07-22 Robert Millan <rmh@aybabtu.com>
12883 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12884 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12886 2007-07-22 Robert Millan <rmh@aybabtu.com>
12888 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12889 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12890 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12891 flag when running on SmartFirmware.
12892 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12893 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12896 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12897 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12898 rather than decreasing it.
12900 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12901 there's not enough space to do it, fail in the same way as when it
12902 can't be done because there are no partitions.
12904 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12905 when nvsetenv failed.
12907 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12909 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12910 because this rule is automatically generated.
12911 (grub-mkrescue): Removed for the same reason as above.
12913 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12915 Migrate to GNU General Public License Version 3.
12917 * COPYING: Replaced with the plain text version of GPLv3.
12919 * config.guess: Updated from gnulib.
12920 * config.sub: Likewise.
12922 * geninit.sh: Output a GPLv3 copyright notice.
12923 * geninitheader.sh: Likewise.
12924 * genmodsrc.sh: Likewise.
12925 * gensymlist.sh.in: Likewise.
12927 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12928 * boot/i386/pc/diskboot.S: Likewise.
12929 * boot/i386/pc/pxeboot.S: Likewise.
12930 * commands/blocklist.c: Likewise.
12931 * commands/boot.c: Likewise.
12932 * commands/cat.c: Likewise.
12933 * commands/cmp.c: Likewise.
12934 * commands/configfile.c: Likewise.
12935 * commands/echo.c: Likewise.
12936 * commands/help.c: Likewise.
12937 * commands/ls.c: Likewise.
12938 * commands/search.c: Likewise.
12939 * commands/terminal.c: Likewise.
12940 * commands/test.c: Likewise.
12941 * commands/videotest.c: Likewise.
12942 * commands/i386/cpuid.c: Likewise.
12943 * commands/i386/pc/halt.c: Likewise.
12944 * commands/i386/pc/play.c: Likewise.
12945 * commands/i386/pc/reboot.c: Likewise.
12946 * commands/i386/pc/vbeinfo.c: Likewise.
12947 * commands/i386/pc/vbetest.c: Likewise.
12948 * commands/ieee1275/halt.c: Likewise.
12949 * commands/ieee1275/reboot.c: Likewise.
12950 * commands/ieee1275/suspend.c: Likewise.
12951 * disk/loopback.c: Likewise.
12952 * disk/lvm.c: Likewise.
12953 * disk/raid.c: Likewise.
12954 * disk/efi/efidisk.c: Likewise.
12955 * disk/i386/pc/biosdisk.c: Likewise.
12956 * disk/ieee1275/ofdisk.c: Likewise.
12957 * font/manager.c: Likewise.
12958 * fs/affs.c: Likewise.
12959 * fs/ext2.c: Likewise.
12960 * fs/fat.c: Likewise.
12961 * fs/fshelp.c: Likewise.
12962 * fs/hfs.c: Likewise.
12963 * fs/hfsplus.c: Likewise.
12964 * fs/iso9660.c: Likewise.
12965 * fs/jfs.c: Likewise.
12966 * fs/minix.c: Likewise.
12967 * fs/sfs.c: Likewise.
12968 * fs/ufs.c: Likewise.
12969 * fs/xfs.c: Likewise.
12970 * hello/hello.c: Likewise.
12971 * include/grub/acorn_filecore.h: Likewise.
12972 * include/grub/arg.h: Likewise.
12973 * include/grub/bitmap.h: Likewise.
12974 * include/grub/boot.h: Likewise.
12975 * include/grub/cache.h: Likewise.
12976 * include/grub/device.h: Likewise.
12977 * include/grub/disk.h: Likewise.
12978 * include/grub/dl.h: Likewise.
12979 * include/grub/elfload.h: Likewise.
12980 * include/grub/env.h: Likewise.
12981 * include/grub/err.h: Likewise.
12982 * include/grub/file.h: Likewise.
12983 * include/grub/font.h: Likewise.
12984 * include/grub/fs.h: Likewise.
12985 * include/grub/fshelp.h: Likewise.
12986 * include/grub/gzio.h: Likewise.
12987 * include/grub/hfs.h: Likewise.
12988 * include/grub/kernel.h: Likewise.
12989 * include/grub/loader.h: Likewise.
12990 * include/grub/lvm.h: Likewise.
12991 * include/grub/misc.h: Likewise.
12992 * include/grub/mm.h: Likewise.
12993 * include/grub/net.h: Likewise.
12994 * include/grub/normal.h: Likewise.
12995 * include/grub/parser.h: Likewise.
12996 * include/grub/partition.h: Likewise.
12997 * include/grub/pc_partition.h: Likewise.
12998 * include/grub/raid.h: Likewise.
12999 * include/grub/rescue.h: Likewise.
13000 * include/grub/script.h: Likewise.
13001 * include/grub/setjmp.h: Likewise.
13002 * include/grub/symbol.h: Likewise.
13003 * include/grub/term.h: Likewise.
13004 * include/grub/terminfo.h: Likewise.
13005 * include/grub/tparm.h: Likewise.
13006 * include/grub/types.h: Likewise.
13007 * include/grub/video.h: Likewise.
13008 * include/grub/efi/api.h: Likewise.
13009 * include/grub/efi/chainloader.h: Likewise.
13010 * include/grub/efi/console.h: Likewise.
13011 * include/grub/efi/console_control.h: Likewise.
13012 * include/grub/efi/disk.h: Likewise.
13013 * include/grub/efi/efi.h: Likewise.
13014 * include/grub/efi/pe32.h: Likewise.
13015 * include/grub/efi/time.h: Likewise.
13016 * include/grub/i386/linux.h: Likewise.
13017 * include/grub/i386/setjmp.h: Likewise.
13018 * include/grub/i386/types.h: Likewise.
13019 * include/grub/i386/efi/kernel.h: Likewise.
13020 * include/grub/i386/efi/loader.h: Likewise.
13021 * include/grub/i386/efi/time.h: Likewise.
13022 * include/grub/i386/pc/biosdisk.h: Likewise.
13023 * include/grub/i386/pc/boot.h: Likewise.
13024 * include/grub/i386/pc/chainloader.h: Likewise.
13025 * include/grub/i386/pc/console.h: Likewise.
13026 * include/grub/i386/pc/init.h: Likewise.
13027 * include/grub/i386/pc/kernel.h: Likewise.
13028 * include/grub/i386/pc/loader.h: Likewise.
13029 * include/grub/i386/pc/memory.h: Likewise.
13030 * include/grub/i386/pc/multiboot.h: Likewise.
13031 * include/grub/i386/pc/serial.h: Likewise.
13032 * include/grub/i386/pc/time.h: Likewise.
13033 * include/grub/i386/pc/vbe.h: Likewise.
13034 * include/grub/i386/pc/vbeblit.h: Likewise.
13035 * include/grub/i386/pc/vbefill.h: Likewise.
13036 * include/grub/i386/pc/vbeutil.h: Likewise.
13037 * include/grub/i386/pc/vga.h: Likewise.
13038 * include/grub/ieee1275/ieee1275.h: Likewise.
13039 * include/grub/ieee1275/ofdisk.h: Likewise.
13040 * include/grub/powerpc/libgcc.h: Likewise.
13041 * include/grub/powerpc/setjmp.h: Likewise.
13042 * include/grub/powerpc/types.h: Likewise.
13043 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13044 * include/grub/powerpc/ieee1275/console.h: Likewise.
13045 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13046 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13047 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13048 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13049 * include/grub/powerpc/ieee1275/time.h: Likewise.
13050 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13051 * include/grub/sparc64/libgcc.h: Likewise.
13052 * include/grub/sparc64/setjmp.h: Likewise.
13053 * include/grub/sparc64/types.h: Likewise.
13054 * include/grub/sparc64/ieee1275/console.h: Likewise.
13055 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13056 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13057 * include/grub/sparc64/ieee1275/time.h: Likewise.
13058 * include/grub/util/biosdisk.h: Likewise.
13059 * include/grub/util/getroot.h: Likewise.
13060 * include/grub/util/lvm.h: Likewise.
13061 * include/grub/util/misc.h: Likewise.
13062 * include/grub/util/raid.h: Likewise.
13063 * include/grub/util/resolve.h: Likewise.
13064 * io/gzio.c: Likewise.
13065 * kern/device.c: Likewise.
13066 * kern/disk.c: Likewise.
13067 * kern/dl.c: Likewise.
13068 * kern/elf.c: Likewise.
13069 * kern/env.c: Likewise.
13070 * kern/err.c: Likewise.
13071 * kern/file.c: Likewise.
13072 * kern/fs.c: Likewise.
13073 * kern/loader.c: Likewise.
13074 * kern/main.c: Likewise.
13075 * kern/misc.c: Likewise.
13076 * kern/mm.c: Likewise.
13077 * kern/parser.c: Likewise.
13078 * kern/partition.c: Likewise.
13079 * kern/rescue.c: Likewise.
13080 * kern/term.c: Likewise.
13081 * kern/efi/efi.c: Likewise.
13082 * kern/efi/init.c: Likewise.
13083 * kern/efi/mm.c: Likewise.
13084 * kern/i386/dl.c: Likewise.
13085 * kern/i386/efi/init.c: Likewise.
13086 * kern/i386/efi/startup.S: Likewise.
13087 * kern/i386/pc/init.c: Likewise.
13088 * kern/i386/pc/lzo1x.S: Likewise.
13089 * kern/i386/pc/startup.S: Likewise.
13090 * kern/ieee1275/ieee1275.c: Likewise.
13091 * kern/powerpc/cache.S: Likewise.
13092 * kern/powerpc/dl.c: Likewise.
13093 * kern/powerpc/ieee1275/cmain.c: Likewise.
13094 * kern/powerpc/ieee1275/crt0.S: Likewise.
13095 * kern/powerpc/ieee1275/init.c: Likewise.
13096 * kern/powerpc/ieee1275/openfw.c: Likewise.
13097 * kern/sparc64/cache.S: Likewise.
13098 * kern/sparc64/dl.c: Likewise.
13099 * kern/sparc64/ieee1275/init.c: Likewise.
13100 * kern/sparc64/ieee1275/openfw.c: Likewise.
13101 * loader/efi/chainloader.c: Likewise.
13102 * loader/efi/chainloader_normal.c: Likewise.
13103 * loader/i386/efi/linux.c: Likewise.
13104 * loader/i386/efi/linux_normal.c: Likewise.
13105 * loader/i386/pc/chainloader.c: Likewise.
13106 * loader/i386/pc/chainloader_normal.c: Likewise.
13107 * loader/i386/pc/linux.c: Likewise.
13108 * loader/i386/pc/linux_normal.c: Likewise.
13109 * loader/i386/pc/multiboot.c: Likewise.
13110 * loader/i386/pc/multiboot_normal.c: Likewise.
13111 * loader/powerpc/ieee1275/linux.c: Likewise.
13112 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13113 * normal/arg.c: Likewise.
13114 * normal/cmdline.c: Likewise.
13115 * normal/command.c: Likewise.
13116 * normal/completion.c: Likewise.
13117 * normal/execute.c: Likewise.
13118 * normal/function.c: Likewise.
13119 * normal/lexer.c: Likewise.
13120 * normal/main.c: Likewise.
13121 * normal/menu.c: Likewise.
13122 * normal/menu_entry.c: Likewise.
13123 * normal/misc.c: Likewise.
13124 * normal/parser.y: Likewise.
13125 * normal/script.c: Likewise.
13126 * normal/i386/setjmp.S: Likewise.
13127 * normal/powerpc/setjmp.S: Likewise.
13128 * normal/sparc64/setjmp.S: Likewise.
13129 * partmap/acorn.c: Likewise.
13130 * partmap/amiga.c: Likewise.
13131 * partmap/apple.c: Likewise.
13132 * partmap/gpt.c: Likewise.
13133 * partmap/pc.c: Likewise.
13134 * partmap/sun.c: Likewise.
13135 * term/gfxterm.c: Likewise.
13136 * term/terminfo.c: Likewise.
13137 * term/efi/console.c: Likewise.
13138 * term/i386/pc/console.c: Likewise.
13139 * term/i386/pc/serial.c: Likewise.
13140 * term/i386/pc/vesafb.c: Likewise.
13141 * term/i386/pc/vga.c: Likewise.
13142 * term/ieee1275/ofconsole.c: Likewise.
13143 * util/biosdisk.c: Likewise.
13144 * util/console.c: Likewise.
13145 * util/genmoddep.c: Likewise.
13146 * util/getroot.c: Likewise.
13147 * util/grub-emu.c: Likewise.
13148 * util/grub-mkdevicemap.c: Likewise.
13149 * util/grub-probe.c: Likewise.
13150 * util/lvm.c: Likewise.
13151 * util/misc.c: Likewise.
13152 * util/raid.c: Likewise.
13153 * util/resolve.c: Likewise.
13154 * util/update-grub.in: Likewise.
13155 * util/update-grub_lib.in: Likewise.
13156 * util/grub.d/00_header.in: Likewise.
13157 * util/grub.d/10_hurd.in: Likewise.
13158 * util/grub.d/10_linux.in: Likewise.
13159 * util/i386/efi/grub-install.in: Likewise.
13160 * util/i386/efi/grub-mkimage.c: Likewise.
13161 * util/i386/pc/grub-install.in: Likewise.
13162 * util/i386/pc/grub-mkimage.c: Likewise.
13163 * util/i386/pc/grub-mkrescue.in: Likewise.
13164 * util/i386/pc/grub-setup.c: Likewise.
13165 * util/i386/pc/misc.c: Likewise.
13166 * util/powerpc/ieee1275/grub-install.in: Likewise.
13167 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13168 * util/powerpc/ieee1275/misc.c: Likewise.
13169 * video/bitmap.c: Likewise.
13170 * video/video.c: Likewise.
13171 * video/i386/pc/vbe.c: Likewise.
13172 * video/i386/pc/vbeblit.c: Likewise.
13173 * video/i386/pc/vbefill.c: Likewise.
13174 * video/i386/pc/vbeutil.c: Likewise.
13175 * video/readers/tga.c: Likewise.
13177 2007-07-02 Robert Millan <rmh@aybabtu.com>
13179 * conf/i386-efi.rmk: Replace obsolete reference to
13180 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13181 with util/getroot.c.
13182 * conf/powerpc-ieee1275.rmk: Likewise.
13183 * conf/sparc64-ieee1275.rmk: Likewise.
13185 * util/grub-emu.c (main): Fix unchecked pointer handling.
13187 2007-07-02 Robert Millan <rmh@aybabtu.com>
13189 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13190 invocation to fail, in order to support partition-less media.
13192 * util/i386/pc/grub-install.in: Likewise.
13194 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13195 which fs or partmap modules are needed (akin to its sister scripts).
13197 Also use grub-probe to get rid of unportable /proc/mounts check.
13199 Print the same informational message that the other scripts do, before
13202 2007-06-23 Robert Millan <rmh@aybabtu.com>
13204 * util/update-grub_lib.in (font_path): New function. Determine whether
13205 a font file can be found and, if so, echo the GRUB path to it.
13207 * util/update-grub.in: Handle multiple terminals depending on user
13208 input, platform availability and font file presence. Propagate
13209 variables of our findings to /etc/grub.d/ children.
13211 * util/grub.d/00_header.in: Handle multiple terminals, based on
13212 environment setup by update-grub.
13214 2007-06-23 Robert Millan <rmh@aybabtu.com>
13216 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13218 2007-06-21 Robert Millan <rmh@aybabtu.com>
13220 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13221 indicate end of data section in kernel image.
13222 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13223 GRUB_KERNEL_MACHINE_DATA_END.
13225 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13227 * kern/i386/efi/startup.S: Likewise.
13229 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13230 during image generation. Implement --prefix option to override this
13232 * util/i386/efi/grub-mkimage.c: Likewise.
13234 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13235 code to make path relative to its root into a separate function.
13237 * util/i386/pc/grub-install.in: Use newly provided
13238 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13239 pass the result to grub-install --prefix.
13241 2007-06-13 Robert Millan <rmh@aybabtu.com>
13243 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13244 DEFAULT_DEVICE_MAP.
13245 * util/grub-emu.c: Use above definitions from misc.h instead of
13247 * util/grub-mkdevicemap.c: Likewise.
13248 * util/i386/pc/grub-setup.c: Likewise.
13249 * util/grub-probe.c: Likewise.
13250 (probe): Abort with grub_util_error() when either
13251 grub_guess_root_device or grub_util_get_grub_dev fails.
13253 2007-06-12 Robert Millan <rmh@aybabtu.com>
13255 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13256 "pager" assignment.
13257 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13259 * util/grub-probe.c (probe): Likewise for "drive_name".
13261 2007-06-11 Robert Millan <rmh@aybabtu.com>
13263 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13264 not just the cdrom one.
13266 2007-06-11 Robert Millan <rmh@aybabtu.com>
13268 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13269 Add --pkglibdir=DIR option to override pkglibdir.
13270 Mention --image-type=TYPE in help output.
13271 Fix --grub-mkimage (it was a no-op).
13272 Abort gracefully when no parameter is given.
13274 2007-06-11 Robert Millan <rmh@aybabtu.com>
13276 * util/i386/pc/grub-mkrescue.in: New file.
13277 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13278 * Makefile.in: Handle bin_SCRIPTS.
13280 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13282 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13283 list of video modes.
13285 2007-06-06 Robert Millan <rmh@aybabtu.com>
13287 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13288 file doesn't exist, or if it is in a filesystem grub can't read.
13290 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13291 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13292 header comment to fit in 80 columns when the variables are resolved.
13294 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13295 could be identified by update-grub. Remove redundant check for
13296 unifont.pff existence (since convert_system_path_to_grub_path now
13299 2007-06-04 Robert Millan <rmh@aybabtu.com>
13301 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13303 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13305 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13307 2007-06-04 Robert Millan <rmh@aybabtu.com>
13309 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13311 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13312 grub_apple_partition_map_fini.
13315 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13316 to access >2 TiB disks).
13318 Print disk->total_sectors with %llu instead of %lu, since this
13319 variable is always 64-bit (prevents wrong disk size from being displayed
13320 on either >2 TiB disk or big-endian CPU).
13322 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13323 into a generic case that supports all (sane) partition maps.
13325 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13328 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13329 and grub_apple_partition_map_fini() after that.
13331 2007-06-01 Robert Millan <rmh@aybabtu.com>
13333 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13335 * util/grub.d/00_header.in: Only enable gfxterm when
13336 convert_system_path_to_grub_path() succeeds.
13338 2007-05-20 Robert Millan <rmh@aybabtu.com>
13340 * util/update-grub_lib.in: New file.
13341 * DISTLIST: Add update-grub_lib.in.
13342 * conf/common.rmk: Generate update-grub_lib and install it in
13344 * Makefile.in: Add install routine for $(lib_DATA).
13346 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13347 function provided by update-grub_lib to support arbitrary paths of
13349 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13350 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13352 2007-05-19 Robert Millan <rmh@aybabtu.com>
13354 * commands/i386/cpuid.c: New module.
13355 * DISTLIST: Add it.
13356 * conf/i386-efi.rmk: Enable cpuid.mod.
13357 * conf/i386-pc.rmk: Likewise.
13359 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13361 * kern/disk.c (grub_disk_read): Check return value of
13364 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13366 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13368 * disk/raid.c (grub_raid_open): Likewise.
13370 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13372 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13373 stack instead of on the heap.
13375 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13376 before doing a read on it.
13378 * configure.ac: Only use -fno-stack-protector for the target
13381 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13383 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13384 __attribute_ ((unused)) to mode_type argument.
13386 * util/getroot.c (grub_guess_root_device): Fix #endif.
13388 * kern/misc.c (memcmp): Fix prototype.
13390 * include/grub/partition.h [GRUB_UTIL]
13391 (grub_gpt_partition_map_init): Add prototype.
13392 (grub_gpt_partition_map_fini): Likewise.
13394 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13395 at the right place.
13397 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13398 (grub_fat_read_data): Likewise.
13399 (grub_fat_find_dir): Likewise.
13401 * font/manager.c (find_glyph): Make table a const.
13402 (grub_font_get_glyph): Remove bitmap from if statement.
13404 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13406 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13407 code, first search for device in /dev/mapper, then in /dev.
13408 (grub_util_get_grub_dev): New function.
13409 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13411 * util/grub-probe.c (probe): Remove check for RAID, call
13412 grub_util_get_grub_dev() instead of
13413 grub_util_biosdisk_get_grub_dev().
13414 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13415 grub_util_biosdisk_get_grub_dev().
13416 * util/i386/pc/grub-setup.c (main): Likewise.
13418 2007-05-16 Robert Millan <rmh@aybabtu.com>
13420 * DISTLIST: Update for the latest changes.
13421 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13422 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13423 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13424 grub/util/biosdisk.h.
13425 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13426 grub/util/biosdisk.h.
13428 2007-05-16 Robert Millan <rmh@aybabtu.com>
13430 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13432 2007-05-16 Robert Millan <rmh@aybabtu.com>
13434 * util/i386/efi/grub-install.in: New.
13435 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13436 newly added grub-install.
13437 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13439 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13440 grub/util/biosdisk.h.
13441 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13442 grub/util/biosdisk.h.
13444 2007-05-16 Robert Millan <rmh@aybabtu.com>
13446 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13447 * include/grub/util/biosdisk.h: ... here.
13448 * util/i386/pc/biosdisk.c: Moved to ...
13449 * util/biosdisk.c: ... here.
13450 * util/i386/pc/getroot.c: Moved to ...
13451 * util/getroot.c: ... here.
13452 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13453 * util/grub-mkdevicemap.c: ... here.
13454 * util/i386/pc/grub-probe.c: Moved to ...
13455 * util/grub-probe.c: ... here.
13457 2007-05-15 Robert Millan <rmh@aybabtu.com>
13459 * util/update-grub.in: Remove duplicated line in grub.cfg header
13462 2007-05-13 Robert Millan <rmh@aybabtu.com>
13464 * util/update-grub.in: Fix a few assumptions about the devices holding
13465 /, /boot and /boot/grub being the same.
13466 * util/grub.d/00_header.in: Likewise.
13467 * util/grub.d/10_hurd.in: Likewise.
13468 * util/grub.d/10_linux.in: Likewise.
13470 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13471 patterns. Use that to define the `.old' suffix as older than `'.
13473 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13475 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13476 the grub.cfg header message.
13478 2007-05-11 Robert Millan <rmh@aybabtu.com>
13480 * util/update-grub.in: Create device.map if it doesn't already exist,
13481 before attempting to run grub-probe.
13482 Check for grub-probe and grub-mkdevicemap with the same code
13483 grub-install is using.
13486 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13488 * Makefile.in: Add the datarootdir autoconf variable.
13490 2007-05-09 Robert Millan <rmh@aybabtu.com>
13492 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13493 fail gracefully if dev->disk->partition == NULL.
13495 2007-05-07 Robert Millan <rmh@aybabtu.com>
13497 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13498 determine partition map module.
13499 * util/i386/pc/grub-install.in: Use this feature to decide which
13500 partition module to load, instead of hardcoding pc and gpt.
13502 2007-05-07 Robert Millan <rmh@aybabtu.com>
13504 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13505 source directory differs from build directory.
13507 2007-05-05 Robert Millan <rmh@aybabtu.com>
13509 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13512 2007-05-05 Robert Millan <rmh@aybabtu.com>
13514 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13516 2007-05-05 Robert Millan <rmh@aybabtu.com>
13518 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13519 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13521 2007-05-05 Robert Millan <rmh@aybabtu.com>
13523 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13524 (grub_probe_SOURCES): Likewise.
13525 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13526 GPT and initialize dos_part and bsd_part accordingly.
13527 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13529 (main): Activate gpt module for use during partition identification,
13530 and deactivate it afterwards.
13531 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13532 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13533 partition identification, and deactivate it afterwards.
13535 2007-05-05 Robert Millan <rmh@aybabtu.com>
13537 * term/i386/pc/console.c (grub_console_fini): Call
13538 grub_term_set_current() before grub_term_unregister().
13540 2007-05-04 Robert Millan <rmh@aybabtu.com>
13542 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13543 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13544 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13545 and update-grub_DATA.
13546 * conf/common.rmk: Build and install update-grub components.
13547 * conf/common.mk: Regenerate.
13548 * util/update-grub.in: New. Core of update-grub.
13549 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13550 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13551 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13552 * util/grub.d/README: New. Document grub.d directory layout.
13554 2007-05-01 Robert Millan <rmh@aybabtu.com>
13556 * util/grub-emu.c: Move initialization functions
13557 grub_util_biosdisk_init() and grub_init_all() before
13558 grub_util_biosdisk_get_grub_dev(), which relies on them.
13560 2007-04-19 Robert Millan <rmh@aybabtu.com>
13562 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13565 2007-04-18 Jerone Young <jerone@gmail.com>
13567 * kernel/elf.c: Add missing parenthesis for conditional statement
13570 2007-04-10 Jerone Young <jerone@gmail.com>
13572 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13573 continue on and look for device node with real device name.
13575 2007-04-10 Jerone Young <jerone@gmail.com>
13577 * configure.ac: Add argument for autoconf to use transformation
13579 * Makefile.in: Add autoconf package transformation code.
13580 * util/i386/pc/grub-install.in: Likewise.
13581 * util/powerpc/ieee1275/grub-install.in: Likewise.
13583 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13585 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13586 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13587 (EXT2_REVISION): Likewise.
13588 (EXT2_INODE_SIZE): Likewise.
13589 (struct grub_ext2_block_group): Added a missing member
13591 (grub_ext2_read_inode): Divide by the inode size in a superblock
13592 instead of 128 to obtain INODES_PER_BLOCK.
13593 Use the macro EXT2_INODE_SIZE instead of directly using
13594 SBLOCK->INODE_SIZE.
13596 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13598 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13599 superblock instead of the structure size to compute an
13600 offset. This fixes the problem that GRUB could not read a
13601 filesystem when inode size is different from 128-byte.
13603 2007-03-05 Marco Gerards <marco@gnu.org>
13605 * normal/main.c (read_config_file): When "menu" is not set, create
13606 an initial context.
13608 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13610 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13611 (HEAP_LIMIT): New macro.
13612 (grub_claim_heap): Claim memory up to `heaplimit'.
13614 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13616 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13617 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13618 (_start): Likewise.
13619 (grub_arch_modules_addr): Return address after `_end'.
13620 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13621 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13622 (add_segments): Calculate `_end' from phdr size and location.
13623 (ALIGN_UP): Moved to ...
13624 * include/grub/misc.h: here.
13625 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13627 (GRUB_IEEE1275_MODULE_BASE): Removed.
13629 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13631 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13634 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13636 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13638 (grub_elf64_load_hook_t): Likewise.
13639 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13642 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13644 * kern/mm.c: Update copyright.
13645 (grub_mm_debug): Correct syntax error.
13646 (grub_mm_dump_free): New function.
13647 (grub_debug_free): Call `grub_free'.
13648 * include/grub/mm.h: Update copyright.
13649 (grub_mm_dump_free): Add declaration.
13651 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13653 * include/grub/ieee1275/ieee1275.h: Update copyright.
13654 * kern/powerpc/ieee1275/init.c: Likewise.
13655 * kern/powerpc/ieee1275/openfw.c: Likewise.
13657 * loader/powerpc/ieee1275/linux.c: Likewise.
13658 * include/grub/elfload.h: Likewise.
13659 * kern/elf.c: Likewise.
13660 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13662 (grub_elf64_load): Likewise.
13663 (grub_elf32_load_segment): Move to a nested function.
13664 (grub_elf64_load_segment): Likewise.
13666 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13668 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13670 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13671 (grub_heap_len): Likewise.
13672 (HEAP_SIZE): New macro.
13673 (grub_claim_heap): New function.
13674 (grub_machine_init): Don't claim heap directly. Call
13676 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13677 (grub_available_iterate): New function.
13679 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13681 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13682 * configure.ac: Use it for testing the HOST and TARGET compilers.
13684 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13686 * Makefile.in (enable_grub_emu): New variable.
13687 * configure.ac (--enable-grub-emu): New option.
13688 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13689 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13690 * conf/i386-pc.rmk: Likewise.
13691 * conf/powerpc-ieee1275.rmk: Likewise.
13692 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13694 2006-12-12 Marco Gerards <marco@gnu.org>
13696 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13698 * kern/env.c (grub_env_unset): Don't free the member `value' when
13699 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13702 * normal/main.c (current_menu): Removed.
13703 (free_menu): Unset the `menu' environment variable.
13704 (grub_normal_menu_addentry): Make use of the environment variable
13705 `menu', instead of using the global `current_menu'. Allocate
13706 memory for the sourcecode of this entry.
13707 (read_config_file): New argument `nested', changed all callers.
13708 Only in the case of a new context, initialize a new menu. Set the
13709 `menu' environment variable.
13710 (grub_normal_execute): Don't set and unset the environment
13711 variable `menu' here anymore. Only free the menu when leaving the
13714 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13717 2006-12-11 Marco Gerards <marco@gnu.org>
13719 * normal/menu_entry.c (run): Fix off by one bug so the last line
13720 is executed. Move the loader check to outside the loop.
13722 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13724 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13726 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13728 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13729 the number of sectors. Reported by Andrey Shuvikov
13730 <mr_hyro@yahoo.com>.
13732 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13734 * kern/disk.c (grub_disk_read): When there is a read error, always
13735 try to read only the necessary data.
13737 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13739 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13741 [GRUB_UTIL] (grub_raid_fini): Likewise.
13742 [GRUB_UTIL] (grub_lvm_init): Likewise.
13743 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13744 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13745 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13746 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13747 and grub_raid_fini().
13749 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13751 * include/grub/types.h (__unused): Rename to UNUSED.
13752 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13753 (grub_elf64_size): Likewise.
13755 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13757 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13758 grub_error_push and grub_error_pop in the error-handling path.
13759 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13762 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13764 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13765 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13767 (kernel_elf_SOURCES): Likewise.
13768 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13769 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13770 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13771 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13772 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13773 (elf_mod_SOURCES): New variable.
13774 (elf_mod_CFLAGS): Likewise.
13775 (elf_mod_LDFLAGS): Likewise.
13776 * include/grub/types.h (__unused): New macro.
13777 * include/grub/elfload.h: New file.
13778 * kern/elf.c: Likewise.
13779 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13780 (ELF32_LOADMASK): New macro.
13781 (ELF64_LOADMASK): Likewise.
13782 (vmlinux): Removed.
13783 (grub_linux_load32): New function.
13784 (grub_linux_load64): Likewise.
13785 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13786 Use grub_elf_t instead of grub_file_t.
13788 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13790 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13791 `catch_result' to struct set_color_args.
13793 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13795 * normal/menu.c: Include grub/script.h.
13796 * normal/menu_entry.c: Likewise.
13797 * include/grub/normal.h: Do not include grub/script.h.
13799 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13801 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13803 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13805 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13807 (grub_disk_close): Print debug messages when closing a disk.
13808 (grub_disk_read): Print debug messages when disk read fails.
13809 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13811 * kern/partition.c: Include misc.h.
13812 (grub_partition_iterate): Print debug messages when detecting
13815 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13817 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13819 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13821 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13823 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13824 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13826 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13828 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13829 instead of sizeof(lv). Patch by Michael Guntsche.
13831 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13833 * disk/lvm.c: Rename VGS to VG_LIST.
13834 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13835 (grub_lvm_open): Likewise.
13836 Thanks to Michael Guntsche for finding this bug.
13838 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13840 * configure.ac (AC_INIT): Bumped to 1.95.
13842 2006-10-14 Robert Millan <rmh@aybabtu.com>
13844 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13845 with "/dev/.static/dev/md".
13847 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13849 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13850 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13851 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13852 DRIVE_NAME are always freed.
13854 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13855 DOS_PART, as a DOS partition is counted from one instead of zero
13856 now. Reported by Robert Millan.
13858 2006-10-14 Robert Millan <rmh@aybabtu.com>
13860 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13861 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13862 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13863 string returned by grub_guess_root_device.
13864 * util/i386/pc/grub-setup.c: Likewise.
13865 * util/i386/pc/grub-probefs.c: Likewise.
13867 * util/i386/pc/grub-probefs.c: Rename to ...
13868 * util/i386/pc/grub-probe.c: ... this.
13869 * DISTLIST: Remove grub-probefs, add grub-probe.
13870 * conf/i386-efi.rmk: Likewise.
13871 * conf/i386-pc.rmk: Likewise.
13872 * util/i386/pc/grub-install.in: Likewise.
13874 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13875 choose which information we want to print.
13877 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13879 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13880 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13881 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13882 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13883 video/readers/tga.c and video/i386/pc/vbeutil.c.
13885 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13887 Added support for RAID and LVM.
13889 * disk/lvm.c: New file.
13890 * disk/raid.c: Likewise.
13891 * include/grub/lvm.h: Likewise.
13892 * include/grub/raid.h: Likewise.
13893 * include/grub/util/lvm.h: Likewise.
13894 * include/grub/util/raid.h: Likewise.
13895 * util/lvm.c: Likewise.
13896 * util/raid.c: Likewise.
13898 * include/grub/disk.h (grub_disk_dev_id): Add
13899 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13900 (grub_disk_get_size): New prototype.
13901 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13902 returns a partition.
13903 (grub_disk_get_size): New function.
13905 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13906 verbatim if grub_install_dos_part is -2.
13908 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13911 * util/i386/pc/grub-setup.c (setup): New argument
13912 MUST_EMBED. Force embedding of GRUB when the argument is
13913 true. Close FILE before returning.
13914 (main): Add support for RAID and LVM.
13916 * conf/common.rmk: Add RAID and LVM modules.
13917 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13919 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13921 * kern/misc.c (grub_strstr): New function.
13922 * include/grub/misc.h (grub_strstr): New prototype.
13924 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13926 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13928 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13930 * kern/misc.c (grub_strtoull): Guess the base only if not
13933 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13935 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13938 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13940 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13942 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13943 Remove `flags' argument. All callers changed.
13944 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13945 (IEEE1275_IHANDLE_INVALID): New variable.
13946 (IEEE1275_CELL_INVALID): New variable.
13947 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13948 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13949 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13950 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13951 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13952 codes from Open Firmware. All callers updated.
13953 (grub_ieee1275_next_property): Directly return Open Firmware return
13955 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13956 Standardize error checking from `grub_ieee1275_get_property'.
13957 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13958 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13960 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13962 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13963 `instance_to_package_args' to `instance_to_path_args'.
13965 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13966 `grub_ieee1275_chosen'.
13968 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13969 `grub_ieee1275_interpret'.
13971 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13973 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13975 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13977 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13978 (__cmpdi): Likewise.
13980 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13981 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13984 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13986 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13987 to type `grub_ssize_t'.
13988 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
13990 2006-09-22 Marco Gerards <marco@gnu.org>
13992 * normal/script.c (grub_script_create_cmdmenu): Skip leading
13995 2006-09-22 Marco Gerards <marco@gnu.org>
13997 * commands/echo.c: New file.
13999 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
14001 * conf/common.rmk (echo_mod_SOURCES): New variable.
14002 (echo_mod_CFLAGS): Likewise.
14003 (echo_mod_LDFLAGS): Likewise.
14005 2006-09-22 Marco Gerards <marco@gnu.org>
14007 * normal/main.c (get_line): Malloc memory instead of using
14008 preallocated memory. Removed the arguments `cmdline' and
14009 `max_len'. Updated all callers.
14011 2006-09-22 Marco Gerards <marco@gnu.org>
14013 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
14014 (normal_mod_DEPENDENCIES): Likewise.
14016 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
14017 (normal_mod_DEPENDENCIES): Likewise.
14019 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
14021 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
14023 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
14025 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
14026 (normal_mod_DEPENDENCIES): Likewise.
14027 * conf/i386-pc.mk: Regenerate.
14028 * conf/i386-efi.mk: Likewise
14029 * conf/common.mk: Likewise.
14030 * conf/powerpc-ieee1275.mk: Likewise.
14031 * conf/sparc64-ieee1275.mk: Likewise.
14033 2006-09-22 Robert Millan <rmh@aybabtu.com>
14035 Sync with i386 version.
14036 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
14037 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
14039 2006-09-21 Robert Millan <rmh@aybabtu.com>
14041 Import from GRUB Legacy (lib/device.c):
14042 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14043 (init_device_map) [__linux__]: Add support for I2O devices.
14045 2006-09-14 Marco Gerards <marco@gnu.org>
14047 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14050 2006-09-14 Robert Millan <rmh@aybabtu.com>
14052 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14055 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14057 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14058 before adding it to device.map.
14060 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14062 * genmk.rb: Let GCC generate dependencies the first time it
14063 compiles a file; using the -MD option.
14064 * conf/common.mk: Regenerate.
14065 * conf/i386-pc.mk: Likewise.
14066 * conf/i386-efi.mk: Likewise.
14067 * conf/powerpc-ieee1275.mk: Likewise.
14068 * conf/sparc64-ieee1275.mk: Likewise.
14070 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14072 Move the prototypes of grub_setjmp and grub_longjmp to
14073 cpu/setjmp.h, so that each architecture may specify different
14076 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14077 (grub_longjmp): Likewise.
14078 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14079 (grub_longjmp): Likewise.
14080 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14081 (grub_longjmp): Likewise.
14083 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14084 [!GRUB_UTIL] (grub_longjmp): Removed.
14086 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14088 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14089 "color!" method does not return any value.
14091 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14093 * include/grub/bitmap.h: New file.
14095 * include/grub/i386/pc/vbeutil.h: Likewise.
14097 * video/bitmap.c: Likewise.
14099 * video/readers/tga.c: Likewise.
14101 * video/i386/pc/vbeutil.c: Likewise.
14103 * commands/videotest.c: Code cleanup and updated to reflect to new
14106 * term/gfxterm.c: Likewise.
14108 * video/video.c: Likewise.
14110 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14111 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14112 (bitmap_mod_SOURCES): New entry.
14113 (bitmap_mod_CFLAGS): Likewise.
14114 (bitmap_mod_LDFLAGS): Likewise.
14115 (tga_mod_SOURCES): Likewise.
14116 (tga_mod_CFLAGS): Likewise.
14117 (tga_mod_LDFLAGS): Likewise.
14119 * include/grub/video.h (grub_video_blit_operators): New enum type.
14120 (grub_video_render_target): Changed as forward declaration and moved
14121 actual definition to be video driver specific.
14122 (grub_video_adapter.blit_bitmap): Added blitting operator.
14123 (grub_video_adapter.blit_render_target): Likewise.
14124 (grub_video_blit_bitmap): Likewise.
14125 (grub_video_blit_render_target): Likewise.
14127 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14128 driver specific render target definition.
14129 (grub_video_vbe_map_rgba): Added driver internal helper.
14130 (grub_video_vbe_unmap_color): Updated to use
14131 grub_video_i386_vbeblit_info.
14132 (grub_video_vbe_get_video_ptr): Likewise.
14134 * include/grub/i386/pc/vbeblit.h
14135 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14136 grub_video_i386_vbeblit_info.
14137 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14138 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14139 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14140 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14141 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14142 (grub_video_i386_vbeblit_index_index): Likewise.
14143 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14145 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14146 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14148 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14151 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14152 include/grub/i386/pc/vbeblit.h.
14154 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14155 Updated to use grub_video_i386_vbeblit_info.
14156 (grub_video_i386_vbefill_R8G8B8): Likewise.
14157 (grub_video_i386_vbefill_index): Likewise.
14158 (grub_video_i386_vbefill): Added generic filler.
14160 * video/i386/pc/vbefill.c: Updated to reflect changes on
14161 include/grub/i386/pc/vbefill.h.
14163 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14164 grub_video_i386_vbeblit_info.
14165 (grub_video_vbe_unmap_color): Likewise.
14166 (grub_video_vbe_blit_glyph): Likewise.
14167 (grub_video_vbe_scroll): Likewise.
14168 (grub_video_vbe_draw_pixel): Removed function.
14169 (grub_video_vbe_get_pixel): Likewise.
14170 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14171 updated code to use it.
14172 (common_blitter): Added common blitter for render target and bitmap.
14173 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14174 (grub_video_vbe_blit_render_target): Likewise.
14176 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14178 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14179 is in text mode if there is no console control protocol instance
14182 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14184 * include/grub/video.h: Code cleanup.
14186 * include/grub/i386/pc/vbe.h: Likewise.
14188 * video/i386/pc/vbe.c: Likewise.
14190 * video/i386/pc/vbeblit.c: Likewise.
14192 * video/i386/pc/vbefill.c: Likewise.
14194 * video/video.c: Likewise. Also added more comments.
14196 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14198 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14199 (struct grub_biosdisk_dap): Likewise.
14201 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14202 linkage settings for all functions.
14204 2006-07-12 Marco Gerards <marco@gnu.org>
14206 * configure.ac (--enable-mm-debug): Fix typo.
14208 * genkernsyms.sh.in: Use proper quoting for `CC'.
14210 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14212 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14213 (normal_mod_ASFLAGS): Remove "-m32".
14215 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14217 * util/misc.c: Include config.h.
14218 [!HAVE_MEMALIGN]: Do not include malloc.h.
14219 (grub_memalign): Use posix_memalign, if present. Then, use
14220 memalign, if present. Otherwise, emit an error.
14222 * util/grub-emu.c: Do not include malloc.h.
14224 * include/grub/util/misc.h: Include unistd.h. This is required for
14225 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14226 D. Eades III <hde@foobar-qux.org>.
14228 * configure.ac (AC_GNU_SOURCE): Added.
14229 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14232 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14234 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14235 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14237 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14239 * include/grub/types.h (grub_host_addr_t): Rename to
14240 grub_target_addr_t.
14241 (grub_host_off_t): Rename to grub_target_off_t.
14242 (grub_host_size_t): Rename to grub_target_size_t.
14243 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14244 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14246 * include/grub/kernel.h (struct grub_module_header): Change type
14247 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14248 (grub_module_info): Likewise.
14250 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14252 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14253 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14254 Velazquez <jesus.velazquez@gmail.com>.
14256 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14258 Count partitions from 1 instead of 0 in the string representation
14259 of partitions. Still use 0-based internally.
14261 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14262 (sun_partition_map_iterate): Use grub_partition_t instead of
14263 struct grub_partition *. Cast DESC->START_CYLINDER to
14264 grub_uint64_t after converting the endian.
14265 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14266 (sun_partition_map_get_name): Add 1 to P->INDEX.
14268 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14270 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14272 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14273 zero instead of one.
14274 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14275 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14277 * partmap/apple.c (apple_partition_map_iterate): Change the type
14278 of POS to unsigned.
14279 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14280 (apple_partition_map_get_name): Add 1 into P->INDEX.
14282 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14283 of POS to unsigned.
14284 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14285 calculate the offset of a partition.
14286 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14287 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14289 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14290 SECTOR to grub_disk_addr_t.
14291 (acorn_partition_map_iterate): Likewise.
14292 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14293 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14295 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14297 * kern/i386/pc/init.c (make_install_device): Add 1 into
14298 GRUB_INSTALL_DOS_PART.
14300 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14303 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14305 Clean up the code to support 64-bit addressing in disks and
14306 files. This change is not enough for filesystems yet.
14308 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14309 type of "start" to grub_uint64_t.
14310 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14311 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14312 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14315 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14316 to grub_disk_addr_t.
14318 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14321 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14323 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14326 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14328 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14330 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14332 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14333 to grub_off_t, to detect an error from grub_file_seek.
14334 (grub_multiboot_load_elf32): Likewise.
14336 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14337 maximum unsigned long value when an overflow is detected.
14338 (grub_strtoull): New function.
14339 (grub_divmod64): Likewise.
14340 (grub_lltoa): use grub_divmod64.
14342 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14344 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14345 the pointer to next character. Use grub_strtoull instead of
14347 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14348 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14351 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14352 return value is signed.
14353 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14354 test if OFFSET is less than zero, as OFFSET is unsigned now.
14356 * kern/disk.c (struct grub_disk_cache): Change the type of
14357 "sector" to grub_disk_addr_t.
14358 (grub_disk_cache_get_index): Change the type of SECTOR to
14359 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14360 unsigned after shifting.
14361 (grub_disk_cache_invalidate): Change the type of SECTOR to
14363 (grub_disk_cache_unlock): Likewise.
14364 (grub_disk_cache_store): Likewise.
14365 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14366 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14367 grub_disk_addr_t and grub_uint64_t, respectively.
14368 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14369 body, as the value of OFFSET is tweaked by
14370 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14371 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14373 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14374 body, as the value of OFFSET is tweaked by
14375 grub_disk_check_range. Change the types of LEN and N to
14378 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14379 and "saved_offset" to grub_off_t.
14380 (test_header): Cast BUF to char *.
14381 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14383 (grub_gzio_read): Change the types of OFFSET and SIZE to
14384 grub_off_t and grub_size_t, respectively.
14386 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14388 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14389 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14390 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14391 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14392 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14394 * include/grub/types.h (grub_off_t): Unconditionally set to
14396 (grub_disk_addr_t): Changed to grub_uint64_t.
14398 * include/grub/partition.h (struct grub_partition): Change the
14399 types of "start", "len" and "offset" to grub_disk_addr_t,
14400 grub_uint64_t and grub_disk_addr_t, respectively.
14401 (grub_partition_get_start): Return grub_disk_addr_t.
14402 (grub_partition_get_len): Return grub_uint64_t.
14404 * include/grub/misc.h (grub_strtoull): New prototype.
14405 (grub_divmod64): Likewise.
14407 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14408 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14409 grub_off_t, respectively.
14410 All callers and references changed.
14412 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14413 grub_size_t in "read".
14414 All callers and references changed.
14416 * include/grub/file.h (struct grub_file): Change the types of
14417 "offset" and "size" to grub_off_t and grub_off_t,
14418 respectively. Change the type of SECTOR to grub_disk_addr_t in
14420 (grub_file_read): Change the type of LEN to grub_size_t.
14421 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14423 (grub_file_size): Return grub_off_t.
14424 (grub_file_tell): Likewise.
14425 All callers and references changed.
14427 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14428 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14430 (struct grub_disk): Change the type of "total_sectors" to
14431 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14433 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14434 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14435 (grub_disk_write): Likewise.
14436 All callers and references changed.
14438 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14439 char * for grub_strncmp to silence gcc.
14440 (grub_iso9660_mount): Likewise.
14441 (grub_iso9660_mount): Likewise.
14442 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14444 (grub_iso9660_iterate_dir): Likewise.
14445 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14447 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14448 LEN to grub_disk_addr_t and grub_size_t, respectively.
14450 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14452 * fs/jfs.c (grub_jfs_read_file): Likewise.
14454 * fs/minix.c (grub_jfs_read_file): Likewise.
14456 * fs/sfs.c (grub_jfs_read_file): Likewise.
14458 * fs/ufs.c (grub_jfs_read_file): Likewise.
14460 * fs/xfs.c (grub_jfs_read_file): Likewise.
14462 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14463 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14466 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14467 BLKNR to -1 instead of returning GRUB_ERRNO.
14468 (grub_ext2_read_file): Change the types of SECTOR and
14469 LEN to grub_disk_addr_t and grub_size_t, respectively.
14471 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14472 LEN to grub_disk_addr_t and grub_size_t, respectively.
14474 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14477 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14478 string. Do not cast SECTOR explicitly.
14480 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14481 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14482 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14483 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14484 over 2TB and LBA mode is not supported, raise an error.
14485 (get_safe_sectors): New function.
14486 (grub_biosdisk_read): Use get_safe_sectors.
14487 (grub_biosdisk_write): Likewise.
14489 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14490 (grub_efidisk_write): Likewise.
14492 * disk/loopback.c (delete_loopback): Cosmetic changes.
14493 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14495 (grub_loopback_open): Likewise.
14496 (grub_loopback_read): Likewise. Also, change the type of POS to
14497 grub_off_t, and fix the usage of grub_memset.
14499 * commands/i386/pc/play.c: Include grub/machine/time.h.
14501 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14504 * commands/configfile.c: Include grub/env.h.
14506 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14507 GRUB_ERRNO directly instead. Change the type of POS to
14508 grub_off_t. Follow the coding standard.
14510 * commands/blocklist.c: Include grub/partition.h.
14511 (grub_cmd_blocklist): Return an error if the underlying device is
14512 not a disk. Take the starting sector of a partition into account,
14513 if a partition is used.
14515 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14517 (lba_mode): Support 64-bit addresses.
14518 (chs_mode): Likewise.
14519 (copy_buffer): Adapted to the new offsets of a length field and a
14521 (blocklist_default_start): Allocate 64-bit space.
14523 * boot/i386/pc/boot.S (force_lba): Removed.
14524 (boot_drive): Moved to under KERNEL_SECTOR.
14525 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14527 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14529 (lba_mode): Refactored to support a 64-bit address. More size
14531 (setup_sectors): Likewise.
14533 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14535 * DISTLIST: Added include/grub/i386/linux.h. Removed
14536 include/grub/i386/pc/linux.h
14538 * configure.ac (AC_INIT): Bumped to 1.94.
14540 * config.guess: Updated from gnulib.
14541 * config.sub: Likewise.
14542 * install-sh: Likewise.
14543 * mkinstalldirs: Likewise.
14545 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14547 * conf/common.rmk (grub_modules_init.lst): Depended on
14548 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14551 * genmk.rb (PModule::rule): Reverted the previous change.
14553 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14555 * conf/common.rmk (grub_modules_init.lst): Depends on
14556 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14557 that the target does not exist before producing.
14558 (grub_modules_init.h): Remove the target before generating.
14559 (grub_emu_init.c): Likewise.
14561 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14563 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14565 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14566 for the target-specific tests. Make sure that we also have the
14567 up-to-date target variables for those tests.
14569 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14571 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14572 (PModule::rule): Likewise.
14574 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14576 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14577 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14578 target-specific flags should be prefixed.
14579 (PModule::rule): Likewise.
14581 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14583 * configure.ac (CMP): Check if cmp is available explicitly.
14585 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14587 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14588 (target_cpu): New variable.
14589 (pkglibdir): Use target_cpu instead of host_cpu.
14591 * util/i386/pc/grub-install.in (host_cpu): Removed.
14592 (target_cpu): New variable.
14593 (pkglibdir): Use target_cpu instead of host_cpu.
14595 * util/genmoddep.c: Removed.
14597 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14598 instead of GRUB_HOST_SIZEOF_VOID_P.
14599 * kern/dl.c: Likewise.
14601 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14603 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14604 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14605 (GRUB_TARGET_SIZEOF_LONG): ... this.
14606 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14607 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14608 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14610 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14611 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14612 (GRUB_TARGET_SIZEOF_LONG): ... this.
14613 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14614 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14615 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14617 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14618 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14619 (GRUB_TARGET_SIZEOF_LONG): ... this.
14620 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14621 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14623 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14624 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14625 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14626 instead of GRUB_HOST_SIZEOF_LONG.
14627 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14628 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14629 GRUB_CPU_WORDS_BIGENDIAN.
14630 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14631 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14634 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14635 (genmoddep_SOURCES): Likewise.
14636 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14637 (genmoddep_SOURCES): Likewise.
14638 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14639 (genmoddep_SOURCES): Likewise.
14640 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14642 (genmoddep_SOURCES): Likewise.
14644 * genmoddep.awk: New file.
14646 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14647 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14648 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14649 (PModule::rule): Likewise.
14650 (Program::rule): Likewise.
14651 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14652 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14655 * configure.ac: Rewritten intensively to use host and target
14656 instead of build and host, respectively.
14658 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14659 (host_cpu): Removed.
14660 (target_cpu): New variable.
14661 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14662 (BUILD_CC): Removed.
14663 (BUILD_CFLAGS): Likewise.
14664 (BUILD_CPPFLAGS): Likewise.
14665 (TARGET_CC): New variable.
14666 (TARGET_CFLAGS): Likewise.
14667 (TARGET_CPPFLAGS): Likewise.
14668 (TARGET_LDFLAGS): Likewise.
14670 (include): Use target_cpu instead of host_cpu.
14671 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14673 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14675 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14677 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14678 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14679 field 'false' to 'exec_on_false'.
14680 (grub_script_create_cmdif): Renamed argument names to reflect above
14683 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14685 * normal/script.c (grub_script_create_cmdif): Likewise.
14687 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14689 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14691 (grub_hfsplus_btree_recptr): Likewise.
14692 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14693 FILEBLOCK both to pass a block number and store next block
14695 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14696 overflow file correctly. Specify errors appropriately, because
14697 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14698 grub_hfsplus_btree_recptr to get the pointer to a found key.
14699 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14702 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14704 (_linux_mod_SOURCES): New variable.
14705 (_linux_mod_CFLAGS): Likewise.
14706 (_linux_mod_LDFLAGS): Likewise.
14707 (linux_mod_SOURCES): Likewise.
14708 (linux_mod_CFLAGS): Likewise.
14709 (linux_mod_LDFLAGS): Likewise.
14711 * DISTLIST: Added loader/i386/efi/linux.c,
14712 loader/i386/efi/linux_normal.c and
14713 include/grub/i386/efi/loader.h.
14715 * loader/i386/efi/linux.c: New file.
14716 * loader/i386/efi/linux_normal.c: Likewise.
14717 * include/grub/i386/efi/loader.h: Likewise.
14719 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14721 * commands/blocklist.c: New file.
14723 * DISTLIST: Added commands/blocklist.c.
14725 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14726 color for the background, and a darker color for the foreground.
14727 (grub_console_checkkey): Return READ_KEY.
14728 (grub_console_cls): Set the background to
14729 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14731 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14733 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14734 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14736 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14739 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14740 BG. The spec is wrong again.
14742 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14744 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14746 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14747 commands/blocklist.c.
14748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14750 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14751 (blocklist_mod_SOURCES): New variable.
14752 (blocklist_mod_CFLAGS): Likewise.
14753 (blocklist_mod_LDFLAGS): Likewise.
14755 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14757 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14759 (lba_mode): Use %eax more intensively to reduce the code size.
14761 2006-05-20 Marco Gerards <marco@gnu.org>
14763 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14765 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14767 (script): Accept leading newlines.
14768 (newlines): New rule to describe 0 or more newlines.
14769 (commands): Accept `command' with trailing newline. Fixed the
14770 order in which arguments were passed to `grub_script_add_cmd'.
14771 Accept commands separated by newlines.
14772 (function): Changed to accept newlines.
14773 (menuentry) Rewritten.
14775 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14776 front of the list, instead of to the end.
14778 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14780 * util/i386/pc/grub-install.in (bindir): New variable.
14781 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14782 Shaver <lbgwjl@gmail.com>.
14784 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14786 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14787 grub/machine/linux.h
14788 * loader/i386/pc/linux.c: Likewise.
14790 * include/grub/i386/pc/linux.h: Moved to ...
14791 * include/grub/i386/linux.h: ... here.
14793 * include/grub/i386/linux.h (struct linux_kernel_params): New
14796 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14798 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14800 (grub_video_vbe_blit_glyph): Likewise.
14801 (grub_video_vbe_blit_bitmap): Likewise.
14802 (grub_video_vbe_blit_render_target): Likewise.
14804 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14806 * configure.ac (--with-platform): Properly quote the square
14809 2006-05-08 Marco Gerards <marco@gnu.org>
14811 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14813 (kernel_elf_HEADERS): ...to this. Updated all users.
14814 (grubof_symlist.c): Renamed from this...
14815 (kernel_elf_symlist.c): ...to this. Updated all users.
14816 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14817 (grubof_SOURCES): Renamed from this...
14818 (kernel_elf_SOURCES): ...to this.
14819 (grubof_HEADERS): Renamed from this...
14820 (kernel_elf_HEADERS): ...to this.
14821 (grubof_CFLAGS): Renamed from this...
14822 (kernel_elf_CFLAGS): ...to this.
14823 (grubof_ASFLAGS): Renamed from this...
14824 (kernel_elf_ASFLAGS): ...to this.
14825 (grubof_LDFLAGS): Renamed from this...
14826 (kernel_elf_LDFLAGS): ...to this.
14828 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14830 (kernel_elf_HEADERS): ...to this. Updated all users.
14831 (grubof_symlist.c): Renamed from this...
14832 (kernel_elf_symlist.c): ...to this. Updated all users.
14833 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14834 (grubof_SOURCES): Renamed from this...
14835 (kernel_elf_SOURCES): ...to this.
14836 (grubof_HEADERS): Renamed from this...
14837 (kernel_elf_HEADERS): ...to this.
14838 (grubof_CFLAGS): Renamed from this...
14839 (kernel_elf_CFLAGS): ...to this.
14840 (grubof_ASFLAGS): Renamed from this...
14841 (kernel_elf_ASFLAGS): ...to this.
14842 (grubof_LDFLAGS): Renamed from this...
14843 (kernel_elf_LDFLAGS): ...to this.
14845 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14846 `kernel.elf' instead of `grubof'.
14848 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14850 Add --with-platform to configure. Use pkglibdir instead of
14851 pkgdatadir. This is reported by Roger Leigh.
14853 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14854 (host_vendor): Likewise.
14855 (host_os): Likewise.
14856 (pkgdatadir): Likewise.
14857 (platform): New variable.
14858 (pkglibdir): Likewise.
14859 Use PKGLIBDIR instead of PKGDATADIR.
14861 * util/i386/pc/grub-install.in (datadir): Removed.
14862 (host_vendor): Likewise.
14863 (host_os): Likewise.
14864 (pkgdatadir): Likewise.
14865 (platform): New variable.
14866 (pkglibdir): Likewise.
14867 Use PKGLIBDIR instead of PKGDATADIR.
14869 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14870 instead of GRUB_DATADIR.
14872 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14874 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14877 * configure.ac (--with-platform): New option.
14878 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14880 * Makefile.in: Include a makefile based on PLATFORM instead of
14882 (pkgdatadir): Not appended by the machine type.
14883 (pkglibdir): Appended by the machine type.
14884 (host_vendor): Removed.
14885 (platform): New variable.
14886 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14887 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14888 (uninstall): Likewise.
14890 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14892 Use the environment context in the menu. Remove the commands
14893 "default" and "timeout", and use variables instead.
14895 * normal/menu.c: Include grub/env.h.
14896 (print_entry): Cast TITLE to silence gcc.
14897 (get_timeout): New function.
14898 (set_timeout): Likewise.
14899 (get_entry_number): Likewise.
14900 (run_menu): Use a default entry, a fallback entry and a timeout
14901 in the environment variables "default", "fallback" and
14902 "timeout". Also, tweak the default entry if it is not within the
14903 current menu entries.
14904 (grub_menu_run): Use a fallback entry in the environment variable
14907 * normal/main.c (read_config_file): Do not initialize
14908 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14910 (grub_normal_execute): Use a data slot to store the menu.
14912 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14913 fallback_entry and timeout.
14914 (struct grub_menu_list): Removed.
14915 (grub_menu_list_t): Likewise.
14916 (struct grub_context): Likewise.
14917 (grub_context_t): Likewise.
14918 (grub_context_get): Likewise.
14919 (grub_context_get_current_menu): Likewise.
14920 (grub_context_push_menu): Likewise.
14921 (grub_context_pop_menu): Likewise.
14922 (grub_default_init): Likewise.
14923 (grub_default_fini): Likewise.
14924 (grub_timeout_init): Likewise.
14925 (grub_timeout_fini): Likewise.
14927 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14929 (normal_mod_SOURCES): Removed normal/context.c.
14931 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14932 commands/default.c, commands/timeout.c and normal/context.c.
14933 (normal_mod_SOURCES): Removed normal/context.c.
14935 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14936 commands/timeout.c and normal/context.c.
14937 (normal_mod_SOURCES): Removed normal/context.c.
14939 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14940 commands/default.c, commands/timeout.c and normal/context.c.
14941 (normal_mod_SOURCES): Removed normal/context.c.
14943 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14945 (default_mod_SOURCES): Removed.
14946 (default_mod_CFLAGS): Likewise.
14947 (default_mod_LDFLAGS): Likewise.
14948 (timeout_mod_SOURCES): Removed.
14949 (timeout_mod_CFLAGS): Likewise.
14950 (timeout_mod_LDFLAGS): Likewise.
14952 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14955 * commands/default.c: Removed.
14956 * commands/timeout.c: Likewise.
14957 * normal/context.c: Likewise.
14959 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14961 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14963 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14965 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14966 "next" to "prev" for readability.
14967 (struct grub_env_sorted_var): New struct.
14968 (grub_env_context): Renamed to ...
14969 (initial_context): ... this.
14970 (grub_env_var_context): Renamed to ...
14971 (current_context): ... this.
14972 (grub_env_find): Look only at CURRENT_CONTEXT.
14973 (grub_env_context_open): Rewritten to copy exported variables from
14975 (grub_env_context_close): Rewritten according to the new
14976 scheme. Also, add an assertion to prevent the initial context from
14978 (grub_env_insert): Removed the code for the sorted list.
14979 (grub_env_remove): Likewise.
14980 (grub_env_export): Simply mark the variable with
14981 GRUB_ENV_VAR_GLOBAL.
14982 (grub_env_set): A cosmetic change for naming consistency.
14983 (grub_env_get): Likewise.
14984 (grub_env_unset): Likewise.
14985 (grub_env_iterate): Rewritten to sort variables within this
14987 (grub_register_variable_hook): Fixed for naming consistency. Call
14988 grub_env_find again, only if NAME is not found at the first time.
14989 (mangle_data_slot_name): New function.
14990 (grub_env_set_data_slot): Likewise.
14991 (grub_env_get_data_slot): Likewise.
14992 (grub_env_unset_data_slot): Likewise.
14994 * include/grub/env.h (grub_env_var_type): New enum.
14995 (GRUB_ENV_VAR_LOCAL): New constant.
14996 (GRUB_ENV_VAR_GLOBAL): Likewise.
14997 (GRUB_ENV_VAR_DATA): Likewise.
14998 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
15000 (grub_env_set): Replace VAR with NAME for consistency.
15001 (grub_register_variable_hook): Likewise.
15002 (grub_env_export): Specify the name of the argument.
15003 (grub_env_set_data_slot): New prototype.
15004 (grub_env_get_data_slot): Likewise.
15005 (grub_env_unset_data_slot): Likewise.
15007 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15009 Extend the loader so that GRUB can accept a loader which comes
15010 back to GRUB when a loaded image exits. Also, this change adds
15011 support for a chainloader on EFI.
15013 * term/efi/console.c: Include grub/misc.h.
15014 (grub_console_checkkey): Display a scan code on the top for
15015 debugging. This will be removed once the EFI port gets stable.
15016 Correct the scan code mapping.
15018 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
15019 allocate memory from larger regions, in order to reduce the number
15020 of allocated regions. Otherwise, the MacOSX loader panics.
15021 (filter_memory_map): Avoid less than 1MB for compatibility with
15023 (add_memory_regions): Allocate from the tail of a region, if
15024 possible, to avoid allocating a region near to 1MB, for the MacOSX
15027 * kern/efi/init.c (grub_efi_set_prefix): Specify
15028 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
15030 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
15031 argument IMAGE_HANDLE and specify it to get a loaded image.
15032 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
15033 grub_efi_get_loaded_image.
15034 (grub_efi_get_filename): Divide the length by the size of
15036 (grub_efi_get_device_path): New function.
15037 (grub_efi_print_device_path): Print End Device Path nodes. Divide
15038 the length by the size of grub_efi_char16_t for a file path device
15041 * kern/loader.c (grub_loader_noreturn): New variable.
15042 (grub_loader_set): Accept a new argument NORETURN. Set
15043 GRUB_LOADER_NORETURN to NORETURN.
15044 All callers changed.
15045 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15048 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15050 (grub_efi_get_loaded_image): Take an argument to specify an image
15053 * include/grub/loader.h (grub_loader_set): Added one more argument
15056 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15057 instead of grub_efi_open_protocol.
15058 (grub_efidisk_get_device_name): Likewise.
15059 (grub_efidisk_close): Print a newline.
15060 (grub_efidisk_get_device_handle): Fixed to use
15061 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15062 GRUB_EFI_DEVICE_PATH_TYPE.
15064 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15065 * kern/efi/efi.c (device_path_guid): ... here.
15067 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15069 (kernel_mod_HEADERS): Added efi/disk.h.
15070 (_chain_mod_SOURCES): New variable.
15071 (_chain_mod_CFLAGS): Likewise.
15072 (_chain_mod_LDFLAGS): Likewise.
15073 (chain_mod_SOURCES): Likewise.
15074 (chain_mod_CFLAGS): Likewise.
15075 (chain_mod_LDFLAGS): Likewise.
15077 * DISTLIST: Added include/grub/efi/chainloader.h,
15078 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15080 * include/grub/efi/chainloader.h: New file.
15081 * loader/efi/chainloader.c: Likewise.
15082 * loader/efi/chainloader_normal.c: Likewise.
15084 2006-04-30 Marco Gerards <marco@gnu.org>
15086 * commands/configfile.c (grub_cmd_source): New function.
15087 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15088 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15090 2006-04-30 Marco Gerards <marco@gnu.org>
15092 * normal/execute.c (grub_script_execute_cmd): Change the return
15093 type to `grub_err_t'. Correctly return the error.
15094 (grub_script_execute_cmdline): In case a command line is not a
15095 command or a function, try to interpret it as an assignment.
15097 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15099 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15100 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15101 skip a node whose name is obviously invalid as UTF-16,
15102 i.e. contains a NUL character. Stop the iteration when the last
15103 directory entry is found. Instead of using the return value of
15104 grub_hfsplus_btree_iterate_node, store the value in RET and use
15105 it, because the iterator can be stopped by the last directory
15108 2006-04-30 Marco Gerards <marco@gnu.org>
15110 * include/grub/env.h (grub_env_export): New prototype. Reported
15111 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15113 2006-04-30 Marco Gerards <marco@gnu.org>
15115 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15116 size of the extents in a catalog file record.
15118 2006-04-29 Marco Gerards <marco@gnu.org>
15120 * commands/configfile.c (grub_cmd_configfile): Execute the
15121 configfile within its own context.
15123 * include/grub/env.h (grub_env_context_open): New prototype.
15124 (grub_env_context_close): Likewise.
15126 * kern/env.c (grub_env): Removed.
15127 (grub_env_sorted): Likewise.
15128 (grub_env_context): New variable.
15129 (grub_env_var_context): Likewise.
15130 (grub_env_find): Search both the active context and the global
15132 (grub_env_context_open): New function.
15133 (grub_env_context_close): Likewise.
15134 (grub_env_insert): Likewise.
15135 (grub_env_remove): Likewise.
15136 (grub_env_export): Likewise.
15137 (grub_env_set): Changed to use helper functions to avoid code
15139 (grub_env_iterate): Rewritten so both the current context and the
15140 global context are being used.
15142 * normal/command.c (export_command): New function.
15143 (grub_command_init): Register the `export' function.
15145 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15147 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15148 explicitly to suppress gcc's warnings.
15149 * fs/fat.c (grub_fat_find_dir): Likewise.
15150 (grub_fat_label): Likewise.
15151 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15152 (grub_xfs_mount): Likewise.
15153 (grub_xfs_label): Likewise.
15154 * fs/affs.c (grub_affs_mount): Likewise.
15155 (grub_affs_label): Likewise.
15156 (grub_affs_iterate_dir): Likewise.
15157 * fs/sfs.c (grub_sfs_mount): Likewise.
15158 (grub_sfs_iterate_dir): Likewise.
15159 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15160 * fs/hfs.c (grub_hfs_mount): Likewise.
15161 (grub_hfs_cmp_catkeys): Likewise.
15162 (grub_hfs_find_dir): Likewise.
15163 (grub_hfs_dir): Likewise.
15164 (grub_hfs_label): Likewise.
15165 * fs/jfs.c (grub_jfs_mount): Likewise.
15166 (grub_jfs_opendir): Likewise.
15167 (grub_jfs_getent): Likewise.
15168 (grub_jfs_lookup_symlink): Likewise.
15169 (grub_jfs_label): Likewise.
15170 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15171 (grub_hfsplus_iterate_dir): Likewise.
15172 (grub_hfsplus_btree_iterate_node): Made static.
15174 * util/grub-emu.c (prefix): New variable.
15175 (grub_machine_set_prefix): New function.
15176 (main): Do not set the environment variable "prefix" here. Only
15177 set PREFIX, which is used later by grub_machine_set_prefix.
15179 * include/grub/video.h: Do not include grub/symbol.h.
15180 (grub_video_register): Not exported. This symbol is not defined in
15182 (grub_video_unregister): Likewise.
15183 (grub_video_iterate): Likewise.
15184 (grub_video_setup): Likewise.
15185 (grub_video_restore): Likewise.
15186 (grub_video_get_info): Likewise.
15187 (grub_video_get_blit_format): Likewise.
15188 (grub_video_set_palette): Likewise.
15189 (grub_video_get_palette): Likewise.
15190 (grub_video_set_viewport): Likewise.
15191 (grub_video_get_viewport): Likewise.
15192 (grub_video_map_color): Likewise.
15193 (grub_video_map_rgb): Likewise.
15194 (grub_video_map_rgba): Likewise.
15195 (grub_video_fill_rect): Likewise.
15196 (grub_video_blit_glyph): Likewise.
15197 (grub_video_blit_bitmap): Likewise.
15198 (grub_video_blit_render_target): Likewise.
15199 (grub_video_scroll): Likewise.
15200 (grub_video_swap_buffers): Likewise.
15201 (grub_video_create_render_target): Likewise.
15202 (grub_video_delete_render_target): Likewise.
15203 (grub_video_set_active_render_target): Likewise.
15205 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15207 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15209 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15210 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15211 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15212 instead of $(srcdir)/genkernsyms.sh.
15214 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15215 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15216 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15217 instead of $(srcdir)/genkernsyms.sh.
15219 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15220 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15221 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15222 instead of $(srcdir)/genkernsyms.sh.
15224 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15225 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15226 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15227 instead of $(srcdir)/genkernsyms.sh.
15229 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15232 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15234 (gensymlist.sh): New target.
15235 (genkernsyms.sh): Likewise.
15237 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15238 genkernsyms.sh.in and gensymlist.sh.in.
15240 * genkernsyms.sh: Removed.
15241 * gensymlist.sh: Likewise.
15243 * genkernsyms.sh.in: New file.
15244 * gensymlist.sh.in: Likewise.
15246 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15248 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15249 clobber "prefix", since we may have already set it manually.
15251 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15253 * kern/misc.c (abort): New alias for grub_abort.
15255 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15257 A new machine-specific function "grub_machine_set_prefix" is
15258 defined. This is called after loading modules, so that a prefix
15259 initialization can use modules. Also, this change adds an
15260 intensive debugging feature for the memory manager via the
15261 configure option "--enable-mm-debug".
15263 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15266 * kern/sparc64/ieee1275/init.c (abort): Removed.
15267 (grub_stop): Likewise.
15268 (grub_exit): New function.
15269 (grub_set_prefix): Renamed to ...
15270 (grub_machine_set_prefix): ... this.
15271 (grub_machine_init): Do not call grub_set_prefix.
15273 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15274 (grub_machine_set_prefix): ... this.
15275 (grub_machine_init): Do not call grub_set_prefix.
15277 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15278 (grub_machine_init): Do not set the prefix here.
15280 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15282 * kern/efi/init.c: Include grub/mm.h.
15283 (grub_efi_set_prefix): New function.
15285 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15286 (grub_efi_get_filename): New function.
15287 (grub_print_device_path): Renamed to ...
15288 (grub_efi_print_device_path): ... this.
15290 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15291 [MM_DEBUG] (grub_realloc): Likewise.
15292 [MM_DEBUG] (grub_free): Likewise.
15293 [MM_DEBUG] (grub_memalign): Likewise.
15294 [MM_DEBUG] (grub_mm_debug): New variable.
15295 [MM_DEBUG] (grub_debug_malloc): New function.
15296 [MM_DEBUG] (grub_debug_free): New function.
15297 [MM_DEBUG] (grub_debug_realloc): New function.
15298 [MM_DEBUG] (grub_debug_memalign): New function.
15300 * kern/misc.c (grub_abort): Print a newline to distinguish
15303 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15304 grub_set_root_dev after loading modules. This is necessary when
15305 setting a prefix depends on modules.
15307 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15308 (grub_efi_print_device_path): ... this.
15309 (grub_efi_get_filename): New prototype.
15310 (grub_efi_set_prefix): Likewise.
15312 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15314 (grub_efidisk_get_device_handle): New prototype.
15315 (grub_efidisk_get_device_name): Likewise.
15317 * include/grub/mm.h: Include config.h.
15318 (MM_DEBUG): Removed.
15319 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15320 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15321 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15322 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15323 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15324 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15325 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15326 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15327 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15329 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15331 * disk/efi/efidisk.c: Include grub/partition.h.
15332 (iterate_child_devices): New function.
15333 (add_device): First, compare only last device path nodes, so that
15334 devices are sorted by the types.
15335 (grub_efidisk_get_device_handle): New function.
15336 (grub_efidisk_get_device_name): Likewise.
15338 * configure.ac (--enable-mm-debug): New option to enable the
15339 memory manager debugging feature. This makes the binary much
15340 bigger, so is disabled by default.
15342 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15344 Use grub_abort instead of grub_stop, and grub_exit must be
15345 define in each architecture now. Also, this change adds support
15348 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15349 (grub_getkey): New function.
15350 (grub_term_get_current): Likewise.
15352 * util/i386/pc/grub-setup.c: Include grub/term.h.
15353 (grub_getkey): New function.
15354 (grub_term_get_current): Likewise.
15356 * util/misc.c (grub_stop): Renamed to ...
15357 (grub_exit): ... this.
15359 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15360 (grub_exit): ... this.
15361 (grub_machine_init): Use grub_abort instead of abort.
15362 (grub_stop): Removed.
15364 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15367 * kern/i386/pc/startup.S (grub_exit): New function.
15368 (cold_reboot): New label.
15370 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15371 (grub_efi_init): Call grub_efidisk_init.
15372 (grub_efi_fini): Call grub_efidisk_fini.
15374 * kern/efi/efi.c: Include grub/mm.h.
15375 (grub_efi_console_control_guid): Renamed to ...
15376 (console_control_guid): ... this.
15377 (grub_efi_loaded_image_guid): Renamed to ...
15378 (loaded_image_guid): ... this.
15379 (grub_efi_locate_handle): New function.
15380 (grub_efi_open_protocol): Likewise.
15381 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15382 GRUB_EFI_CONSOLE_CONTROL_GUID.
15383 (grub_efi_exit): Removed.
15384 (grub_stop): Likewise.
15385 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15386 (grub_exit): New function.
15387 (grub_print_device_path): Likewise.
15389 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15390 (grub_enter_rescue_mode): Register "exit".
15392 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15393 (grub_abort): New function.
15395 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15397 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15399 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15401 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15402 (grub_print_device_path): New prototype.
15403 (grub_efi_locate_handle): Likewise.
15404 (grub_efi_open_protocol): Likewise.
15406 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15407 * disk/efi/efidisk.c: Likewise.
15409 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15411 * include/grub/efi/console_control.h
15412 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15414 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15415 last 8 bytes as an array.
15416 (GRUB_EFI_DISK_IO_GUID): New macro.
15417 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15418 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15419 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15421 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15422 (struct grub_efi_device_path): Rename the member "sub_type" to
15424 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15425 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15426 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15427 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15428 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15429 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15430 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15431 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15432 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15433 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15434 (struct grub_efi_pci_device_path): New structure.
15435 (grub_efi_pci_device_path_t): New type.
15436 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15437 (struct grub_efi_pccard_device_path): New structure.
15438 (grub_efi_pccard_device_path_t): New type.
15439 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15440 (struct grub_efi_memory_mapped_device_path): New structure.
15441 (grub_efi_memory_mapped_device_path_t): New type.
15442 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15443 (struct grub_efi_vendor_device_path): New structure.
15444 (grub_efi_vendor_device_path_t): New type.
15445 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15446 (struct grub_efi_controller_device_path): New structure.
15447 (grub_efi_controller_device_path_t): New type.
15448 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15449 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15450 (struct grub_efi_acpi_device_path): New structure.
15451 (grub_efi_acpi_device_path_t): New type.
15452 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15453 (struct grub_efi_expanded_acpi_device_path): New structure.
15454 (grub_efi_expanded_acpi_device_path_t): New type.
15455 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15456 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15457 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15458 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15459 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15460 (struct grub_efi_atapi_device_path): New structure.
15461 (grub_efi_atapi_device_path_t): New type.
15462 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15463 (struct grub_efi_fibre_channel_device_path): New structure.
15464 (grub_efi_fibre_channel_device_path_t): New type.
15465 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15466 (struct grub_efi_1394_device_path): New structure.
15467 (grub_efi_1394_device_path_t): New type.
15468 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15469 (struct grub_efi_usb_device_path): New structure.
15470 (grub_efi_usb_device_path_t): New type.
15471 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15472 (struct grub_efi_usb_class_device_path): New structure.
15473 (grub_efi_usb_class_device_path_t): New type.
15474 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15475 (struct grub_efi_i2o_device_path): New structure.
15476 (grub_efi_i2o_device_path_t): New type.
15477 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15478 (struct grub_efi_mac_address_device_path): New structure.
15479 (grub_efi_mac_address_device_path_t): New type.
15480 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15481 (struct grub_efi_ipv4_device_path): New structure.
15482 (grub_efi_ipv4_device_path_t): New type.
15483 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15484 (struct grub_efi_ipv6_device_path): New structure.
15485 (grub_efi_ipv6_device_path_t): New type.
15486 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15487 (struct grub_efi_infiniband_device_path): New structure.
15488 (grub_efi_infiniband_device_path_t): New type.
15489 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15490 (struct grub_efi_uart_device_path): New structure.
15491 (grub_efi_uart_device_path_t): New type.
15492 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15493 (struct grub_efi_vendor_messaging_device_path): New structure.
15494 (grub_efi_vendor_messaging_device_path_t): New type.
15495 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15496 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15497 (struct grub_efi_hard_drive_device_path): New structure.
15498 (grub_efi_hard_drive_device_path_t): New type.
15499 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15500 (struct grub_efi_cdrom_device_path): New structure.
15501 (grub_efi_cdrom_device_path_t): New type.
15502 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15503 (struct grub_efi_vendor_media_device_path): New structure.
15504 (grub_efi_vendor_media_device_path_t): New type.
15505 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15506 (struct grub_efi_file_path_device_path): New structure.
15507 (grub_efi_file_path_device_path_t): New type.
15508 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15509 (struct grub_efi_protocol_device_path): New structure.
15510 (grub_efi_protocol_device_path_t): New type.
15511 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15512 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15513 (struct grub_efi_bios_device_path): New structure.
15514 (grub_efi_bios_device_path_t): New type.
15515 (struct grub_efi_disk_io): New structure.
15516 (grub_efi_disk_io_t): New type.
15517 (struct grub_efi_block_io_media): New structure.
15518 (grub_efi_block_io_media_t): New type.
15519 (struct grub_efi_block_io): New structure.
15520 (grub_efi_block_io_t): New type.
15522 * include/grub/misc.h (grub_stop): Removed.
15523 (grub_exit): New prototype.
15524 (grub_abort): Likewise.
15526 * include/grub/disk.h (enum grub_disk_dev_id): Added
15527 GRUB_DISK_DEVICE_EFIDISK_ID.
15529 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15530 disk/efi/efidisk.c.
15531 (kernel_syms.lst): Remove the target if an error occurs.
15533 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15535 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15536 as it was simply too buggy.
15538 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15540 * kern/misc.c (grub_lltoa): New function.
15541 (grub_vsprintf): Added support for the long long suffix,
15544 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15546 * Makefile.in (LDFLAGS): Add variable.
15547 (LD): Remove variable.
15548 * configure.ac: Add -m32 to LDFLAGS.
15549 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15550 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15551 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15552 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15553 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15555 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15556 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15557 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15559 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15561 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15562 length for unknown glyph.
15564 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15566 Add support for pre-loaded modules into the EFI port.
15568 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15569 completely. Accept one more argument DIR. The caller has changed.
15571 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15573 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15574 (grub_efi_loaded_image_guid): New variable.
15575 (grub_efi_get_loaded_image): New function.
15576 (grub_arch_modules_addr): Likewise.
15578 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15581 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15582 (struct grub_efi_loaded_image): New structure.
15583 (grub_efi_loaded_image_t): New type.
15585 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15587 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15588 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15589 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15591 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15593 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15595 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15597 * DISTLIST: Added include/grub/efi/console.h,
15598 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15599 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15601 * include/grub/efi/console.h: New file.
15602 * include/grub/efi/time.h: Likewise.
15603 * include/grub/i386/efi/kernel.h: Likewise.
15604 * kern/efi/init.c: Likewise.
15605 * kern/efi/mm.c: Likewise.
15606 * term/efi/console.c: Likewise.
15608 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15609 (grub_stop): Removed.
15610 (grub_get_rtc): Likewise.
15611 (grub_machine_init): Simply call grub_efi_init.
15612 (grub_machine_fini): Call grub_efi_fini.
15614 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15615 (grub_efi_output_string): Removed.
15616 (grub_efi_stall): New function.
15617 (grub_stop): Likewise.
15618 (grub_get_rtc): Likewise.
15620 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15621 (grub_efi_stall): New prototype.
15622 (grub_efi_allocate_pages): Likewise.
15623 (grub_efi_free_pages): Likewise.
15624 (grub_efi_get_memory_map): Likewise.
15625 (grub_efi_mm_init): Likewise.
15626 (grub_efi_mm_fini): Likewise.
15627 (grub_efi_init): Likewise.
15628 (grub_efi_fini): Likewise.
15630 * include/grub/i386/efi/time.h: Do not include
15631 grub/symbol.h. Include grub/efi/time.h.
15632 (GRUB_TICKS_PER_SECOND): Removed.
15633 (grub_get_rtc): Likewise.
15635 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15636 Added padding. The EFI spec is buggy.
15637 (GRUB_EFI_BLACK): New macro.
15638 (GRUB_EFI_BLUE): Likewise.
15639 (GRUB_EFI_GREEN): Likewise.
15640 (GRUB_EFI_CYAN): Likewise.
15641 (GRUB_EFI_RED): Likewise.
15642 (GRUB_EFI_MAGENTA): Likewise.
15643 (GRUB_EFI_BROWN): Likewise.
15644 (GRUB_EFI_LIGHTGRAY): Likewise.
15645 (GRUB_EFI_BRIGHT): Likewise.
15646 (GRUB_EFI_DARKGRAY): Likewise.
15647 (GRUB_EFI_LIGHTBLUE): Likewise.
15648 (GRUB_EFI_LIGHTGREEN): Likewise.
15649 (GRUB_EFI_LIGHTCYAN): Likewise.
15650 (GRUB_EFI_LIGHTRED): Likewise.
15651 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15652 (GRUB_EFI_YELLOW): Likewise.
15653 (GRUB_EFI_WHITE): Likewise.
15654 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15655 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15656 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15657 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15658 (GRUB_EFI_BACKGROUND_RED): Likewise.
15659 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15660 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15661 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15662 (GRUB_EFI_TEXT_ATTR): Likewise.
15664 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15665 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15666 (kernel_mod_HEADERS): Added efi/time.h.
15668 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15670 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15671 include/grub/efi/api.h, include/grub/efi/console_control.h,
15672 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15673 include/grub/i386/efi/time.h, kern/efi/efi.c,
15674 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15675 and util/i386/efi/grub-mkimage.c.
15677 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15679 * genmk.rb (PModule#rule): Do not export symbols if
15680 #{prefix}_EXPORTS is set to "no".
15682 * conf/i386-efi.mk: New file.
15683 * conf/i386-efi.rmk: Likewise.
15684 * include/grub/efi/api.h: Likewise.
15685 * include/grub/efi/console_control.h: Likewise.
15686 * include/grub/efi/efi.h: Likewise.
15687 * include/grub/efi/pe32.h: Likewise.
15688 * include/grub/i386/efi/time.h: Likewise.
15689 * kern/efi/efi.c: Likewise.
15690 * kern/i386/efi/init.c: Likewise.
15691 * kern/i386/efi/startup.S: Likewise.
15692 * util/i386/efi/grub-mkimage.c: Likewise.
15694 2006-04-17 Marco Gerards <marco@gnu.org>
15696 * include/grub/script.h: Include <grub/parser.h> and
15697 "grub_script.tab.h".
15698 (struct grub_lexer_param): New struct.
15699 (struct grub_parser_param): Likewise.
15700 (grub_script_create_arglist): Pass the state in an argument.
15701 (grub_script_add_arglist): Likewise.
15702 (grub_script_create_cmdline): Likewise.
15703 (grub_script_create_cmdblock): Likewise.
15704 (grub_script_create_cmdif): Likewise.
15705 (grub_script_create_cmdmenu): Likewise.
15706 (grub_script_add_cmd): Likewise.
15707 (grub_script_arg_add): Likewise.
15708 (grub_script_lexer_ref): Likewise.
15709 (grub_script_lexer_deref): Likewise.
15710 (grub_script_lexer_record_start): Likewise.
15711 (grub_script_lexer_record_stop): Likewise.
15712 (grub_script_mem_record): Likewise.
15713 (grub_script_mem_record_stop): Likewise.
15714 (grub_script_malloc): Likewise.
15715 (grub_script_yylex): Likewise.
15716 (grub_script_yyparse): Likewise.
15717 (grub_script_yyerror): Likewise.
15718 (grub_script_yylex): Likewise.
15719 (grub_script_lexer_init): Return the state.
15721 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15722 (grub_script_lexer_done): Likewise.
15723 (grub_script_lexer_getline): Likewise.
15724 (grub_script_lexer_refs): Likewise.
15725 (script): Likewise.
15726 (newscript): Likewise.
15727 (record): Likewise.
15728 (recording): Likewise.
15729 (recordpos): Likewise.
15730 (recordlen): Likewise.
15731 (grub_script_lexer_init): Return the state instead of setting
15733 (grub_script_lexer_ref): Use the newly added argument for state
15734 instead of globals.
15735 (grub_script_lexer_deref): Likewise.
15736 (grub_script_lexer_record_start): Likewise.
15737 (grub_script_lexer_record_stop): Likewise.
15738 (recordchar): Likewise.
15739 (nextchar): Likewise.
15740 (grub_script_yylex2): Likewise.
15741 (grub_script_yylex): Likewise.
15742 (grub_script_yyerror): Likewise.
15744 * normal/parser.y (func_mem): Removed variable.
15745 (menu_entry): Likewise.
15747 (%lex-param): New parser option.
15748 (%parse-param): Likewise.
15749 (script): Always return the AST.
15750 (argument): Pass the state around.
15751 (arguments): Likewise.
15752 (grubcmd): Likewise.
15753 (commands): Likewise.
15754 (function): Likewise.
15755 (menuentry): Likewise.
15756 (if_statement): Likewise.
15759 * normal/script.c (grub_script_memused): Removed variable.
15760 (grub_script_parsed): Likewise.
15761 (grub_script_malloc): Added a state argument. Use that instead of
15763 (grub_script_mem_record): Likewise.
15764 (grub_script_mem_record_stop): Likewise.
15765 (grub_script_arg_add): Likewise.
15766 (grub_script_add_arglist): Likewise.
15767 (grub_script_create_cmdline): Likewise.
15768 (grub_script_create_cmdif): Likewise.
15769 (grub_script_create_cmdmenu): Likewise.
15770 (grub_script_add_cmd): Likewise.
15771 (grub_script_parse): Setup the state before calling the parser.
15773 2006-04-16 Marco Gerards <marco@gnu.org>
15775 * normal/command.c (grub_command_init): Remove the title command.
15777 * normal/lexer.c (grub_script_yylex): Renamed from this...
15778 (grub_script_yylex2): ... to this.
15779 (grub_script_yylex): New function. Temporary
15780 introduced to filter some tokens.
15781 (grub_script_yyerror): Print a newline.
15783 * normal/main.c (read_config_file): Output information about the
15784 lines that contain errors. Wait for a key after all lines have
15785 been processed. Don't return an empty menu.
15787 * normal/parser.y (func_mem): Don't initialize.
15788 (menu_entry): Likewise.
15789 (err): New variable.
15790 (script): Don't return anything when an error was encountered.
15791 (ws, returns): Removed rules.
15792 (argument): Disabled concatenated variable support.
15793 (arguments): Remove explicit separators.
15794 (grubcmd): Likewise.
15795 (function): Likewise.
15796 (menuentry): Likewise.
15798 (commands): Likewise. Add error handling.
15800 * normal/script.c (grub_script_create_cmdline): If
15801 `grub_script_parsed' is 0, assume the parser encountered an error.
15803 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15805 * configure.ac: Add support for EFI. Fix the typo
15806 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15808 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15810 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15811 foreign multibyte characters should be shown correctly.
15813 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15815 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15817 (read_config_file): Made it to close file before returning.
15819 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15821 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15822 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15823 video/i386/pc/vbefill.c.
15825 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15826 video/i386/pc/vbefill.c.
15828 * include/grub/video.h (grub_video_blit_format): New enum.
15829 (grub_video_mode_info): Added new member blit_format.
15830 (grub_video_get_blit_format): New function prototype.
15832 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15833 function prototype.
15834 (grub_video_vbe_map_rgb): Likewise.
15835 (grub_video_vbe_unmap_color): Likewise.
15837 * include/grub/i386/pc/vbeblit.h: New file.
15839 * include/grub/i386/pc/vbefill.h: New file.
15841 * video/video.c (grub_video_get_blit_format): New function.
15842 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15843 (grub_video_vbe_map_rgb): Likewise.
15844 (grub_video_vbe_unmap_color): Likewise.
15846 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15848 (grub_video_vbe_blit_render_target): Changed to use more optimized
15850 (grub_video_vbe_setup): Added detection for optimized settings.
15851 (grub_video_vbe_create_render_target): Likewise.
15853 * video/i386/pc/vbeblit.c: New file.
15855 * video/i386/pc/vbefill.c: New file.
15857 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15859 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15862 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15863 parsing to support both hex and dec ranges. If filename was missing
15864 show usage information.
15866 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15868 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15869 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15871 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15872 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15873 (video_mod_SOURCES): Added.
15874 (video_mod_CFLAGS): Likewise.
15875 (video_mod_LDFLAGS): Likewise.
15876 (gfxterm_mod_SOURCES): Likewise.
15877 (gfxterm_mod_CFLAGS): Likewise.
15878 (gfxterm_mod_LDFLAGS): Likewise.
15879 (videotest_mod_SOURCES): Likewise.
15880 (videotest_mod_CFLAGS): Likewise.
15881 (videotest_mod_LDFLAGS): Likewise.
15882 (vesafb_mod_SOURCES): Removed.
15883 (vesafb_mod_CFLAGS): Likewise.
15884 (vesafb_mod_LDFLAGS): Likewise.
15885 (vga_mod_SOURCES): Likewise.
15886 (vga_mod_CFLAGS): Likewise.
15887 (vga_mod_LDFLAGS): Likewise.
15889 * commands/videotest.c: New file.
15891 * font/manager.c (fill_with_default_glyph): Modified to use
15893 (grub_font_get_glyph): Likewise.
15894 (fontmanager): Renamed from this...
15895 (font_manager): ... to this.
15897 * include/grub/font.h (grub_font_glyph): Added new structure.
15898 (grub_font_get_glyph): Modified to use grub_font_glyph.
15900 * include/grub/misc.h (grub_abs): Added as inline function.
15902 * include/grub/video.h: New file.
15904 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15905 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15906 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15907 (grub_vbe_get_controller_info): Renamed from this...
15908 (grub_vbe_bios_get_controller_info): ... to this.
15909 (grub_vbe_get_mode_info): Renamed from this...
15910 (grub_vbe_bios_get_mode_info): ... to this.
15911 (grub_vbe_set_mode): Renamed from this...
15912 (grub_vbe_bios_set_mode): ... to this.
15913 (grub_vbe_get_mode): Renamed from this...
15914 (grub_vbe_bios_get_mode): ... to this.
15915 (grub_vbe_set_memory_window): Renamed from this...
15916 (grub_vbe_bios_set_memory_window): ... to this.
15917 (grub_vbe_get_memory_window): Renamed from this...
15918 (grub_vbe_bios_get_memory_window): ... to this.
15919 (grub_vbe_set_scanline_length): Renamed from this...
15920 (grub_vbe_set_scanline_length): ... to this.
15921 (grub_vbe_get_scanline_length): Renamed from this...
15922 (grub_vbe_bios_get_scanline_length): ... to this.
15923 (grub_vbe_set_display_start): Renamed from this...
15924 (grub_vbe_bios_set_display_start): ... to this.
15925 (grub_vbe_get_display_start): Renamed from this...
15926 (grub_vbe_bios_get_display_start): ... to this.
15927 (grub_vbe_set_palette_data): Renamed from this...
15928 (grub_vbe_bios_set_palette_data): ... to this.
15929 (grub_vbe_set_pixel_rgb): Removed.
15930 (grub_vbe_set_pixel_index): Likewise.
15932 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15934 (grub_vbe_bios_get_controller_info): ... to this.
15935 (grub_vbe_get_mode_info): Renamed from this...
15936 (grub_vbe_bios_get_mode_info): ... to this.
15937 (grub_vbe_set_mode): Renamed from this...
15938 (grub_vbe_bios_set_mode): ... to this.
15939 (grub_vbe_get_mode): Renamed from this...
15940 (grub_vbe_bios_get_mode): ... to this.
15941 (grub_vbe_set_memory_window): Renamed from this...
15942 (grub_vbe_bios_set_memory_window): ... to this.
15943 (grub_vbe_get_memory_window): Renamed from this...
15944 (grub_vbe_bios_get_memory_window): ... to this.
15945 (grub_vbe_set_scanline_length): Renamed from this...
15946 (grub_vbe_set_scanline_length): ... to this.
15947 (grub_vbe_get_scanline_length): Renamed from this...
15948 (grub_vbe_bios_get_scanline_length): ... to this.
15949 (grub_vbe_set_display_start): Renamed from this...
15950 (grub_vbe_bios_set_display_start): ... to this.
15951 (grub_vbe_get_display_start): Renamed from this...
15952 (grub_vbe_bios_get_display_start): ... to this.
15953 (grub_vbe_set_palette_data): Renamed from this...
15954 (grub_vbe_bios_set_palette_data): ... to this.
15955 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15956 getting corrupted after calling it. Added more pushes and pops.
15957 (grub_vbe_bios_set_mode): Likewise.
15958 (grub_vbe_bios_get_mode): Likewise.
15959 (grub_vbe_bios_get_memory_window): Likewise.
15960 (grub_vbe_bios_set_scanline_length): Likewise.
15961 (grub_vbe_bios_get_scanline_length): Likewise.
15962 (grub_vbe_bios_get_display_start): Likewise.
15963 (grub_vbe_bios_set_palette_data): Likewise.
15965 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15966 (cl_insert): Likewise.
15967 (cl_delete): Likewise.
15969 * term/gfxterm.c: New file.
15971 * term/i386/pc/vesafb.c: Removed file.
15973 * video/video.c: New file.
15975 * video/i386/pc/vbe.c (real2pm): Added new function.
15976 (grub_video_vbe_draw_pixel): Likewise.
15977 (grub_video_vbe_get_video_ptr): Likewise.
15978 (grub_video_vbe_get_pixel): Likewise
15979 (grub_video_vbe_init): Likewise.
15980 (grub_video_vbe_fini): Likewise.
15981 (grub_video_vbe_setup): Likewise.
15982 (grub_video_vbe_get_info): Likewise.
15983 (grub_video_vbe_set_palette): Likewise.
15984 (grub_video_vbe_get_palette): Likewise.
15985 (grub_video_vbe_set_viewport): Likewise.
15986 (grub_video_vbe_get_viewport): Likewise.
15987 (grub_video_vbe_map_color): Likewise.
15988 (grub_video_vbe_map_rgb): Likewise.
15989 (grub_video_vbe_map_rgba): Likewise.
15990 (grub_video_vbe_unmap_color): Likewise.
15991 (grub_video_vbe_fill_rect): Likewise.
15992 (grub_video_vbe_blit_glyph): Likewise.
15993 (grub_video_vbe_blit_bitmap): Likewise.
15994 (grub_video_vbe_blit_render_target): Likewise.
15995 (grub_video_vbe_scroll): Likewise.
15996 (grub_video_vbe_swap_buffers): Likewise.
15997 (grub_video_vbe_create_render_target): Likewise.
15998 (grub_video_vbe_delete_render_target): Likewise.
15999 (grub_video_vbe_set_active_render_target): Likewise.
16000 (grub_vbe_set_pixel_rgb): Remove function.
16001 (grub_vbe_set_pixel_index): Likewise.
16002 (index_color_mode): Remove static variable.
16003 (active_mode): Likewise.
16004 (framebuffer): Likewise.
16005 (bytes_per_scan_line): Likewise.
16006 (grub_video_vbe_adapter): Added new static variable.
16007 (framebuffer): Likewise.
16008 (render_target): Likewise.
16009 (initial_mode): Likewise.
16010 (mode_in_use): Likewise.
16011 (mode_list): Likewise.
16013 2006-03-10 Marco Gerards <marco@gnu.org>
16015 * configure.ac (AC_INIT): Bumped to 1.93.
16017 * DISTLIST: Added `include/grub/hfs.h'.
16019 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
16021 * boot/i386/pc/boot.S (general_error): Before looping, try INT
16022 18H, which might help the BIOS falling back to next boot media.
16024 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
16026 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
16027 Poe Chen <poe.poechen@gmail.com>.
16029 2006-01-17 Marco Gerards <marco@gnu.org>
16031 * include/grub/normal.h: Include <grub/script.h>.
16032 (grub_command_list): Removed struct.
16033 (grub_command_list_t): Removed type.
16034 (grub_menu_entry): Remove members `num' and `command_list'. Add
16035 members `commands' and `sourcecode'.
16036 * include/grub/script.h: Add inclusion guards.
16037 (grub_script_cmd_menuentry): New struct.
16038 (grub_script_execute_menuentry): New prototype.
16039 (grub_script_lexer_record_start): Likewise.
16040 (grub_script_lexer_record_stop): Likewise.
16041 * normal/execute.c (grub_script_execute_menuentry): New function.
16042 * normal/lexer.c (record, recording, recordpos, recordlen): New
16044 (grub_script_lexer_record_start): New function.
16045 (grub_script_lexer_record_stop): Likewise.
16046 (recordchar): Likewise.
16047 (nextchar): Likewise.
16048 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16049 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16050 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16051 (current_menu): New variable.
16052 (free_menu): Mainly rewritten.
16053 (grub_normal_menu_addentry): New function.
16054 (read_config_file): Rewritten.
16055 * normal/menu.c (run_menu_entry): Mainly rewritten.
16056 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16058 (run): Mainly rewritten.
16059 * normal/parser.y (menu_entry): New variable.
16060 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16061 (menuentry): New rule.
16062 (command): Add `menuentry'.
16063 (if_statement): Allow additional returns before `fi'.
16064 * normal/script.c (grub_script_create_cmdmenu): New function.
16066 2006-01-03 Marco Gerards <marco@gnu.org>
16068 * INSTALL: GNU Bison is required.
16069 * configure.ac: Rewritten the test to detect Bison.
16070 * Makefile.in (YACC): New variable. Reported by Xun Sun
16071 <xun.sun.cn@gmail.com>.
16073 2006-01-03 Marco Gerards <marco@gnu.org>
16075 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16076 the HFS+ filesystem to filesystem blocks.
16077 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16078 GCC warning is silenced.
16080 2006-01-03 Marco Gerards <marco@gnu.org>
16082 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16083 read from disk from big endian to host byte order.
16085 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16087 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16089 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16090 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16091 embedded HFS+ filesystem.
16092 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16093 (grub_hfs_sblock): Move from here...
16094 * include/grub/hfs.h: To here... New file.
16095 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16097 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16099 (grub_hfsplus_volheader): Change type of member `magic' to
16101 (grub_hfsplus_data): Add new member `embedded_offset'.
16102 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16104 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16105 Calculate the offset.
16107 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16109 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16111 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16113 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16115 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16116 ENV->NAME is NULL after allocating ENV->VALUE.
16118 2005-12-25 Marco Gerards <marco@gnu.org>
16120 * kern/env.c (grub_env_set): Rewritten the error handling code.
16122 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16124 * geninit.sh: Made more robust, and more portable.
16126 2005-12-25 Marco Gerards <marco@gnu.org>
16128 Add support for Apple HFS+ filesystems.
16130 * fs/hfsplus.c: New file.
16132 * DISTLIST: Added `fs/hfsplus.c'.
16134 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16135 (hfsplus_mod_SOURCES): New variable.
16136 (hfsplus_mod_CFLAGS): Likewise.
16137 (hfsplus_mod_LDFLAGS): Likewise.
16138 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16139 (grub_setup_SOURCES): Likewise.
16140 (grub_mkdevicemap_SOURCES): Likewise.
16141 (grub_emu_SOURCES): Likewise.
16142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16144 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16146 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16148 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16150 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16151 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16152 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16153 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16154 normal/lexer.c, normal/parser.y, normal/script.c, and
16156 Removed kern/sparc64/cache.c.
16158 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16159 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16162 * configure.ac (AC_INIT): Bumped to 1.92.
16164 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16166 * kern/err.c (grub_error_push): Added new function to support error
16168 (grub_error_pop): Likewise.
16169 (grub_error_stack_items): New local variable to support error stacks.
16170 (grub_error_stack_pos): Likewise.
16171 (grub_error_stack_assert): Likewise.
16172 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16174 (grub_print_error): Added support to print errors from error stack.
16176 * include/grub/err.h (grub_error_push): Added function prototype.
16177 (grub_error_pop): Likewise.
16179 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16181 * configure.ac: Accept `powerpc64' as host_cpu.
16182 (amd64): Rename to `biarch32'.
16184 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16185 non-cacheline-aligned addresses.
16187 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16188 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16189 if `size' is non-zero.
16191 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16193 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16194 and `cd' to make sure the filename is not prefixed with a
16196 (pkgdata_MODULES): Add `gpt.mod'.
16197 (gpt_mod_SOURCES): New variable.
16198 (gpt_mod_CFLAGS): Likewise.
16199 (gpt_mod_LDFLAGS): Likewise.
16201 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16203 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16206 * partmap/gpt.c: New file.
16208 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16209 GPT partition map is detected.
16211 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16213 * commands/i386/pc/play.c: New file.
16214 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16215 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16218 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16220 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16221 ((unused))' to silence gcc warning.
16223 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16225 * configure.ac: Correct `AC_PROG_YACC' test.
16227 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16229 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16230 check before installing files.
16232 2005-11-22 Mike Small <smallm@panix.com>
16234 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16235 number regex so multidigit numbers are recognized correctly.
16237 2005-11-22 Mike Small <smallm@panix.com>
16239 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16240 debugging message before attempting to claim memory.
16241 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16242 multiple addresses in case of failure.
16244 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16246 * term/tparm.c (get_space): Remove empty `if' statement.
16248 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16250 * kern/parser.c (check_varstate): Rename `state' to 's'.
16252 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16254 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16255 variable definitions to the beginning of each function. Sort stack
16257 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16258 `buf' argument to `char *'.
16260 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16262 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16263 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16264 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16265 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16266 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16267 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16268 configfile.mod, search.mod, gzio.mod and test.mod.
16269 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16270 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16271 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16272 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16273 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16274 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16275 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16276 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16277 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16278 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16279 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16280 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16281 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16282 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16283 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16284 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16285 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16286 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16287 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16288 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16289 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16290 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16291 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16293 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16295 (pkgdata_MODULES): Add test.mod.
16297 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16299 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16300 appending to variables with "+=".
16301 (PModule): Use full pathname to generate *.lst filenames.
16303 * Makefile.in: Fixed list rules moved from genmk.rb.
16304 (.DELETE_ON_ERROR): New special target.
16305 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16307 * conf/i386-pc.rmk: Include conf/common.mk.
16308 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16309 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16310 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16311 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16312 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16313 configfile.mod, search.mod, gzio.mod and test.mod.
16314 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16315 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16316 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16317 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16318 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16319 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16320 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16321 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16322 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16323 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16324 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16325 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16326 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16327 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16328 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16329 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16330 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16331 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16332 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16333 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16334 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16335 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16336 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16338 * conf/common.rmk: ... to here. New file.
16340 * conf/common.mk: New file.
16342 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16344 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16345 (grub_script.tab.c): ... here.
16347 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16348 (grub_script.tab.c): ... here.
16350 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16351 (grub_script.tab.c): ... here.
16353 * normal/command.c (grub_command_find): Fixed a memory leak of
16354 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16356 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16358 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16359 "@" which marks the start of a comment on ARM.
16360 (VARIABLE): Likewise.
16362 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16364 Add support for Linux/ADFS partition tables.
16366 * partmap/acorn.c: New file.
16368 * include/grub/acorn_filecore.h: Likewise.
16370 * DISTLIST: Added `partmap/acorn.c' and
16371 `include/grub/acorn_filecore.h'.
16373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16375 (pkgdata_MODULES): Add `acorn.mod'.
16376 (acorn_mod_SOURCES): New variable.
16377 (acorn_mod_CFLAGS): Likewise.
16379 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16381 (pkgdata_MODULES): Add `acorn.mod'.
16382 (acorn_mod_SOURCES): New variable.
16383 (acorn_mod_CFLAGS): Likewise.
16385 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16386 (pkgdata_MODULES): Add `acorn.mod'.
16387 (acorn_mod_SOURCES): New variable.
16388 (acorn_mod_CFLAGS): Likewise.
16389 (acorn_mod_LDFLAGS): Likewise.
16391 * include/types.h (grub_disk_addr_t): New typedef.
16393 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16395 * geninit.sh: New file.
16397 * geninitheader.sh: Likewise.
16399 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16400 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16401 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16402 * commands/configfile.c (grub_configfile_init)
16403 (grub_configfile_fini): Likewise.
16404 * commands/default.c (grub_default_init, grub_default_fini):
16406 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16407 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16408 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16409 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16411 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16412 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16414 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16415 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16417 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16419 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16421 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16422 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16423 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16424 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16425 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16426 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16427 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16428 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16429 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16430 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16431 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16432 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16433 * partmap/amiga.c (grub_amiga_partition_map_init)
16434 (grub_amiga_partition_map_fini): Likewise.
16435 * partmap/apple.c (grub_apple_partition_map_init)
16436 (grub_apple_partition_map_fini): Likewise.
16437 * partmap/pc.c (grub_pc_partition_map_init)
16438 (grub_pc_partition_map_fini): Likewise.
16439 * partmap/sun.c (grub_sun_partition_map_init,
16440 grub_sun_partition_map_fini): Likewise.
16441 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16444 * util/grub-emu.c: Include <grub_modules_init.h>.
16445 (main): Don't initialize and de-initialize any modules directly,
16446 use `grub_init_all' and `grub_fini_all' instead.
16448 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16449 `grub_vesafb_mod_init'.
16450 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16452 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16453 `grub_vga_mod_init'. Updated all users.
16454 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16456 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16457 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16460 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16461 Generate a function to initialize the module in utilities.
16462 Updated all callers.
16463 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16464 initialize the module in utilities. Updated all callers.
16466 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16468 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16469 escape sequence and a literal ^L to clear the screen.
16471 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16472 when returning from Open Firmware.
16474 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16476 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16477 (grub_ofconsole_height): Likewise.
16478 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16479 manually insert a '\n'.
16480 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16481 `grub_ofconsole_height'. Return early if these are already set.
16483 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16485 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16486 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16487 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16488 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16489 and `normal/script.c'.
16490 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16491 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16492 (test_mod_SOURCES): New variable.
16493 (test_mod_CFLAGS): Likewise.
16494 (test_mod_LDFLAGS): Likewise.
16495 (pkgdata_MODULES): Add `test.mod'.
16496 (grub_script.tab.c): New rule.
16497 (grub_script.tab.h): Likewise.
16499 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16502 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16503 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16504 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16505 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16506 (test_mod_SOURCES): New variable.
16507 (test_mod_CFLAGS): Likewise.
16508 (pkgdata_MODULES): Add `test.mod'.
16509 (grub_script.tab.c): New rule.
16510 (grub_script.tab.h): Likewise.
16512 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16514 Add initial scripting support.
16516 * commands/test.c: New file.
16517 * include/grub/script.h: Likewise.
16518 * normal/execute.c: Likewise.
16519 * normal/function.c: Likewise.
16520 * normal/lexer.c: Likewise.
16521 * normal/parser.y: Likewise.
16522 * normal/script.c: Likewise.
16524 * configure.ac: Add `AC_PROG_YACC' test.
16526 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16527 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16528 `normal/function.c' and `normal/script.c'.
16529 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16530 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16531 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16533 (pkgdata_MODULES): Add `test.mod'.
16534 (grub_script.tab.c): New rule.
16535 (grub_script.tab.h): Likewise.
16537 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16539 * include/grub/normal.h (grub_test_init): New prototype.
16540 (grub_test_fini): Likewise.
16542 * normal/command.c: Include <grub/script.h>.
16543 (grub_command_execute): Rewritten.
16545 * util/grub-emu.c (main): Call `grub_test_init' and
16548 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16550 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16552 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16553 there are no pending characters.
16555 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16557 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16558 `grub_strndup' to drop device arguments. Replace unnecessary
16559 `grub_strndup' with `grub_strdup'.
16561 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16563 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16564 `debug' environment variable has been set.
16566 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16568 * Makefile.in (install-local): Use $(DATA).
16569 (uninstall): Likewise.
16570 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16571 (sbin_UTILITIES): ... to here.
16572 (sbin_SCRIPTS): New variable.
16573 (grub_install_SOURCES): New variable.
16574 * util/powerpc/ieee1275/grub-install.in: New file.
16575 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16577 (add_segments): Call `grub_util_get_path'.
16579 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16581 From Timothy Baldwin:
16582 * commands/ls.c (grub_ls_list_files): Close FILE with
16584 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16586 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16588 * include/grub/parser.h: New file.
16590 * kern/parser.c: Likewise.
16592 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16593 (grub_setup_SOURCES): Likewise.
16594 (grub_probefs_SOURCES): Likewise.
16595 (grub_emu_SOURCES): Likewise.
16596 (kernel_img_HEADERS): Add `parser.h'.
16598 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16599 (grub_emu_SOURCES): Add `kern/parser.c'.
16600 (grubof_SOURCES): Likewise.
16602 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16603 (grubof_SOURCES): Add `kern/parser.c'.
16605 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16607 * kern/misc.c (grub_split_cmdline): Removed function.
16609 * kern/rescue.c: Include <grub/parser.h>.
16610 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16611 of `grub_split_cmdline'.
16613 * normal/command.c: Include <grub/parser.h>.
16614 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16615 of `grub_split_cmdline'.
16617 * normal/completion.c: Include <grub/parser.h>.
16618 (cmdline_state): New variable.
16619 (iterate_dir): End the filename with a quote depending on the
16620 command line state.
16621 (get_state): new function.
16622 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16623 split the arguments and determine the current argument. When the
16624 argument string is not quoted, escape all spaces.
16626 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16628 * normal/sparc64/setjmp.S: New file.
16630 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16632 * include/grub/sparc64/libgcc.h: New file.
16633 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16634 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16635 normal/sparc64/setjmp.c.
16637 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16639 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16640 * kern/sparc64/cache.S: New file.
16641 * kern/sparc64/cache.c: Removed.
16642 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16643 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16645 (COMMON_LDFLAGS): Add -melf64_sparc.
16646 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16647 (grubof_SOURCES): Use cache.S instead of cache.c.
16648 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16649 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16650 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16652 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16653 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16654 (linux_mod_CFLAGS): Commented out.
16655 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16656 out because module isn't built.
16657 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16658 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16659 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16660 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16661 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16662 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16663 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16664 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16665 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16666 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16667 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16668 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16669 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16670 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16672 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16674 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16675 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16676 longer, because HFS should not be used on PC.
16678 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16680 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16681 consistently within the loop.
16683 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16685 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16686 directory can not be read.
16688 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16690 * configure.ac (AC_INIT): Increase the version number to 1.91.
16692 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16693 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16694 term/i386/pc/serial.c.
16696 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16698 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16699 file size must be permitted.
16701 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16702 between %ah and %al.
16704 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16706 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16708 Call the hook with a NUL-terminated filename.
16709 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16712 * kern/term.c (cursor_state): New variable.
16713 (grub_term_set_current): Reset the cursor state on a new
16715 (grub_setcursor): Rewritten to use CURSOR_STATE.
16716 (grub_getcursor): New function.
16718 * include/grub/term.h (grub_getcursor): New prototype.
16720 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16721 integers on ARM. Reported by Timothy Baldwin
16722 <T.E.Baldwin99@members.leeds.ac.uk>.
16724 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16726 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16728 (grub_sfs_dir): Likewise.
16730 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16732 Add support for the SFS filesystem.
16734 * fs/sfs.c: New file.
16736 * DISTLIST: Added `fs/sfs.c'.
16738 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16739 (grub_probefs_SOURCES): Likewise.
16740 (grub_emu_SOURCES): Likewise.
16741 (pkgdata_MODULES): Add `sfs.mod'.
16742 (sfs_mod_SOURCES): New variable.
16743 (sfs_mod_CFLAGS): Likewise.
16744 (sfs_mod_LDFLAGS): Likewise.
16746 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16747 (pkgdata_MODULES): Add `sfs.mod'.
16748 (sfs_mod_SOURCES): New variable.
16749 (sfs_mod_CFLAGS): Likewise.
16751 * util/grub-emu.c (main): Call `grub_sfs_init' and
16754 * include/grub/fs.h (grub_sfs_init): New prototype.
16755 (grub_sfs_fini): Likewise.
16757 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16759 Add support for the AFFS filesystem.
16761 * fs/affs.c: New file.
16763 * DISTLIST: Added `fs/affs.c'.
16765 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16766 (grub_probefs_SOURCES): Likewise.
16767 (grub_emu_SOURCES): Likewise.
16768 (pkgdata_MODULES): Add `affs.mod'.
16769 (affs_mod_SOURCES): New variable.
16770 (affs_mod_CFLAGS): Likewise.
16771 (affs_mod_LDFLAGS): Likewise.
16773 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16774 (pkgdata_MODULES): Add `affs.mod'.
16775 (affs_mod_SOURCES): New variable.
16776 (affs_mod_CFLAGS): Likewise.
16778 * util/grub-emu.c (main): Call `grub_affs_init' and
16781 * include/grub/fs.h (grub_affs_init): New prototype.
16782 (grub_affs_fini): Likewise.
16784 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16786 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16788 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16790 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16793 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16796 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16797 (COMMON_LDFLAGS): New variable.
16798 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16799 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16800 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16801 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16802 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16803 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16804 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16805 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16806 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16807 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16808 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16809 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16810 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16811 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16812 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16814 (normal_mod_ASFLAGS): Add `-m32'.
16816 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16817 (grub_host_size_t, grub_host_ssize_t): New types.
16818 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16819 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16820 `GRUB_HOST_SIZEOF_VOID_P'.
16822 * include/grub/kernel.h (struct grub_module_header): Type of
16823 member offset changed to `grub_host_off_t'. Type of member size
16824 changed to `grub_host_size_t'.
16825 (struct grub_module_info): Type of member offset changed to
16826 `grub_host_off_t'. Type of member size changed to
16827 `grub_host_size_t'.
16829 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16831 Make GRUB's kernel compliant to Multiboot Specification.
16833 * kern/i386/pc/startup.S (multiboot_header): New label.
16834 (multiboot_entry): Likewise.
16835 (multiboot_trampoline): Likewise.
16837 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16838 Increased to 0x4A0.
16840 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16841 put parentheses after a question mark.
16842 [!GRUB_UTIL] (my_mod): New variable.
16844 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16846 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16848 Adds support for the XFS filesystem. Btrees are not supported
16851 * fs/xfs.c: New file.
16853 * DISTLIST: Added `fs/xfs.c'.
16855 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16856 (grub_probefs_SOURCES): Likewise.
16857 (grub_emu_SOURCES): Likewise.
16858 (pkgdata_MODULES): Add `xfs.mod'.
16859 (xfs_mod_SOURCES): New variable.
16860 (xfs_mod_CFLAGS): Likewise.
16862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16863 (pkgdata_MODULES): Add `xfs.mod'.
16864 (xfs_mod_SOURCES): New variable.
16865 (xfs_mod_CFLAGS): Likewise.
16867 * util/grub-emu.c (main): Call `grub_xfs_init' and
16870 * include/grub/fs.h (grub_xfs_init): New prototype.
16871 (grub_xfs_fini): Likewise.
16874 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16876 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16877 color modes, allow greater than 16 colors to be configured as
16880 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16882 * normal/completion.c (complete_arguments): Add the qualifier
16883 const into OPTIONS.
16885 From Omniflux <omniflux+lists@omniflux.com>:
16886 * include/grub/terminfo.h: New file.
16887 * include/grub/tparm.h: Likewise.
16888 * include/grub/i386/pc/serial.h: Likewise.
16889 * term/terminfo.c: Likewise.
16890 * term/tparm.c: Likewise.
16891 * term/i386/pc/serial.c: Likewise.
16892 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16894 (terminfo_mod_SOURCES): New variable.
16895 (terminfo_mod_CFLAGS): Likewise.
16896 (serial_mod_SOURCES): Likewise.
16897 (serial_mod_CFLAGS): Likewise.
16899 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16901 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16902 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16903 and kern/powerpc/ieee1275/cmain.c, respectively.
16905 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16906 * kern/powerpc/ieee1275/crt0.S: ... here.
16908 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16909 * kern/powerpc/ieee1275/cmain.c: ... here.
16911 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16912 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16913 instead of boot/powerpc/ieee1275/crt0.S and
16914 boot/powerpc/ieee1275/cmain.c, respectively.
16916 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16917 sectors. It was not used anyway.
16919 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16921 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16922 `unused parameter' warning.
16924 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16926 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16928 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16931 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16933 * include/grub/normal.h (enum grub_completion_type): Added
16934 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16936 * normal/cmdline.c (print_completion): Handle
16937 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16938 * normal/menu_entry.c (store_completion): Likewise.
16940 * normal/completion.c (complete_arguments): New function.
16941 (grub_normal_do_completion): Call `complete_arguments' when the
16942 current words start with a dash.
16944 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16946 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16947 `gzio.mod' instead of `io.mod').
16949 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16951 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16952 (DISTDIRS): Added io and video.
16953 Rewrite the search routine to make an output consistently.
16955 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16956 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16957 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16958 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16959 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16960 util/powerpc/ieee1275/misc.c.
16962 * include/grub/gzio.h: New file.
16963 * io/gzio.c: Likewise.
16965 * kern/file.c (grub_file_close): Call grub_device_close only if
16966 FILE->DEVICE is not NULL.
16968 * include/grub/mm.h [!NULL] (NULL): New macro.
16970 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16973 (pkgdata_MODULES): Added gzio.mod.
16974 (gzio_mod_SOURCES): New variable.
16975 (gzio_mod_CFLAGS): Likewise.
16977 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16978 (pkgdata_MODULES): Added gzio.mod.
16979 (gzio_mod_SOURCES): New variable.
16980 (gzio_mod_CFLAGS): Likewise.
16982 * commands/cat.c: Include grub/gzio.h.
16983 (grub_cmd_cat): Use grub_gzfile_open instead of
16986 * commands/cmp.c: Include grub/gzio.h.
16987 (grub_cmd_cmp): Use grub_gzfile_open instead of
16990 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
16991 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
16993 (grub_rescue_cmd_module): Likewise.
16995 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16997 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
16998 kern/sparc64/ieee1275/init.c because it contains _start.
16999 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
17001 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17003 * configure.ac: Add support for sparc64 host with ieee1275
17005 * configure: Generated from configure.ac.
17006 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
17008 (grub_ofdisk_read): Likewise.
17009 (grub_ofdisk_open): Use %p to print pointer values, and cast the
17010 pointers as (void *) to remove a warning.
17011 (grub_ofdisk_close): Likewise.
17012 (grub_ofdisk_read): Likewise.
17013 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
17014 returns, so make it return void to remove a warning.
17015 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
17016 Corresponding prototype change.
17017 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
17018 values, and cast the pointers as (void *) to remove a warning.
17019 (grub_mm_dump): Likewise.
17020 * conf/sparc64-ieee1275.mk: New file.
17021 * conf/sparc64-ieee1275.rmk: Likewise.
17022 * include/grub/sparc64/setjmp.h: Likewise.
17023 * include/grub/sparc64/types.h: Likewise.
17024 * include/grub/sparc64/ieee1275/console.h: Likewise.
17025 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17026 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17027 * include/grub/sparc64/ieee1275/time.h: Likewise.
17028 * kern/sparc64/cache.c: Likewise.
17029 * kern/sparc64/dl.c: Likewise.
17030 * kern/sparc64/ieee1275/init.c: Likewise.
17031 * kern/sparc64/ieee1275/openfw.c: Likewise.
17033 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17035 * util/console.c (grub_ncurses_putchar): If C is greater than
17036 0x7f, set C to a question mark.
17037 (grub_ncurses_getcharwidth): New function.
17038 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17041 * normal/menu.c (print_entry): Made aware of Unicode. First,
17042 convert TITLE to UCS-4, and predict the cursor position by
17045 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17047 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17049 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17051 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17052 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17055 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17056 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17057 grub_strcpy and grub_strlen. Take it into account that a space
17058 character is inserted as a delimiter.
17060 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17062 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17063 invalid magic in the error.
17065 * commands/search.c: New file.
17067 * util/grub-emu.c (main): Call grub_search_init and
17070 * kern/rescue.c (grub_rescue_print_disks): Removed.
17071 (grub_rescue_print_devices): New function.
17072 (grub_rescue_cmd_ls): Use grub_device_iterate with
17073 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17074 grub_rescue_print_disks.
17076 * kern/partition.c (grub_partition_iterate): Return the result of
17077 PARTMAP->ITERATE instead of GRUB_ERRNO.
17079 * kern/device.c: Include grub/partition.h.
17080 (grub_device_iterate): New function.
17082 * include/grub/partition.h (grub_partition_iterate): Return int
17083 instead of grub_err_t.
17085 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17087 [GRUB_UTIL] (grub_search_fini): Likewise.
17089 * include/grub/device.h (grub_device_iterate): New prototype.
17091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17093 (pkgdata_MODULES): Added search.mod.
17094 (search_mod_SOURCES): New variable.
17095 (search_mod_CFLAGS): Likewise.
17097 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17098 (pkgdata_MODULES): Added search.mod.
17099 (search_mod_SOURCES): New variable.
17100 (search_mod_CFLAGS): Likewise.
17102 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17103 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17104 All callers changed.
17106 * DISTLIST: Added commands/search.c.
17108 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17110 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17112 (grub_getcharwidth): New function.
17114 * kern/misc.c (grub_utf8_to_ucs4): New function.
17116 * include/grub/term.h (struct grub_term): Added a new member
17118 (grub_getcharwidth): New prototype.
17120 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17122 * term/i386/pc/console.c (map_char): New function. Segregated from
17123 grub_console_putchar.
17124 (grub_console_putchar): Use map_char.
17125 (grub_console_getcharwidth): New function.
17126 (grub_console_term): Specified grub_console_getcharwidth as
17129 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17130 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17132 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17134 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17135 on grub_strtoul completely.
17136 (write_char): Declare local variables in the beginning of the
17138 (grub_vesafb_getcharwidth): New function.
17139 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17142 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17144 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17145 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17146 commands/i386/pc/vbetest.c.
17148 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17149 call grub_vbe_get_controller_info again, because the returned
17150 information is volatile.
17151 (grub_vbe_set_video_mode): Mostly rewritten.
17152 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17153 grub_vbe_status_t correctly.
17154 (grub_vbe_get_video_mode_info): Likewise.
17155 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17156 several if statements.
17158 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17159 * commands/i386/pc/vbeinfo.c: ... this.
17161 * commands/i386/pc/vbe_test.c: Renamed to ...
17162 * commands/i386/pc/vbetest.c: ... this.
17164 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17166 (grub_cmd_vbeinfo): ... this. Save video modes before
17167 iterating. Skip a video mode, if it is not available, not enough
17168 information is given or it is monochrome. Show the memory
17169 model. Leave the interpretation of MODEVAR to grub_strtoul
17171 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17172 (GRUB_MOD_FINI): Likewise.
17174 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17175 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17176 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17177 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17178 grub_strtoul completely.
17179 (real2pm): Removed.
17180 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17181 (GRUB_MOD_FINI): Likewise.
17183 * normal/misc.c: Include grub/mm.h.
17185 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17186 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17187 (vbe_list_modes_mod_SOURCES): Removed.
17188 (vbe_list_modes_mod_CFLAGS): Likewise.
17189 (vbe_test_mod_SOURCES): Likewise.
17190 (vbe_test_mod_CFLAGS): Likewise.
17191 (vbeinfo_mod_SOURCES): New variable.
17192 (vbeinfo_mod_CFLAGS): Likewise.
17193 (vbetest_mod_SOURCES): Likewise.
17194 (vbetest_mod_CFLAGS): Likewise.
17196 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17198 * normal/misc.c: New file.
17200 * DISTLIST: Added normal/misc.c.
17202 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17203 DISK to HOOK. Call HOOK with DISK.
17204 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17205 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17206 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17208 * normal/menu_entry.c (struct screen): Added a new member
17209 "completion_shown".
17210 (completion_buffer): New global variable.
17211 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17212 (store_completion): New function.
17213 (complete): Likewise.
17214 (clear_completions): Likewise.
17215 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17216 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17217 a tab, call complete.
17219 * normal/completion.c (disk_dev): Removed.
17220 (print_simple_completion): Likewise.
17221 (print_partition_completion): Likewise.
17222 (print_func): New global variable.
17223 (add_completion): Do not take the arguments WHAT or PRINT any
17224 longer. Added a new argument TYPE. Instead of printing directly,
17225 call PRINT_FUNC if not NULL.
17226 All callers changed.
17227 (complete_device): Use a local variable DEV instead of
17228 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17229 (grub_normal_do_completion): Take a new argument HOOK. Do not
17230 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17231 empty string, return NULL instead.
17232 All callers changed.
17234 * normal/cmdline.c (print_completion): New function.
17236 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17238 All callers changed.
17240 * kern/disk.c (grub_print_partinfo): Removed.
17242 * include/grub/partition.h (struct grub_partition_map): Add a new
17243 argument DISK into HOOK of ITERATE.
17244 (grub_partition_iterate): Add a new argument DISK to HOOK.
17246 * include/grub/normal.h (enum grub_completion_type): New enum.
17247 (grub_completion_type_t): New type.
17248 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17249 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17250 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17251 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17252 (grub_normal_do_completion): Added a new argument HOOK.
17253 (grub_normal_print_device_info): New prototype.
17255 * include/grub/disk.h (grub_print_partinfo): Removed.
17257 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17258 (normal_mod_SOURCES): Likewise.
17259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17260 (normal_mod_SOURCES): Likewise.
17262 * commands/ls.c (grub_ls_list_disks): Use
17263 grub_normal_print_device_info instead of grub_print_partinfo. Free
17265 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17266 duplicating the code.
17268 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17270 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17271 follow GCS more precisely.
17272 * commands/i386/pc/vbe_test.c: Likewise.
17273 * include/grub/i386/pc/vbe.h: Likewise.
17274 * term/i386/pc/vesafb.c: Likewise.
17275 * video/i386/pc/vbe.c: Likewise.
17277 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17279 * DISTLIST: Added term/i386/pc/vesafb.c
17280 DISTLIST: Added video/i386/pc/vbe.c
17281 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17282 DISTLIST: Added commands/i386/pc/vbe_test.c.
17283 * commands/i386/pc/vbe_list_modes.c: New file.
17284 * commands/i386/pc/vbe_test.c: Likewise.
17285 * term/i386/pc/vesafb.c: Likewise.
17286 * video/i386/pc/vbe.c: Likewise.
17287 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17288 (grub_vbe_probe) Added prototype.
17289 (grub_vbe_set_video_mode) Likewise.
17290 (grub_vbe_get_video_mode) Likewise.
17291 (grub_vbe_get_video_mode_info) Likewise.
17292 (grub_vbe_set_pixel_rgb) Likewise.
17293 (grub_vbe_set_pixel_index) Likewise.
17294 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17295 (pkgdata_MODULES): Added vesafb.mod.
17296 (pkgdata_MODULES): Added vbe_list_modes.mod.
17297 (pkgdata_MODULES): Added vbe_test.mod.
17298 (vbe_mod_SOURCES): Added.
17299 (vbe_mod_CFLAGS): Likewise.
17300 (vesafb_mod_SOURCES): Likewise.
17301 (vesafb_mod_CFLAGS): Likewise.
17302 (vbe_list_modes_mod_SOURCES): Likewise.
17303 (vbe_list_modes_mod_CFLAGS): Likewise.
17304 (vbe_test_mod_SOURCES): Likewise.
17305 (vbe_test_mod_CFLAGS): Likewise.
17307 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17309 * normal/command.c (grub_command_execute): If INTERACTIVE is
17310 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17311 CMDLINE. Disable the pager if INTERACTIVE is true.
17312 All callers are changed.
17314 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17315 before reading a config file.
17316 * normal/main.c (read_config_file): Even if a command is not
17317 found, register it if it is within an entry.
17319 * util/grub-emu.c: Include sys/types.h and unistd.h.
17320 (options): Added --hold.
17321 (struct arguments): Added a new member "hold".
17322 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17324 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17325 cleared by a debugger, if it is not zero.
17327 * include/grub/normal.h (grub_command_execute): Add an argument
17330 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17332 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17334 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17336 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17337 program with another one, because the old one didn't detect a bug
17338 in gcc-3.4. Always use regparm 2, because the new test is still
17339 not enough for gcc-4.0. Someone must investigate a simple test
17340 case which detects a bug in gcc-4.0.
17342 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17344 * DISTLIST: Added normal/completion.c.
17346 * normal/completion.c: New file.
17348 * term/i386/pc/console.c (grub_console_getwh): New function.
17349 (grub_console_term): Assign grub_console_getwh to getwh.
17351 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17352 function is defined in normal/completion.c as
17353 grub_normal_do_completion.
17354 (grub_cmdline_get): Use grub_normal_do_completion instead of
17357 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17358 returns non-zero, otherwise return 0.
17359 (grub_partition_iterate): First, probe the partition map. Then,
17360 call ITERATE only for this partition map.
17362 * kern/misc.c (grub_strncmp): Rewritten.
17364 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17365 returns non-zero. Otherwise return 0.
17367 * include/grub/partition.h (grub_partition_map_iterate): Return
17368 int instead of void.
17370 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17372 * include/grub/misc.h (grub_strncmp): Change the type of N to
17375 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17378 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17379 unsigned explicitly before comparing it with I.
17381 * kern/main.c (grub_env_write_root): Add the attribute unused into
17384 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17385 normal/completion.c.
17386 (normal_mod_SOURCES): Likewise.
17387 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17388 (normal_mod_SOURCES): Likewise.
17390 * normal/command.c (grub_iterate_commands): If ITERATE returns
17391 non-zero, return one immediately.
17393 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17395 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17396 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17398 (grub_vbe_get_controller_info): New function.
17399 (grub_vbe_get_mode_info): Likewise.
17400 (grub_vbe_set_mode): Likewise.
17401 (grub_vbe_get_mode): Likewise.
17402 (grub_vbe_set_memory_window): Likewise.
17403 (grub_vbe_get_memory_window): Likewise.
17404 (grub_vbe_set_scanline_length): Likewise.
17405 (grub_vbe_get_scanline_length): Likewise.
17406 (grub_vbe_set_display_start): Likewise.
17407 (grub_vbe_get_display_start): Likewise.
17408 (grub_vbe_set_palette_data): Likewise.
17409 * include/grub/i386/pc/vbe.h: New file.
17411 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17413 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17414 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17415 * DISTLIST: Likewise.
17416 * kern/ieee1275/of.c: Moved to ...
17417 * kern/ieee1275/ieee1275.c: ... here.
17419 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17421 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17422 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17423 Pass 0 as `end' parameter to grub_strtoul().
17425 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17427 * include/grub/powerpc/ieee1275/console.h: Do not include
17428 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17430 (grub_console_cur_color): Remove i386-specific prototype.
17431 (grub_console_real_putchar): Likewise.
17432 (grub_console_checkkey): Likewise.
17433 (grub_console_getkey): Likewise.
17434 (grub_console_getxy): Likewise.
17435 (grub_console_gotoxy): Likewise.
17436 (grub_console_cls): Likewise.
17437 (grub_console_setcursor): Likewise.
17438 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17439 Include <grub/machine/console.h>.
17440 * term/ieee1275/ofconsole.c: Likewise.
17442 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17444 * Makefile.in (LIBLZO): New variable.
17446 * configure.ac: Check for LZO version 2.
17448 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17449 lzo/lzo1x.h instead of lzo1x.h.
17451 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17454 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17455 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17457 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17458 copying the data from PARTITION to P.
17460 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17462 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17463 negative, unload the module.
17465 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17466 map is "pc_partition_map" but not "pc".
17467 (usage): Fix the description. The options are --boot-image and
17468 --core-image but not --boot-file or --core-file.
17469 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17470 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17473 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17474 --core-file. Specify INSTALL_DEVICE as an argument.
17476 * util/console.c: Include config.h.
17477 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17478 [HAVE_NCURSES_H]: Include ncurses.h.
17479 [HAVE_CURSES_H]: Include curses.h.
17480 [!A_NORMAL] (A_NORMAL): Defined as zero.
17481 [!A_STANDOUT] (A_STANDOUT): Likewise.
17483 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17485 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17487 * configure.ac: Check for curses libraries and headers.
17489 * Makefile.in (LIBCURSES): New variable.
17491 * genmk.rb (Script::rule): Set the executable bits.
17493 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17494 name of the PC partition map is "pc_partition_map" but not "pc".
17496 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17498 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17499 (modules): Likewise.
17500 (usage): Added descriptions for --modules and --grub-probefs.
17501 Handle --modules and --grub-probefs. Save the arguments in MODULES
17502 and GRUB_PROBEFS, respectively.
17503 Auto-detect a filesystem module against GRUBDIR. If the result is
17504 empty and modules are not specified explicitly, abort the
17505 installation. Add the result to MODULES.
17507 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17508 disk/powerpc/ieee1275/ofdisk.c,
17509 include/grub/powerpc/ieee1275/init.h and
17510 term/powerpc/ieee1275/ofconsole.c.
17511 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17512 term/ieee1275/ofconsole.c.
17514 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17516 * COPYING: Upgraded to the latest version. Only the address of the
17517 FSF office has changed.
17519 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17521 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17522 kern/ieee1275.c with kern/ieee1275/of.c.
17524 * kern/ieee1275.c: Moved to ...
17525 * kern/ieee1275/of.c: ... here.
17527 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17529 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17532 * config.guess: Updated to the latest version from gnulib.
17533 * config.sub: Likewise.
17534 * install.sh: Likewise.
17535 * mkinstalldirs: Likewise.
17537 * include/grub/console.h: Removed. This file is arch-specific. Do
17538 not put this in include/grub.
17540 * include/grub/i386/pc/console.h: Resurrected.
17542 * util/console.c: Include grub/machine/console.h instead of
17544 * util/grub-emu.c: Likewise.
17546 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17548 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17551 From Vincent Pelletier <subdino2004@yahoo.fr>
17552 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17553 Redefined to use grub_getwh.
17554 (grub_term): New member named getwh.
17555 (grub_getwh): New prototype.
17556 * kern/term.c (grub_getwh): New function.
17557 * term/i386/pc/console.c (grub_console_getwh): New function.
17558 (grub_console_term): New member `getwh'.
17559 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17560 (grub_vga_term): New member `getwh'.
17561 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17563 (grub_ofconsole_getw): New function.
17564 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17565 (grub_ofconsole_term): New field named getwh and new initial
17568 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17570 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17571 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17572 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17573 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17574 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17575 of <grub/machine/ieee1275.h>.
17576 * commands/ieee1275/reboot.c: Likewise.
17577 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17578 * kern/ieee1275.c: ... to here. All users updated. Change all
17579 parameter structs to use new type `grub_ieee1275_cell_t'.
17580 * term/powerpc/ieee1275/ofconsole.c: Move ...
17581 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17582 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17583 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17584 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17586 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17587 Remove unused prototypes. All users updated.
17588 * include/grub/powerpc/ieee1275/console.h: Removed.
17589 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17590 `grub_ieee1275_cell_t'.
17591 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17592 Cast comparisons with -1 to the correct type.
17593 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17594 type to match `grub_ieee1275_entry_fn'.
17596 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17598 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17600 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17601 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17603 (grub_probefs_SOURCES): New variable.
17605 * util/i386/pc/grub-probefs.c: New file.
17607 * util/i386/pc/grub-setup.c (main): Call
17608 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17609 grub_hfs_init and grub_jfs_init to initialize the system. Call
17610 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17611 grub_pc_partition_map_fini to finish the system.
17613 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17615 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17617 (grub_multiboot_load_elf32): Likewise.
17618 (grub_multiboot_is_elf64): Likewise.
17619 (grub_multiboot_load_elf64): Likewise.
17620 (grub_multiboot_load_elf): Likewise.
17621 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17622 an ELF32 or ELF64 file.
17623 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17625 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17626 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17627 NULL before calling FS->LABEL.
17628 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17629 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17630 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17631 before calling FS->LABEL.
17633 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17635 * util/i386/pc/grub-install.in (datadir): New variable.
17637 (pkgdatadir): New variable.
17638 (pkglibdir): Removed.
17640 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17642 * DISTLIST: Added util/i386/pc/grub-install.in.
17644 * util/i386/pc/grub-install.in: New file.
17646 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17647 (grub_install_SOURCES): Likewise.
17649 * genmk.rb: Added support for scripts.
17650 (Script): New class.
17651 (scripts): New variable.
17653 * Makefile.in (install-local): Install sbin_SCRIPTS by
17655 (uninstall): Remove sbin_SCRIPTS.
17657 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17658 device, try to get a GRUB device by
17659 grub_util_biosdisk_get_grub_dev.
17662 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17663 description for --device-map.
17665 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17667 Change the semantics of variable hooks. They now return strings
17668 instead of error values.
17670 * util/i386/pc/grub-setup.c: Include grub/env.h.
17671 (setup): Use grub_device_set_root instead of grub_env_set.
17673 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17674 grub_env_get instead of grub_device_set_root and
17675 grub_device_get_root, respectively.
17677 * kern/main.c (grub_env_write_root): New function.
17678 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17679 grub_env_set instead of grub_device_set_root.
17681 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17683 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17684 rather than calling ENV->WRITE_HOOK afterwards.
17685 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17686 passing a pointer of a pointer.
17687 (grub_register_variable_hook): Change the types of "read_hook" and
17688 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17690 Allocate the default empty string on the heap, because this string
17691 may be freed later.
17693 * kern/device.c: Include grub/env.h.
17694 (grub_device_set_root): Removed.
17695 (grub_device_get_root): Likewise.
17696 (grub_device_open): Use grub_env_get instead of
17697 grub_device_get_root.
17699 * include/grub/env.h (grub_env_read_hook_t): New type.
17700 (grub_env_write_hook_t): Likewise.
17701 (grub_env_var): Change the types of "read_hook" and "write_hook"
17702 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17703 (grub_register_variable_hook): Likewise.
17705 * include/grub/device.h (grub_device_set_root): Removed.
17706 (grub_device_set_root): Likewise.
17708 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17709 make sure that DIRNAME terminates with '/', so that
17710 grub_fat_find_dir will fail if PATH is not a directory.
17712 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17714 Use the qualifier auto for print_files and print_files_long.
17715 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17717 Put a newline only if there is no error.
17718 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17721 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17723 * kern/partition.c (grub_partition_probe): Initialize PART to
17724 NULL. Otherwise, when no partition map is registered, this returns
17727 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17729 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17730 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17733 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17735 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17736 information on each device, if it does not have partitions. Print
17737 "Device" instead of "Disk", because this function is not specific
17740 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17741 static to ensure that it is put on the memory rather than a
17744 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17746 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17747 (grub_cat_init): Likewise.
17748 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17749 (options): Likewise.
17750 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17751 (grub_configfile_init): Likewise.
17752 * font/manager.c (GRUB_MOD_INIT): Likewise.
17753 * commands/help.c (GRUB_MOD_INIT): Likewise.
17754 (grub_help_init): Likewise.
17755 * normal/command.c (grub_command_init): Likewise.
17756 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17757 * disk/loopback.c (grub_loop_init): Likewise.
17758 (GRUB_MOD_INIT): Likewise.
17759 * commands/ls.c (grub_ls_init): Likewise.
17760 (GRUB_MOD_INIT): Likewise.
17761 (options): Likewise.
17762 * commands/boot.c (grub_boot_init): Likewise.
17763 (GRUB_MOD_INIT): Likewise.
17764 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17765 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17766 (GRUB_MOD_INIT): Likewise.
17767 * commands/cmp.c (grub_cmp_init): Likewise.
17768 (GRUB_MOD_INIT): Likewise.
17770 * normal/arg.c: Use <> instead of "" to include header files.
17771 (SHORT_ARG_HELP): New macro.
17772 (SHORT_ARG_USAGE): Likewise.
17773 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17774 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17776 (find_short): Check if C is 'h' or 'u' explicitly.
17777 (grub_arg_show_help): Use space characters instead of tabs. Treat
17778 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17779 are shown with --help and --usage only if they are not used for
17780 the command itself.
17781 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17784 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17785 const into "longarg". Change the type of "shortarg" to int.
17787 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17789 * boot/i386/pc/boot.S (boot_drive_check): New label.
17791 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17794 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17795 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17797 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17799 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17800 When turning off Gate A20, skip the check and return immediately,
17801 because this is not fatal usually.
17803 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17805 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17806 be 0x7C00 instead of 0x8000.
17808 * boot/i386/pc/pxeboot.S: Rewritten.
17810 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17812 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17815 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17817 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17818 robustness. This routine now supports a BIOS call and System
17819 Control Port A to modify the gate A20.
17821 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17822 Increased to 0x440.
17824 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17826 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17827 device path and resulting ihandle.
17828 (grub_ofdisk_close): dprintf the ihandle being closed.
17829 (grub_ofdisk_read): dprintf function parameters.
17830 * kern/mm.c (grub_mm_init_region): Likewise.
17831 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17832 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17833 size, and boot arguments.
17834 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17835 before loading into memory.
17836 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17837 before loading into memory.
17839 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17841 * kern/mm.c: Added much documentation.
17842 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17843 8, set to 5 instead of 8.
17845 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17847 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17849 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17850 (grub_mkdevicemap_SOURCES): New variable.
17852 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17853 lib/device.c of GRUB Legacy.
17855 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17857 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17858 instead of PATH is NULL.
17860 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17862 * commands/cmp.c (BUFFER_SIZE): New macro.
17863 (grub_cmd_cmp): Close the right file at the right time. Compare
17864 only data just read. Don't report files of different size as
17865 identical. Dynamically allocate buffers. Move variable
17866 declarations at the beginning of function.
17868 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17870 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17873 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17875 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17876 when backspace is pressed at beginning of line.
17878 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17880 * DISTLIST: Added genfslist.sh.
17882 * normal/main.c (fs_module_list): New variable.
17883 (autoload_fs_module): New function.
17884 (read_fs_list): Likewise.
17885 (grub_normal_execute): Call read_fs_list.
17887 * kern/fs.c (grub_fs_autoload_hook): New variable.
17888 (grub_fs_probe): Added support for auto-loading.
17890 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17891 (grub_fs_module_list_t): New type.
17893 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17894 (grub_fs_autoload_hook): New prototype.
17896 * genfslist.sh: New file.
17898 * genmk.rb: Added a rule to generate a filesystem list.
17900 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17902 * configure.ac: Fix the test for cross-compiling.
17904 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17905 define GRUB_UTIL anymore.
17907 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17908 so this function works on other systems than just big endian.
17909 (load_modules): Likewise.
17910 (add_segments): Likewise.
17912 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17914 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17915 contains `l' modifier, get a long from va_arg().
17917 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17919 * kern/mm.c (grub_free): If the next free block which is being
17920 merged is the first free block, set the first block to the block
17922 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17924 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17926 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17927 `grub_ieee1275_chosen'.
17929 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17931 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17932 (grub_ieee1275_chosen): New variable.
17933 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17935 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17936 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17937 Rename first argument to `phandle' for consistency.
17938 (grub_ieee1275_get_property_length): Likewise.
17939 (grub_ieee1275_next_property): Likewise. Change type of first argument
17940 to grub_ieee1275_phandle_t.
17941 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17942 Move export next to declaration.
17943 (grub_ieee1275_chosen): New variable.
17944 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17945 Correct cosmetic typo.
17946 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17947 `grub_ieee1275_chosen'.
17948 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17949 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17950 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17951 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17952 `grub_ieee1275_chosen'.
17954 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17956 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17958 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17959 /chosen/bootargs as "variable=value" pairs.
17961 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17963 * include/grub/misc.h (grub_dprintf): New macro.
17964 (grub_real_dprintf): New prototype.
17965 (grub_strword): Likewise.
17966 (grub_iswordseparator): Likewise.
17967 * kern/misc.c (grub_real_dprintf): New function.
17968 (grub_strword): Likewise.
17969 (grub_iswordseparator): Likewise.
17971 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17973 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17974 (roundup): Remove macro.
17975 (grub_ieee1275_flags): Make static.
17976 (grub_ieee1275_realmode): Remove.
17977 (grub_ieee1275_test_flag): New function.
17978 (grub_ieee1275_set_flag): Likewise.
17979 (find_options): Rename to `grub_ieee1275_find_options'; update
17980 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17981 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17982 (cmain): New prototype.
17983 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17984 `grub_ieee1275_flags' directly.
17985 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17986 machine/biosdisk.h.
17987 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17988 Don't include grub/machine/init.h.
17989 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
17990 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17992 (grub_ieee1275_realmode): Likewise.
17993 (grub_ieee1275_flag): New enum.
17994 (grub_ieee1275_test_flag): New prototype.
17995 (grub_ieee1275_set_flag): New prototype.
17996 * include/grub/powerpc/ieee1275/init.h: Remove file.
17997 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
17998 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
17999 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
18000 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
18002 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
18003 `grub_ieee1275_test_flag'.
18004 (grub_ieee1275_encode_devname): Likewise.
18006 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
18008 * include/grub/powerpc/ieee1275/ieee1275.h
18009 (grub_ieee1275_encode_devname): New prototype.
18010 (grub_ieee1275_get_filename): Likewise.
18011 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
18013 (grub_set_prefix): Likewise.
18014 (grub_machine_init): Call grub_set_prefix.
18015 * kern/powerpc/ieee1275/openfw.c: Fix typos.
18016 (grub_parse_type): New enum.
18017 (grub_ieee1275_get_devargs): New function.
18018 (grub_ieee1275_get_devname): Likewise.
18019 (grub_ieee1275_parse_args): Likewise.
18020 (grub_ieee1275_get_filename): Likewise.
18021 (grub_ieee1275_encode_devname): Likewise.
18023 2005-03-30 Marco Gerards <metgerards@student.han.nl>
18025 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
18026 `grub_loader_unset'.
18028 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
18030 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
18031 instead of grub_ieee1275_interpret.
18032 (grub_halt_init): New function.
18033 (grub_halt_fini): Likewise.
18034 (GRUB_MOD_INIT): Correct message grammar.
18035 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
18036 instead of grub_ieee1275_interpret.
18037 (grub_reboot_init): New function.
18038 (grub_reboot_fini): Likewise.
18039 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18040 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18041 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18042 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18043 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18045 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18047 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18049 (grub_halt): Likewise.
18050 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18051 (cmain): Remove __attribute__((unused)).
18052 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18053 (grub_heap_len): Likewise.
18054 (grub_machine_fini): New function.
18055 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18056 (grub_halt): Likewise.
18057 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18059 * util/powerpc/ieee1275/misc.c: New file.
18061 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18063 * DISTLIST: New file.
18064 * gendistlist.sh: Likewise.
18066 * Makefile.in (COMMON_DISTFILES): Removed.
18067 (BOOT_DISTFILES): Likewise.
18068 (CONF_DISTFILES): Likewise.
18069 (DISK_DISTFILES): Likewise.
18070 (FS_DISTFILES): Likewise.
18071 (INCLUDE_DISTFILES): Likewise.
18072 (KERN_DISTFILES): Likewise.
18073 (LOADER_DISTFILES): Likewise.
18074 (TERM_DISTFILES): Likewise.
18075 (UTIL_DISTFILES): Likewise.
18076 (DISTFILES): Likewise.
18077 (uninstall): Uninstall files in $(pkgdata_DATA).
18078 (DISTLIST): New target.
18079 (distdir): Use the contents of the file DISTLIST to get a list of
18082 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18084 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18085 descriptor. This is ported from GRUB Legacy.
18087 * gencmdlist.sh: Added an extra semicolon to make it work with
18088 old sed versions. Reported by Robert Bihlmeyer
18089 <robbe@orcus.priv.at>.
18091 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18093 Automatic loading of commands is supported.
18095 * normal/main.c (read_command_list): New function.
18096 (grub_normal_execute): Call read_command_list.
18098 * normal/command.c (grub_register_command): Return zero or CMD.
18099 Allocate CMD->NAME from the heap.
18100 Initialize CMD->MODULE_NAME to zero.
18101 Find the same name as well. If the same command is found and it is
18102 a dummy command, overwrite members. If it is not a dummy command,
18104 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18105 (grub_command_find): If a dummy command is found, load a module
18106 and retry to find a command only once.
18108 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18109 make sure that each command is loaded.
18111 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18113 (struct grub_command): Remove const from the member `name'.
18114 Add a new member `module_name'.
18115 (grub_register_command): Return grub_command_t.
18117 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18118 sure that each command is loaded.
18120 * genmk.rb (PModule::rule): Specify a module name without the
18121 suffix ".mod" to gencmdlist.sh.
18123 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18125 * gencmdlist.sh: New file.
18127 * genmk.rb (PModule::rule): Generate a rule for a command list.
18129 Generate command.lst from $(COMMANDFILES).
18131 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18132 (DATA): Added $(pkgdata_DATA).
18133 (install-local): Install files in $(pkgdata_DATA).
18135 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18137 * term/i386/pc/vga.c (debug_command): Removed.
18138 (GRUB_MOD_INIT): Do not register the command "debug".
18140 From Hollis Blanchard:
18141 * commands/configfile.c: New file.
18142 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18143 commands/configfile.c.
18144 (pkgdata_MODULES): Added configfile.mod.
18145 (configfile_mod_SOURCES): New variable.
18146 (configfile_mod_CFLAGS): Likewise.
18147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18148 commands/configfile.c.
18149 (pkgdata_MODULES): Added configfile.mod.
18150 (configfile_mod_SOURCES): New variable.
18151 (configfile_mod_CFLAGS): Likewise.
18152 * util/grub-emu.c (main): Call grub_configfile_init and
18153 grub_configfile_fini.
18154 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18156 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18158 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18160 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18163 * commands/help.c (grub_cmd_help): Do not print newlines after
18164 the last command in print_command_help.
18166 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18168 * commands/default.h: New file.
18169 * commands/timeout.h: Likewise.
18170 * normal/context.c: Likewise.
18172 * util/misc.c: Do not include sys/times.h.
18173 Include sys/time.h and grub/machine/time.h.
18174 (grub_get_rtc): Rewritten with gettimeofday.
18176 * util/grub-emu.c (main): Call grub_default_init and
18177 grub_timeout_init before grub_normal_init, and call
18178 grub_timeout_fini and grub_default_fini after grub_main.
18180 * util/console.c (grub_ncurses_checkkey): Return the read
18183 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18186 * normal/main.c (read_config_file): Push MENU. If this fails,
18187 print an error and wait for a user input.
18188 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18189 If a menu is empty or an error occurs, pop MENU.
18190 (grub_normal_execute): Pop and free MENU after grub_menu_run
18193 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18195 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18197 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18199 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18201 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18204 * include/grub/normal.h (struct grub_menu_list): New struct.
18205 (grub_menu_list_t): New type.
18206 (struct grub_context): New struct.
18207 (grub_context_t): New type.
18208 (grub_register_command): Got rid of EXPORT_FUNC.
18209 (grub_unregister_command): Likewise.
18210 (grub_context_get): New prototype.
18211 (grub_context_get_current_menu): Likewise.
18212 (grub_context_push_menu): Likewise.
18213 (grub_context_pop_menu): Likewise.
18214 [GRUB_UTIL] (grub_default_init): Likewise.
18215 [GRUB_UTIL] (grub_default_fini): Likewise.
18216 [GRUB_UTIL] (grub_timeout_init): Likewise.
18217 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18219 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18220 commands/timeout.c and normal/context.c.
18221 (pkgdata_MODULES): Added default.mod and timeout.mod.
18222 (normal_mod_SOURCES): Added normal/context.c.
18223 (default_mod_SOURCES): New variable.
18224 (default_mod_CFLAGS): Likewise.
18225 (timeout_mod_SOURCES): Likewise.
18226 (timeout_mod_CFLAGS): Likewise.
18227 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18229 (pkgdata_MODULES): Added default.mod and timeout.mod.
18230 (normal_mod_SOURCES): Added normal/context.c.
18231 (default_mod_SOURCES): New variable.
18232 (default_mod_CFLAGS): Likewise.
18233 (timeout_mod_SOURCES): Likewise.
18234 (timeout_mod_CFLAGS): Likewise.
18236 * Makefile.in (all-local): Added $(MKFILES).
18238 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18240 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18241 (grub_emu_SOURCES): Likewise.
18242 (pkgdata_MODULES): Add `sun.mod'.
18243 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18246 (pkgdata_MODULES): Add `sun.mod'.
18247 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18248 * include/grub/partition.h (grub_sun_partition_map_init): New
18250 (grub_sun_partition_map_fini): Likewise.
18251 * partmap/sun.c: New file.
18252 * util/grub-emu.c (main): Initialize and de-initialize the sun
18253 partitionmap support.
18255 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18257 This implements an Emacs-like menu entry editor.
18259 * normal/menu_entry.c: New file.
18261 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18262 characters to ASCII.
18263 (saved_char): New variable.
18264 (grub_ncurses_checkkey): Rewritten completely.
18265 (grub_ncurses_getkey): Likewise.
18266 (grub_ncurses_init): Call raw instead of cbreak.
18268 * normal/menu.c (print_entry): Do not put a space.
18269 (init_page): Renamed to ...
18270 (grub_menu_init_page): ... this. All callers changed.
18271 (edit_menu_entry): Removed.
18272 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18274 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18276 * kern/misc.c (grub_vprintf): Call grub_refresh.
18278 * normal/menu.c (DISP_LEFT): Renamed to ...
18279 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18280 * normal/menu.c (DISP_UP): Renamed to ...
18281 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18282 * normal/menu.c (DISP_RIGHT): Renamed to ...
18283 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18284 * normal/menu.c (DISP_DOWN): Renamed to ...
18285 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18286 * normal/menu.c (DISP_HLINE): Renamed to ...
18287 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18288 * normal/menu.c (DISP_VLINE): Renamed to ...
18289 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18290 * normal/menu.c (DISP_UL): Renamed to ...
18291 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18292 * normal/menu.c (DISP_UR): Renamed to ...
18293 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18294 * normal/menu.c (DISP_LL): Renamed to ...
18295 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18296 * normal/menu.c (DISP_LR): Renamed to ...
18297 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18298 * normal/menu.c (TERM_WIDTH): Renamed to ...
18299 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18300 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18301 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18302 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18303 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18304 * normal/menu.c (TERM_MARGIN): Renamed to ...
18305 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18306 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18307 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18308 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18309 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18310 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18311 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18312 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18313 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18314 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18315 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18316 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18317 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18318 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18319 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18320 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18321 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18322 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18323 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18324 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18325 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18326 All callers changed.
18328 * include/grub/normal.h: New prototype.
18330 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18331 normal/menu_entry.c.
18332 (normal_mod_SOURCES): Likewise.
18333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18334 (normal_mod_SOURCES): Likewise.
18336 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18338 * include/grub/normal.h (grub_halt_init): New prototype.
18339 (grub_halt_fini): Likewise.
18340 (grub_reboot_init): Likewise.
18341 (grub_reboot_fini): Likewise.
18343 * util/grub-emu.c: Include signal.h.
18344 (main_env): New global variable.
18345 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18347 (grub_machine_fini): New function.
18348 (main): Call grub_halt_init and grub_reboot_init before
18349 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18350 Call setjmp with MAIN_ENV to go back afterwards.
18351 Call grub_machine_fini right before return.
18353 * include/grub/util/misc.h: Include setjmp.h.
18354 (main_env): New prototype.
18356 * include/grub/kernel.h (grub_machine_fini): New prototype.
18357 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18358 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18360 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18361 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18362 * term/i386/pc/console.c (grub_console_fini): Likewise.
18364 * util/i386/pc/misc.c: New file.
18366 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18367 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18368 commands/i386/pc/reboot.c.
18370 2005-02-14 Guillem Jover <guillem@hadrons.org>
18372 * include/grub/dl.h (grub_dl_check_header): New prototype.
18373 (grub_arch_dl_check_header): Change return type to grub_err_t,
18374 remove size parameter and export function. Update all callers.
18375 * kern/dl.c (grub_dl_check_header): New function.
18376 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18377 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18378 are inside the core.
18379 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18380 independent ELF header checks.
18381 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18382 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18383 `grub_dl_check_header' instead of explicit checks. Check for the
18385 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18386 `grub_dl_check_header' instead of explicit checks. Remove arch
18387 specific ELF header checks.
18389 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18392 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18394 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18395 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18397 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18399 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18400 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18401 (part_map_iterate): Clear `grub_errno' and return 0 if
18402 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18403 * partmap/amiga.c (amiga_partition_map_iterate): Return
18404 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18405 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18407 2005-02-01 Guillem Jover <guillem@hadrons.org>
18409 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18412 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18414 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18416 (grub_rescue_cmd_linux): New prototype.
18417 (grub_rescue_cmd_initrd): Likewise.
18418 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18420 (grub_linux_release_mem): Release the memory for the initrd.
18421 (grub_load_linux): Renamed from this...
18422 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18423 Changed `entry' not to be static. Loop over memory regions to
18424 find another one when the default fails.
18425 (grub_rescue_cmd_initrd): New function.
18426 (grub_linux_init): Remove function.
18427 (grub_linux_fini): Likewise.
18428 (GRUB_MOD_INIT): Register `initrd'.
18429 (GRUB_MOD_FINI): Unregister `initrd'.
18430 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18432 (grub_linux_normal_fini): Likewise.
18433 (GRUB_MOD_INIT): Register `initrd'.
18434 (GRUB_MOD_FINI): Unregister `initrd'.
18436 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18438 * commands/help.c: New file.
18439 * normal/arg.c (show_help): Renamed to...
18440 (grub_arg_show_help): ... this.
18441 * commands/i386/pc/halt.c: New file.
18442 * commands/i386/pc/reboot.c: Likewise.
18443 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18444 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18445 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18446 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18450 (pkgdata_MODULES): Add `help.mod'.
18451 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18452 * grub/i386/pc/init.h (grub_reboot): New prototype.
18453 (grub_halt): Likewise.
18454 * include/grub/normal.h (grub_arg_show_help): New prototype.
18455 (grub_help_init): Likewise.
18456 (grub_help_fini): Likewise.
18457 * util/grub-emu.c (main): Initialize and deinitialize the help
18460 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18462 * normal/command.c (grub_command_init): Fixed the description of
18463 the `set' and `unset' commands.
18465 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18467 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18469 * commands/ieee1275/halt.c: New file.
18470 * commands/ieee1275/reboot.c: Likewise.
18471 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18472 `__attribute__ ((unused))'. Some GCS related fixed.
18473 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18474 (grub_suspend_fini): Likewise.
18475 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18477 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18478 (halt_mod_CFLAGS): New variables.
18479 * include/grub/powerpc/ieee1275/ieee1275.h
18480 (grub_ieee1275_interpret): New prototype.
18482 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18484 * include/grub/misc.h (memmove): New prototype.
18485 (memcpy): Likewise.
18487 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18489 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18490 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18492 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18494 * kern/misc.c (grub_strndup): Function rewritten.
18496 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18498 * normal/menu.c (TERM_WIDTH): Macro redefined.
18499 (TERM_TOP_BORDER_Y): Likewise.
18500 (draw_border): Replaced while-loop by a for-loop. Make the number
18501 of lines consistent with the number of lines displayed in
18502 print_entries. Added a margin below the rectangle.
18503 (print_entry): Make the entry fit in the rectangle.
18504 (print_entries): Display the scroll arrows next to the right
18507 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18509 * fs/minix.c (grub_minix_find_file): Reserve more space for
18510 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18511 `grub_strncpy' to copy `path' into it.
18513 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18515 Add the loopback device, a device via which files can be accessed
18518 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18519 (pkgdata_MODULES): Add loopback.mod.
18520 (loopback_mod_SOURCES): New variable.
18521 (loopback_mod_CFLAGS): Likewise.
18522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18524 (pkgdata_MODULES): Add loopback.mod.
18525 (loopback_mod_SOURCES): New variable.
18526 (loopback_mod_CFLAGS): Likewise.
18527 * disk/loopback.c: new file.
18528 * include/grub/normal.h (grub_loop_init): New prototype.
18529 (grub_loop_fini): New prototype.
18530 * util/grub-emu.c (main): Initialize and de-initialize loopback
18532 * include/grub/disk.h (grub_disk_dev_id): Add
18533 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18535 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18537 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18539 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18540 (suspend_mod_SOURCES): New variable.
18541 (suspend_mod_CFLAGS): Likewise.
18542 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18544 * commands/ieee1275/suspend.c: New file.
18546 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18548 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18549 ((unused))' to `__attribute__ ((used))'.
18550 (GRUB_MOD_FINI): Likewise.
18551 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18552 * genmk.rb (PModule): Assign space to common symbols when linking
18555 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18557 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18558 `unsigned' arguments to `grub_size_t'.
18559 (grub_malloc): Likewise.
18560 (grub_realloc): Likewise.
18561 (grub_memalign): Likewise.
18562 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18563 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18564 * util/misc.c (grub_malloc): Likewise.
18565 (grub_realloc): Likewise.
18566 * kern/mm.c (get_header_from_pointer): Change the casts to
18567 `unsigned' into a cast to `grub_size_t'.
18569 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18570 point to `currnode' when `currnode' is changed.
18572 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18573 Schottelius <nico-linux@schottelius.org>.
18575 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18577 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18578 (note_path): Remove variable.
18579 (GRUB_IEEE1275_NOTE_NAME): New macro.
18580 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18581 (grub_ieee1275_note_hdr): New structure.
18582 (grub_ieee1275_note_desc): Likewise.
18583 (grub_ieee1275_note): Likewise.
18584 (load_note): Remove `dir' argument. All callers updated. Remove
18585 `note_img' and `path'. Do not load a file from `note_path'.
18586 Initialize a struct grub_ieee1275_note and write that to `out'.
18587 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18589 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18591 * util/misc.c (grub_util_read_image): Revert last change. It
18592 called `grub_util_read_at', which seeks from the beginning of the
18595 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18597 * TODO: Add note about endianness in grub-mkimage.
18598 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18600 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18601 (grub_mkimage_SOURCES): New target.
18602 * include/grub/kernel.h (grub_start_addr): Remove variable.
18603 (grub_end_addr): Likewise.
18604 (grub_total_module_size): Likewise.
18605 (grub_kernel_image_size): Likewise.
18606 (GRUB_MODULE_MAGIC): New constant.
18607 (grub_module_info): New structure.
18608 (grub_arch_modules_addr): New prototype.
18609 (grub_get_end_addr): Remove prototype.
18610 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18611 * include/grub/powerpc/ieee1275/kernel.h: New file.
18612 * include/grub/util/misc.h (grub_util_get_fp_size): New
18614 (grub_util_read_at): Likewise.
18615 (grub_util_write_image_at): Likewise.
18616 * kern/main.c (grub_get_end_addr): Remove function.
18617 (grub_load_modules): Call grub_arch_modules_addr instead of using
18618 grub_end_addr. Look for a grub_module_info struct in memory. Use
18619 the grub_module_info fields instead of calling grub_get_end_addr
18620 as loop conditions. Move grub_add_unused_region code here.
18621 (grub_add_unused_region): Remove function.
18622 * kern/i386/pc/init.c: Include grub/cache.h.
18623 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18624 one call to add_mem_region.
18625 (grub_arch_modules_addr): New function.
18626 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18627 (grub_total_module_size): Likewise.
18628 Include grub/machine/kernel.h.
18629 (grub_arch_modules_addr): New function.
18630 * util/grub-emu.c (grub_end_addr): Remove variable.
18631 (grub_total_module_size): Likewise.
18632 (grub_arch_modules_addr): New function.
18633 * util/misc.c: Include unistd.h.
18634 (grub_util_get_fp_size): New function.
18635 (grub_util_read_at): Likewise.
18636 (grub_util_write_image_at): Likewise.
18637 (grub_util_read_image): Call grub_util_read_at.
18638 (grub_util_write_image): Call grub_util_write_image_at.
18639 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18640 additional memory in kernel_img for a struct grub_module_info.
18641 Fill in that grub_module_info.
18642 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18644 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18646 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18648 * include/grub/powerpc/ieee1275/ieee1275.h
18649 (grub_ieee1275_milliseconds): New prototype.
18650 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18652 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18653 grub_ieee1275_milliseconds.
18655 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18657 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18659 (find_options): New function.
18660 (cmain): Call find_options.
18661 * include/grub/powerpc/ieee1275/ieee1275.h
18662 (grub_ieee1275_realmode): New extern variable.
18663 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18664 grub_map if grub_ieee1275_realmode is false.
18666 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18668 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18669 lines are inserted and make it work like readline. Reported by
18670 Vincent Pelletier <subdino2004@yahoo.fr>.
18672 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18674 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18676 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18677 `kern/powerpc/cache.S'.
18679 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18681 * genmk.rb: Handle the `Program' class in the main loop. Written
18682 by Johan Rydberg <jrydberg@gnu.org>.
18683 (Program): New class.
18684 (programs): New variable.
18685 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18686 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18687 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18688 (help_arch): Function removed.
18689 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18690 `powerpc/libgcc.h' and `loader.h'.
18691 (pkgdata_PROGRAMS): New variable.
18692 (sbin_UTILITIES): Variable removed.
18693 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18694 (grubof_SOURCES): Variable re-defined so it only includes the
18695 core functionality.
18696 (grubof_CFLAGS): Remove `-DGRUBOF'.
18697 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18698 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18699 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18700 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18701 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18702 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18703 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18704 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18705 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18706 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18707 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18708 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18709 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18710 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18711 (pc_mod_CFLAGS): New variables.
18712 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18713 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18714 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18715 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18717 * include/grub/i386/pc/init.h (grub_os_area_addr)
18718 (rub_os_area_size): ... to here.
18719 * include/grub/powerpc/ieee1275/ieee1275.h
18720 (grub_ieee1275_entry_fn): Export symbol.
18721 * include/grub/powerpc/ieee1275/init.h: New file.
18722 * include/grub/powerpc/libgcc.h: Likewise.
18723 * include/grub/cache.h: Likewise.
18724 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18725 <hollis@penguinppc.org>.
18726 * kern/dl.c: Include <grub/cache.h>.
18727 (grub_dl_flush_cache): New function.
18728 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18730 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18731 (grub_console_init): Removed prototypes.
18732 (grub_machine_init): Don't initialize the modules anymore.
18733 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18735 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18736 Macro undef removed.
18737 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18738 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18739 relocation `R_PPC_REL32'. Return an error when the relocation is
18741 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18742 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18743 * util/misc.c (grub_arch_sync_caches): Likewise.
18745 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18747 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18748 `symlist.c', add `grubof_symlist.c'.
18749 (symlist.c): Variable removed.
18750 (grubof_HEADERS): Variable added.
18751 (grubof_symlist.c): New target.
18752 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18753 `kernel_img_HEADERS'.
18754 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18755 * kern/powerpc/dl.c: New file.
18756 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18758 (grub_arch_dl_relocate_symbols): Likewise.
18759 (grub_register_exported_symbols): Likewise.
18761 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18763 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18764 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18765 to fail instead. Reported by Vincent Pelletier
18766 <subdino2004@yahoo.fr>.
18768 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18769 it is not allocated. Reported by Vincent Pelletier
18770 <subdino2004@yahoo.fr>.
18772 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18773 output so the output looks better.
18775 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18777 Modulize the partition map support and add support for the amiga
18780 * commands/ls.c: Include <grub/partition.h> instead of
18781 <grub/machine/partition.h>.
18782 * kern/disk.c: Likewise.
18783 * kern/rescue.c: Likewise.
18784 * loader/i386/pc/chainloader.c: Likewise.
18785 * normal/cmdline.c: Likewise.
18786 * kern/powerpc/ieee1275/init.c: Likewise.
18787 (grub_machine_init): Call `grub_pc_partition_map_init',
18788 `grub_amiga_partition_map_init' and
18789 `grub_apple_partition_map_init'.
18790 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18791 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18792 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18793 `partition.h' and `pc_partition.h'.
18794 (grub_setup_SOURCES): Remove
18795 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18796 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18797 (grub_emu_SOURCES): Likewise.
18798 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18799 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18800 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18802 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18803 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18804 (grubof_SOURCES): Likewise.
18805 * disk/i386/pc/partition.c: File removed.
18806 * disk/powerpc/ieee1275/partition.c: Likewise.
18807 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18808 * include/grub/i386/pc/partition.h: Likewise.
18809 * kern/partition.c: New file.
18810 * partmap/amiga.c: Likewise.
18811 * partmap/apple.c: Likewise.
18812 * partmap/pc.c: Likewise.
18813 * include/grub/partition.h: Likewise..
18814 * include/grub/pc_partition.h: Likewise.
18815 * util/grub-emu.c: Include <grub/partition.h> instead of
18816 <grub/machine/partition.h>.
18817 (main): Call `grub_pc_partition_map_init',
18818 `grub_amiga_partition_map_init' and
18819 `grub_apple_partition_map_init' and deinitialize afterwards.
18820 * util/i386/pc/biosdisk.c: Include `#include
18821 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18822 `<grub/machine/partition.h>'.
18823 * util/i386/pc/grub-setup.c: Likewise.
18824 * util/i386/pc/biosdisk.c: Likewise.
18825 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18826 partition information in case of a PC partition.
18827 * util/i386/pc/grub-setup.c: Include `#include
18828 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18829 `<grub/machine/partition.h>'.
18830 (setup): Only access the PC specific partition information in case
18833 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18835 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18836 (grub_longjmp): Likewise.
18837 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18839 * normal/powerpc/setjmp.S: New file.
18840 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18841 `normal/powerpc/setjmp.S'.
18842 (grubof_CFLAGS): Add `-DGRUBOF'.
18843 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18844 [GRUB_UTIL && !GRUBOF].
18846 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18848 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18849 property named `name'. Correctly handle the error returned by
18850 `grub_ieee1275_finddevice' if a device can not be opened.
18852 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18854 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18855 `actual' for negativity.
18856 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18859 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18861 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18862 (PAGE_OFFSET): New macro.
18863 (CRTC_ADDR_PORT): Likewise.
18864 (CRTC_DATA_PORT): Likewise.
18865 (START_ADDR_HIGH_REGISTER): Likewise.
18866 (START_ADDR_LOW_REGISTER): Likewise.
18867 (GRAPHICS_ADDR_PORT): Likewise.
18868 (GRAPHICS_DATA_PORT): Likewise.
18869 (READ_MAP_REGISTER): Likewise.
18870 (INPUT_STATUS1_REGISTER): Likewise.
18871 (INPUT_STATUS1_VERTR_BIT): Likewise.
18872 (page): New variable.
18873 (wait_vretrace): New function.
18874 (set_read_map): Likewise.
18875 (set_start_address): Likewise.
18876 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18878 (check_vga_mem): Take the page into account.
18879 (write_char): Likewise.
18880 (write_cursor): Likewise.
18881 (scroll_up): Likewise. Copy the page to the page that is not
18882 shown and switch between both pages.
18883 (grub_vga_putchar): Fix off by one error.
18884 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18887 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18889 Add support for iso9660 (including rockridge).
18891 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18892 (iso9660_mod_SOURCES): New variable.
18893 (iso9660_mod_CFLAGS): Likewise.
18894 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18895 * include/grub/fs.h (grub_iso9660_init): New prototype.
18896 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18897 * fs/iso9660.c: New file.
18899 * include/grub/misc.h (grub_strncat): New prototype.
18900 * kern/misc.c (grub_strncat): New function.
18902 * fs/hfs.c (grub_hfs_mount): Translate the error
18903 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18904 * fs/jfs.c (grub_jfs_mount): Likewise.
18905 * fs/ufs.c (grub_ufs_mount): Likewise.
18907 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18909 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18910 which initialized BAT registers.
18911 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18912 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18914 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18915 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18917 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18918 (grub_mapclaim): Likewise.
18919 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18920 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18923 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18925 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18926 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18927 -ffreestanding and -msoft-float.
18929 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18931 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18932 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18933 set in grub_ieee1275_flags.
18935 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18937 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18939 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18940 grub_console_init first.
18941 Change the memory range used for grub_ieee1275_claim and
18942 grub_mm_init_region.
18943 Print an error message if the claim fails.
18944 Include <grub/misc.h>.
18946 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18948 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18949 Call grub_children_iterate for device nodes of type `scsi',
18951 (grub_ofdisk_open): Remove manual device alias resolution.
18952 Fix memory leak when device cannot be opened.
18953 * include/grub/powerpc/ieee1275/ieee1275.h
18954 (grub_children_iterate): New prototype.
18955 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18957 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18958 Return -1 if args.size was -1.
18960 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18962 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18963 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18964 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18965 Open Firmware's memory for it; claim memory from _start to _end.
18966 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18967 (_end): New extern.
18968 (_start): Zero BSS from __bss_start to _end.
18969 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18971 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18973 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18975 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18976 -1 if args.base was -1.
18978 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18980 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18981 escape sequence instead of a literal ^L. Also call
18982 grub_ofconsole_gotoxy.
18984 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18986 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18987 void * arguments to grub_addr_t. All callers updated. Also make
18988 the `result' argument optional.
18989 (grub_ieee1275_release): change void * arguments to grub_addr_t.
18990 All callers updated.
18992 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
18994 * commands/ls.c (grub_ls_list_files): Use the string following the
18995 initial ')', if present, as the filesystem path.
18996 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
18998 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
19000 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
19002 Make the source code of the menu interface more readable.
19004 * normal/menu.c: Include grub/mm.h.
19005 (TERM_WIDTH): New macro.
19006 (TERM_HEIGHT): Likewise.
19007 (TERM_INFO_HEIGHT): Likewise.
19008 (TERM_MARGIN): Likewise.
19009 (TERM_SCROLL_WIDTH): Likewise.
19010 (TERM_TOP_BORDER_Y): Likewise.
19011 (TERM_LEFT_BORDER_X): Likewise.
19012 (TERM_BORDER_WIDTH): Likewise.
19013 (TERM_MESSAGE_HEIGHT): Likewise.
19014 (TERM_BORDER_HEIGHT): Likewise.
19015 (TERM_NUM_ENTRIES): Likewise.
19016 (TERM_FIRST_ENTRY_Y): Likewise.
19017 (TERM_ENTRY_WIDTH): Likewise.
19018 (TERM_CURSOR_X): Likewise.
19019 (draw_border): Use macros instead of magic numbers.
19020 (print_entry): Likewise.
19021 (print_entries): Likewise.
19022 (run_menu): Likewise. Also, handle the key 'e'.
19023 (run_menu_entry): Ignore empty command lines.
19024 (print_message): Added a new argument EDIT. If EDIT is true,
19025 print a different message.
19026 (init_page): Likewise.
19027 (edit_menu_entry): New function. Not implemented yet.
19029 2004-09-17 Marco Gerards <metgerards@student.han.nl>
19031 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
19032 can be loaded from normal mode.
19034 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
19036 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
19037 (multiboot_mod_CFLAGS): New variables.
19038 * loader/i386/pc/linux_normal.c: New file.
19039 * loader/i386/pc/multiboot_normal.c: Likewise.
19041 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19042 attribute `unused'.
19044 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19045 `fdiro' to read the mode information from instead of `diro'.
19047 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19048 looking up a symlink.
19050 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19052 * normal/command.c (grub_command_execute): Don't parse the
19053 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19054 flags of the command.
19056 * normal/menu.c (grub_menu_run): Fix typo.
19058 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19060 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19062 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19063 `y + 1' instead of `y - 1'.
19065 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19067 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19069 From Hollis Blanchard <hollis@penguinppc.org>:
19070 * kern/misc.c (memmove): New alias for grub_memmove.
19071 (memcmp): New alias for grub_memcmp.
19072 (memset): New alias for grub_memset.
19073 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19074 Change "int handle" to "grub_ieee1275_phandle_t handle".
19075 * include/grub/powerpc/ieee1275/ieee1275.h
19076 (grub_ieee1275_get_property): Likewise.
19078 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19080 Added normal mode command `chainloader' as module chain.mod, which
19081 depends on normal.mod and _chain.mod.
19083 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19084 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19085 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19087 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19088 but arguments parsing moved to ...
19089 (grub_chainloader_cmd): ... here. New function.
19090 * include/grub/i386/pc/chainloader.h: New file.
19091 * loader/i386/pc/chainloader_normal.c: Likewise.
19093 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19095 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19096 (grub_mkimage_LDFLAGS): Likewise.
19097 (grub_emu_SOURCES): Likewise.
19098 (kernel_img_HEADERS): Added fshelp.h.
19099 * fs/ext2.c: Include <grub/fshelp.h>.
19100 (FILETYPE_REG): New macro.
19101 (FILETYPE_INO_REG): Likewise.
19102 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19104 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19106 (grub_fshelp_node): New struct.
19107 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19109 (grub_ext2_get_file_block): Removed function.
19110 (grub_ext2_read_block): New function.
19111 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19112 This function was written.
19113 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19114 (grub_ext2_find_file): Removed function.
19115 (grub_ext2_read_symlink): New function.
19116 (grub_ext2_iterate_dir): Likewise.
19117 (grub_ext2_open): Rewritten.
19118 (grub_ext2_dir): Rewritten.
19119 * include/grub/fshelp.h: New file.
19120 * fs/fshelp.c: Likewise.
19122 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19124 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19125 (print_message): Add a missing newline.
19126 (run_menu): Added timeout support.
19127 (run_menu_entry): New local function.
19128 (grub_menu_run): Added support for booting.
19130 * kern/loader.c (grub_loader_is_loaded): New function.
19132 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19133 (grub_get_rtc): Exported.
19135 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19136 (grub_get_rtc): Exported.
19138 * include/grub/normal.h (struct grub_command_list): Remove
19139 constant from the member `command'.
19141 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19143 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19145 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19147 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19149 Add support for the JFS filesystem.
19151 * fs/jfs.c: New file.
19152 * include/grub/fs.h (grub_jfs_init): New prototype.
19153 (grub_jfs_fini): New prototype.
19154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19155 (grub_emu_SOURCES): Likewise.
19156 (pkgdata_MODULES): Add jfs.mod.
19157 (jfs_mod_SOURCES): New variable.
19158 (jfs_mod_CFLAGS): Likewise.
19159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19160 (grubof_SOURCES): Likewise.
19161 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19163 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19164 endian to the host endian.
19165 (grub_fat_utf16_to_utf8): Move function from there...
19166 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19167 the endianness of the source string anymore.
19168 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19170 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19172 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19173 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19174 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19175 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19177 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19178 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19179 for `node_found' and `it_dir'.
19180 (grub_hfs_dir): Add prototype for `dir_hook'.
19182 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19183 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19184 and `indir32' to silence a gcc warning.
19186 * include/grub/fs.h (grub_hfs_init): New prototype.
19187 (grub_hfs_fini): Likewise.
19190 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19192 Each disk device has its own id now. This is useful to make use
19193 of multiple disk devices.
19195 * include/grub/disk.h (grub_disk_dev_id): New enum.
19196 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19197 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19199 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19200 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19202 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19203 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19205 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19206 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19208 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19209 "id" which is used by the cache manager.
19211 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19214 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19216 * fs/hfs.c: New file.
19217 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19218 (grub_emu_SOURCES): Likewise.
19219 (pkgdata_MODULES): Add hfs.mod.
19220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19221 (grubof_SOURCES): Likewise.
19222 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19224 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19225 * kern/misc.c (grub_strncasecmp): Add function.
19227 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19229 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19232 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19233 (grub_ext2_dir): In case the directory entry type is unknown, read
19236 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19238 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19239 grub_load_linux instead of grub_rescue_cmd_linux as second
19240 argument of grub_rescue_register_command.
19242 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19244 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19246 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19248 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19249 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19250 `loader/powerpc/ieee1275/linux.c',
19251 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19252 * include/grub/powerpc/ieee1275/ieee1275.h
19253 (grub_ieee1275_release): New prototype.
19254 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19255 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19256 normal, boot, linux and linux_normal.
19257 * loader/powerpc/ieee1275/linux.c: New file.
19258 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19260 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19262 * normal/arg.c (grub_arg_parse): Correct error handling after
19263 reallocating the argumentlist (check if `argl' is not null instead
19264 of checking if `args' is not null).
19265 * kern/mm.c (grub_realloc): Return the same pointer when using the
19266 same region, instead of returning the header address.
19268 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19270 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19271 one block instead of two when looking for the initial partition.
19272 (grub_partition_probe): Initialize the local variable `p' with 0.
19273 Use base 10 for the grub_strtoul call.
19274 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19275 need for one local variable.
19276 (grub_strtoul): Don't add the new value to `num', instead of that
19279 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19281 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19282 (pxeboot_img_SOURCES): New variable.
19283 (pxeboot_img_ASFLAGS): Likewise.
19284 (pxeboot_img_LDFLAGS): Likewise.
19285 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19286 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19287 <lode_leroy@hotmail.com>.
19289 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19291 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19292 there was no input.
19294 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19296 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19297 the history buffer logic.
19299 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19301 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19302 (FILETYPE_INO_SYMLINK): New macros.
19303 (grub_ext2_find_file): Check if the node is a directory using the
19304 inode stat information instead of using the filetype in the
19305 dirent. Exclude the first character of an absolute symlink.
19306 (grub_ext2_dir): Mask out the filetype part of the mode member of
19309 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19311 Add support for UFS version 1 and 2. Add support for the minix
19312 filesystem version 1 and 2, both the variants with 14 and 30 long
19315 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19317 (grub_emu_SOURCES): Likewise.
19318 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19319 (ufs_mod_SOURCES): New variable.
19320 (ufs_mod_CFLAGS): Likewise.
19321 (minix_mod_SOURCES): Likewise.
19322 (minix_mod_CFLAGS): Likewise.
19323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19325 (grubof_SOURCES): Likewise.
19326 * fs/ufs.c: New file.
19327 * fs/minix.c: New file.
19328 * include/grub/fs.h (grub_ufs_init): New prototype.
19329 (grub_ufs_fini): Likewise.
19330 (grub_minix_init): Likewise.
19331 (grub_minix_fini): Likewise.
19332 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19335 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19337 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19338 commands/ls.c, commands/terminal.c, commands/boot.c,
19339 commands/cmp.c and commands/cat.c.
19340 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19342 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19345 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19347 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19348 and grub_, respectively. Because the conversion is trivial and
19349 mechanical, I omit the details here. Please refer to the CVS
19350 if you need more information.
19352 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19354 * include/pupa: Renamed to ...
19355 * include/grub: ... this.
19356 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19357 * util/i386/pc/grub-mkimage.c: ... this.
19358 * util/i386/pc/pupa-setup.c: Renamed to ...
19359 * util/i386/pc/grub-setup.c: ... this.
19360 * util/pupa-emu.c: Renamed to ...
19361 * util/grub-emu.c: ... this.
19363 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19365 Add support for the newworld apple macintosh (PPC). This has been
19366 tested on the powerbook 2000 only. It only adds support for
19367 generic ieee1275 functions, console and disk support. This should
19368 be easy to port to other architectures with support for Open
19371 * configure.ac: Accept the powerpc as host_cpu. In the case of
19372 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19373 specific tests are only executed while building for the i386.
19374 Inverse test for crosscompile.
19375 * genmk.rb (Utility): Allow assembler files.
19376 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19377 * conf/powerpc-ieee1275.rmk: New file.
19378 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19379 * disk/powerpc/ieee1275/partition.c: Likewise.
19380 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19381 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19382 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19383 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19384 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19385 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19386 * include/pupa/powerpc/ieee1275/loader.h
19387 * include/pupa/powerpc/setjmp.h: Likewise.
19388 * include/pupa/powerpc/types.h: Likewise.
19389 * kern/powerpc/ieee1275/init.c: Likewise.
19390 * kern/powerpc/ieee1275/openfw.c: Likewise.
19391 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19393 These files were written by Johan Rydberg
19394 (jrydberg@night.trouble.net) and I only modified them slightly.
19396 * boot/powerpc/ieee1275/cmain.c: New file.
19397 * boot/powerpc/ieee1275/crt0.S: Likewise.
19398 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19399 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19401 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19403 * Makefile.in: Update copyright.
19404 * genmodsrc.sh: Likewise.
19405 * gensymlist.sh: Likewise.
19406 * term/i386/pc/vga.c: Indent correctly.
19408 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19409 bugreporting address.
19410 * util/i386/pc/pupa-setup.c (usage): Likewise,
19411 (main): Call pupa_ext2_init and pupa_ext2_fini.
19413 * fs/fat.c (log2): Renamed to ...
19414 (fat_log2): ... this.
19415 All callers changed.
19416 * kern/misc.c (memcpy): Alias to pupa_memmove.
19417 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19419 * util/console.c (pupa_ncurses_fini): Return 0.
19421 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19422 Move fail label here.
19423 [__GNU__]: Don't warn when using stat.
19424 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19425 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19426 long int. Use strtol instead of strtoul.
19428 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19430 * commands/boot.c: New file.
19431 * commands/cat.c: Likewise.
19432 * commands/cmp.c: Likewise.
19433 * commands/ls.c: Likewise.
19434 * commands/terminal.c: Likewise.
19435 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19436 (pupa_register_command): Changed interface to match the new
19438 (pupa_command_execute): Changed (almost rewritten) so it uses
19439 pupa_split_command. Added support for setting variables using the
19441 (rescue_command): Changed to work with the new argument parser.
19442 (terminal_command): Moved from here to commands/terminal.c.
19443 (set_command): New function.
19444 (unset_command): New function.
19445 (insmod_command): New function.
19446 (rmmod_command): New function.
19447 (lsmod_command): New function.
19448 (pupa_command_init): Don't initialize the command terminal
19449 anymore. Initialize the commands set, unset, insmod, rmmod and
19451 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19452 (kernel_img_HEADERS): Add arg.h and env.h.
19453 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19454 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19455 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19457 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19459 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19460 (boot_mod_SOURCES): New variable.
19461 (terminal_mod_SOURCES): Likewise.
19462 (ls_mod_SOURCES): Likewise.
19463 (cmp_mod_SOURCES): Likewise.
19464 (cat_mod_SOURCES): Likewise.
19466 * normal/arg.c: New file.
19467 * kern/env.c: Likewise.
19468 * include/pupa/arg.h: Likewise.
19469 * include/pupa/env.h: Likewise.
19470 * font/manager.c (font_command): Changed to match argument parsing
19472 (PUPA_MOD_INIT): Likewise.
19473 * hello/hello.c (pupa_cmd_hello): Likewise.
19474 (PUPA_MOD_INIT): Likewise.
19475 * include/pupa/disk.h: Include <pupa/device.h>.
19476 (pupa_print_partinfo): New prototype.
19477 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19478 (pupa_dl_get_prefix): Likewise.
19479 * include/pupa/misc.h: Include <pupa/err.h>.
19480 (pupa_isgraph): New prototype.
19481 (pupa_isdigit): Likewise.
19482 (pupa_split_cmdline): Likewise.
19483 * include/pupa/normal.h: Include <pupa/arg.h>.
19484 (pupa_command): Changed the prototype of the member `func' to
19485 match the argument parsing interface. Added member `options'.
19486 (pupa_register_command): Updated to match function.
19487 (pupa_arg_parse): New prototype.
19488 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19489 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19490 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19491 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19492 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19493 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19494 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19495 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19496 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19497 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19498 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19499 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19500 * kern/disk.c: Include <pupa/file.h>.
19501 (pupa_print_partinfo): New function.
19502 * kern/dl.c: Include <pupa/env.h>.
19503 (pupa_dl_dir): Variable removed.
19504 (pupa_dl_load): Use the environment variable `prefix' instead of
19505 the variable pupa_dl_dir.
19506 (pupa_dl_set_prefix): Function removed.
19507 (pupa_dl_get_prefix): Likewise.
19508 * kern/i386/pc/init.c: Include <pupa/env.h>.
19509 (pupa_machine_init): Use the environment variable `prefix' instead of
19510 using pupa_dl_set_prefix to set the prefix.
19511 * kern/main.c: Include <pupa/env.h>.
19512 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19513 using pupa_dl_get_prefix to get the prefix.
19514 * kern/misc.c: Include <pupa/env.h>.
19515 (pupa_isdigit): New function.
19516 (pupa_isgraph): Likewise.
19517 (pupa_ftoa): Likewise.
19518 (pupa_vsprintf): Added support for printing values of the type
19519 `double'. Make it possible to format variable output when using
19520 formatting like `%1.2%f'.
19521 (pupa_split_cmdline): New function.
19522 * kern/rescue.c: Include <pupa/env.h>.
19523 (next_word): Removed function.
19524 (pupa_rescue_cmd_prefix): Likewise.
19525 (pupa_rescue_cmd_set): New function.
19526 (pupa_rescue_cmd_unset): New function.
19527 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19528 split the command line instead of splitting it here. Added
19529 support for setting variables using the syntax `foo=bar'. Don't
19530 initialize the prefix command anymore. Initialized the set and
19532 * normal/cmdline.c: Include <pupa/env.h>.
19533 (pupa_tab_complete): Added prototypes for print_simple_completion,
19534 print_partition_completion, add_completion, iterate_commands,
19535 iterate_dev, iterate_part and iterate_dir. Moved code to print
19536 partition information from here to kern/disk.c.
19537 (pupa_cmdline_run): Don't check if the function exists anymore.
19538 * normal/main.c: Include <pupa/env.h>.
19539 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19540 instead of using pupa_dl_get_prefix to get the prefix.
19541 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19542 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19544 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19545 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19546 ((unused))' to silence a gcc warning.
19547 (pupa_vga_setcolor): Likewise.
19548 (debug_command): Changed to match argument parsing
19550 * util/pupa-emu.c: Include <pupa/env.h>.
19551 (options): Added 0's for unused fields to silence a gcc warning.
19553 (main): Use the environment variable `prefix' instead of using
19554 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19555 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19558 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19559 * util/misc.c: Include <malloc.h>.
19560 (pupa_malloc): Rewritten so errors are correctly reported.
19561 (pupa_realloc): Likewise.
19562 (pupa_memalign): Likewise.
19563 (pupa_mm_init_region): Declare unused variables with
19564 `__attribute__ ((unused))' to silence a gcc warning.
19565 * normal/i386/setjmp.S: Remove tab at the end of the file to
19566 silence a gcc warning.
19567 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19568 variables with `__attribute__ ((unused))' to silence a gcc
19570 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19571 local variable i unsigned to silence a gcc warning.
19573 * kern/term.c: Include <pupa/misc.h>.
19574 (pupa_more_lines): New variable.
19575 (pupa_more): Likewise.
19576 (pupa_putcode): When the pager is active pause at the end of every
19578 (pupa_set_more): New function.
19579 * include/pupa/term.h (pupa_set_more): New prototype.
19582 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19584 Now this project is GRUB 2 rather than PUPA. The location of
19585 the CVS repository was moved to GRUB's.
19587 * configure.ac: Use bug-grub as the reporting address.
19588 Use GRUB instead of PUPA.
19589 Change the version number to 1.90.
19591 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19593 * genkernsyms.sh: Updated copyright information.
19594 * genmk.rb: Likewise.
19595 * genmodsrc.sh: Likewise.
19596 * gensymlist.sh: Likewise.
19597 * boot/i386/pc/boot.S: Likewise.
19598 * boot/i386/pc/diskboot.S: Likewise.
19599 * disk/i386/pc/biosdisk.c: Likewise.
19600 * disk/i386/pc/partition.c: Likewise.
19601 * font/manager.c: Likewise.
19602 * fs/ext2.c: Likewise.
19603 * fs/fat.c: Likewise.
19604 * include/pupa/boot.h: Likewise.
19605 * include/pupa/device.h: Likewise.
19606 * include/pupa/disk.h: Likewise.
19607 * include/pupa/dl.h: Likewise.
19608 * include/pupa/elf.h: Likewise.
19609 * include/pupa/err.h: Likewise.
19610 * include/pupa/file.h: Likewise.
19611 * include/pupa/font.h: Likewise.
19612 * include/pupa/fs.h: Likewise.
19613 * include/pupa/kernel.h: Likewise.
19614 * include/pupa/loader.h: Likewise.
19615 * include/pupa/misc.h: Likewise.
19616 * include/pupa/mm.h: Likewise.
19617 * include/pupa/net.h: Likewise.
19618 * include/pupa/normal.h: Likewise.
19619 * include/pupa/rescue.h: Likewise.
19620 * include/pupa/setjmp.h: Likewise.
19621 * include/pupa/symbol.h: Likewise.
19622 * include/pupa/term.h: Likewise.
19623 * include/pupa/types.h: Likewise.
19624 * include/pupa/i386/setjmp.h: Likewise.
19625 * include/pupa/i386/types.h: Likewise.
19626 * include/pupa/i386/pc/biosdisk.h: Likewise.
19627 * include/pupa/i386/pc/boot.h: Likewise.
19628 * include/pupa/i386/pc/console.h: Likewise.
19629 * include/pupa/i386/pc/init.h: Likewise.
19630 * include/pupa/i386/pc/kernel.h: Likewise.
19631 * include/pupa/i386/pc/linux.h: Likewise.
19632 * include/pupa/i386/pc/loader.h: Likewise.
19633 * include/pupa/i386/pc/memory.h: Likewise.
19634 * include/pupa/i386/pc/multiboot.h: Likewise.
19635 * include/pupa/i386/pc/partition.h: Likewise.
19636 * include/pupa/i386/pc/time.h: Likewise.
19637 * include/pupa/i386/pc/vga.h: Likewise.
19638 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19639 * include/pupa/util/getroot.h: Likewise.
19640 * include/pupa/util/misc.h: Likewise.
19641 * include/pupa/util/resolve.h: Likewise.
19642 * kern/device.c: Likewise.
19643 * kern/disk.c: Likewise.
19644 * kern/dl.c: Likewise.
19645 * kern/err.c: Likewise.
19646 * kern/file.c: Likewise.
19647 * kern/fs.c: Likewise.
19648 * kern/loader.c: Likewise.
19649 * kern/main.c: Likewise.
19650 * kern/misc.c: Likewise.
19651 * kern/mm.c: Likewise.
19652 * kern/rescue.c: Likewise.
19653 * kern/term.c: Likewise.
19654 * kern/i386/dl.c: Likewise.
19655 * kern/i386/pc/init.c: Likewise.
19656 * kern/i386/pc/lzo1x.S: Likewise.
19657 * kern/i386/pc/startup.S: Likewise.
19658 * loader/i386/pc/chainloader.c: Likewise.
19659 * loader/i386/pc/linux.c: Likewise.
19660 * loader/i386/pc/multiboot.c: Likewise.
19661 * normal/cmdline.c: Likewise.
19662 * normal/command.c: Likewise.
19663 * normal/main.c: Likewise.
19664 * normal/menu.c: Likewise.
19665 * normal/i386/setjmp.S: Likewise.
19666 * term/i386/pc/console.c: Likewise.
19667 * term/i386/pc/vga.c: Likewise.
19668 * util/console.c: Likewise.
19669 * util/genmoddep.c: Likewise.
19670 * util/misc.c: Likewise.
19671 * util/pupa-emu.c: Likewise.
19672 * util/resolve.c: Likewise.
19673 * util/unifont2pff.rb: Likewise.
19674 * util/i386/pc/biosdisk.c: Likewise.
19675 * util/i386/pc/getroot.c: Likewise.
19676 * util/i386/pc/pupa-mkimage.c: Likewise.
19677 * util/i386/pc/pupa-setup.c: Likewise.
19679 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19681 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19682 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19683 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19684 reading and reset it after reading.
19685 (pupa_ext2_close): Return PUPA_ERR_NONE.
19687 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19689 (struct linux_kernel_header): Add kernel_version and
19691 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19692 pupa_file_read succeeds.
19693 (pupa_rescue_cmd_initrd): Implement.
19695 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19697 * fs/ext2.c (pupa_ext2_label): New function.
19698 (pupa_ext2_fs): Added label.
19699 * fs/fat.c (pupa_fat_label): New function.
19700 (pupa_fat_fs): Added label.
19701 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19703 * kern/misc.c (pupa_strndup): New function.
19704 * include/pupa/misc.h (pupa_strndup): New prototype.
19706 * include/pupa/normal.h: Include <pupa/err.h>.
19707 (pupa_set_history): New prototype.
19708 (pupa_iterate_commands): New prototype.
19709 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19710 <pupa/disk.h>, <pupa/file.h>.
19711 (hist_size): New variable.
19712 (hist_lines): Likewise.
19713 (hist_end): Likewise.
19714 (hist_used): Likewise.
19715 (pupa_set_history): New function.
19716 (pupa_history_get): Likewise.
19717 (pupa_history_add): Likewise.
19718 (pupa_history_replace): Likewise.
19719 (pupa_tab_complete): Likewise.
19720 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19721 completion shows partitionnames while completing partitions, this
19722 feature was suggested by Jeff Bailey.
19723 * normal/command.c (pupa_iterate_commands): New function.
19724 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19725 (pupa_normal_init): Initialize history buffer.
19726 (PUPA_MOD_INIT): Likewise.
19727 (pupa_normal_fini): Free the history buffer.
19728 (PUPA_MOD_FINI): Likewise.
19730 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19733 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19734 * configure.ac [i386]: Check for regparam bug.
19735 (NESTED_FUNC_ATTR) [! i386]: Defined.
19737 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19739 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19740 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19741 (pupa_emu_SOURCES): New variable.
19742 (pupa_emu_LDFLAGS): Likewise.
19743 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19744 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19745 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19746 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19747 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19748 (pupa_jmp_buf): New typedef.
19749 (pupa_setjmp) [PUPA_UTIL]: New macro.
19750 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19751 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19752 (pupa_refresh): New prototype.
19753 * include/pupa/util/getroot.h: New file.
19754 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19756 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19757 (pupa_rescue_cmd_cat): Likewise.
19758 (pupa_rescue_cmd_ls): Likewise.
19759 (pupa_rescue_cmd_testload): Likewise.
19760 (pupa_rescue_cmd_lsmod): Likewise.
19761 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19762 * normal/menu.c (run_menu): Likewise.
19763 * kern/term.c (pupa_cls): Likewise.
19764 (pupa_refresh): New function.
19765 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19766 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19767 * util/console.c: New file.
19769 * util/i386/pc/getroot.c: New file.
19770 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19771 (pupa_putchar): New function.
19772 (pupa_refresh): Likewise.
19773 (xgetcwd): Function moved to ...
19774 (strip_extra_slashes): Likewise.
19775 (get_prefix): Likewise.
19776 * util/i386/pc/getroot.c: ... here.
19777 (find_root_device): Function moved and renamed to...
19778 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19779 Changed all callers.
19780 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19782 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19783 Changed all callers.
19784 * util/misc.c (pupa_memalign): New function.
19785 (pupa_mm_init_region): Likewise.
19786 (pupa_register_exported_symbols): Likewise.
19787 (pupa_putchar): Function removed.
19788 * util/pupa-emu.c: New file.
19790 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19792 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19793 (_multiboot_mod_SOURCES): New variable.
19794 (_multiboot_mod_CFLAGS): Likewise.
19795 * loader/i386/pc/multiboot.c: New file.
19796 * include/pupa/i386/pc/multiboot.h: Likewise.
19797 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19798 (pupa_multiboot_real_boot): New function.
19799 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19800 (pupa_multiboot_real_boot): New prototype.
19801 (pupa_rescue_cmd_multiboot): Likewise
19802 (pupa_rescue_cmd_module): Likewise.
19804 * kern/loader.c (pupa_loader_set): Continue when
19805 pupa_loader_unload_func() fails.
19806 (pupa_loader_unset): New function.
19807 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19809 * kern/misc.c (pupa_stpcpy): New function.
19810 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19812 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19814 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19815 for available extensions.
19817 * include/pupa/i386/pc/time.h: New file.
19818 * kern/disk.c: Include <pupa/machine/time.h>.
19819 (PUPA_CACHE_TIMEOUT): New macro.
19820 (pupa_last_time): New variable.
19821 (pupa_disk_open): Flush the cache when there was a timeout.
19822 (pupa_disk_close): Reset the timer.
19823 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19825 * util/misc.c: Include <sys/times.h>
19826 (pupa_get_rtc): New function.
19828 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19830 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19832 (pupa_ext2_get_file_block): Use blocks member.
19834 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19835 first block. Return -1 instead of pupa_errno on error.
19837 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19839 * README: In the pupa-mkimage example use _chain instead of chain
19840 and ext2 instead of fat.
19841 * TODO: Replace ext2fs with jfs as an example. Add an item for
19842 adding journal playback for ext2fs.
19843 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19844 (pkgdata_MODULES): Added ext2.mod.
19845 (ext2_mod_SOURCES): New variable.
19846 (ext2_mod_CFLAGS): Likewise.
19847 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19848 * include/pupa/misc.h (pupa_strncpy): New prototype.
19849 (pupa_strcat): Likewise.
19850 (pupa_strncmp): Likewise.
19851 * kern/misc.c (pupa_strcat): Enable function.
19852 (pupa_strncpy): New function.
19853 (pupa_strncmp): Likewise.
19854 * fs/ext2.c: New file.
19856 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19857 when the read failed before retrying.
19858 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19859 (_FILE_OFFSET_BITS): Likewise.
19860 * configure.ac: Added AC_SYS_LARGEFILE.
19862 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19864 * genmk.rb (PModule#rule): Make sure to get only symbol names
19865 from the output of nm.
19866 Reported by Robert Millan <zeratul2@wanadoo.es>.
19868 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19870 I forgot to check in these changes for a long time. This adds
19871 incomplete support for VGA console, and this is still very
19872 buggy. Also, a lot of consideration is required for I18N,
19873 UNICODE, and VGA font issues. Therefore, assume that this is
19874 such that "better than nothing".
19876 * font/manager.c: New file.
19877 * include/pupa/font.h: Likewise.
19878 * include/pupa/i386/pc/vga.h: Likewise.
19879 * term/i386/pc/vga.c: Likewise.
19880 * util/unifont2pff.rb: Likewise.
19882 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19883 (pkgdata_MODULES): Added vga.mod and font.mod.
19884 (vga_mod_SOURCES): New variables.
19885 (vga_mod_CFLAGS): Likewise.
19886 (font_mod_SOURCES): Likewise.
19887 (font_mod_CFLAGS): Likewise.
19889 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19891 * include/pupa/term.h: Include pupa/err.h.
19892 (struct pupa_term): Added init and fini.
19893 Changed the argument of putchar to pupa_uint32_t.
19895 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19896 (pupa_console_real_putchar): New prototype.
19897 (pupa_console_putchar): Removed.
19898 (pupa_console_checkkey): Exported.
19899 (pupa_console_getkey): Likewise.
19901 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19904 * kern/term.c (pupa_term_set_current): Rewritten.
19905 (pupa_putchar): Likewise.
19906 (pupa_putcode): New function.
19908 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19909 (pupa_console_real_putchar): ... this.
19910 (pupa_vga_set_mode): New function.
19911 (pupa_vga_get_font): Likewise.
19913 * normal/command.c: Include pupa/term.h.
19914 (terminal_command): New function.
19915 (pupa_command_init): Register the command "terminal".
19917 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19918 (DISP_UP): Likewise.
19919 (DISP_RIGHT): Likewise.
19920 (DISP_DOWN): Likewise.
19921 (DISP_HLINE): Likewise.
19922 (DISP_VLINE): Likewise.
19923 (DISP_UL): Likewise.
19924 (DISP_UR): Likewise.
19925 (DISP_LL): Likewise.
19926 (DISP_LR): Likewise.
19928 * term/i386/pc/console.c (pupa_console_putchar): New function.
19930 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19932 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19933 FIX. Reverse the path_list.
19935 * include/pupa/normal.h: Export pupa_register_command and
19936 pupa_unregister_command.
19938 * hello/hello.c (pupa_cmd_hello): New module.
19939 * conf/i386-pc.rmk: Added hello.mod.
19941 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19943 * kern/i386/pc/lzo1x.S: New file.
19945 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19946 (compress_kernel): New variable.
19947 (generate_image): Heavily modified to support compressing a
19948 large part of the core image.
19950 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19952 (pupa_util_load_image): New function.
19954 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19955 (pupa_compressed_size): New variable.
19956 (codestart): Enable Gate A20 here.
19957 Decompress the compressed part of the core image.
19958 Rearrange the code to put functions and variables which are
19959 required for initialization in the non-compressed part.
19962 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19965 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19967 * include/pupa/i386/pc/kernel.h
19968 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19969 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19970 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19971 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19972 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19974 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19976 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19977 (Utility#rule): Likewise.
19979 * configure.ac: Check if LZO is available.
19981 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19983 * include/pupa/normal.h: New file.
19984 * include/pupa/setjmp.h: Likewise.
19985 * include/pupa/i386/setjmp.h: Likewise.
19986 * normal/cmdline.c: Likewise.
19987 * normal/command.c: Likewise.
19988 * normal/main.c: Likewise.
19989 * normal/menu.c: Likewise.
19990 * normal/i386/setjmp.S: Likewise.
19992 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
19993 (pupa_rescue_cmd_initrd): Likewise.
19995 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
19998 * kern/i386/pc/startup.S (translation_table): New variable.
19999 (translate_keycode): New function.
20000 (pupa_console_getkey): Call translate_keycode.
20002 * kern/rescue.c (attempt_normal_mode): New function.
20003 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
20004 it failed, print a message.
20006 * kern/mm.c (pupa_real_malloc): Print more information when a
20007 free magic is broken.
20008 (pupa_free): If the first free header is not free actually, set
20011 * kern/main.c (pupa_load_normal_mode): Just load the module
20013 (pupa_main): Don't print the message
20014 "Entering into rescue mode..." here.
20016 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
20018 (pupa_rescue_cmd_initrd): Likewise.
20019 (pupa_rescue_cmd_initrd): Likewise.
20021 * include/pupa/symbol.h (FUNCTION): Specify the type.
20022 (VARIABLE): Likewise.
20024 * include/pupa/err.h (pupa_err_t): Added
20025 PUPA_ERR_UNKNOWN_COMMAND.
20027 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
20028 (pupa_dl_get_prefix): Likewise.
20030 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
20031 Added _chain.mod and _linux.mod instead of chain.mod and
20033 (chain_mod_SOURCES): Renamed to ...
20034 (_chain_mod_SOURCES): ... this.
20035 (chain_mod_CFLAGS): Renamed to ...
20036 (_chain_mod_CFLAGS): ... this.
20037 (linux_mod_SOURCES): Renamed to ...
20038 (_linux_mod_SOURCES): ... this.
20039 (linux_mod_CFLAGS): Renamed to ...
20040 (_linux_mod_CFLAGS): ... this.
20041 (normal_mod_SOURCES): New variable.
20042 (normal_mod_CFLAGS): Likewise.
20043 (normal_mod_ASFLAGS): Likewise.
20045 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20047 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20050 * kern/dl.c (pupa_dl_ref): Refer depending modules
20052 (pupa_dl_unref): Unrefer depending modules recursively.
20053 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20054 a module is unloaded before one depending on that module is
20056 (pupa_dl_unload): Unload depending modules explicitly,
20059 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20061 * include/pupa/i386/pc/linux.h: New file.
20062 * loader/i386/pc/linux.c: Likewise.
20064 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20066 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20067 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20068 of PUPA_CHAINLOADER_BOOT_SECTOR.
20070 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20071 (pupa_linux_prot_size): New variable.
20072 (pupa_linux_tmp_addr): Likewise.
20073 (pupa_linux_real_addr): Likewise.
20074 (pupa_linux_boot_zimage): New function.
20075 (pupa_linux_boot_bzimage): Likewise.
20077 * kern/i386/pc/init.c (struct mem_region): New structure.
20078 (MAX_REGIONS): New macro.
20079 (mem_regions): New variable.
20080 (num_regions): Likewise.
20081 (pupa_os_area_addr): Likewise.
20082 (pupa_os_area_size): Likewise.
20083 (pupa_lower_mem): Likewise.
20084 (pupa_upper_mem): Likewise.
20085 (add_mem_region): New function.
20086 (compact_mem_regions): Likewise.
20087 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20088 the size of the conventional memory and that of so-called upper
20089 memory (before the first memory hole).
20090 Instead of adding each found region to free memory, use
20091 add_mem_region and add them after removing overlaps.
20092 Also, add only 1/4 of the upper memory to free memory. The rest
20093 is used for loading OS images. Maybe this is ad hoc, but this
20094 makes it much easier to relocate OS images when booting.
20096 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20097 (pupa_enter_rescue_mode): Don't register initrd and module.
20099 * kern/mm.c: Include pupa/dl.h.
20101 * kern/main.c: Include pupa/file.h and pupa/device.h.
20103 * kern/loader.c (pupa_loader_load_module_func): Removed.
20104 (pupa_loader_load_module): Likewise.
20106 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20109 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20110 (pupa_linux_tmp_addr): Likewise.
20111 (pupa_linux_real_addr): Likewise.
20112 (pupa_linux_boot_zimage): Likewise.
20113 (pupa_linux_boot_bzimage): Likewise.
20115 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20116 (pupa_upper_mem): Likewise.
20117 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20118 module is too dangerous.
20120 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20121 (pupa_os_area_size): Likewise.
20122 (pupa_loader_set): Remove the first argument. Loader doesn't
20123 manage modules or initrd any longer.
20124 (pupa_loader_load_module): Removed.
20126 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20127 (linux_mod_SOURCES): New variable.
20128 (linux_mod_CFLAGS): Likewise.
20130 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20132 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20133 the length of a blocklist correctly.
20135 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20136 Use ioctl only if the OS file is a block device.
20137 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20138 not very useful for normal files.
20140 * kern/main.c (pupa_set_root_dev): New function.
20141 (pupa_load_normal_mode): Likewise.
20142 (pupa_main): Call those above.
20144 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20147 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20149 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20151 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20152 (setup): Configure the installed partition information and the
20155 * loader/i386/pc/chainloader.c (my_mod): New variable.
20156 (pupa_chainloader_unload): New function.
20157 (pupa_rescue_cmd_chainloader): Refer itself.
20158 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20160 * kern/i386/pc/startup.S (install_partition): Removed.
20161 (version_string): Likewise.
20162 (config_file): Likewise.
20163 (pupa_install_dos_part): New variable.
20164 (pupa_install_bsd_part): Likewise.
20165 (pupa_prefix): Likewise.
20166 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20168 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20170 (make_install_device): New function.
20171 (pupa_machine_init): Set the dl prefix.
20173 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20174 (buf): Renamed to ...
20175 (linebuf): ... this.
20176 (pupa_rescue_cmd_prefix): New function.
20177 (pupa_rescue_cmd_insmod): Likewise.
20178 (pupa_rescue_cmd_rmmod): Likewise.
20179 (pupa_rescue_cmd_lsmod): Likewise.
20180 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20183 * kern/mm.c (pupa_memalign): If failed even after invalidating
20184 disk caches, unload unneeded modules and retry.
20186 * kern/misc.c (pupa_memmove): New function.
20187 (pupa_memcpy): Removed.
20188 (pupa_strcpy): New function.
20189 (pupa_itoa): Made static.
20191 * kern/dl.c (pupa_dl_iterate): New function.
20192 (pupa_dl_ref): Likewise.
20193 (pupa_dl_unref): Likewise.
20194 (pupa_dl_unload): Return if succeeded or not.
20195 (pupa_dl_unload_unneeded): New function.
20196 (pupa_dl_unload_all): Likewise.
20197 (pupa_dl_init): Renamed to ...
20198 (pupa_dl_set_prefix): ... this.
20199 (pupa_dl_get_prefix): New function.
20201 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20202 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20203 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20204 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20205 (pupa_install_dos_part): Declared.
20206 (pupa_install_bsd_part): Likewise.
20207 (pupa_prefix): Likewise.
20208 (pupa_boot_drive): Likewise.
20210 * include/pupa/types.h: Fix a typo.
20212 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20214 (pupa_memmove): Declared.
20215 (pupa_strcpy): Likewise.
20217 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20218 pupa_mod_init takes one argument, its own module.
20219 (pupa_dl_unload_unneeded): Declared.
20220 (pupa_dl_unload_all): Likewise.
20221 (pupa_dl_ref): Likewise.
20222 (pupa_dl_unref): Likewise.
20223 (pupa_dl_iterate): Likewise.
20224 (pupa_dl_init): Renamed to ...
20225 (pupa_dl_set_prefix): ... this.
20226 (pupa_dl_get_prefix): Declared.
20228 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20229 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20231 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20232 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20234 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20235 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20237 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20239 * util/i386/pc/pupa-setup.c (setup): Define the internal
20240 function find_first_partition_start at the top level, because GCC
20241 3.0.x cannot compile internal functions in deeper scopes
20243 (find_root_device): Use lstat instead of stat.
20244 Don't follow symbolic links.
20245 Fix the path-constructing code.
20247 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20248 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20249 by a BLKGETSIZE ioctl first, because block devices don't fill
20250 the member st_mode of the structure stat on Linux.
20251 [__linux__] (linux_find_partition): Use a temporary buffer
20252 REAL_DEV for the working space. Copy it to DEV before returning.
20253 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20254 buffer cache consistent.
20255 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20256 strncmp. The previous value was merely wrong.
20257 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20259 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20260 FAT size is 12. The previous value was merely wrong.
20262 * kern/main.c (pupa_main): Don't split the starting message from
20265 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20266 LF, because BIOS goes crazy about character attributes in this
20269 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20271 * include/i386/pc/util/biosdisk.h: New file.
20272 * util/i386/pc/biosdisk.c: Likewise.
20273 * util/i386/pc/pupa-setup.c: Likewise.
20275 * Makefile.in (INCLUDE_DISTFILES): Added
20276 include/pupa/i386/pc/util/biosdisk.h.
20277 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20278 directory util/i386/pc.
20279 (install-local): Added a rule for sbin_UTILITIES.
20280 (uninstall): Likewise.
20282 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20284 * util/misc.c (xrealloc): New function.
20285 (pupa_malloc): Likewise.
20286 (pupa_free): Likewise.
20287 (pupa_realloc): Likewise.
20288 (pupa_stop): Likewise.
20289 (pupa_putchar): Likewise.
20291 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20293 * include/pupa/util/misc.h (xrealloc): Declared.
20295 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20297 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20298 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20300 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20301 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20303 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20304 way should be implemented.
20305 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20307 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20308 the size of NAME for safety.
20309 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20312 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20313 (pupa_setup_SOURCES): Likewise.
20315 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20317 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20319 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20320 bunch of pushl's from pusha, because this destroys the return
20323 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20325 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20326 This means that any missing prototypes could be fatal. Also, you
20327 must take care when writing assembly code. See the comments at
20328 the beginning of startup.S, for more details.
20330 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20331 compilation mechanism.
20332 (pupa_chainloader_real_boot): Likewise.
20333 (pupa_biosdisk_rw_int13_extensions): Likewise.
20334 (pupa_biosdisk_rw_standard): Likewise.
20335 (pupa_biosdisk_check_int13_extensions): Likewise.
20336 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20337 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20338 (pupa_get_memsize): Likewise.
20339 (pupa_get_mmap_entry): Likewise.
20340 (pupa_console_putchar): Likewise.
20341 (pupa_console_setcursor): Likewise.
20342 (pupa_getrtsecs): Use pushl instead of push.
20344 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20345 memory instead of the stack for a mmap entry, because some
20346 BIOSes may ignore the maximum size and overflow.
20348 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20350 * genmk.rb (PModule#rule): Compile automatically generated
20351 sources with module-specific CFLAGS as well as other sources.
20353 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20355 * configure.ac: Check ld.
20356 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20357 respectively, before checking endianness and sizes.
20359 * Makefile.in (LD): New variable.
20361 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20363 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20365 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20367 * Changelog: New file.