1 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
6 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
9 GNU partition number to get internal GRUB partition number.
11 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
14 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
16 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
18 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
19 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
22 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
24 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
26 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
30 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
31 `-isystem=$(srcdir)/include'.
33 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35 * util/i386/pc/grub-install.in: Remove hint that device.map should be
36 checked (grub-install doesn't currently rely on it).
38 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
42 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
43 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
44 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
45 * conf/i386-ieee1275.rmk: Likewise.
46 * conf/i386-pc.rmk: Likewise.
47 * conf/powerpc-ieee1275.rmk: Likewise.
48 * conf/sparc64-ieee1275.rmk: Likewise.
49 * conf/x86_64-efi.rmk: Likewise.
51 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
53 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
55 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
57 * include/grub/misc.h: Stop checking for APPLE_CC.
59 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
61 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
62 doesn't cause an infinite call loop.
64 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
66 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
69 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
71 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
73 * Makefile.in: Likewise.
75 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
77 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
79 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
81 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
83 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
85 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
87 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
89 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
91 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
93 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
95 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
96 in $(MAKEINFO) invocation. This makes it clear in output that
97 errors are being ignored.
99 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
101 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
103 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
104 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
105 * conf/i386-ieee1275.rmk: Likewise.
106 * conf/i386-pc.rmk: Likewise.
107 * conf/powerpc-ieee1275.rmk: Likewise.
108 * conf/sparc64-ieee1275.rmk: Likewise.
109 * conf/x86_64-efi.rmk: Likewise.
111 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
113 * util/grub-editenv.c (main): If only a command is given, use
114 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
115 (usage): FILENAME is now optional and has a default.
117 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
119 Improve grub-mkconfig performance when there are several menu
120 entries on a single filesystem.
122 * util/grub.d/10_linux.in (linux_entry): Cache the output of
123 prepare_grub_to_access_device.
124 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
125 * util/grub.d/30_os-prober.in: Likewise.
127 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
129 * util/grub.d/10_freebsd.in: Remove.
130 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
131 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
133 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
135 * docs/grub.cfg: Fix example usage of *BSD loaders.
137 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
139 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
140 grub_util_error() call.
142 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
144 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
145 `reserved_first_sector' member.
146 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
147 `reserved_first_sector' to 1.
148 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
149 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
150 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
151 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
152 filesystems which begin at first sector.
153 (options): New option --skip-fs-probe.
154 (main): Handle --skip-fs-probe and pass it to setup().
156 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
158 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
159 (memset): Fix function prototype.
161 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
162 2009-10-25 Vasily Averin <vvs@parallels.com>
164 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
165 `dirent.direntlen == 0'.
167 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
169 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
171 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
173 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
175 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
176 `__trampoline_setup' and `__ucmpdi2'.
177 * include/grub/powerpc/libgcc.h: Only export symbols for functions
178 that libgcc provides.
180 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
182 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
183 * include/grub/sparc64/libgcc.h (memset): Likewise.
184 * include/grub/misc.h (memset, memcmp): New function prototypes.
186 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
188 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
190 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
192 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
194 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
195 * docs/grub.cfg: Compensate for recent change in multiboot
196 loader (since 2009-08-14 it won't pass filename to payload).
197 * util/grub.d/10_hurd.in: Likewise.
199 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
201 * config.guess: Update to latest version from config git
203 * config.sub: Likewise.
205 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
207 Fix build on sparc64.
209 * configure.ac: Perform checks for libgcc symbols before
210 adding `-nostdlib' to LDFLAGS.
212 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
214 Let user specify OpenBSD root device.
216 * loader/i386/bsd.c (openbsd_root): New variable.
217 (openbsd_opts): New option 'root'.
218 (OPENBSD_ROOT_ARG): New macro.
219 (grub_openbsd_boot): Use 'openbsd_root'.
220 (grub_cmd_openbsd): Fill 'openbsd_root'.
222 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
224 * NEWS: Misc adjustments.
226 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
228 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
230 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
232 * configure.ac: Bump version to 1.97.
234 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
236 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
237 -mno-3dnow on x86 architectures. Some toolchains enable these
238 features by default, but they rely on registers that aren't enabled
239 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
241 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
243 Make entry text a bit more readable.
245 * util/grub.d/10_linux.in: Add `with' before `Linux'.
247 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
249 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
251 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
253 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
256 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
258 * configure.ac: Add missing dollar.
260 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
262 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
264 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
265 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
267 * include/grub/sparc64/libgcc.h: Likewise. Use
268 preprocessor conditionals.
270 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
272 * conf/common.rmk (grub-dumpbios): Remove rule.
273 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
274 * util/grub-dumpbios.in: Remove file.
276 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
278 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
279 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
281 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
282 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
285 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
286 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
287 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
288 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
291 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
293 * term/tparm.c: Switch to GPLv3.
295 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
297 * include/grub/i386/cpuid.h: Add header protection.
299 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
301 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
303 * include/grub/i386/cpuid.h: New file.
304 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
305 (has_longmode): Rename to ...
306 (grub_cpuid_has_longmode): ... this. Update all users. Remove
308 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
309 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
310 on a CPU that doesn't implement AMD64 instruction set.
312 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
314 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
315 that version.texi is rebuilt on version number changes.
317 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
319 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
322 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
324 * util/i386/pc/grub-install.in: Source
325 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
326 that the --grub-probe option will work.
327 * util/sparc64/ieee1275/grub-install.in: Likewise.
329 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
331 * configure.ac: Bump version to 1.97~beta4.
333 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
335 Resync grub-mkdevicemap in x86_64-efi.
337 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
338 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
341 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
343 * util/grub-editenv.c (create_envblk_file): Write new block with a
344 .new suffix and then rename it into place, to ensure atomic
347 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
349 Do not automatically install headers.
351 * Makefile.in (include_DATA): Remove. Update all users.
353 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
355 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
356 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
358 * util/osdetect.lua: Remove.
359 * script/lua/lauxlib.c: Likewise.
360 * script/lua/ldebug.c: Likewise.
361 * script/lua/grub_main.c: Likewise.
362 * script/lua/lauxlib.h: Likewise.
363 * script/lua/ldebug.h: Likewise.
364 * script/lua/ltablib.c: Likewise.
365 * script/lua/liolib.c: Likewise.
366 * script/lua/lstrlib.c: Likewise.
367 * script/lua/lualib.h: Likewise.
368 * script/lua/ldo.c: Likewise.
369 * script/lua/ldump.c: Likewise.
370 * script/lua/ldo.h: Likewise.
371 * script/lua/loslib.c: Likewise.
372 * script/lua/lundump.c: Likewise.
373 * script/lua/grub_lib.c: Likewise.
374 * script/lua/ldblib.c: Likewise.
375 * script/lua/lundump.h: Likewise.
376 * script/lua/lmem.c: Likewise.
377 * script/lua/grub_lib.h: Likewise.
378 * script/lua/lmathlib.c: Likewise.
379 * script/lua/lstate.c: Likewise.
380 * script/lua/ltm.c: Likewise.
381 * script/lua/lvm.c: Likewise.
382 * script/lua/lmem.h: Likewise.
383 * script/lua/lstate.h: Likewise.
384 * script/lua/ltm.h: Likewise.
385 * script/lua/ltable.c: Likewise.
386 * script/lua/lvm.h: Likewise.
387 * script/lua/llex.c: Likewise.
388 * script/lua/lgc.c: Likewise.
389 * script/lua/grub_lua.h: Likewise.
390 * script/lua/loadlib.c: Likewise.
391 * script/lua/lfunc.c: Likewise.
392 * script/lua/lopcodes.c: Likewise.
393 * script/lua/lparser.c: Likewise.
394 * script/lua/ltable.h: Likewise.
395 * script/lua/llex.h: Likewise.
396 * script/lua/lgc.h: Likewise.
397 * script/lua/lfunc.h: Likewise.
398 * script/lua/lbaselib.c: Likewise.
399 * script/lua/lopcodes.h: Likewise.
400 * script/lua/lparser.h: Likewise.
401 * script/lua/lzio.c: Likewise.
402 * script/lua/linit.c: Likewise.
403 * script/lua/lobject.c: Likewise.
404 * script/lua/llimits.h: Likewise.
405 * script/lua/lstring.c: Likewise.
406 * script/lua/lzio.h: Likewise.
407 * script/lua/lapi.c: Likewise.
408 * script/lua/lcode.c: Likewise.
409 * script/lua/lua.h: Likewise.
410 * script/lua/lobject.h: Likewise.
411 * script/lua/lstring.h: Likewise.
412 * script/lua/lapi.h: Likewise.
413 * script/lua/lcode.h: Likewise.
414 * script/lua/luaconf.h: Likewise.
416 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
418 * docs/grub.texi (Command-line and menu entry commands): Document
419 date and echo commands.
421 2009-09-24 Pavel Roskin <proski@gnu.org>
423 * include/grub/kernel.h (struct grub_module_header): Remove
424 `grub_module_header_types'. Make `type' unsigned. Make `size'
425 32-bit on all platforms.
426 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
427 8-bit field. Use grub_host_to_target32() for `size'.
428 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
429 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
430 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
432 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
434 Fix "lost keypress" bug in at_keyboard.
436 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
437 Checks for readyness of input buffer (without flushing it).
438 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
439 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
441 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
443 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
444 size check within GRUB_MACHINE_PCBIOS section.
446 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
448 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
450 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
451 KEYBOARD_ISREADY check.
452 (grub_at_keyboard_checkkey): Rename to ...
453 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
454 Remove gratuitous cast.
456 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
458 * configure.ac: Call AC_PROG_MKDIR_P.
459 * Makefile.in (docs/stamp-vti): Create docs directory. Create
460 version.texi in $(builddir) rather than $(srcdir).
461 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
462 to makeinfo's @include search path.
464 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
466 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
468 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
470 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
473 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
475 Build info documentation. Some code borrowed from Automake.
477 * configure.ac: Check for makeinfo.
478 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
479 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
481 (MOSTLYCLEANFILES): Add vti.tmp.
482 (docs/version.texi, docs/stamp-vti): Update automatically.
483 (docs/grub.info): Build info documentation. Use --force and ignore
485 (all-local): Add $(INFOS).
486 (install-local): Install info files.
487 (uninstall): Uninstall info files.
488 * docs/version.texi: Remove from revision control. This file is
489 automatically generated on build now.
490 * gendistlist.sh: Add `*.info'.
492 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
494 * kern/term.c: Fix indentation.
496 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
498 * util/hostdisk.c: Fix a comment.
500 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
502 Fix regression introduced in r2539.
504 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
507 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
509 * util/grub.d/30_os-prober.in: Don't throw away stderr from
510 os-prober. Under normal operation, it does not print anything to
511 stderr; if it does, we need to debug it, and throwing away stderr
512 makes that excessively difficult.
514 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
516 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
518 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
520 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
521 AC_LANG_PROGRAM from autoconf.
522 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
523 prototypes (fixes warning).
525 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
526 `--disable-werror' was used.
528 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
530 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
531 uninitialized `lastaddr'.
533 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
535 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
537 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
539 * commands/test.c (get_fileinfo): Return immediately if
542 2009-09-14 José MartÃnez <xosemp@gmail.com>
544 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
546 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
548 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
551 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
553 * configure.ac: Remove --enable-grub-pe2elf. Only build
554 grub-pe2elf when needed by the build system itself.
555 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
557 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
559 * configure.ac: Bump version to 1.97~beta3.
560 * docs/version.texi: Likewise.
562 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
564 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
565 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
567 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
568 (grub_linux_setup_video): ... to here (with some adjustments).
570 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
572 Fix memory corruption issue (spotted by Colin Watson).
574 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
575 causing returned size to be stored in an incorrect memory location.
576 Fix use of uninitialized value when storing the returned size.
578 2009-09-12 Yves Blusseau <blusseau@zetam.org>
580 Change clean rules to properly remove files
582 * genmk.rb: add new clean rules
583 * Makefile.in (clean): add the new targets
584 (mostlyclean): likewise
586 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
588 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
590 * fs/ntfs.c (init_file): Understand 64-bit sizes for
593 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
595 * configure.ac: Don't look for help2man when cross-compiling. Fixes
598 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
600 * util/grub-mkconfig.in: Make the created config mode 400 and
601 print a warning if it fails.
603 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
605 * util/grub.d/40_custom.in: Ask user to type custom entries below
606 comment, rather than below 'exec tail' line.
608 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
610 * util/grub.d/40_custom.in: Make sure that the explanatory text is
613 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
615 * util/grub.d/40_custom.in: Make it a little clearer how to use this
618 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
620 * docs/grub.cfg: Add an example menu entry for memtest86+.
622 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
624 * config.guess: Update to latest version from config git.
625 * config.sub: Likewise.
627 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
629 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
630 unknown-command case. Fixes bug #27320.
632 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
634 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
635 `help' if the command exists.
637 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
639 * INSTALL: Require GCC 4.1.3 or later.
641 2009-09-06 Yves Blusseau <blusseau@zetam.org>
643 * Makefile.in (RMKFILES): add i386-qemu.rmk
644 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
647 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
649 * util/grub-probe.c (probe): Comment out buggy codepath, which
650 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
651 should be re-enabled after 1.97.
653 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
655 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
658 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
660 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
661 unnecessary calls to grub_error.
663 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
665 * NEWS: Mention `keystatus' and Unicode fonts.
667 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
669 * configure.ac: Bump version to 1.97~beta2.
670 * docs/version.texi: Likewise.
672 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
674 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
675 containing unwind information in some cases where it previously did
676 not. Use -fno-dwarf2-cfi-asm if available to restore the old
677 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
680 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
682 Embedding loadenv module into grub-emu
684 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
686 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
687 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
688 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
689 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
690 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
691 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
693 2009-09-03 Magnus Granberg <zorry@ume.nu>
695 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
696 include -fPIE in the default specs.
697 * configure.ac: Check if pie_possible is yes and add -fno-PIE
700 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
702 * INSTALL: Note that GNU Bison 2.3 or later is required.
704 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
706 * kern/i386/pc/startup.S: Fix typo.
708 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
710 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
713 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
715 * docs/grub.texi (Naming convention): Describe one-based partition
717 (Device syntax): Likewise.
718 (File name syntax): Likewise.
719 (Block list syntax): Likewise.
720 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
722 (File name syntax): Likewise.
723 (Command-line and menu entry commands): Document acpi, blocklist,
724 crc, export, insmod, keystatus, ls, set, and unset commands.
726 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
728 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
729 to avoid implying that only one of --shift, --ctrl, or --alt may be
732 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
734 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
735 rather than comparing against S_IFREG, which will almost never work.
737 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
739 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
740 (write_blocklists): Likewise.
742 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
744 * script/lua/grub_lua.h (fputs): Supply a format string as the first
745 argument to grub_printf.
747 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
749 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
752 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
754 * kern/file.c (grub_file_read): Spelling fix
756 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
758 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
759 loading of headers in some cases.
761 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
763 * configure.ac: Bump version to 1.97~beta1.
764 * docs/version.texi: Likewise.
766 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
768 * include/grub/i386/xnu.h: Add license header.
769 include grub/err.h explicitly.
771 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
773 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
774 to `ufs' in the vfs.root.mountfrom kernel parameter.
776 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
778 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
780 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
781 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
783 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
786 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
788 * kern/file.c (grub_file_read): Check offset.
789 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
790 * fs/jfs.c (grub_jfs_read_file): Likewise.
791 * fs/ntfs.c (grub_ntfs_read): Likewise.
792 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
793 * fs/minix.c (grub_minix_read_file): Correct offset check.
794 * fs/ufs.c (grub_ufs_read_file): Likewise.
796 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
798 * term/i386/pc/console.c (bios_data_area): Cast
799 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
801 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
803 1-bit optimised blitters.
805 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
807 (grub_video_fbblit_replace_24bit_1bit): Likewise.
808 (grub_video_fbblit_replace_16bit_1bit): Likewise.
809 (grub_video_fbblit_replace_8bit_1bit): Likewise.
810 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
811 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
812 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
813 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
815 (grub_video_fbblit_replace_24bit_1bit): Likewise.
816 (grub_video_fbblit_replace_16bit_1bit): Likewise.
817 (grub_video_fbblit_replace_8bit_1bit): Likewise.
818 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
819 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
820 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
821 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
823 * video/video.c (grub_video_get_blit_format): Return
824 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
826 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
828 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
829 the first argument to grub_printf.
831 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
832 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
834 Add `getkeystatus' terminal method. Add a new `keystatus' command
837 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
838 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
839 modifier key bitmasks.
840 (struct grub_term_input): Add `getkeystatus' member.
841 (grub_getkeystatus): Add prototype.
842 * kern/term.c (grub_getkeystatus): New function.
844 * include/grub/i386/pc/memory.h
845 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
846 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
848 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
849 (grub_console_term_input): Set `getkeystatus' member.
850 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
852 (grub_usb_keyboard_getreport): Likewise.
853 (grub_usb_keyboard_checkkey): Likewise.
854 (grub_usb_keyboard_getkeystatus): New function.
855 (grub_usb_keyboard_term): Set `getkeystatus' member.
857 * commands/keystatus.c: New file.
858 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
859 (keystatus_mod_SOURCES): New variable.
860 (keystatus_mod_CFLAGS): Likewise.
861 (keystatus_mod_LDFLAGS): Likewise.
862 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
863 commands/keystatus.c.
864 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
865 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
866 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
868 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
869 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
871 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
873 Split befs.mod and afs.mod into *_be.mod and *.mod
875 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
876 (grub_fstest_SOURCES): Likewise.
877 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
878 (afs_be_mod_SOURCES): New variable.
879 (afs_be_mod_CFLAGS): Likewise.
880 (afs_be_mod_LDFLAGS): Likewise.
881 (befs_be_mod_SOURCES): Likewise.
882 (befs_be_mod_CFLAGS): Likewise.
883 (befs_be_mod_LDFLAGS): Likewise.
884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
885 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
886 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
887 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
888 (grub_emu_SOURCES): Likewise.
889 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
890 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
891 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
892 * fs/afs_be.c: New file.
893 * fs/befs_be.c: New file.
894 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
895 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
896 (U16): Replaced with ...
897 (grub_afs_to_cpu16): ...this. All users updated.
898 (U32): Replaced with ...
899 (grub_afs_to_cpu32): ...this. All users updated.
900 (U64): Replaced with ...
901 (grub_afs_to_cpu64): ...this. All users updated.
902 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
903 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
904 (grub_afs_validate_sblock): Check only one endianness.
905 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
906 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
907 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
908 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
909 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
910 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
911 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
912 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
914 2009-08-26 Bean <bean123ch@gmail.com>
916 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
918 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
919 (grub_xfs_inode_block): Change return type to grub_uint64_t.
920 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
922 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
924 NetBSD memory map support.
926 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
927 (grub_netbsd_btinfo_mmap_header): New structure.
928 (grub_netbsd_btinfo_mmap_entry): Likewise.
929 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
931 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
933 Enable bsd.mod on coreboot.
935 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
936 (bsd_mod_SOURCES): New variable.
937 (bsd_mod_CFLAGS): Likewise.
938 (bsd_mod_LDFLAGS): Likewise.
939 (bsd_mod_ASFLAGS): Likewise.
940 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
941 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
943 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
945 Cleanup NetBSD root support.
947 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
951 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
953 * util/grub.d/00_header.in: Move check for the video backend of
954 gfxterm from here ...
955 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
956 a suitable video backend.
958 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
960 Fix breakage in grub-setup.
962 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
963 "msdos_partition_map".
965 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
967 Fix breakage in normal/auth.c.
969 * normal/auth.c (grub_iswordseparator): New function.
971 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
973 Authentication support.
975 * commands/password.c: New file.
976 * conf/common.rmk (pkglib_MODULES): Add password.mod.
977 (password_mod_SOURCES): New variable.
978 (password_mod_CFLAGS): Likewise.
979 (password_mod_LDFLAGS): Likewise.
980 (normal_mod_SOURCES): Add normal/auth.c.
981 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
983 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
984 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
985 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
987 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
988 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
989 * include/grub/auth.h: New file.
990 * include/grub/err.h (grub_err_t): New enum value
991 GRUB_ERR_ACCESS_DENIED.
992 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
994 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
995 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
997 * normal/auth.c: New file.
998 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
999 (grub_cmdline_run): Don't allow to go to command line without
1001 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
1002 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
1003 menuentry without superuser rights.
1004 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
1005 user isn't a superuser.
1007 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1009 Save space by inlining misc.c functions.
1011 * kern/misc.c (grub_iswordseparator): Made static.
1012 * kern/misc.c (grub_strcat): Moved from here ...
1013 * include/grub/misc.h (grub_strcat): ... here. Inlined.
1014 * kern/misc.c (grub_strncat): Moved from here ...
1015 * include/grub/misc.h (grub_strncat): ... here. Inlined.
1016 * kern/misc.c (grub_strcasecmp): Moved from here ...
1017 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
1018 * kern/misc.c (grub_strncasecmp): Moved from here ...
1019 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
1020 * kern/misc.c (grub_isalpha): Moved from here ...
1021 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
1022 * kern/misc.c (grub_isdigit): Moved from here ...
1023 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
1024 * kern/misc.c (grub_isgraph): Moved from here ...
1025 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
1026 * kern/misc.c (grub_tolower): Moved from here ...
1027 * include/grub/misc.h (grub_tolower): ... here. Inlined.
1029 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1031 * script/sh/function.c (grub_script_function_find): Cut error message
1032 not to flood terminal.
1033 * script/sh/lexer.c (grub_script_yylex): Remove command line length
1035 * script/sh/script.c (grub_script_arg_add): Duplicate string.
1037 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
1039 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
1040 `report' grub_uint8_t *.
1041 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
1042 Use a 50-millisecond timeout rather than just repeating
1043 grub_usb_keyboard_getreport 50 times.
1044 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
1046 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1048 Rename *_partition_map to part_*
1050 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1051 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1052 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1053 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1055 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1057 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1058 * util/grub-probe.c (probe_partmap): Don't transform partition name
1061 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1063 Fix OpenBSD and NetBSD support.
1065 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1066 memory address conflict.
1067 (OPENBSD_MMAP_ACPI): New definition.
1068 (OPENBSD_MMAP_NVS): Likewise.
1069 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1070 and OPENBSD_MMAP_NVS.
1071 Add memory map terminator
1072 Explicit cast when calling grub_unix_real_boot.
1073 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1075 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1077 Let user specify NetBSD root device.
1079 * loader/i386/bsd.c (netbsd_root): New variable.
1080 (netbsd_opts): New option 'root'.
1081 (NETBSD_ROOT_ARG): New macro.
1082 (grub_netbsd_boot): Use 'netbsd_root'.
1083 (grub_bsd_unload): Free 'netbsd_root'.
1084 (grub_cmd_netbsd): Fill 'netbsd_root'.
1086 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1088 Support for 64-bit NetBSD.
1090 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1091 point when booting non-FreeBSD.
1093 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1095 Support --no-smp and --no-acpi for NetBSD.
1097 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1098 (NETBSD_AB_NOACPI): Likewise.
1099 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1100 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1102 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1104 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1106 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1107 errors. Call grub_error when needed.
1109 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1111 * commands/search.c (search_fs): Try searching without autoload first.
1112 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1113 filesystem module explicitly for faster booting.
1115 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1117 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1119 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1121 * util/grub.d/30_os-prober.in: Disable os-prober if
1122 `GRUB_DISABLE_OS_PROBER' was set to true.
1124 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1126 * partmap/pc.c: Rename to ...
1127 * partmap/msdos.c: ... this. Update all users.
1128 (grub_pc_partition_map): Rename to ...
1129 (grub_msdos_partition_map): ... this. Update all users.
1131 * parttool/pcpart.c: Rename to ...
1132 * parttool/msdospart.c: ... this. Update all users.
1134 * include/grub/pc_partition.h: Rename to ...
1135 * include/grub/msdos_partition.h: ... this. Update all users.
1136 (grub_pc_partition_bsd_entry): Rename to ...
1137 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1138 (grub_pc_partition_disk_label): Rename to ...
1139 (grub_msdos_partition_disk_label): ... this. Update all users.
1140 (grub_pc_partition_entry): Rename to ...
1141 (grub_msdos_partition_entry): ... this. Update all users.
1142 (grub_pc_partition_mbr): Rename to ...
1143 (grub_msdos_partition_mbr): ... this. Update all users.
1144 (grub_pc_partition): Rename to ...
1145 (grub_msdos_partition): ... this. Update all users.
1146 (grub_pc_partition_is_empty): Rename to ...
1147 (grub_msdos_partition_is_empty): ... this. Update all users.
1148 (grub_pc_partition_is_extended): Rename to ...
1149 (grub_msdos_partition_is_extended): ... this. Update all users.
1150 (grub_pc_partition_is_bsd): Rename to ...
1151 (grub_msdos_partition_is_bsd): ... this. Update all users.
1153 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1154 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1155 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1156 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1157 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1158 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1159 (gpt_mod_LDFLAGS): Rename to ...
1160 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1161 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1162 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1163 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1164 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1165 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1166 (part_gpt_mod_LDFLAGS): ... this.
1167 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1168 `pcpart.mod' to `msdospart.mod'.
1169 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1171 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1172 (msdospart_mod_LDFLAGS): ... this.
1174 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1176 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1177 (openbsd_opts): Likewise.
1178 (netbsd_opts): Likewise.
1179 (freebsd_flags): Added 0 terminator.
1180 (openbsd_flags): Likewise.
1181 (netbsd_flags): Likewise.
1182 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1183 (grub_cmd_freebsd): Transformed into extended command.
1184 (grub_cmd_openbsd): Likewise.
1185 (grub_cmd_netbsd): Likewise.
1186 (cmd_freebsd): Changed type to grub_extcmd_t.
1187 (cmd_openbsd): Likewise.
1188 (cmd_netbsd): Likewise.
1189 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1190 grub_cmd_openbsd as extended commands.
1191 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1192 cmd_netbsd and cmd_openbsd
1194 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1196 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1198 2009-08-21 Pavel Roskin <proski@gnu.org>
1200 * Makefile.in (install-local): When checking if a file is in the
1201 build directory, use "test -e" to detect symlinks.
1203 * Makefile.in (install-local): Remove all files in
1204 $(DESTDIR)$(pkglibdir) before installing new files there.
1206 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1208 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1211 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1213 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1214 explicitly specified by the user.
1216 2009-08-18 Pavel Roskin <proski@gnu.org>
1218 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1219 grub_uint8_t pointer for data.
1220 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1222 * video/fb/fbutil.c: Remove unnecessary casts.
1224 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1228 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1229 (grub_vbe_set_video_mode): Save active mode info
1230 only after setting the mode.
1231 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1234 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1236 Rename variables for clarity.
1238 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1239 (active_vbe_mode_info): ... this. All users updated.
1240 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1242 (initial_mode): Rename to ...
1243 (initial_vbe_mode): ... this. All users updated.
1244 (mode_in_use): Rename to ..
1245 (vbe_mode_in_use): ... this. All users updated.
1246 (mode_list): Rename to ..
1247 (vbe_mode_list): ... this. All users updated.
1248 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1249 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1250 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1251 'mode_list_size' to 'vbe_mode_list_size'.
1252 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1253 'best_mode_info' to 'best_vbe_mode_info' and
1254 'best_mode' to 'best_vbe_mode'
1256 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1258 Remove duplicate grub_video_fb_get_video_ptr.
1260 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1261 (grub_video_fb_get_video_ptr): ... this.
1262 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1263 * video/fb/fbutil.c: Add comment about addressing.
1264 (get_data_ptr): Rename to ...
1265 (grub_video_fb_get_video_ptr): ... this. All users updated.
1266 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1268 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1270 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1271 grub_dprintf() that was just added.
1273 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1275 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1276 (DEFAULT_VIDEO_MODE): Remove macros.
1277 (grub_linux_boot): Remove assumption that Linux has FB support,
1278 and use "text" as default video mode.
1280 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1282 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1284 * fs/fat.c (grub_fat_read_data): Likewise.
1286 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1288 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1290 (grub_module): Likewise.
1292 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1294 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1295 mbi->cmdline but free playground.
1297 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1299 Handle group offset on UFS1.
1301 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1302 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1304 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1306 Split ufs.mod into ufs1.mod and ufs2.mod.
1308 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1309 (grub_fstest_SOURCES): Likewise.
1310 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1311 (ufs_mod_SOURCES): Remove.
1312 (ufs_mod_CFLAGS): Likewise.
1313 (ufs_mod_LDFLAGS): Likewise.
1314 (ufs1_mod_SOURCES): New variable.
1315 (ufs1_mod_CFLAGS): Likewise.
1316 (ufs1_mod_LDFLAGS): Likewise.
1317 (ufs2_mod_SOURCES): New variable.
1318 (ufs2_mod_CFLAGS): Likewise.
1319 (ufs2_mod_LDFLAGS): Likewise.
1320 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1321 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1323 (grub_emu_SOURCES): Likewise.
1324 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1325 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1326 (grub_setup_SOURCES): Likewise.
1327 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1328 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1329 (grub_setup_SOURCES): Likewise.
1330 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1332 * fs/ufs2.c: New file.
1333 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1335 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1339 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1340 subsystem at the end.
1341 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1342 (video_fb_mod_SOURCES): New variable.
1343 (video_fb_mod_CFLAGS): Likewise.
1344 (video_fb_mod_LDFLAGS): Likewise.
1345 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1346 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1347 * video/i386/pc/vbeblit.c: Moved from here ...
1348 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1349 * video/i386/pc/vbefill.c: Moved from here ...
1350 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1351 * video/i386/pc/vbeutil.c: Moved from here ...
1352 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1353 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1354 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1355 * include/grub/i386/pc/vbefill.h: Moved from here ...
1356 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1357 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1358 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1359 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1360 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1361 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1362 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1363 (grub_video_adapter): Added 'get_info_and_fini'.
1364 (grub_video_get_info_and_fini): New prototype.
1365 (grub_video_set_mode): make modestring const char *.
1366 * loader/i386/linux.c (grub_linux_setup_video): Use
1367 grub_video_get_info_and_fini.
1368 (grub_linux_boot): Move modesetting just before booting.
1369 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1370 grub_video_get_info_and_fini.
1371 * video/i386/pc/vbe.c: Moved framebuffer part ...
1372 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1373 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1374 grub_video_fbstd_colors and grub_video_fb_set_palette.
1375 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1377 (grub_video_vbe_fini): Use grub_video_fb_fini.
1378 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1379 render_target and use grub_video_fb_set_active_render_target and
1380 grub_video_fb_set_palette.
1381 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1382 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1383 (grub_video_vbe_adapter): Use framebuffer.
1384 * video/video.c (grub_video_get_info_and_fini): New function.
1385 (grub_video_set_mode): Make modestring const char *.
1386 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1387 values are already initialised.
1389 2009-08-14 Pavel Roskin <proski@gnu.org>
1391 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1393 * boot/i386/pc/diskboot.S: Likewise.
1394 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1395 sectors allow compilation on MacOSX.
1396 * conf/i386-pc.rmk: Enable unconditional compilation of
1399 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1401 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1402 * util/grub.d/00_header.in: Enter interruptible sleep if
1403 GRUB_HIDDEN_TIMEOUT is set.
1405 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1407 * include/grub/symbol.h: Add the LOCAL macro.
1408 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1411 2009-08-13 Pavel Roskin <proski@gnu.org>
1413 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1414 any modern compilers we support.
1416 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1417 Use local labels starting with "L_" so that Apple assembler
1418 knows they are local.
1420 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1422 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1423 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1424 (bsd_kernel_types): ... this enum.
1426 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1427 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1428 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1430 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1431 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1432 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1435 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1437 * util/grub-dumpdevtree: Moved from here ...
1438 * util/i386/efi/grub-dumpdevtree: ... to here.
1439 (hexify): New function. Converts a string to its hex version.
1440 Generate hex versions of "efi" and "device-properties" by calling
1441 hexify() on the ASCII strings rather than by hardcoding numbers.
1443 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1445 * fs/jfs.c: Update copyright year.
1447 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1449 * util/grub.d/00_header.in: Fix a comment.
1450 * util/grub.d/10_linux.in: Likewise.
1451 * util/grub.d/10_windows.in: Likewise.
1452 * util/grub.d/10_hurd.in: Likewise.
1454 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1456 * util/grub-mkconfig.in: Allow the user to specify the used font
1459 2009-08-08 Pavel Roskin <proski@gnu.org>
1461 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1462 available, xfs.mod needs it now.
1464 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1465 the "g" modifier in sed when the intention is to strip something
1466 once. This fixes comparison of kernels with multiple dashes.
1468 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1469 on it. Add missing space before closing bracket. Fix
1470 misleading formatting.
1472 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1474 * docs/grub.texi: Major overhaul. Remove all sections that are
1475 specific to GRUB Legacy, or mostly composed of Legacy-specific
1478 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1480 * docs/version.texi: New file. Provides version information for
1483 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1485 * docs/grub.texi: Update CVS information to SVN.
1486 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1488 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1490 * util/grub-mkconfig.in: Remove a wrong `fi'.
1492 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1494 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1495 (grub_jfs_uuid): New function.
1496 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1498 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1500 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1502 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1503 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1505 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1507 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1508 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1511 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1512 not just "vmlinu[zx]".
1514 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1517 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1518 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1521 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1523 * util/grub.d/10_freebsd.in: Use an absolute device path for
1524 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1526 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1528 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1529 handling of multiple abstraction modules.
1531 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1533 Fix a bug resulting in black screen when loading Linux using a
1536 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1539 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1540 (grub_vbe_bios_getset_dac_palette_width): New function.
1541 (grub_vbe_bios_get_dac_palette_width)
1542 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1543 grub_vbe_bios_getset_dac_palette_width()).
1545 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1546 check for return status.
1547 (grub_vbe_get_video_mode_info): When getting information for a packed
1548 mode (<= 8 bpp), obtain DAC palette width using
1549 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1550 {red,green,blue}_mark_size.
1552 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1554 * commands/search.c (options): Fix help output to match actual code.
1556 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1558 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1561 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1563 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1566 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1568 Support Apple partition map with sector size different from 512 bytes.
1570 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1571 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1572 and 'apart.partmap_size'.
1574 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1575 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1579 * commands/i386/cpuid.c (options): New variable.
1580 (grub_cmd_cpuid): Return real error.
1581 (GRUB_MOD_INIT(cpuid)): Declare options.
1583 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1585 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1588 2009-07-31 Bean <bean123ch@gmail.com>
1590 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1592 (grub_fshelp_node): Move inode field to the end.
1593 (grub_xfs_data): Remove inode field.
1594 (grub_xfs_inode_block): Calculate inode size using sblock.
1595 (grub_xfs_inode_offset): Likewise.
1596 (grub_xfs_read_inode): Calculate inode size using sblock.
1597 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1598 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1599 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1600 to match inode size.
1601 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1602 not accessible when data is null.
1603 (grub_xfs_open): Likewise.
1605 2009-07-31 Bean <bean123ch@gmail.com>
1607 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1608 Don't change pv->disk if it's already set.
1610 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1611 (grub_raid_register): ... here.
1612 (grub_raid_rescan): Removed.
1614 * include/grub/raid.h (grub_raid_rescan): Removed.
1616 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1617 (fstest): Replace grub_raid_rescan with module fini function followed
1620 * util/grub-probe.c: Add include file <grub/raid.h>.
1621 (probe_raid_level): New function.
1622 (probe): Detect abstraction by walking the disk device, support two
1623 level of abstraction (LVM on RAID) when detecting partition map.
1625 2009-07-31 Pavel Roskin <proski@gnu.org>
1627 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1628 to grub_zalloc(), it was erroneous.
1629 Reported by Bean <bean123ch@gmail.com>
1631 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1633 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1634 embedding zone, not only the first one.
1636 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1638 * term/gfxterm.c (clear_char): New function.
1639 (grub_virtual_screen_setup): Use clear_char.
1640 (scroll_up): Likewise.
1641 (grub_virtual_screen_cls): Likewise.
1643 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1645 * util/deviceiter.c (get_acceleraid_disk_name): New static
1647 (grub_util_iterate_devices): Handle Accelraid devices.
1648 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1650 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1652 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1653 separator for the suggested gfxpayload string (';' collides with the
1654 parser and needs escaping).
1656 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1658 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1659 Clear direction flag before jumping to OS.
1660 (grub_multiboot2_real_boot): Likewise.
1662 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1664 * util/i386/pc/grub-install: Fix parsing of --disk-module
1667 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1669 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1672 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1674 * util/grub-mkconfig.in (package_version): New variable.
1675 Use it do display the version.
1677 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1679 * kern/file.c (grub_file_open): Revert to previous check with
1682 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1684 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1685 from help line. It's out of sync with code.
1687 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1689 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1690 entries on failed boot.
1692 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1694 * kern/file.c (grub_file_open): Fix an error check.
1696 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1698 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1699 partition map couldn't be identified.
1701 2009-07-23 Pavel Roskin <proski@gnu.org>
1703 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1704 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1705 case of little endian words becomes just an optimization.
1706 Respect const modifier.
1707 (md5_final): Use code that doesn't depend on endianness.
1709 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1710 to avoid loss of upper bits if align is unsigned and shorter
1713 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1715 UUID support for UFS
1717 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1718 (grub_ufs_uuid): New function.
1719 (grub_ufs_fs): add .uuid
1721 2009-07-21 Pavel Roskin <proski@gnu.org>
1723 * kern/dl.c (grub_dl_check_header): Make static.
1725 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1727 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1728 add drivemap for Vista. It breaks Windows 7.
1730 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1732 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1735 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1739 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1740 (grub_fstest_SOURCES): Likewise.
1741 (pkglib_MODULES): Add befs.mod.
1742 (befs_mod_SOURCES): New variable.
1743 (befs_mod_CFLAGS): Likewise.
1744 (befs_mod_LDFLAGS): Likewise.
1745 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1746 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1747 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1748 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1749 (grub_setup_SOURCES): Likewise.
1750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1751 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1752 (grub_setup_SOURCES): Likewise.
1753 * fs/befs.c: New file.
1754 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1755 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1756 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1757 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1758 (B_KEY_INDEX_ALIGN): New declaration.
1759 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1760 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1761 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1762 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1763 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1764 (grub_afs_mount) [MODE_BFS]: Likewise.
1765 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1766 (grub_afs_fs): Use GRUB_AFS_FSNAME
1767 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1768 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1769 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1770 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1772 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1774 * util/getroot.c (find_root_device): Add support for MacOSX.
1775 * util/hostdisk.c: Likewise.
1777 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1779 * font/font.c (find_glyph): Check whether a font is present to avoid
1782 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1784 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1786 2009-07-20 Pavel Roskin <proski@gnu.org>
1788 * configure.ac: Trim excessively wordy excuses.
1790 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1792 Add symlink, mtime and label support to AtheFS.
1794 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1795 (grub_afs_iterate_dir): Handle symlinks.
1796 (grub_afs_open): Use grub_afs_read_symlink.
1797 (grub_afs_dir): Likewise.
1799 (grub_afs_label): New function.
1800 (grub_afs_fs): Add grub_afs_label.
1801 (grub_afs_read_symlink): New function.
1803 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1807 * fs/afs.c: Fix comments style.
1808 (grub_afs_blockrun): Declare as packed.
1809 (grub_afs_datastream): Likewise.
1810 (grub_afs_bnode): Likewise.
1811 (grub_afs_btree): Likewise.
1812 (grub_afs_sblock): Likewise.
1813 Declare `name' as char.
1814 (grub_afs_inode): Declare as packed.
1815 Change void *vnode to grub_uint32_t unused.
1816 (grub_afs_iterate_dir): Check that key_size is positive.
1817 (grub_afs_mount): Don't read superblock twice.
1818 (grub_afs_dir): Don't free node in case of error,
1819 grub_fshelp_find_file already handles this.
1820 (grub_afs_open): Likewise.
1822 2009-07-19 Pavel Roskin <proski@gnu.org>
1824 * Makefile.in: Remove LIBLZO and enable_lzo.
1825 * conf/i386-pc.rmk: Remove lzo support.
1826 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1827 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1829 * kern/i386/pc/lzo1x.S: Remove.
1830 * kern/i386/pc/startup.S: Remove lzo support.
1831 * util/i386/pc/grub-mkimage.c: Likewise.
1833 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1835 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1836 * fs/xfs.c (grub_xfs_dir): Likewise.
1837 * fs/afs.c (grub_afs_dir): Likewise.
1838 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1839 (grub_iso9660_open): Likewise.
1840 * fs/jfs.c (grub_jfs_open): Likewise.
1841 * fs/ext2.c (grub_ext2_dir): Likewise.
1842 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1843 * script/sh/lexer.c (grub_script_yylex): Likewise.
1845 2009-07-16 Pavel Roskin <proski@gnu.org>
1847 * configure.ac: Never add "-c" to CFLAGS.
1849 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1851 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1852 grub_cv_cc_efiemu should be used.
1854 * configure.ac: Typo fixes.
1856 * kern/mm.c (grub_zalloc): New function.
1857 (grub_debug_zalloc): Likewise.
1858 * include/grub/mm.h: Declare grub_zalloc() and
1859 grub_debug_zalloc().
1860 * util/misc.c (grub_zalloc): New function.
1861 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1862 instead of grub_malloc(), remove unneeded initializations.
1863 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1864 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1865 * commands/parttool.c (grub_cmd_parttool): Likewise.
1866 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1867 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1868 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1869 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1870 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1871 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1872 (grub_cmd_efiemu_pnvram): Likewise.
1873 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1874 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1875 (grub_iso9660_iterate_dir): Likewise.
1876 * fs/jfs.c (grub_jfs_opendir): Likewise.
1877 * fs/ntfs.c (list_file): Likewise.
1878 (grub_ntfs_mount): Likewise.
1879 * kern/disk.c (grub_disk_open): Likewise.
1880 * kern/dl.c (grub_dl_load_core): Likewise.
1881 * kern/elf.c (grub_elf_file): Likewise.
1882 * kern/env.c (grub_env_context_open): Likewise.
1883 (grub_env_set): Likewise.
1884 (grub_env_set_data_slot): Likewise.
1885 * kern/file.c (grub_file_open): Likewise.
1886 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1887 * loader/i386/multiboot.c (grub_module): Likewise.
1888 * loader/xnu.c (grub_xnu_create_key): Likewise.
1889 (grub_xnu_create_value): Likewise.
1890 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1891 (read_config_file): Likewise.
1892 * normal/menu_entry.c (make_screen): Likewise.
1893 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1894 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1895 * script/sh/script.c (grub_script_parse): Likewise.
1896 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1897 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1898 * video/readers/png.c (grub_png_output_byte): Likewise.
1899 (grub_video_reader_png): Likewise.
1901 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1903 Enable all targets that can be built by default
1905 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1906 grub-mkfont and grub-fstest if they can be built
1908 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1910 Fix hang and segmentation fault in grub-emu-usb
1912 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1913 * util/usb.c (grub_libusb_devices): likewise
1914 (grub_libusb_init): rename to ...
1915 (GRUB_MOD_INIT (libusb)):...this
1916 (grub_libusb_fini): rename to ..
1917 (GRUB_MOD_FINI (libusb)):...this
1918 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1919 * include/grub/disk.h (grub_raid_init): removed, it's useless
1920 (grub_raid_fini): likewise
1921 (grub_lvm_init): likewise
1922 (grub_lvm_fini): likewise
1923 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1926 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1930 * Makefile.in (LIBUSB): new macro
1931 * genmk.rb (Utility/print_tail): new method
1932 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1933 (top level): call util.print_tail at the end.
1935 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1937 Make FreeBSD accept zpool.cache
1939 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1940 type is /boot/zfs/zpool.cache
1942 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1946 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1947 correct wrong typedef
1948 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1950 2009-07-15 Pavel Roskin <proski@gnu.org>
1952 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1953 * kern/disk.c (struct grub_disk_cache): Likewise.
1955 * commands/probe.c (options): Typo fix.
1957 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1958 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1960 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1962 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1963 the end of "Error" to make the message more readable.
1965 * boot/i386/pc/boot.S (kernel_segment): Remove.
1966 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1969 * boot/i386/pc/boot.S (boot_version): Remove.
1970 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1973 * include/grub/i386/pc/boot.h: Sort all offsets.
1974 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1975 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1976 * boot/i386/pc/boot.S: Assert location of every offset listed in
1977 include/grub/i386/pc/boot.h.
1979 2009-07-13 Pavel Roskin <proski@gnu.org>
1981 * include/grub/i386/coreboot/machine.h: Rename
1982 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1983 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1984 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1986 * kern/dl.c: Force native word size to suppress warnings when
1989 * kern/device.c (grub_device_iterate): Change struct part_ent to
1990 hold the name, not a pointer to it. Use one grub_malloc() per
1991 partition, not two. Free partition_name if grub_malloc() fails.
1992 Set ents to NULL only before grub_partition_iterate() is called.
1994 2009-07-11 Bean <bean123ch@gmail.com>
1996 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1999 2009-07-10 Bean <bean123ch@gmail.com>
2000 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
2002 * kern/ieee1275/openfw.c (grub_children_iterate)
2003 (grub_devalias_iterate): Fix size evaluation for property or path
2004 strings, which was broken since r2132.
2006 2009-07-07 Pavel Roskin <proski@gnu.org>
2008 * commands/search.c (search_file): Merge into ...
2009 (search_fs): ... this. Accept search type as argument.
2010 (grub_cmd_search): Pass search type to search_fs().
2012 * include/grub/util/console.h: New file.
2013 * util/console.c: Use it instead of grub/machine/console.h.
2014 * util/grub-emu.c: Likewise.
2016 * lib/arg.c (find_long_option): Remove.
2017 (find_long): Add `len' argument, make `s' const char *.
2018 (grub_arg_parse): Parse long options in place, not in a
2021 2009-07-06 Pavel Roskin <proski@gnu.org>
2023 * commands/search.c (search_fs): Fix potential NULL pointer
2026 * commands/search.c (search_fs): Replace QUID macro with quid_fn
2029 2009-07-06 Daniel Mierswa <impulze@impulze.org>
2031 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
2034 2009-07-05 Pavel Roskin <proski@gnu.org>
2036 * include/grub/i386/linux.h (struct linux_kernel_params):
2037 Restore padding3, it's still needed.
2039 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
2041 * util/osdetect.lua: Likewise.
2043 2009-07-05 Bean <bean123ch@gmail.com>
2045 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
2047 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
2048 (grub_lua_getenv): Likewise.
2049 (grub_lua_setenv): Likewise.
2050 (save_errno): New function.
2051 (push_result): Likewise.
2052 (grub_lua_enum_device): Likewise.
2053 (grub_lua_enum_file): Likewise.
2054 (grub_lua_file_open): Likewise.
2055 (grub_lua_file_close): Likewise.
2056 (grub_lua_file_seek): Likewise.
2057 (grub_lua_file_read): Likewise.
2058 (grub_lua_file_getline): Likewise.
2059 (grub_lua_file_getsize): Likewise.
2060 (grub_lua_file_getpos): Likewise.
2061 (grub_lua_file_eof): Likewise.
2062 (grub_lua_file_exist): Likewise.
2063 (grub_lua_add_menu): Likewise.
2065 * script/lua/grub_lua.h (isupper): New inline function.
2066 (islower): Likewise.
2067 (ispunct): Likewise.
2068 (isxdigit): Likewise.
2069 (strcspn): Change to normal function.
2070 (strpbkr): New function declaration.
2073 * script/lua/grub_main.c (scan_str): New function.
2074 (strcspn): Likewise.
2075 (strpbrk): Likewise.
2078 * script/lua/linit.c (lualibs): Enable the string library.
2080 * util/osdetect.lua: New file.
2082 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2084 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2085 `capabilities' member.
2087 2009-07-02 Pavel Roskin <proski@gnu.org>
2089 * genparttoollist.sh: Add missing newline at the end.
2091 2009-07-01 Pavel Roskin <proski@gnu.org>
2093 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2095 * util/hostdisk.c (open_device): Remove `const' from
2096 `sysctl_size', as sysctlbyname() can change it (in this case it
2097 doesn't actually happen).
2099 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2100 using signed long int constants.
2102 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2103 constant to avoid a warning on FreeBSD.
2105 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2108 * Makefile.in: Install include/grub/machine symlink.
2110 * Makefile.in: When installing symlinks, use "cp -fR", which
2111 works on FreeBSD and MacOSX.
2112 From Yves Blusseau <cl7m42e02@sneakemail.com>
2114 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2115 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2117 * util/misc.c: Move grub_reboot() and grub_halt() ...
2118 * util/grub-emu.c: ... here. Make main_env static.
2119 * include/grub/util/misc.h: Remove main_env.
2121 * kern/mm.c: Use correct format to print size_t.
2123 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2124 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2125 * kern/powerpc/dl.c: Likewise.
2126 * kern/sparc64/dl.c: Likewise.
2127 * kern/x86_64/dl.c: Likewise.
2129 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2131 Fix grub-emu build on sparc64-ieee1275.
2133 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2136 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2138 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2139 (grub_reboot, grub_halt): New functions.
2141 * util/i386/pc/misc.c: Delete. Update all users.
2142 * util/sparc64/ieee1275/misc.c: Likewise.
2143 * util/powerpc/ieee1275/misc.c: Likewise.
2145 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2147 * conf/i386.rmk (setjmp_mod_SOURCES)
2148 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2149 * conf/common.rmk (setjmp_mod_SOURCES)
2150 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2151 to use $(target_cpu).
2152 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2153 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2154 * conf/powerpc-ieee1275.rmk: Likewise.
2155 * conf/sparc64-ieee1275.rmk: Likewise.
2157 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2158 $(target_cpu) for kern/$(target_cpu)/dl.c.
2159 * conf/i386-efi.rmk: Likewise.
2160 * conf/i386-ieee1275.rmk: Likewise.
2161 * conf/x86_64-efi.rmk: Likewise.
2162 * conf/i386-coreboot.rmk: Likewise.
2163 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2164 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2165 kern/$(target_cpu)/cache.S.
2166 * conf/sparc64-ieee1275.rmk: Likewise.
2168 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2170 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2171 type to `grub_uint8_t', and adjust `padding9' accordingly.
2173 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2175 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2177 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2178 assembly in final jump, using register constraints.
2180 (grub_linux_boot): For text mode, initialize `have_vga' using
2181 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2183 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2184 right before the final jump.
2186 Set `video_mode' to 0x3.
2188 Document initialization of `video_page', `video_mode' and
2191 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2193 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2194 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2195 and set GRUB_LINUX_FLAG_QUIET appropriately.
2197 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2199 Fix build on Debian / sparc.
2201 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2203 2009-06-28 Pavel Roskin <proski@gnu.org>
2205 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2208 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2210 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2212 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2215 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2219 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2220 file can't be opened. grub_file_open() is already supposed to set
2221 grub_errno / grub_errmsg appropriately.
2222 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2224 2009-06-27 Pavel Roskin <proski@gnu.org>
2225 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2227 * include/grub/dl.h: Include grub/elf.h.
2228 (struct grub_dl): Add symtab field.
2229 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2230 GRUB_MODULES_MACHINE_READONLY.
2231 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2232 of the header for read-only modules.
2233 (grub_dl_unload): Free mod->symtab for read-only modules.
2234 * kern/i386/dl.c: Use mod->symtab.
2235 * kern/powerpc/dl.c: Likewise.
2236 * kern/sparc64/dl.c: Likewise.
2237 * kern/x86_64/dl.c: Likewise.
2239 * conf/i386-qemu.rmk: New file.
2240 * kern/i386/qemu/startup.S: Likewise.
2241 * kern/i386/qemu/mmap.c: Likewise.
2242 * boot/i386/qemu/boot.S: Likewise.
2243 * include/grub/i386/qemu/time.h: Likewise.
2244 * include/grub/i386/qemu/serial.h: Likewise.
2245 * include/grub/i386/qemu/kernel.h: Likewise.
2246 * include/grub/i386/qemu/console.h: Likewise.
2247 * include/grub/i386/qemu/boot.h: Likewise.
2248 * include/grub/i386/qemu/init.h: Likewise.
2249 * include/grub/i386/qemu/machine.h: Likewise.
2250 * include/grub/i386/qemu/loader.h: Likewise.
2251 * include/grub/i386/qemu/memory.h: Likewise.
2253 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2254 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2255 [qemu] (pkglib_IMAGES): Add `boot.img'.
2256 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2257 [qemu] (boot_img_FORMAT): New variables.
2258 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2259 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2260 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2261 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2262 [qemu] (kernel_img_FORMAT): New variables.
2264 * configure.ac: Recognise `i386-qemu'.
2266 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2267 (for no compression).
2268 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2269 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2270 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2271 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2274 2009-06-27 Pavel Roskin <proski@gnu.org>
2276 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2278 * efiemu/prepare32.c: Likewise.
2279 * efiemu/prepare64.c: Likewise.
2281 2009-06-26 Pavel Roskin <proski@gnu.org>
2283 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2284 * include/grub/elf.h: Define symbols without "32" or "64" based
2285 on GRUB_TARGET_WORDSIZE.
2286 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2287 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2289 * efiemu/loadcore64.c: Likewise.
2290 * loader/i386/bsd32.c: Likewise.
2291 * loader/i386/bsd64.c: Likewise.
2292 * kern/dl.c: Remove own ELF definitions.
2293 * util/i386/efi/grub-mkimage.c: Likewise.
2295 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2297 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2298 segment 0x0 unconditionally, because the reference generated by
2299 GAS is an absolute address.
2301 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2303 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2304 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2306 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2308 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2309 indexes. Check for -f explicitly.
2310 (search_file): Improve error message.
2311 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2313 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2315 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2316 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2318 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2320 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2321 * conf/i386-ieee1275.rmk: Likewise.
2322 * conf/i386-coreboot.rmk: Likewise.
2324 * kern/i386/pc/startup.S (grub_stop): Remove function.
2325 * kern/i386/ieee1275/startup.S: Likewise.
2326 * kern/i386/coreboot/startup.S: Likewise.
2327 * kern/i386/misc.S (grub_stop): New function.
2329 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2331 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2332 * kern/i386/realmode.S (real_to_prot): ... to here.
2334 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2336 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2338 (kernel_elf_SOURCES): Rename to ...
2339 (kernel_img_SOURCES): ... this.
2340 (kernel_elf_HEADERS): Rename to ...
2341 (kernel_img_HEADERS): ... this. Update all users.
2342 (kernel_elf_ASFLAGS): Rename to ...
2343 (kernel_img_ASFLAGS): ... this.
2344 (kernel_elf_CFLAGS): Rename to ...
2345 (kernel_img_CFLAGS): ... this.
2346 (kernel_elf_LDFLAGS): Rename to ...
2347 (kernel_img_LDFLAGS): ... this.
2348 * conf/i386-coreboot.rmk: Likewise.
2349 * conf/powerpc-ieee1275.rmk: Likewise.
2351 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2354 2009-06-21 Pavel Roskin <proski@gnu.org>
2356 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2357 to match nested functions.
2358 * loader/sparc64/ieee1275/linux.c: Likewise.
2360 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2362 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2364 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2367 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2369 Fix asm file handling on ELF, and remove workarounds.
2371 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2372 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2373 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2374 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2376 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2378 Load BSD ELF modules
2380 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2381 and loader/i386/bsd64.c
2382 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2383 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2384 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2385 (grub_freebsd_load_elfmodule32): New declaration
2386 (grub_freebsd_load_elfmoduleobj64): Likewise
2387 (grub_freebsd_load_elf_meta32): Likewise
2388 (grub_freebsd_load_elf_meta64): Likewise
2389 (grub_freebsd_add_meta): Likewise
2390 (grub_freebsd_add_meta_module): Likewise
2391 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2392 (grub_freebsd_add_meta_module): Likewise and move module-specific
2393 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2394 (grub_cmd_freebsd): Add elf-kernel specific parts
2395 based on grub_freebsd_add_meta_module
2396 (grub_cmd_freebsd_module): Add type parsing moved from
2397 grub_freebsd_add_meta_module
2398 (grub_cmd_freebsd_module_elf): New function
2399 (cmd_freebsd_module_elf): New variable
2400 (GRUB_MOD_INIT): Register freebsd_module_elf
2401 * loader/i386/bsd32.c: New file
2402 * loader/i386/bsd64.c: Likewise
2403 * loader/i386/bsdXX.c: Likewise
2404 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2405 (grub_elf64_load): Likewise
2406 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2408 (grub_elf64_load_hook_t): Likewise
2410 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2412 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2414 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2415 don't write a menu entry for recovery mode.
2417 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2419 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2420 after it's no longer needed.
2422 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2424 * include/grub/i386/loader.h (grub_linux_prot_size)
2425 (grub_linux_tmp_addr, grub_linux_real_addr)
2426 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2427 GRUB_MACHINE_PCBIOS.
2428 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2429 common grub_util_info() call to ...
2430 (generate_image): ... here.
2431 Fix use of uninitialized memory, comparison of signed with
2432 unsigned integers and memory leak.
2433 Remove bogus module address message.
2435 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2437 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2439 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2441 2009-06-19 Pavel Roskin <proski@gnu.org>
2443 * configure.ac: Remove stray AC_MSG_CHECKING.
2445 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2447 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2449 2009-06-18 Pavel Roskin <proski@gnu.org>
2451 * conf/common.rmk: Add fs_file.mod.
2452 * disk/fs_file.c: New file.
2453 * include/grub/disk.h (enum grub_disk_dev_id): Add
2454 GRUB_DISK_DEVICE_FILE_ID.
2456 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2458 Fix build with Apple's toolchain. Part 2
2460 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2463 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2465 Fix build with Apple's toolchain. Part 1
2467 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2469 * configure.ac: remove a leftover AC_MSG_RESULT
2470 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2473 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2477 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2478 (decomp_block): initialize ch
2479 use grub_memcpy instead of memcpy
2481 2009-06-17 Pavel Roskin <proski@gnu.org>
2483 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2484 version, use declarations needed to use vga_text as the startup
2487 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2488 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2490 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2491 and grub_at_keyboard_fini(), it's done on module load and
2494 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2496 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2497 file can't be found.
2498 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2500 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2502 Fix newline handling
2504 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2505 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2506 (grub_script_yylex): don't segfault on unterminated script
2507 newline terminates command and variable
2509 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2511 avoid double grub_adjust_range call. Bug reported by David Simner
2513 * kern/disk.c (grub_disk_write): change to raw disk access before
2516 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2518 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2519 spaces, for the benefit of help2man.
2520 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2522 2009-06-16 Pavel Roskin <proski@gnu.org>
2524 * kern/i386/halt.c: Include grub/machine/init.h.
2525 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2527 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2529 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2532 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2534 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2537 2009-06-16 Pavel Roskin <proski@gnu.org>
2539 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2540 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2541 save %dx, we only need %dl and we never change it.
2542 * boot/i386/pc/cdboot.S: Don't set the root drive.
2543 * boot/i386/pc/pxeboot.S: Likewise.
2544 * include/grub/i386/pc/boot.h: Remove
2545 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2546 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2547 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2548 * kern/i386/pc/init.c (make_install_device): Remove references
2550 * kern/i386/pc/startup.S: Likewise.
2551 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2553 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2557 * commands/xnu_uuid.c: new file
2558 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2559 (xnu_uuid_mod_SOURCES): new variable
2560 (xnu_uuid_mod_CFLAGS): likewise
2561 (xnu_uuid_mod_LDFLAGS): likewise
2562 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2563 * conf/i386-ieee1275.rmk: likewise
2564 * conf/i386-pc.rmk: likewise
2565 * conf/powerpc-ieee1275.rmk: likewise
2566 * conf/sparc64-ieee1275.rmk: likewise
2567 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2569 2009-06-16 Pavel Roskin <proski@gnu.org>
2571 * configure.ac: Avoid '==' in test command, it's not portable.
2573 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2577 * commands/probe.c: new file
2578 * conf/common.rmk (pkglib_MODULES): add probe.mod
2579 (probe_mod_SOURCES): new variable
2580 (probe_mod_CFLAGS): likewise
2581 (probe_mod_LDFLAGS): likewise
2582 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2583 * conf/i386-ieee1275.rmk: likewise
2584 * conf/i386-pc.rmk: likewise
2585 * conf/powerpc-ieee1275.rmk: likewise
2586 * conf/sparc64-ieee1275.rmk: likewise
2588 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2590 Fix handling of string like \"hello\" and "a
2593 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2594 (grub_script_yylex): fix parsing of quoting, escaping and newline
2596 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2598 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2601 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2603 * util/grub-mkconfig.in: Fix parsing of --output option.
2605 2009-06-12 Pavel Roskin <proski@gnu.org>
2607 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2608 genmk.rb don't need to be generated or installed.
2610 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2612 * commands/i386/pc/drivemap_int13h.S: add more comments
2614 2009-06-11 Pavel Roskin <proski@gnu.org>
2616 * Makefile.in (uninstall): Uninstall manuals.
2618 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2619 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2620 and update-grub_lib in two places.
2621 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2623 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2626 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2627 `entry_lo' to fix variable shadowing.
2629 2009-06-11 Christian Franke <franke@computer.org>
2631 * kern/misc.c (__enable_execute_stack): Add missing return type
2632 to prevent gcc warning.
2634 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2636 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2638 2009-06-11 Pavel Roskin <proski@gnu.org>
2640 * Makefile.in: Don't rely on any scripts being executable.
2641 Always use $(SHELL) to run shell scripts.
2643 * configure.ac: Always define ___main if using -nostdlib. This
2644 fixes tests on Cygwin.
2646 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2650 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2651 is in bytes and not in blocks
2653 2009-06-11 Pavel Roskin <proski@gnu.org>
2655 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2658 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2660 * util/grub.d/30_os-prober.in: Fix a comment. Source
2661 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2662 to set the root device. Place drivemap command in the generated
2665 2009-06-11 Pavel Roskin <proski@gnu.org>
2667 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2668 have long been resolved.
2670 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2672 * util/grub.d/10_linux.in: Capitalise "Linux".
2674 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2676 2009-06-11 Pavel Roskin <proski@gnu.org>
2678 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2679 fix a gcc warning and ensure that the function won't ever exit.
2681 * kern/i386/ieee1275/init.c: Add missing prototype for
2684 * loader/ieee1275/multiboot2.c [__i386__]: Include
2685 grub/cpu/multiboot.h.
2687 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2688 casts to short - they are not portable and cause warnings. Fix
2689 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2691 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2695 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2697 (grub_get_root_biosnumber_saved): new variable
2698 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2699 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2700 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2701 %dx after the call if necessary
2702 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2703 (boot_mod_SOURCES): remove
2704 (boot_mod_CFLAGS): remove
2705 (boot_mod_LDFLAGS): remove
2706 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2707 (boot_mod_SOURCES): new variable
2708 (boot_mod_CFLAGS): likewise
2709 (boot_mod_LDFLAGS): likewise
2710 * conf/i386-efi.rmk: likewise
2711 * conf/i386-ieee1275.rmk: likewise
2712 * conf/i386-pc.rmk: likewise
2713 * conf/powerpc-ieee1275.rmk: likewise
2714 * conf/sparc64-ieee1275.rmk: likewise
2715 * conf/x86_64-efi.rmk: likewise
2716 * include/grub/i386/pc/biosnum.h: new file
2717 * lib/i386/pc/biosnum.c: likewise
2718 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2719 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2720 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2722 2009-06-10 Pavel Roskin <proski@gnu.org>
2724 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2725 Use separate variables. Read only the file size at the end, but
2726 not the checksum that we don't use.
2728 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2731 * kern/ieee1275/openfw.c: Remove libc includes.
2732 * kern/ieee1275/cmain.c: Likewise.
2733 * include/grub/ieee1275/ieee1275.h: Likewise.
2735 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2738 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2740 * Makefile.in: Remove all trailing whitespace.
2741 * conf/i386-pc.rmk: Likewise.
2742 * conf/powerpc-ieee1275.rmk: Likewise.
2743 * conf/sparc64-ieee1275.rmk: Likewise.
2744 * docs/grub.texi: Likewise.
2745 * docs/texinfo.tex: Likewise.
2746 * disk/fs_uuid.c: Likewise.
2747 * disk/lvm.c: Likewise.
2748 * disk/scsi.c: Likewise.
2749 * disk/ata.c: Likewise.
2750 * disk/ieee1275/ofdisk.c: Likewise.
2751 * disk/i386/pc/biosdisk.c: Likewise.
2752 * disk/host.c: Likewise.
2753 * disk/raid.c: Likewise.
2754 * disk/efi/efidisk.c: Likewise.
2755 * disk/usbms.c: Likewise.
2756 * disk/memdisk.c: Likewise.
2757 * disk/loopback.c: Likewise.
2758 * kern/powerpc/dl.c: Likewise.
2759 * kern/device.c: Likewise.
2760 * kern/dl.c: Likewise.
2761 * kern/sparc64/dl.c: Likewise.
2762 * kern/ieee1275/ieee1275.c: Likewise.
2763 * kern/term.c: Likewise.
2764 * kern/fs.c: Likewise.
2765 * kern/i386/dl.c: Likewise.
2766 * kern/i386/pc/startup.S: Likewise.
2767 * kern/i386/pc/init.c: Likewise.
2768 * kern/i386/pc/mmap.c: Likewise.
2769 * kern/i386/pc/lzo1x.S: Likewise.
2770 * kern/i386/ieee1275/init.c: Likewise.
2771 * kern/i386/realmode.S: Likewise.
2772 * kern/i386/tsc.c: Likewise.
2773 * kern/partition.c: Likewise.
2774 * kern/corecmd.c: Likewise.
2775 * kern/file.c: Likewise.
2776 * kern/efi/efi.c: Likewise.
2777 * kern/efi/init.c: Likewise.
2778 * kern/efi/mm.c: Likewise.
2779 * kern/main.c: Likewise.
2780 * kern/err.c: Likewise.
2781 * kern/env.c: Likewise.
2782 * kern/disk.c: Likewise.
2783 * kern/generic/millisleep.c: Likewise.
2784 * kern/generic/rtc_get_time_ms.c: Likewise.
2785 * kern/misc.c: Likewise.
2786 * kern/parser.c: Likewise.
2787 * genmk.rb: Likewise.
2788 * configure.ac: Likewise.
2789 * boot/i386/pc/diskboot.S: Likewise.
2790 * boot/i386/pc/pxeboot.S: Likewise.
2791 * boot/i386/pc/boot.S: Likewise.
2792 * boot/i386/pc/lnxboot.S: Likewise.
2793 * boot/i386/pc/cdboot.S: Likewise.
2794 * parttool/pcpart.c: Likewise.
2795 * video/readers/tga.c: Likewise.
2796 * video/video.c: Likewise.
2797 * video/bitmap.c: Likewise.
2798 * lib/envblk.c: Likewise.
2799 * lib/i386/setjmp.S: Likewise.
2800 * fs/xfs.c: Likewise.
2801 * fs/afs.c: Likewise.
2802 * fs/fat.c: Likewise.
2803 * fs/ntfs.c: Likewise.
2804 * fs/udf.c: Likewise.
2805 * fs/affs.c: Likewise.
2806 * fs/iso9660.c: Likewise.
2807 * fs/hfs.c: Likewise.
2808 * fs/fshelp.c: Likewise.
2809 * fs/ext2.c: Likewise.
2810 * fs/jfs.c: Likewise.
2811 * fs/reiserfs.c: Likewise.
2812 * fs/hfsplus.c: Likewise.
2813 * fs/minix.c: Likewise.
2814 * fs/cpio.c: Likewise.
2815 * fs/sfs.c: Likewise.
2816 * fs/ufs.c: Likewise.
2817 * efiemu/prepare.c: Likewise.
2818 * efiemu/loadcore_common.c: Likewise.
2819 * efiemu/runtime/efiemu.sh: Likewise.
2820 * efiemu/runtime/efiemu.S: Likewise.
2821 * efiemu/runtime/efiemu.c: Likewise.
2822 * efiemu/pnvram.c: Likewise.
2823 * efiemu/main.c: Likewise.
2824 * efiemu/i386/pc/cfgtables.c: Likewise.
2825 * efiemu/i386/loadcore64.c: Likewise.
2826 * efiemu/i386/loadcore32.c: Likewise.
2827 * efiemu/loadcore.c: Likewise.
2828 * efiemu/symbols.c: Likewise.
2829 * efiemu/mm.c: Likewise.
2830 * include/grub/autoefi.h: Likewise.
2831 * include/grub/datetime.h: Likewise.
2832 * include/grub/term.h: Likewise.
2833 * include/grub/hfs.h: Likewise.
2834 * include/grub/lvm.h: Likewise.
2835 * include/grub/i386/tsc.h: Likewise.
2836 * include/grub/i386/linux.h: Likewise.
2837 * include/grub/i386/xnu.h: Likewise.
2838 * include/grub/i386/efiemu.h: Likewise.
2839 * include/grub/i386/pc/biosdisk.h: Likewise.
2840 * include/grub/i386/pc/memory.h: Likewise.
2841 * include/grub/i386/pc/vbe.h: Likewise.
2842 * include/grub/parttool.h: Likewise.
2843 * include/grub/video.h: Likewise.
2844 * include/grub/memory.h: Likewise.
2845 * include/grub/fs.h: Likewise.
2846 * include/grub/partition.h: Likewise.
2847 * include/grub/xnu.h: Likewise.
2848 * include/grub/efi/api.h: Likewise.
2849 * include/grub/efi/pe32.h: Likewise.
2850 * include/grub/efi/memory.h: Likewise.
2851 * include/grub/multiboot.h: Likewise.
2852 * include/grub/usbdesc.h: Likewise.
2853 * include/grub/multiboot2.h: Likewise.
2854 * include/grub/acpi.h: Likewise.
2855 * include/grub/efiemu/efiemu.h: Likewise.
2856 * include/grub/disk.h: Likewise.
2857 * include/grub/ieee1275/ieee1275.h: Likewise.
2858 * include/grub/net.h: Likewise.
2859 * include/grub/machoload.h: Likewise.
2860 * include/grub/macho.h: Likewise.
2861 * include/multiboot.h: Likewise.
2862 * genmoddep.awk: Likewise.
2863 * normal/main.c: Likewise.
2864 * normal/menu_entry.c: Likewise.
2865 * normal/menu_viewer.c: Likewise.
2866 * normal/completion.c: Likewise.
2867 * normal/cmdline.c: Likewise.
2868 * normal/misc.c: Likewise.
2869 * normal/datetime.c: Likewise.
2870 * bus/usb/usbtrans.c: Likewise.
2871 * bus/usb/ohci.c: Likewise.
2872 * bus/usb/uhci.c: Likewise.
2873 * bus/usb/usb.c: Likewise.
2874 * mmap/efi/mmap.c: Likewise.
2875 * mmap/i386/pc/mmap_helper.S: Likewise.
2876 * mmap/i386/pc/mmap.c: Likewise.
2877 * mmap/i386/mmap.c: Likewise.
2878 * mmap/i386/uppermem.c: Likewise.
2879 * mmap/mmap.c: Likewise.
2880 * commands/acpi.c: Likewise.
2881 * commands/echo.c: Likewise.
2882 * commands/blocklist.c: Likewise.
2883 * commands/loadenv.c: Likewise.
2884 * commands/usbtest.c: Likewise.
2885 * commands/boot.c: Likewise.
2886 * commands/parttool.c: Likewise.
2887 * commands/search.c: Likewise.
2888 * commands/cat.c: Likewise.
2889 * commands/i386/pc/play.c: Likewise.
2890 * commands/i386/pc/drivemap.c: Likewise.
2891 * commands/i386/pc/vbeinfo.c: Likewise.
2892 * commands/i386/pc/acpi.c: Likewise.
2893 * commands/i386/pc/vbetest.c: Likewise.
2894 * commands/ls.c: Likewise.
2895 * commands/cmp.c: Likewise.
2896 * commands/test.c: Likewise.
2897 * commands/efi/acpi.c: Likewise.
2898 * commands/gptsync.c: Likewise.
2899 * commands/help.c: Likewise.
2900 * partmap/amiga.c: Likewise.
2901 * partmap/apple.c: Likewise.
2902 * partmap/acorn.c: Likewise.
2903 * partmap/pc.c: Likewise.
2904 * partmap/sun.c: Likewise.
2905 * partmap/gpt.c: Likewise.
2906 * script/sh/lexer.c: Likewise.
2907 * script/sh/function.c: Likewise.
2908 * font/font.c: Likewise.
2909 * font/font_cmd.c: Likewise.
2910 * loader/powerpc/ieee1275/linux.c: Likewise.
2911 * loader/efi/chainloader.c: Likewise.
2912 * loader/multiboot_loader.c: Likewise.
2913 * loader/macho.c: Likewise.
2914 * loader/i386/multiboot.c: Likewise.
2915 * loader/i386/linux.c: Likewise.
2916 * loader/i386/pc/linux.c: Likewise.
2917 * loader/i386/pc/multiboot2.c: Likewise.
2918 * loader/i386/pc/chainloader.c: Likewise.
2919 * loader/i386/pc/xnu.c: Likewise.
2920 * loader/i386/bsd_trampoline.S: Likewise.
2921 * loader/i386/efi/linux.c: Likewise.
2922 * loader/i386/multiboot_elfxx.c: Likewise.
2923 * loader/i386/bsd_helper.S: Likewise.
2924 * loader/i386/bsd.c: Likewise.
2925 * loader/i386/linux_trampoline.S: Likewise.
2926 * loader/i386/xnu_helper.S: Likewise.
2927 * loader/i386/xnu.c: Likewise.
2928 * loader/i386/bsd_pagetable.c: Likewise.
2929 * loader/i386/multiboot_helper.S: Likewise.
2930 * loader/xnu.c: Likewise.
2931 * loader/xnu_resume.c: Likewise.
2932 * io/gzio.c: Likewise.
2933 * term/efi/console.c: Likewise.
2934 * term/terminfo.c: Likewise.
2935 * term/ieee1275/ofconsole.c: Likewise.
2936 * term/i386/pc/serial.c: Likewise.
2937 * term/i386/pc/vesafb.c: Likewise.
2938 * term/i386/pc/vga.c: Likewise.
2939 * term/usb_keyboard.c: Likewise.
2940 * term/gfxterm.c: Likewise.
2941 * aclocal.m4: Likewise.
2942 * util/lvm.c: Likewise.
2943 * util/grub.d/30_os-prober.in: Likewise.
2944 * util/grub.d/10_hurd.in: Likewise.
2945 * util/console.c: Likewise.
2946 * util/grub-macho2img.c: Likewise.
2947 * util/grub-probe.c: Likewise.
2948 * util/hostfs.c: Likewise.
2949 * util/i386/pc/grub-mkimage.c: Likewise.
2950 * util/i386/pc/grub-setup.c: Likewise.
2951 * util/i386/efi/grub-mkimage.c: Likewise.
2952 * util/grub-mkconfig.in: Likewise.
2953 * util/raid.c: Likewise.
2954 * util/resolve.c: Likewise.
2955 * util/grub-mkdevicemap.c: Likewise.
2956 * util/grub-emu.c: Likewise.
2957 * util/getroot.c: Likewise.
2958 * util/hostdisk.c: Likewise.
2959 * util/usb.c: Likewise.
2960 * util/grub-editenv.c: Likewise.
2961 * util/misc.c: Likewise.
2963 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2965 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2966 `genparttoollist.sh'.
2967 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2968 Add `*.sh' to the list find searches for and change `mdate.sh'
2971 2009-06-10 Pavel Roskin <proski@gnu.org>
2973 * include/grub/multiboot2.h: Provide compatibility defines for
2975 * include/multiboot2.h: Include stdint.h only if needed, using
2977 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2979 * loader/ieee1275/multiboot2.c: Likewise.
2980 * loader/multiboot2.c: Likewise.
2981 * loader/multiboot_loader.c: Likewise.
2983 * configure.ac: Use -nostdlib when probing for the target. It
2984 should not be required to have libc for the target.
2986 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2987 they fail without libc headers for the target.
2988 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2990 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2991 preprocessor conditionals.
2993 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2994 build system doesn't need to be aware of the tar.c internals.
2996 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2998 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
3000 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
3002 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
3003 disk limit to 26 for IDE, Virtio, Xen and SCSI.
3005 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
3007 * util/i386/pc/grub-install.in: Change the error message if UUIDs
3008 aren't available if ata.mod gets used.
3010 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
3012 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
3013 initialising controller.
3014 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3016 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3018 * util/i386/pc/grub-install.in: Add a parameter --disk-module
3019 to choose between ata and biosdisk module on i386-pc.
3021 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
3023 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
3024 Subclass and Programming Interface fields in terms of the 3 byte
3025 Class Code register.
3026 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3028 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
3029 interface is OHCI. Add grub_dprintf for symmetry with
3031 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
3032 interface is UHCI. Add interf variable for programming
3033 interface. Print interface with class/subclass.
3035 * bus/usb/ohci.c: Set interf with correct field.
3037 * bus/usb/uhci.c: Remove unneeded doubled lines.
3038 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
3039 Remove whitespace inside comment.
3041 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
3043 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
3044 as fallback an equivalent option without depth.
3046 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3048 Not fail if unable to retrieve C/H/S on LBA disks
3050 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3051 if unable to retrieve C/H/S on LBA disks
3053 2009-06-08 Pavel Roskin <proski@gnu.org>
3055 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3058 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3060 * Makefile.in (uninstall): Remove all $lib_DATA files.
3062 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3064 Bugfix: install on partitionless device
3066 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3069 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3071 * Makefile.in (uninstall): Remove all $include_DATA files.
3073 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3075 * commands/true.c: New file. Implement the true and false commands.
3076 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3077 (true_mod_SOURCES): New variable.
3078 (true_mod_CFLAGS): Likewise.
3079 (true_mod_LDFLAGS): Likewise.
3081 2009-06-05 Colin D Bennett <colin@gibibit.com>
3083 Optimized font character lookup using binary search instead of linear
3084 search. Fonts now are required to have the character index ordered by
3087 * font/font.c (load_font_index): Verify that fonts have ordered
3089 (find_glyph): Use binary search instead of linear search to find a
3090 character in a font.
3092 2009-06-05 Michael Scherer <misc@mandriva.org>
3094 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3095 uses case sensitive btree.
3096 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3097 only for case insensitive filesystems.
3099 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3101 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3102 * conf/common.rmk (search_mod_CFLAGS): likewise
3104 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3106 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3107 compensate a compiler bug
3109 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3111 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3114 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3116 Definitions for creating asm symbols with Apple's CC
3118 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3119 [APPLE_CC] (VARIABLE): likewise
3121 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3123 Disable lnxboot.img when compiled
3126 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3127 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3128 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3129 [! APPLE_CC] (CODE_LENG): skip
3130 [! APPLE_CC] (setup_sects): likewise
3131 [! APPLE_CC]: skip filling
3133 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3135 Address in trampolines based on 32-bit registers when compiled
3138 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3140 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3142 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3144 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3146 * kern/misc.c [APPLE_CC] (memcpy): new function
3147 [APPLE_CC] (memmove): likewise
3148 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3149 (memcpy): define alias conditionally on !APPLE_CC
3152 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3153 APPLE_CC are defined
3154 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3155 (grub_assert_fail): make prototype conditional
3157 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3159 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3161 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3163 (CLEANFILES): add grub-macho2img
3164 (grub_macho2img_SOURCES): new variable
3165 * kern/i386/pc/startup.S (bss_start): new variable
3167 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3168 * util/grub-macho2img.c: new file
3170 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3172 Use objconv when compiling with Apple's CC
3174 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3175 (efiemu64.o): likewise
3176 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3177 when compiling with Apple's CC
3178 (efiemu64_s.o): likewise
3179 * configure.ac: check for objconv when compiling with Apple's CC
3180 * genmk.rb: use objconv for modules when compiled with Apple's CC
3182 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3184 Define segment as well as section when compiling with
3187 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3188 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3189 (efiemu_convert_pointer): likewise
3190 (efiemu_set_virtual_address_map): likewise
3191 (efiemu_convert_pointer): likewise
3192 (efiemu_getcrc32): likewise
3193 (init_crc32_table): likewise
3195 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3196 (GRUB_MOD_DEP): likewise
3198 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3200 Allow a compilation without -mcmodel=large
3202 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3203 when compiled without -mcmodel=large
3204 (filter_memory_map): remove memory post 4 GiB when compiled
3205 without -mcmodel=large
3206 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3207 TARGET_CFLAGS when -mcmodel=large isn't supported
3209 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3211 Remove nested functions in efiemu core
3213 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3215 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3217 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3219 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3221 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3223 (grub_cpu_is_tsc_supported): likewise
3224 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3226 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3228 Absolute addressing through constant with Apple's cc
3230 * kern/i386/pc/startup.S: Define necessary constants
3231 and address through it when using ABS with Apple's CC
3232 * boot/i386/pc/diskboot.S: likewise
3233 * boot/i386/pc/boot.S: likewise
3234 * boot/i386/pc/lnxboot.S: likewise
3235 * boot/i386/pc/cdboot.S: likewise
3236 * mmap/i386/pc/mmap_helper.S: likewise
3237 * commands/i386/pc/drivemap_int13h.S: likewise
3239 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3241 Check if compiler is apple cc
3243 * Makefile.in (ASFLAGS): new variable
3244 (TARGET_ASFLAGS): likewise
3245 (TARGET_MODULE_FORMAT): likewise
3246 (TARGET_APPLE_CC): likewise
3248 (TARGET_IMG_CFLAGS): likewise
3249 (TARGET_CPPFLAGS): add includedir
3250 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3251 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3252 Check for linker script only if compiler isn't Apple's CC
3253 (TARGET_MODULE_FORMAT): set
3254 (TARGET_APPLE_CC): likewise
3255 (TARGET_ASFLAGS): likewise
3257 Check for objcopy only if compiler isn't Apple's CC
3258 Check for BSS symbol only if compiler isn't Apple's CC
3259 * genmk.rb: adapt nm options if we use Apple's utils
3260 * aclocal.m4 (grub_apple_cc): new test
3261 (grub_apple_target_cc): likewise
3263 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3265 Simplify sed expressions and improve awk
3267 * Makefile.in (install-local): simplify sed expression
3268 * gencmdlist.sh: likewise
3269 * genmoddep.awk: avoid adding module as a dependency of itself
3271 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3273 Add missing start symbols
3275 * boot/i386/pc/boot.S: add start
3276 * boot/i386/pc/pxeboot.S: likewise
3278 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3280 Fix wrong assumptions with grub-mkimage on EFI
3282 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3283 (relocate_addresses): consider both r_addend and value at offset
3284 (make_mods_section): zerofill modinfo and header
3285 (convert_elf): write prefix here
3287 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3289 Use .asciz instead of .string
3291 * i386/pc/diskboot.S: use .asciz instead of .string
3292 * i386/pc/boot.S: likewise
3293 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3294 (GRUB_MOD_NAME): likewise
3296 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3300 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3301 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3302 (grub_video_setup): remove
3303 (grub_video_set_mode): new prototype
3304 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3306 (linux_vesafb_res): compile only on PCBIOS
3307 (grub_linux_boot): support gfxpayload
3308 * loader/i386/pc/xnu.c (video_hook): new function
3309 (grub_xnu_set_video): support gfxpayload
3310 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3311 (DEFAULT_VIDEO_HEIGHT): likewise
3312 (DEFAULT_VIDEO_FLAGS): likewise
3313 (DEFAULT_VIDEO_MODE): new definition
3314 (video_hook): new function
3315 (grub_gfxterm_init): use grub_video_set_mode
3316 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3318 * video/video.c (grub_video_setup): removed
3319 (grub_video_set_mode): new function based on grub_gfxterm_init and
3322 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3324 Avoid calling biosdisk in drivemap
3326 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3327 (revparse_biosdisk): likewise
3328 (list_mappings): derive name from id directly
3329 (grub_cmd_drivemap): use tryparse_diskstring
3331 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3335 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3336 (grub_lexer_param): add tokenonhold
3337 (grub_script_create_cmdline): remove cmdline. All callers updated
3338 (grub_script_function_create): make functionname
3339 grub_script_arg. All callers updated
3340 (grub_script_execute_argument_to_string): new prototype
3341 * kern/parser.c (state_transitions): reorder
3342 (grub_parser_cmdline_state): fix a bug and make more compact
3343 * script/sh/execute.c (grub_script_execute_argument_to_string):
3345 (grub_script_execute_cmdline): use new format
3346 * script/sh/function.c (grub_script_function_create): make functionname
3347 grub_script_arg. All callers updated
3348 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3349 (grub_script_yylex): remove
3350 (grub_script_yylex2): renamed to ...
3351 (grub_script_yylex): ...renamed
3352 parse the expressions like a${b}c
3353 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3354 (GRUB_PARSER_TOKEN_VAR): remove
3355 (GRUB_PARSER_TOKEN_NAME): likewise
3356 ("if"): declare as typeless
3358 ("function"): likewise
3363 (argument): likewise
3364 (script): accept empty scripts and make exit on error
3365 (arguments): use GRUB_PARSER_TOKEN_ARG
3366 (function): likewise
3367 (command): move error handling to script
3368 (menuentry): move grub_script_lexer_ref before
3369 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3370 argument. All callers updated
3372 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3374 Prevent GRUB from probing floppies during boot.
3376 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3377 * commands/search.c (options): Add --no-floppy.
3378 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3379 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3380 --no-floppy when searching for UUIDs.
3382 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3384 Simplify the code duplication in commands/search.c.
3386 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3387 (search_fs): ... this. Update all users.
3389 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3391 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3393 2009-05-28 Pavel Roskin <proski@gnu.org>
3395 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3396 Remove the original symlink explicitly.
3398 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3399 just one slash. That's how grub_fshelp_find_file() does it.
3401 2009-05-26 Pavel Roskin <proski@gnu.org>
3403 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3406 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3409 2009-05-25 Christian Franke <franke@computer.org>
3411 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3413 (grub_atapi_identify): Add wait after drive select.
3414 (grub_ata_identify): Do more strict status register check before
3415 calling grub_atapi_identify (). Suppress error message if status
3416 register is 0x00 after command failure. Add status register
3417 check after PIO read to avoid bogus identify due to stuck DRQ.
3418 Thanks to Pavel Roskin for testing.
3419 (grub_device_initialize): Remove unsafe status register check.
3420 Thanks to 'phcoder' for problem report and patch.
3421 Prevent sign extension in debug message.
3423 2009-05-23 Colin D Bennett <colin@gibibit.com>
3425 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3426 definition file, and functions defined in `normal/menu.c' have had
3427 their prototypes moved to `include/grub/menu.h' for consistency.
3429 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
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.
3438 * include/grub/normal.h: Re-ordered and grouped function
3439 prototypes by file that the function is defined in.
3440 (grub_menu_execute_callback): Removed; moved to menu.h.
3441 (grub_menu_get_entry): Likewise.
3442 (grub_menu_get_timeout): Likewise.
3443 (grub_menu_set_timeout): Likewise.
3444 (grub_menu_execute_entry): Likewise.
3445 (grub_menu_execute_with_fallback): Likewise.
3446 (grub_menu_entry_run): Likewise.
3447 (grub_menu_addentry): Renamed from this ...
3448 (grub_normal_add_menu_entry): ... to this.
3450 * normal/main.c (grub_menu_addentry): Renamed from this ...
3451 (grub_normal_add_menu_entry): ... to this.
3453 * script/sh/execute.c (grub_script_execute_menuentry): Update
3454 reference to renamed grub_menu_addentry function.
3456 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3458 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3460 2009-05-22 Pavel Roskin <proski@gnu.org>
3462 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3463 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3464 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3465 compiling for the i386 targets, but not for the utilities.
3467 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3469 (grub_root_drive): Likewise.
3470 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3472 (grub_root_drive): Change size to byte.
3473 (grub_start_addr): Remove.
3474 (grub_end_addr): Likewise.
3475 (grub_apm_bios_info): Likewise.
3477 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3479 * normal/i386: Remove.
3480 * normal/powerpc: Likewise.
3481 * normal/sparc64: Likewise.
3482 * normal/x86_64: Likewise.
3484 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3486 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3487 * loader/i386/linux_trampoline.S: Fix indentation
3488 * loader/i386/xnu_helper.S: Likewise
3490 2009-05-18 Colin D Bennett <colin@gibibit.com>
3492 Display error messages when parsing a Lua statement fails.
3493 Previously, executing a syntactically invalid statement like
3494 ")foo" or "bar;" would silently fail.
3496 * script/lua/grub_main.c (handle_lua_error): New function.
3497 (grub_lua_parse_line): Improved reporting of Lua parser and
3500 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3502 Remove -Werror which causes build to fail on some systems
3504 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3505 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3506 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3508 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3510 trampoline for linux on 64-bit platform
3512 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3513 loader/i386/efi/linux_trampoline.S
3514 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3516 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3518 * loader/i386/linux_trampoline.S: moved here
3519 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3521 (jumpvector): removed
3522 (grub_linux_trampoline_start): new declaration
3523 (grub_linux_trampoline_end): likewise
3524 (grub_linux_boot): use trampoline when on 64-bit platform
3525 * loader/i386/linux.c: likewise
3527 2009-05-16 Pavel Roskin <proski@gnu.org>
3529 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3530 const to avoid a warning.
3531 (grub_lua_setenv): Likewise.
3532 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3533 lmsg to fix a warning.
3535 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3537 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3538 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3539 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3540 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3541 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3542 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3543 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3544 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3546 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3548 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3550 2009-05-16 Bean <bean123ch@gmail.com>
3552 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3553 (lua_mod_SOURCES): New variable.
3554 (lua_mod_CFLAGS): Likewise.
3555 (lua_mod_LDFLAGS): Likewise.
3557 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3558 (setjmp_mod_SOURCES): New variable.
3559 (setjmp_mod_CFLAGS): Likewise.
3560 (setjmp_LDFLAGS): Likewise.
3562 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3563 (setjmp_mod_SOURCES): New variable.
3564 (setjmp_mod_CFLAGS): Likewise.
3565 (setjmp_LDFLAGS): Likewise.
3567 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3568 (setjmp_mod_SOURCES): New variable.
3569 (setjmp_mod_CFLAGS): Likewise.
3570 (setjmp_LDFLAGS): Likewise.
3572 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3573 (setjmp_mod_SOURCES): New variable.
3574 (setjmp_mod_CFLAGS): Likewise.
3575 (setjmp_LDFLAGS): Likewise.
3577 * normal/i386/setjmp.S: Moved from here ...
3578 * lib/i386/setjmp.S: ... Moved here
3579 * normal/x86_64/setjmp.S: Moved from here ...
3580 * lib/x86_64/setjmp.S: ... Moved here
3581 * normal/powerpc/setjmp.S: Moved from here ...
3582 * lib/powerpc/setjmp.S: ... Moved here
3583 * normal/sparc64/setjmp.S: Moved from here ...
3584 * lib/sparc64/setjmp.S: ... Moved here
3586 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3587 returns_twice in mingw.
3589 * script/lua/grub_lib.c: New file.
3590 * script/lua/grub_lib.h: Likewise.
3591 * script/lua/grub_lua.h: Likewise.
3592 * script/lua/grub_main.c: Likewise.
3593 * script/lua/lapi.c: Likewise.
3594 * script/lua/lapi.h: Likewise.
3595 * script/lua/lauxlib.c: Likewise.
3596 * script/lua/lauxlib.h: Likewise.
3597 * script/lua/lbaselib.c: Likewise.
3598 * script/lua/lcode.c: Likewise.
3599 * script/lua/lcode.h: Likewise.
3600 * script/lua/ldblib.c: Likewise.
3601 * script/lua/ldebug.c: Likewise.
3602 * script/lua/ldebug.h: Likewise.
3603 * script/lua/ldo.c: Likewise.
3604 * script/lua/ldo.h: Likewise.
3605 * script/lua/ldump.c: Likewise.
3606 * script/lua/lfunc.c: Likewise.
3607 * script/lua/lfunc.h: Likewise.
3608 * script/lua/lgc.c: Likewise.
3609 * script/lua/lgc.h: Likewise.
3610 * script/lua/linit.c: Likewise.
3611 * script/lua/liolib.c: Likewise.
3612 * script/lua/llex.c: Likewise.
3613 * script/lua/llex.h: Likewise.
3614 * script/lua/llimits.h: Likewise.
3615 * script/lua/lmathlib.c: Likewise.
3616 * script/lua/lmem.c: Likewise.
3617 * script/lua/lmem.h: Likewise.
3618 * script/lua/loadlib.c: Likewise.
3619 * script/lua/lobject.c: Likewise.
3620 * script/lua/lobject.h: Likewise.
3621 * script/lua/lopcodes.c: Likewise.
3622 * script/lua/lopcodes.h: Likewise.
3623 * script/lua/loslib.c: Likewise.
3624 * script/lua/lparser.c: Likewise.
3625 * script/lua/lparser.h: Likewise.
3626 * script/lua/lstate.c: Likewise.
3627 * script/lua/lstate.h: Likewise.
3628 * script/lua/lstring.c: Likewise.
3629 * script/lua/lstring.h: Likewise.
3630 * script/lua/lstrlib.c: Likewise.
3631 * script/lua/ltable.c: Likewise.
3632 * script/lua/ltable.h: Likewise.
3633 * script/lua/ltablib.c: Likewise.
3634 * script/lua/ltm.c: Likewise.
3635 * script/lua/ltm.h: Likewise.
3636 * script/lua/lua.h: Likewise.
3637 * script/lua/luaconf.h: Likewise.
3638 * script/lua/lualib.h: Likewise.
3639 * script/lua/lundump.c: Likewise.
3640 * script/lua/lundump.h: Likewise.
3641 * script/lua/lvm.c: Likewise.
3642 * script/lua/lvm.h: Likewise.
3643 * script/lua/lzio.c: Likewise.
3644 * script/lua/lzio.h: Likewise.
3646 2009-05-16 Bean <bean123ch@gmail.com>
3648 * include/grub/kernel.h (grub_module_header_types): Add type
3651 * kern/main.c (grub_load_config): New function.
3652 (grub_main): Call grub_load_config to read boot config.
3654 * grub-mkimage (generate_image): New parameter config_path.
3655 (options): New option --config.
3656 (main): Parse --config option, and pass it to generate_image.
3658 2009-05-14 Christian Franke <franke@computer.org>
3660 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3661 This fixes build on Cygwin.
3663 2009-05-14 Pavel Roskin <proski@gnu.org>
3665 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3666 jump. This saves two bytes, so the typical case of 2 swapped
3667 drives would fit 32 bytes.
3669 2009-05-13 Pavel Roskin <proski@gnu.org>
3671 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3672 grub_uint32_t to avoid a warning.
3674 * loader/i386/linux.c (allocate_pages): When assigning
3675 real_mode_mem, cast through grub_size_t to fix a warning. The
3676 code already makes sure that the value would fit a pointer.
3677 (grub_linux_setup_video): Cast render_target->data to
3678 grub_size_t to fix a warning.
3680 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3682 * commands/i386/pc/drivemap.c: New file - implement drivemap
3684 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3685 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3687 2009-05-13 Pavel Roskin <proski@gnu.org>
3689 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3690 embedding_area_exists.
3692 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3694 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3695 it easier to understand / work with.
3696 Improve warning messages for cases where there's no embedding area,
3697 or when it is too small (or core.img too large).
3699 2009-05-13 Pavel Roskin <proski@gnu.org>
3701 * loader/i386/pc/multiboot2.c: Add necessary includes for
3702 grub_multiboot2_real_boot().
3704 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3705 PX record is always little-endian. We only need the lower 2
3708 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3709 facilitate code reuse.
3710 (grub_cpio_mount): Use "struct head", not a char buffer. This
3711 fixes a warning reported by gcc 4.4.
3713 * kernel/disk.c (grub_disk_read): Use void pointer for the
3715 (grub_disk_write): Use const void pointer for the buffer.
3716 Adjust all callers. Remove unnecessary casts.
3718 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3720 * util/i386/pc/grub-install.in: Update copyright year.
3722 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3726 * commands/gptsync.c: new file
3727 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3728 (gptsync_mod_SOURCES): new variable
3729 (gptsync_mod_CFLAGS): likewise
3730 (gptsync_mod_LDFLAGS): likewise
3731 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3733 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3734 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3735 * conf/i386-ieee1275.rmk: likewise
3736 * conf/i386-pc.rmk: likewise
3737 * conf/powerpc-ieee1275.rmk: likewise
3739 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3743 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3744 (grub_dl_ref): likewise
3746 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3748 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3749 split in two functions (one for msdos and one for gpt).
3751 2009-05-08 Pavel Roskin <proski@gnu.org>
3753 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3756 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3757 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3758 Initialize them with -1. Add sanity check for bad1. Eliminate
3761 2009-05-08 David S. Miller <davem@davemloft.net>
3763 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3765 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3767 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3770 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3773 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3775 2009-05-05 David S. Miller <davem@davemloft.net>
3777 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3779 2009-05-05 Pavel Roskin <proski@gnu.org>
3781 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3782 of grub_dl_ref() and grub_dl_unref().
3783 * commands/parttool.c: Remove preprocessor conditionals around
3784 grub_dl_ref() and grub_dl_unref().
3785 * fs/affs.c: Likewise.
3786 * fs/afs.c: Likewise.
3787 * fs/cpio.c: Likewise.
3788 * fs/ext2.c: Likewise.
3789 * fs/fat.c: Likewise.
3790 * fs/hfs.c: Likewise.
3791 * fs/hfsplus.c: Likewise.
3792 * fs/iso9660.c: Likewise.
3793 * fs/jfs.c: Likewise.
3794 * fs/minix.c: Likewise.
3795 * fs/ntfs.c: Likewise.
3796 * fs/reiserfs.c: Likewise.
3797 * fs/sfs.c: Likewise.
3798 * fs/udf.c: Likewise.
3799 * fs/ufs.c: Likewise.
3800 * fs/xfs.c: Likewise.
3801 * include/grub/dl.h: Likewise.
3802 * loader/xnu.c: Likewise.
3804 2009-05-04 Pavel Roskin <proski@gnu.org>
3806 * commands/acpi.c: Remove unused variable my_mod.
3807 * partmap/amiga.c: Likewise.
3808 * partmap/apple.c: Likewise.
3809 * partmap/gpt.c: Likewise.
3810 * partmap/pc.c: Likewise.
3811 * partmap/sun.c: Likewise.
3812 * term/gfxterm.c: Likewise.
3813 * term/i386/pc/vesafb.c: Likewise.
3814 * term/i386/pc/vga.c: Likewise.
3816 2009-05-04 David S. Miller <davem@davemloft.net>
3818 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3819 pointer args to grub_ieee1275_get_property().
3821 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3823 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3824 devices, and do not traverse down under controller nodes.
3826 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3827 (grub_ofdisk_open): Use it to un-escape "," characters.
3828 * kern/disk.c (find_part_sep): New.
3829 (grub_disk_open): Use it to find the first non-escaped ','
3830 character in the disk name.
3831 * util/ieee1275/devicemap.c (escape_of_path): New.
3832 (grub_util_emit_devicemap_entry): Use it.
3833 * util/sparc64/ieee1275/grub-install.in: Update script to
3834 strip partition specifiers properly by not triggering on
3835 '\' escaped ',' characters.
3837 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3839 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3841 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3843 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3844 on documentation from Wikipedia).
3846 2009-05-04 Pavel Roskin <proski@gnu.org>
3848 * disk/ata.c: Spelling fixes.
3849 * disk/raid.c: Likewise.
3850 * disk/usbms.c: Likewise.
3851 * disk/dmraid_nvidia.c: Likewise.
3852 * kern/ieee1275/openfw.c: Likewise.
3853 * kern/ieee1275/init.c: Likewise.
3854 * kern/ieee1275/cmain.c: Likewise.
3855 * boot/i386/pc/cdboot.S: Likewise.
3856 * video/readers/png.c: Likewise.
3857 * video/i386/pc/vbe.c: Likewise.
3858 * fs/udf.c: Likewise.
3859 * fs/hfs.c: Likewise.
3860 * fs/reiserfs.c: Likewise.
3861 * efiemu/runtime/efiemu.c: Likewise.
3862 * efiemu/main.c: Likewise.
3863 * efiemu/mm.c: Likewise.
3864 * include/grub/elf.h: Likewise.
3865 * include/grub/xnu.h: Likewise.
3866 * include/grub/usbdesc.h: Likewise.
3867 * include/grub/usb.h: Likewise.
3868 * include/grub/script_sh.h: Likewise.
3869 * include/grub/lib/LzmaEnc.h: Likewise.
3870 * include/grub/efiemu/efiemu.h: Likewise.
3871 * include/grub/command.h: Likewise.
3872 * normal/menu.c: Likewise.
3873 * normal/main.c: Likewise.
3874 * normal/datetime.c: Likewise.
3875 * bus/usb/uhci.c: Likewise.
3876 * mmap/i386/uppermem.c: Likewise.
3877 * mmap/mmap.c: Likewise.
3878 * commands/acpi.c: Likewise.
3879 * commands/test.c: Likewise.
3880 * partmap/apple.c: Likewise.
3881 * font/font.c: Likewise.
3882 * loader/sparc64/ieee1275/linux.c: Likewise.
3883 * loader/macho.c: Likewise.
3884 * loader/i386/bsd_trampoline.S: Likewise.
3885 * loader/i386/bsd.c: Likewise.
3886 * loader/xnu.c: Likewise.
3887 * term/i386/pc/vesafb.c: Likewise.
3888 * term/usb_keyboard.c: Likewise.
3889 * util/resolve.c: Likewise.
3890 * util/getroot.c: Likewise.
3892 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3894 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3896 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3898 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3901 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3903 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3904 parameter only available on BIOS.
3906 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3908 Removed wrong semicolon in declaration
3910 * grub/misc.h (grub_dprintf): remove semicolon
3912 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3914 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3915 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3916 is done by grub_cmd_linux() now).
3917 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3918 restore video to text mode.
3919 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3920 indicates lack of "vga=" parameter. "vga=0" is mapped to
3921 `GRUB_LINUX_VID_MODE_NORMAL'.
3923 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3925 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3926 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3927 and `normal/script.c'. Add `kern/rescue_reader.c',
3928 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3929 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3930 `grub_script.tab.c'.
3932 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3933 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3934 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3935 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3936 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3938 * Makefile.in: Remove duplicated 2008 in Copyright line.
3940 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3942 * util/misc.c (grub_util_warn): New function. Emits a warning
3944 * include/grub/util/misc.h (grub_util_warn): New declaration.
3946 * util/i386/pc/grub-install.in: Understand --force and pass it down
3949 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3951 (setup): Improve error messages and add warnings when requested to
3952 install in odd layouts. Refuse to install using blocklists unless
3955 2009-05-04 martin f. krafft <madduck@madduck.net>
3957 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3959 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3961 Updated copyright year
3963 * fs/hfsplus.c: updated copyright year
3965 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3969 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3970 in the space previously used by unused3
3971 (grub_hfsplus_uuid): new function
3972 (grub_hfsplus_fs): added uuid field
3974 2009-05-03 Pavel Roskin <proski@gnu.org>
3976 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3977 suppress warnings. It's no longer needed.
3978 * disk/host.c: Likewise.
3979 * disk/ata_pthru.c: Likewise.
3980 * disk/loopback.c: Likewise.
3981 * hook/datehook.c: Likewise.
3982 * parttool/pcpart.c: Likewise.
3983 * fs/i386/pc/pxe.c: Likewise.
3984 * fs/ntfscomp.c: Likewise.
3985 * efiemu/main.c: Likewise.
3986 * mmap/mmap.c: Likewise.
3987 * commands/crc.c: Likewise.
3988 * commands/hexdump.c: Likewise.
3989 * commands/hdparm.c: Likewise.
3990 * commands/acpi.c: Likewise.
3991 * commands/echo.c: Likewise.
3992 * commands/minicmd.c: Likewise.
3993 * commands/blocklist.c: Likewise.
3994 * commands/memrw.c: Likewise.
3995 * commands/loadenv.c: Likewise.
3996 * commands/usbtest.c: Likewise.
3997 * commands/lsmmap.c: Likewise.
3998 * commands/boot.c: Likewise.
3999 * commands/parttool.c: Likewise.
4000 * commands/configfile.c: Likewise.
4001 * commands/search.c: Likewise.
4002 * commands/ieee1275/suspend.c: Likewise.
4003 * commands/cat.c: Likewise.
4004 * commands/i386/pc/pxecmd.c: Likewise.
4005 * commands/i386/pc/play.c: Likewise.
4006 * commands/i386/pc/halt.c: Likewise.
4007 * commands/i386/pc/vbeinfo.c: Likewise.
4008 * commands/i386/pc/vbetest.c: Likewise.
4009 * commands/lspci.c: Likewise.
4010 * commands/date.c: Likewise.
4011 * commands/handler.c: Likewise.
4012 * commands/ls.c: Likewise.
4013 * commands/test.c: Likewise.
4014 * commands/cmp.c: Likewise.
4015 * commands/efi/loadbios.c: Likewise.
4016 * commands/efi/fixvideo.c: Likewise.
4017 * commands/halt.c: Likewise.
4018 * commands/help.c: Likewise.
4019 * commands/reboot.c: Likewise.
4020 * hello/hello.c: Likewise.
4021 * script/sh/main.c: Likewise.
4022 * loader/xnu.c: Likewise.
4023 * term/terminfo.c: Likewise.
4024 * term/i386/pc/serial.c: Likewise.
4025 * term/usb_keyboard.c: Likewise.
4027 2009-05-03 David S. Miller <davem@davemloft.net>
4029 * normal/menu.c: Include grub/parser.h
4031 2009-05-03 Pavel Roskin <proski@gnu.org>
4033 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
4035 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
4036 Suggested by Javier MartÃn <lordhabbit@gmail.com>
4038 * util/i386/pc/grub-mkrescue.in: Allow for the case when
4039 efiemu??.o doesn't exist.
4040 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
4043 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
4045 FreeBSD 64-bit support
4047 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
4048 and loader/i386/bsd_trampoline.S
4049 (bsd_mod_ASFLAGS): new variable
4050 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4051 (FREEBSD_MODTYPE_KERNEL64): likewise
4052 (grub_bsd64_trampoline_start): likewise
4053 (grub_bsd64_trampoline_end): likewise
4054 (grub_bsd64_trampoline_selfjump): likewise
4055 (grub_bsd64_trampoline_gdt): likewise
4056 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4057 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4058 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4059 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4060 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4062 * loader/i386/bsd_pagetable.c: new file
4063 * loader/i386/bsd_trampoline.S: likewise
4064 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4065 (ALIGN_VAR): likewise
4066 (entry_hi): new variable
4067 (kern_end_mdofs): likewise
4068 (is_64bit): likewise
4069 (grub_freebsd_add_meta): use ALIGN_VAR
4070 (grub_e820_mmap): new declaration
4071 (grub_freebsd_add_mmap): new function
4072 (grub_freebsd_add_meta_module): support 64 bit kernels
4073 (grub_freebsd_list_modules): use ALIGN_VAR
4074 (gdt_descriptor): new declaration
4075 (grub_freebsd_boot): support 64 bit kernels
4076 (grub_bsd_elf64_hook): new function
4077 (grub_bsd_load_elf): support elf64
4079 2009-05-03 Bean <bean123ch@gmail.com>
4081 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4082 after we get the result of if statement.
4084 2009-05-03 Bean <bean123ch@gmail.com>
4086 * Makefile.in (enable_efiemu): New variable.
4088 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4090 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4092 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4093 path, add -mno-red-zone option.
4094 (efiemu64_s.o): Likewise.
4095 (efiemu64.o): Use macro $^ for source file.
4097 * configure.ac (--enable-efiemu): New option.
4099 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4103 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4104 (pkglib_MODULES): add xnu.mod
4105 (xnu_mod_SOURCES): new variable
4106 (xnu_mod_CFLAGS): likewise
4107 (xnu_mod_LDFLAGS): likewise
4108 (xnu_mod_ASFLAGS): likewise
4109 * conf/i386-pc.rmk: likewise
4110 * conf/x86_64-efi.rmk: likewise
4111 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4113 * include/grub/i386/macho.h: new file
4114 * include/grub/i386/xnu.h: likewise
4115 * include/grub/macho.h: likewise
4116 * include/grub/machoload.h: likewise
4117 * include/grub/x86_64/macho.h: likewise
4118 * include/grub/x86_64/xnu.h: likewise
4119 * include/grub/xnu.h: likewise
4120 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4121 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4122 * loader/i386/efi/xnu.c: new file
4123 * loader/i386/pc/xnu.c: likewise
4124 * loader/i386/xnu.c: likewise
4125 * loader/i386/xnu_helper.S: likewise
4126 * loader/macho.c: likewise
4127 * loader/xnu.c: likewise
4128 * loader/xnu_resume.c: likewise
4129 * util/grub-dumpdevtree: likewise
4130 * include/grub/i386/pit.h: include grub/err.h
4131 (grub_pit_wait): export
4132 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4134 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4138 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4139 _linux_efi, linux_efi.
4140 new files in grub-emu
4141 new targets efiemu32.o and efiemu64.o
4142 * loader/linux_normal_efiemu.c: likewise
4143 * loader/i386/efi/linux.c: added preliminary efiemu support
4144 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4146 * include/grub/autoefi.h: new file
4147 * include/grub/i386/efiemu.h: likewise
4148 * include/grub/i386/pc/efiemu.h: likewise
4149 * include/grub/efi/api.h: add LL suffix when necessary
4150 new definitions relating to tables
4151 * include/grub/efiemu/efiemu.h: new file
4152 * include/grub/efiemu/runtime.h: likewise
4153 * efiemu/prepare.c: likewise
4154 * efiemu/loadcore_common.c: likewise
4155 * efiemu/loadcore64.c: likewise
4156 * efiemu/runtime/efiemu.sh: likewise
4157 * efiemu/runtime/efiemu.S: likewise
4158 * efiemu/runtime/efiemu.c: likewise
4159 * efiemu/runtime/config.h: likewise
4160 * efiemu/prepare32.c: likewise
4161 * efiemu/main.c: likewise
4162 * efiemu/modules/pnvram.c: likewise
4163 * efiemu/modules/i386: likewise
4164 * efiemu/modules/i386/pc: likewise
4165 * efiemu/modules/acpi.c: likewise
4166 * efiemu/i386/pc/cfgtables.c: likewise
4167 * efiemu/i386/loadcore64.c: likewise
4168 * efiemu/i386/loadcore32.c: likewise
4169 * efiemu/prepare64.c: likewise
4170 * efiemu/loadcore.c: likewise
4171 * efiemu/symbols.c: likewise
4172 * efiemu/mm.c: likewise
4173 * efiemu/loadcore32.c: likewise
4175 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4179 * commands/acpi.c: new file
4180 * commands/i386/pc/acpi.c: likewise
4181 * commands/efi/acpi.c: likewise
4182 * include/grub/acpi.h: likewise
4183 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4184 (acpi_mod_SOURCES): new variable
4185 (acpi_mod_CFLAGS): likewise
4186 (acpi_mod_LDFLAGS): likewise
4187 * conf/i386-efi.rmk: likewise
4188 * conf/x86_64-efi.rmk: likewise
4190 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4192 Missing part from mmap patch
4194 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4195 (grub_mmap_unregister)
4196 (grub_mmap_free_and_unregister): use grub_mmap_register
4198 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4202 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4203 * loader/i386/linux.c (find_mmap_size): likewise
4204 (allocate_pages): likewise
4205 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4206 (grub_fill_multiboot_mmap): likewise
4207 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4208 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4209 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4210 (OPENBSD_MMAP_RESERVED): likewise
4211 * include/grub/i386/pc/memory.h: include grub/memory.h
4212 (grub_lower_mem): removed
4213 (grub_upper_mem): likewise
4214 (GRUB_MACHINE_MEMORY_ACPI): new definition
4215 (GRUB_MACHINE_MEMORY_NVS): likewise
4216 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4217 (GRUB_MACHINE_MEMORY_HOLE): likewise
4218 (grub_machine_mmap_register): likewise
4219 (grub_machine_mmap_unregister): likewise
4220 (grub_machine_get_upper): likewise
4221 (grub_machine_get_lower): likewise
4222 (grub_machine_get_post64): likewise
4223 * include/grub/i386/efi/memory.h: new file
4224 * include/grub/x86_64/efi/memory.h: likewise
4225 * include/grub/efi/memory.h: likewise
4226 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4227 (mmap_mod_SOURCES): new variable
4228 (mmap_mod_LDFLAGS): likewise
4229 (mmap_mod_ASFLAGS): likewise
4230 * conf/i386-coreboot.rmk: likewise
4231 * conf/i386-ieee1275.rmk: likewise
4232 * conf/i386-efi.rmk: likewise
4233 * conf/x86_64-efi.rmk: likewise
4234 * include/grub/types.h (UINT_TO_PTR): new macro
4235 (PTR_TO_UINT32): likewise
4236 (PTR_TO_UINT64): likewise
4237 * include/grub/memory.h: new file
4238 * mmap/i386/pc/mmap.c: likewise
4239 * mmap/i386/pc/mmap_helper.S: likewise
4240 * mmap/i386/uppermem.c: likewise
4241 * mmap/mmap.c: likewise
4242 * mmap/efi/mmap.c: likewise
4243 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4245 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4246 (grub_upper_mem): likewise
4247 (grub_machine_init): don't use grub_upper_mem,
4248 make grub_lower_mem local
4249 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4250 grub_mmap_iterate and grub_mmap_get_upper
4251 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4253 2009-05-02 Bean <bean123ch@gmail.com>
4255 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4257 (pkglib_MODULES): Add normal.mod and sh.mod.
4258 (normal_SOURCES): New variable.
4259 (normal_mod_CFLAGS): Likewise.
4260 (normal_mod_LDFLAGS): Likewise.
4261 (sh_mod_SOURCES): Likewise.
4262 (sh_mod_CFLAGS): Likewise.
4263 (sh_mod_LDFLAGS): Likewise.
4265 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4266 script/sh/lexer.c_DEPENDENCIES.
4267 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4268 kern/rescue_reader.c and kern/rescue_parser.c.
4269 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4270 (grub_emu_SOURCES): Change source files.
4271 (pkglib_MODULES): Remove normal.mod.
4272 (normal_SOURCES): Removed.
4273 (normal_mod_CFLAGS): Likewise.
4274 (normal_mod_LDFLAGS): Likewise.
4275 * conf/i386-coreboot.rmk: Likewise.
4276 * conf/i386-efi.rmk: Likewise.
4277 * conf/i386-ieee1276.rmk: Likewise.
4278 * conf/powerpc-ieee1275.rmk: Likewise.
4279 * conf/sparc64-ieee1275.rmk: Likewise.
4280 * conf/x86_64-efi.rmk: Likewise.
4282 * include/grub/command.h (grub_command_execute): New inline function.
4284 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4286 * include/grub/normal.h: Remove <grub/setjmp.h>.
4287 (grub_fs_module_list): Moved to normal/autofs.c.
4288 (grub_exit_env): Removed.
4289 (grub_command_execute): Likewise.
4290 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4292 (read_command_list): New function declaration.
4293 (read_fs_list): Likewise.
4295 * include/parser.h: Include <grub/reader.h>.
4296 (grub_parser_split_cmdline): Change type of getline parameter.
4297 (grub_parser): New structure.
4298 (grub_parser_class): New variable.
4299 (grub_parser_execute): New function declaration.
4300 (grub_register_rescue_parser): Likewise.
4301 (grub_parser_register): New inline function.
4302 (grub_parser_unregister): Likewise.
4303 (grub_parser_get_current): Likewise.
4304 (grub_parser_set_current): Likewise.
4306 * include/grub/reader.h: New file.
4307 * kern/reader.c: Likewise.
4308 * kern/rescue_parser.c: Likewise.
4309 * kern/rescue_reader.c: Likewise.
4310 * normal/autofs.c: Likewise.
4311 * normal/dyncmd.c: Likewise.
4313 * include/grub/rescue.h: Removed.
4314 * normal/command.h: Likewise.
4316 * include/grub/script.h: Moved to ...
4317 * include/grub/script_sh.h: ... Moved here.
4318 * normal/execute.c: Moved to ...
4319 * script/sh/execute.c: ... Moved here.
4320 * normal/function.c: Moved to ...
4321 * script/sh/function.c: ... Moved here.
4322 * normal/lexer.c: Moved to ...
4323 * script/sh/lexer.c: ... Moved here.
4324 * normal/parser.y: Moved to ...
4325 * script/sh/parser.y: ... Moved here.
4326 * normal/script.c: Moved to ...
4327 * script/sh/script.c: ... Moved here.
4329 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4331 (grub_exit_env): Removed.
4332 (fs_module_list): Moved to normal/autofs.c.
4333 (grub_file_getline): Don't handle comment here.
4334 (free_menu): Skip removed field entry->commands.
4335 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4337 (read_config_file): Removed nested parameter, change getline function.
4338 (grub_enter_normal_mode): Removed.
4339 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4340 (read_command_list): Likewise.
4341 (autoload_fs_module): Moved to normal/autofs.c.
4342 (read_fs_list): Likewise.
4343 (reader_nested): New variable.
4344 (grub_normal_execute): Run parser.sh to switch to sh parser.
4345 (grub_cmd_rescue): Removed.
4346 (cmd_normal): Removed.
4347 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4349 (grub_cmdline_run): New function.
4350 (grub_normal_reader_init): Likewise.
4351 (grub_normal_read_line): Likewise.
4352 (grub_env_write_pager): Likewise.
4353 (cmdline): New variable.
4354 (grub_normal_reader): Likewise.
4355 (GRUB_MOD_INIT): Register normal reader and set as current, register
4356 pager hook, register normal command with grub_register_command_prio,
4357 so that it won't show up in command.lst.
4358 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4359 grub_fs_autoload_hook.
4361 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4362 (grub_menu_execute_entry): Replace grub_script_execute with
4363 grub_parser_execute, change parameter to grub_command_execute.
4365 * normal/menu_text.c: Remove <grub/script.h>.
4367 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4368 and <grub/parser.h>.
4369 (run): Change editor_getline to use new parser interface. Change
4370 parameter to grub_command_execute.
4372 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4373 <grub/reader.h> and <grub/parser.h>.
4374 (grub_load_normal_mode): Execute normal command.
4375 (grub_main): Call grub_register_core_commands,
4376 grub_register_rescue_parser and grub_register_rescue_reader, use
4377 grub_reader_loop to enter input loop.
4379 * kern/parser.c (grub_parser_split_cmdline): Change type of
4381 (grub_parser_class): New variable.
4382 (grub_parser_execute): New function.
4384 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4385 * loader/multiboot2.c: Likewise.
4386 * loader/sparc64/ieee1275/linux.c: Likewise.
4388 * util/grub-emu.c (read_command_list): New dummy function.
4390 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4392 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4393 count to 16 for CCISS and IDA.
4395 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4397 * normal/menu_text.c (grub_wait_after_message): Print a newline
4398 after waiting for user input.
4400 * loader/i386/linux.c: Include `<grub/normal.h>'.
4401 (grub_cmd_linux): Improve the error message about `ask' mode, by
4402 waiting for user input so it's not missed (we can do this, since
4403 user requested interaction).
4405 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4407 Added missing lst to grub-mkrescue
4409 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4410 and ${input_dir}/parttool.lst
4412 2009-04-30 David S. Miller <davem@davemloft.net>
4414 * util/hostdisk.c (device_is_wholedisk): New function.
4415 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4416 zero only if device_is_wholedisk() returns true.
4418 * util/hostdisk.c (convert_system_partition_to_system_disk):
4419 Handle virtual disk devices named /dev/vdiskX as found on sparc
4422 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4423 lettered partition specifier is found, convert to numbered.
4425 2009-04-29 David S. Miller <davem@davemloft.net>
4427 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4428 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4430 * normal/command.c: Add missing newline at end of file.
4432 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4434 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4435 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4436 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4437 ihandles have a 32-bit type but need to be stored in a "void *".
4439 2009-04-28 Pavel Roskin <proski@gnu.org>
4441 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4442 not disk. Adjust all dependencies.
4443 (grub_fs_uuid_close): Use grub_device_close(), not
4446 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4447 parent's partition, don't copy it by reference, as it gets freed
4450 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4452 Preboot hooks support
4454 * commands/boot.c (struct grub_preboot_t): new declaration
4455 (preboots_head): new variable
4456 (preboots_tail): likewise
4457 (grub_loader_register_preboot_hook): new function
4458 (grub_loader_unregister_preboot_hook): likewise
4459 (grub_loader_set): launch preboot hooks
4460 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4461 (grub_loader_register_preboot_hook): new declaration
4462 (grub_loader_unregister_preboot_hook): likewise
4464 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4468 * disk/scsi.c (grub_scsi_open): added missing cast when
4469 calling grub_dprintf
4471 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4473 Bug and warning fixes
4475 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4477 * commands/test.c (test_parse): fixed bug with file tests and corrected
4478 declaration of find_file
4480 2009-04-26 Pavel Roskin <proski@gnu.org>
4482 * Makefile.in: Don't install empty manual pages if help2man is
4483 missing. Use help2man option for output, not shell redirection.
4485 2009-04-26 David S. Miller <davem@davemloft.net>
4487 * util/grub-mkdevicemap.c (make_device_map): Add missing
4488 NESTED_FUNC_ATTR to process_device().
4490 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4494 * commands/test.c: rewritten to use bash-like test
4496 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4498 Parttool autoloading and improvements
4500 * Makefile.in (pkglib_DATA): add parttool.lst
4501 (parttool.lst): new target
4502 * genmk.rb: generate parttool-*
4503 (CLEANFILES): add #{parttool}
4504 (PARTTOOLFILES): new variable
4505 * genparttoollist.sh: new file
4506 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4507 (grub_pcpart_type): likewise
4508 * commands/parttool.c (helpmsg): new variable
4509 (grub_cmd_parttool): output help if not enough arguments are supplied
4511 (GRUB_MOD_INIT(parttool)): use helpmsg
4513 2009-04-24 David S. Miller <davem@davemloft.net>
4515 Avoiding opening same device multiple times in device iterator.
4517 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4518 and use it to build a list of partitions in iterate_disk() and
4519 iterate_partition().
4521 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4524 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4525 grub_devalias_iterate() result instead of unconditional 0.
4526 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4527 Also, capture hook return value, either directly or via
4528 grub_children_iterate(), and propagate to caller.
4529 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4530 grub_children_iterate): Return value is now 'int' instead of
4532 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4533 like a proper iterator, stopping when hooks return non-zero.
4534 (grub_devalias_iterate): Likewise.
4536 2009-04-23 David S. Miller <davem@davemloft.net>
4538 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4540 2009-04-22 David S. Miller <davem@davemloft.net>
4542 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4543 is larger than address_cells, use that value for address_cells too.
4545 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4546 IEEE1275_MAX_PATH_LEN): Define.
4547 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4548 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4549 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4550 'devtype'. Explicitly NULL terminate devalias expansion.
4552 * util/sparc64/ieee1275/misc.c: New file.
4553 * util/sparc64/ieee1275/grub-setup.c: New file.
4554 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4555 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4556 * util/sparc64/ieee1275/grub-install.in: New file.
4557 * util/ieee1275/ofpath.c: New file.
4558 * util/ieee1275/devicemap.c: New file.
4559 * util/devicemap.c: New file.
4560 * util/deviceiter.c: New file.
4561 * kern/sparc64/ieee1275/init.c: New file.
4562 * include/grub/util/ofpath.h: New file.
4563 * include/grub/util/deviceiter.h: New file.
4564 * util/grub-mkdevicemap.c: Include deviceiter.h.
4565 Implement using grub_util_emit_devicemap_entry and
4566 grub_util_iterate_devices.
4567 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4568 util/devicemap.c into grub-mkdevicemap
4569 * conf/i386-efi.rmk: Likewise.
4570 * conf/i386-ieee1275.rmk: Likewise.
4571 * conf/i386-pc.rmk: Likewise.
4572 * conf/powerpc-ieee1275.rmk: Likewise.
4573 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4574 images and installation utilities. Build kernel as image
4575 instead of as elf binary. Use common rules as much as possible.
4577 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4579 Correct GPT definition
4581 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4584 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4586 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4588 2009-04-19 David S. Miller <davem@davemloft.net>
4590 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4591 (grub_rescue_cmd_linux): Rename to...
4592 (grub_cmd_linux): and fix prototype.
4593 (grub_rescue_cmd_initrd): Rename to...
4594 (grub_cmd_initrd): and fix prototype.
4595 (cmd_linux, cmd_initrd): New.
4596 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4597 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4599 2009-04-17 Pavel Roskin <proski@gnu.org>
4601 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4603 (grub_ohci_transfer): Likewise.
4605 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4607 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4608 return without a value. Fix inconsistent indentation.
4610 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4611 match struct grub_fs.
4613 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4614 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4615 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4616 * commands/lspci.c (grub_lspci_iter): Likewise.
4618 2009-04-16 Bean <bean123ch@gmail.com>
4620 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4623 2009-04-15 Pavel Roskin <proski@gnu.org>
4625 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4626 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4627 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4630 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4632 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4633 that no multiple data or metadata areas are supported and `Unknown
4636 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4638 Move loader out of the kernel
4640 * kern/loader.c: moved to ...
4641 * commands/boot.c: ... moved here
4642 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4643 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4644 * include/grub/kernel.h (grub_machine_fini): export
4645 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4646 (grub_loader_set): likewise
4647 (grub_loader_unset): likewise
4648 (grub_loader_boot): likewise
4649 * conf/common.rmk: new module boot.mod
4650 (pkglib_MODULES): add boot.mod
4651 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4652 (grub_emu_SOURCES): likewise
4653 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4654 (grub_emu_SOURCES): likewise
4655 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4656 (grub_emu_SOURCES): likewise
4657 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4658 (grub_emu_SOURCES): likewise
4659 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4660 (grub_emu_SOURCES): likewise
4661 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4662 (grub_emu_SOURCES): likewise
4663 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4664 (grub_emu_SOURCES): likewise
4666 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4668 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4670 * kern/misc.c (grub_itoa): Removed function
4671 (grub_ltoa): likewise
4672 (grub_vsprintf): use grub_lltoa
4674 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4678 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4679 * conf/i386-coreboot.rmk: likewise
4680 * conf/i386-ieee1275.rmk: likewise
4681 * conf/powerpc-ieee1275.rmk: likewise
4683 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4685 * INSTALL: Add that `./autogen.sh' needs to be run before
4688 2009-04-14 Bean <bean123ch@gmail.com>
4690 * Makefile.in (pkglib_DATA): Add handler.lst.
4691 (handler.lst): New rule.
4693 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4694 * conf/i386-coreboot.rmk: Likewise.
4695 * conf/i386-ieee1275.rmk: Likewise.
4696 * conf/i386-efi.rmk: Likewise.
4697 * conf/x86_64-efi.rmk: Likewise.
4698 * conf/powerpc-ieee1275.rmk: Likewise.
4699 * conf/sparc64-ieee1275.rmk: Likewise.
4701 * genhandlerlist.sh: New file.
4703 * genmk.rb: Add rules to generate handler.lst.
4705 * include/grub/normal.h (grub_file_getline): New function definition.
4706 (read_handler_list): Likewise.
4707 (free_handler_list): Likewise.
4709 * include/grub/term.h (grub_term_register_input): Add name parameter
4710 for auto generation of handler.lst.
4711 (grub_term_register_output): Likewise.
4713 * normal/handler.c: New file.
4715 * normal/main.c (get_line): Renamed to grub_file_getline.
4716 (read_config_file): Use the newly renamed grub_file_getline.
4717 (read_command_list): Likewise.
4718 (read_fs_list): Likewise.
4719 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4720 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4722 * term/efi/console.c (grub_console_init): Add name parameter for auto
4723 generation of handler.lst.
4724 * term/gfxterm.c: Likewise.
4725 * term/i386/pc/at_keyboard.c: Likewise.
4726 * term/i386/pc/console.c: Likewise.
4727 * term/i386/pc/serial.c: Likewise.
4728 * term/i386/pc/vesafb.c: Likewise.
4729 * term/i386/pc/vga.c: Likewise.
4730 * term/i386/pc/vga_text.c: Likewise.
4731 * term/ieee1275/ofconsole.c: Likewise.
4732 * term/usb_keyboard.c: Likewise.
4734 2009-04-14 Bean <bean123ch@gmail.com>
4736 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4737 properly with null character.
4739 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4741 * configure: Remove.
4742 * config.h.in: Likewise.
4743 * stamp-h.in: Likewise.
4744 * DISTLIST: Likewise.
4745 * conf/common.mk: Likewise.
4746 * conf/i386-coreboot.mk: Likewise.
4747 * conf/i386-efi.mk: Likewise.
4748 * conf/i386-ieee1275.mk: Likewise.
4749 * conf/i386.mk: Likewise.
4750 * conf/i386-pc.mk: Likewise.
4751 * conf/powerpc-ieee1275.mk: Likewise.
4752 * conf/sparc64-ieee1275.mk: Likewise.
4753 * conf/x86_64-efi.mk: Likewise.
4755 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4758 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4759 David S. Miller <davem@davemloft.net>
4761 * util/hostdisk.c (make_device_name): Fix buffer length
4764 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4766 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4767 <sys/param.h> and <sys/sysctl.h>.
4768 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4769 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4770 opening the device and reset them afterwards.
4772 2009-04-13 Pavel Roskin <proski@gnu.org>
4774 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4775 Reported by John Stanley <jpsinthemix@verizon.net>
4777 2009-04-13 Robert Millan <rmh@aybabtu.com>
4779 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4780 that name for menuentries when appropriate.
4782 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4784 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4786 2009-04-13 Robert Millan <rmh@aybabtu.com>
4788 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4789 to Linux, simply abort telling the user it's no longer supported.
4791 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4793 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4794 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4795 `freebsd_loadenv' only when devices.hints exist.
4797 2009-04-13 Pavel Roskin <proski@gnu.org>
4799 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4801 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4803 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4805 (grub_drive): Likewise.
4807 2009-04-13 David S. Miller <davem@davemloft.net>
4809 * kern/sparc64/ieee1275/ieee1275.c: New file.
4810 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4811 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4812 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4813 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4814 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4815 grub_ieee1275_alloc_physmem): Declare new exported functions.
4817 * include/grub/sparc64/ieee1275/loader.h: New file.
4818 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4819 * include/grub/sparc64/kernel.h: Likewise.
4820 * loader/sparc64/ieee1275/linux.c: Likewise.
4822 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4823 (grub_fstest_SOURCES): Likewise.
4825 * util/hostdisk.c (make_device_name): Do not make any assumptions
4826 about the length of drive names.
4828 * kern/dl.c (grub_dl_load_file): Close file immediately when
4829 we are done using it.
4831 2009-04-12 David S. Miller <davem@davemloft.net>
4833 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4834 values. Noticed by Pavel Roskin.
4836 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4839 * genmk.rb: Add more flexible image type specification, also
4840 pass --strip-unneeded to objcopy.
4841 * conf/i386-pc.rmk: Use *_FORMAT.
4842 * conf/i386-pc.mk: Rebuilt.
4844 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4845 (OFDISK_HASH_SZ): Define.
4846 (ofdisk_hash): New hash table.
4847 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4848 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4849 instead of device phandle which is not unique.
4851 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4852 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4853 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4854 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4855 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4856 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4857 GRUB_KERNEL_MACHINE_DATA_END): Define.
4858 (grub_kernel_image_size, grub_total_module_size): Declare.
4860 2009-04-12 Pavel Roskin <proski@gnu.org>
4862 * configure.ac: Change the logic when we check for target tools.
4863 Do it when the target is specified and it's different from the
4864 specified value of the host.
4866 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4868 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4869 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4870 GNU/kFreeBSD. Check if a device is a character device. Use
4871 DIOCGMEDIASIZE to get the size.
4872 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4873 support for GNU/kFreeBSD.
4874 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4875 is a character device instead of a block device. Add support for
4876 FreeBSD device names.
4878 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4879 is a character device instead of a block device.
4881 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4882 is a character device instead of a block device.
4884 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4886 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4887 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4888 FreeBSD. Check if a device is a character device. Use
4889 DIOCGMEDIASIZE to get the size.
4890 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4891 support for FreeBSD.
4892 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4893 is a character device instead of a block device. Add support for
4894 FreeBSD device names.
4896 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4897 a character device instead of a block device.
4898 (grub_util_check_char_device): New function.
4900 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4901 a character device instead of a block device.
4903 * include/grub/util/getroot.h (grub_util_check_char_device): New
4906 2009-04-11 David S. Miller <davem@davemloft.net>
4908 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4910 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4911 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4912 function, if present.
4913 (__bswapdi2): Likewise.
4915 * include/grub/sparc64/ieee1275/boot.h: New file.
4916 * boot/sparc64/ieee1275/boot.S: Likewise.
4917 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4919 * kern/misc.c (grub_ltoa): New function.
4920 (grub_vsprintf): Use it to format 'long' integers.
4922 2009-04-10 David S. Miller <davem@davemloft.net>
4924 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4925 slots are of type grub_ieee1275_cell_t.
4926 (grub_nand_read): Likewise.
4927 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4928 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4929 macros are used to compare values in arg/ret block of the call.
4930 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4931 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4932 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4933 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4934 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4935 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4936 grub_ieee1275_close, grub_ieee1275_set_property,
4937 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4938 grub_ieee1275_cell_t.
4939 * kern/ieee1275/openfw.c (grub_map): Likewise.
4940 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4941 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4943 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4944 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4945 (grub_devalias_iterate): Likewise.
4947 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4951 * fs/ufs.c (INODE_NBLOCKS): new definition
4952 (struct grub_ufs_dirent): added fields for non-BSD dirents
4953 (grub_ufs_get_file_block): fixed double indirect handling
4954 (grub_ufs_lookup_symlink): use more robust way to determine whether
4956 (grub_ufs_find_file): support for non-BSD dirents
4957 (grub_ufs_dir): support for non-BSD dirents
4959 2009-04-10 Bean <bean123ch@gnail.com>
4961 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4962 attribute, otherwise the size would be wrong for i386 platform.
4964 * include/grub/pci.h (grub_pci_read_word): New inline function.
4965 (grub_pci_read_byte): Likewise.
4966 (grub_pci_write): Likewise.
4967 (grub_pci_write_word): Likewise.
4968 (grub_pci_write_byte): Likewise.
4970 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4972 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4973 (find_framebuf): Scan pci to locate the frame buffer address.
4975 * commands/efi/fixvideo.c: New file.
4977 * commands/efi/loadbios.c: Likewise.
4979 * commands/memrw.c: Likewise.
4981 * util/grub-dumpbios.in: Likewise.
4983 * conf/common.rmk (grub-dumpbios): New utility.
4984 (pkglib_MODULES): New module memrw.mod.
4985 (memrw_mod_SOURCE): New macro.
4986 (memrw_mod_CFLAGS): Likewise.
4987 (memrw_mod_LDFLAGS): Likewise.
4989 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4991 (loadbios_mod_SOURCE): New macro.
4992 (loadbios_mod_CFLAGS): Likewise.
4993 (loadbios_mod_LDFLAGS): Likewise.
4994 (fixvideo_mod_SOURCE): Likewise.
4995 (fixvideo_mod_CFLAGS): Likewise.
4996 (fixvideo_mod_LDFLAGS): Likewise.
4998 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
5000 (loadbios_mod_SOURCE): New macro.
5001 (loadbios_mod_CFLAGS): Likewise.
5002 (loadbios_mod_LDFLAGS): Likewise.
5003 (fixvideo_mod_SOURCE): Likewise.
5004 (fixvideo_mod_CFLAGS): Likewise.
5005 (fixvideo_mod_LDFLAGS): Likewise.
5007 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
5009 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
5011 2009-04-07 David S. Miller <davem@davemloft.net>
5013 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
5014 support for R_SPARC_OLO10 relocations. Fix compile warning for
5015 R_SPARC_WDISP30 case.
5016 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
5018 2009-04-06 Pavel Roskin <proski@gnu.org>
5020 * include/grub/misc.h (ARRAY_SIZE): New macro.
5021 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
5023 * loader/i386/linux.c (allocate_pages): Use free_pages().
5024 (grub_linux_unload): Don't use free_pages().
5025 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
5026 wrong index. Treat all other modes as text modes.
5027 (grub_cmd_linux): Initialize vid_mode unconditionally to
5028 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
5030 * commands/help.c (print_command_help): Use cmd->prio, not
5031 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
5033 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5037 * parttool/pcpart.c: new file
5038 * commands/parttool.c: likewise
5039 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
5040 (parttool_mod_SOURCES): new variable
5041 (parttool_mod_CFLAGS): likewise
5042 (parttool_mod_LDFLAGS): likewise
5043 (pcpart_mod_SOURCES): likewise
5044 (pcpart_mod_CFLAGS): likewise
5045 (pcpart_mod_LDFLAGS): likewise
5046 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
5047 and parttool/pcpart.c
5048 * conf/i386-efi.rmk: likewise
5049 * conf/i386-ieee1275.rmk: likewise
5050 * conf/i386-pc.rmk: likewise
5051 * conf/powerpc-ieee1275.rmk: likewise
5052 * conf/sparc64-ieee1275.rmk: likewise
5053 * conf/x86_64-ieee1275.rmk: likewise
5055 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5057 Support for mtime and further expandability of dir command
5059 * include/grub/lib/datetime.h: moved to ...
5060 * include/grub/datetime.h: ... moved here and added
5061 declaration of grub_unixtime2datetime. All users updated
5062 * include/grub/fs.h: new syntax for dir and mtime functions in
5064 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5065 and GRUB_FSHELP_FLAGS_MASK
5066 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5067 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5068 (grub_ext2_mtime): new function
5069 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5070 (grub_hfsplus_mtime): new function
5071 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5072 (GRUB_UFS_ATTR_FILE): likewise
5073 (GRUB_UFS_ATTR_LNK): likewise
5074 (struct grub_ufs_sblock): new fields mtime
5075 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5077 (grub_ufs_dir): mtime support
5078 (grub_ufs_mtime): new function
5079 * fs/affs.c (grub_affs_dir): use new dir syntax
5080 * fs/afs.c (grub_afs_dir): likewise
5081 * fs/cpio.c (grub_cpio_dir): likewise
5082 * fs/fat.c (grub_fat_find_dir): likewise
5083 * fs/hfs.c (grub_hfs_dir): likewise
5084 * fs/iso9660.c (grub_iso9660_dir): likewise
5085 * fs/jfs.c (grub_jfs_dir): likewise
5086 * fs/minix.c (grub_minix_dir): likewise
5087 * fs/ntfs.c (grub_ntfs_dir): likewise
5088 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5089 * fs/sfs.c (grub_sfs_dir): likewise
5090 * fs/xfs.c (grub_xfs_dir): likewise
5091 * util/hostfs.c (grub_hostfs_dir): likewise
5092 * lib/datetime.c: moved to ...
5093 * normal/datetime.c: ... moved here
5094 (grub_unixtime2datetime): new function
5095 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5096 * normal/completion.c (iterate_dir): use new dir syntax
5097 * normal/misc.c (grub_normal_print_device_info): tell the
5098 last modification time of a volume
5099 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5100 * conf/common.rmk: added lib/datetime.c to ls.mod
5101 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5102 (normal_mod_SOURCES): likewise
5103 (datetime_mod_SOURCES): Removed lib/datetime.c
5104 * conf/i386-efi.rmk: likewise
5105 * conf/i386-ieee1275.rmk: likewise
5106 * conf/i386-pc.rmk: likewise
5107 * conf/powerpc-ieee1275.rmk: likewise
5108 * conf/sparc64-ieee1275.rmk: likewise
5109 * conf/x86_64-efi.rmk: likewise
5111 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5113 Trim trailing spaces in FAT label and support mtools-like labels
5115 * fs/fat.c (grub_fat_iterate_dir): New function based
5116 on grub_fat_find_dir
5117 (grub_fat_find_dir): use grub_fat_iterate_dir
5118 (grub_fat_label): likewise
5120 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5122 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5124 remove extraneous kernel_elf_HEADERS
5126 2009-04-04 Bean <bean123ch@gnail.com>
5128 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5130 * util/misc.c: Likewise.
5132 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5134 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5135 instead of grub_printf.
5137 2009-04-03 Robert Millan <rmh@aybabtu.com>
5139 * loader/i386/linux.c (grub_linux_setup_video): Fill
5140 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5141 values from `mode info' structure instead of hardcoded
5144 2009-04-01 Pavel Roskin <proski@gnu.org>
5146 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5148 * genmk.rb: Likewise.
5149 * configure.ac: Likewise.
5151 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5153 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5154 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5156 2009-04-01 David S. Miller <davem@davemloft.net>
5158 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5159 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5160 (grub_setjmp): Mark with 'returns_twice' attribute.
5161 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5162 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5163 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5165 2009-04-01 Robert Millan <rmh@aybabtu.com>
5167 Reapply fix from 2008-07-28 which was accidentally reverted; also
5168 perform the same fix to a similar check in same function.
5170 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5171 with the same number are found, just use issue a warning with
5172 grub_dprintf(), as this error has been reported to be non-fatal.
5174 2009-03-31 Pavel Roskin <proski@gnu.org>
5176 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5177 for cross-compilation.
5179 2009-03-30 Robert Millan <rmh@aybabtu.com>
5181 Fix i386-ieee1275 build.
5183 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5186 2009-03-30 Pavel Roskin <proski@gnu.org>
5188 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5189 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5190 zero-terminated, rely only on the strlen value. Fix comparison
5191 of strings differing in length.
5193 2009-03-30 Robert Millan <rmh@aybabtu.com>
5195 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5196 checking for abi version. Improve error messages on BIOS to notify
5197 user about `linux16' command.
5199 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5203 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5204 in case of collision
5205 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5207 2009-03-29 Robert Millan <rmh@aybabtu.com>
5209 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5210 set `vid_mode' accordingly.
5211 (grub_linux_boot): Process `vid_mode' and set video mode.
5213 2009-03-29 Robert Millan <rmh@aybabtu.com>
5215 * util/grub.d/10_linux.in (linux_entry): New function.
5216 Factorize generation of Linux boot entries.
5218 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5220 Make the format of Environment Block plain text. The boot loader
5221 part is not tested well yet.
5223 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5226 (usage): Remove "info" and "clear". Add "unset". Update the
5227 description of "set", as this does not delete variables any
5229 (create_envblk_file): Complete rewrite.
5230 (open_envblk_file): Likewise.
5231 (cmd_info): Removed.
5232 (cmd_list): Likewise.
5233 (cmd_set): Likewise.
5234 (cmd_clear): Likewise.
5235 (list_variables): New function.
5236 (write_envblk): Likewise.
5237 (set_variables): Likewise.
5238 (unset_variables): Likewise.
5239 (main): Complete rewrite.
5241 * commands/loadenv.c (buffer): Removed.
5243 (open_envblk_file): New function.
5244 (read_envblk_file): Complete rewrite.
5245 (grub_cmd_load_env): Likewise.
5246 (grub_cmd_list_env): Likewise.
5247 (struct blocklist): New struct.
5248 (free_blocklists): New function.
5249 (check_blocklists): Likewise.
5250 (write_blocklists): Likewise.
5251 (grub_cmd_save_env): Complete rewrite.
5253 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5254 a plain text signature.
5255 (GRUB_ENVBLK_MAXLEN): Removed.
5256 (struct grub_envblk): Complete rewrite.
5257 (grub_envblk_find): Removed.
5258 (grub_envblk_insert): Likewise.
5259 (grub_envblk_open): New prototype.
5260 (grub_envblk_set): Likewise.
5261 (grub_envblk_delete): Put const to VALUE.
5262 (grub_envblk_iterate): Put const to NAME and VALUE.
5263 (grub_envblk_close): New prototype.
5264 (grub_envblk_buffer): New inline function.
5265 (grub_envblk_size): Likewise.
5267 * lib/envblk.c: Include grub/mm.h.
5268 (grub_env_find): Removed.
5269 (grub_envblk_open): New function.
5270 (grub_envblk_close): Likewise.
5271 (escaped_value_len): Likewise.
5272 (find_next_line): Likewise.
5273 (grub_envblk_insert): Removed.
5274 (grub_envblk_set): New function.
5275 (grub_envblk_delete): Complete rewrite.
5276 (grub_envblk_iterate): Likewise.
5278 2009-03-28 Robert Millan <rmh@aybabtu.com>
5280 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5281 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5282 variables. Use 16-bit loader.
5283 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5285 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5286 (grub_linux16_boot): ... this. Update all users.
5287 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5288 (grub_linux_boot): ... this. Update all users.
5290 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5291 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5292 commands to `linux16' and `initrd16'.
5293 (GRUB_MOD_FINI(linux)): Rename to ...
5294 (GRUB_MOD_FINI(linux16)): ... this.
5296 2009-03-24 Pavel Roskin <proski@gnu.org>
5298 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5299 not just for compilation.
5301 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5303 Move multiboot helper out of kernel
5305 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5306 `loader/i386/multiboot_helper.S'.
5307 * conf/i386-coreboot.rmk: Likewise
5308 * conf/i386-ieee1275.rmk: Likewise
5310 * kern/i386/loader.S: Move multiboot helpers from here...
5311 * loader/i386/multiboot_helper.S: ...moved here
5312 * include/grub/i386/loader.h: Move declarations of multiboot
5313 helpers from here...
5314 * include/grub/i386/multiboot.h: ...moved here
5315 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5317 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5319 * kern/env.c (grub_env_context_open): Added an argument to specify
5320 whether a new context inherits exported variables from current
5321 one. This is useful when making a sandbox to interpret a config
5323 All callers updated.
5325 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5327 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5329 * kern/env.c (grub_env_context_close): Fix memory leaks.
5331 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5333 * normal/main.c (grub_normal_execute): Added an argument
5334 BATCH to specify if an interactive interface should be provided
5335 after reading a config file.
5336 All callers updated.
5337 (read_command_list): Prevent being executed twice.
5338 (read_fs_list): Likewise.
5340 * include/grub/normal.h (grub_normal_execute): Updated the
5343 2009-03-22 Pavel Roskin <proski@gno.org>
5345 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5347 * kern/i386/pc/startup.S: Likewise.
5348 * kern/i386/efi/startup.S: Likewise.
5349 * kern/i386/ieee1275/startup.S: Likewise.
5350 * kern/i386/coreboot/startup.S: Likewise.
5351 * kern/x86_64/efi/startup.S: Likewise.
5353 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5354 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5355 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5357 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5359 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5361 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5363 Use vaddr of correct segment for entry_point.
5365 2009-03-21 Bean <bean123ch@gmail.com>
5367 * commands/blocklist.c: Add include file <grub/command.h>, remove
5368 <grub/normal.h> and <grub/arg.h>.
5369 (grub_cmd_blocklist): Use the new command interface.
5370 (GRUB_MOD_INIT): Likewise.
5371 (GRUB_MOD_FINI): Likewise.
5372 * commands/boot.c: Likewise.
5373 * commands/cat.c: Likewise.
5374 * commands/cmp.c: Likewise.
5375 * commands/configfile.c: Likewise.
5376 * commands/crc.c: Likewise.
5377 * commands/echo.c: Likewise.
5378 * commands/halt.c: Likewise.
5379 * commands/handler.c: Likewise.
5380 * commands/hdparm.c: Likewise.
5381 * commands/help.c: Likewise.
5382 * commands/hexdump.c: Likewise.
5383 * commands/loadenv.c: Likewise.
5384 * commands/ls.c: Likewise.
5385 * commands/lsmmap.c: Likewise.
5386 * commands/lspci.c: Likewise.
5387 * commands/loadenv.c: Likewise.
5388 * commands/read.c: Likewise.
5389 * commands/reboot.c: Likewise.
5390 * commands/search.c: Likewise.
5391 * commands/sleep.c: Likewise.
5392 * commands/test.c: Likewise.
5393 * commands/usbtest.c: Likewise.
5394 * commands/videotest.c: Likewise.
5395 * commands/i386/cpuid.c: Likewise.
5396 * commands/i386/pc/halt.c: Likewise.
5397 * commands/i386/pc/play.c: Likewise.
5398 * commands/i386/pc/pxecmd.c: Likewise.
5399 * commands/i386/pc/vbeinfo.c: Likewise.
5400 * commands/i386/pc/vbetest.c: Likewise.
5401 * commands/ieee1275/suspend.c: Likewise.
5402 * disk/loopback.c: Likewise.
5403 * font/font_cmd.c: Likewise.
5404 * hello/hello.c: Likewise.
5405 * loader/efi/appleloader.c: Likewise.
5406 * loader/efi/chainloader.c: Likewise.
5407 * loader/i386/bsd.c: Likewise.
5408 * loader/i386/efi/linux.c: Likewise.
5409 * loader/i386/ieee1275/linux.c: Likewise.
5410 * loader/i386/linux.c: Likewise.
5411 * loader/i386/pc/chainloader.c: Likewise.
5412 * loader/i386/pc/linux.c: Likewise.
5413 * loader/powerpc/ieee1275/linux.c: Likewise.
5414 * loader/multiboot_loader.c: Likewise.
5415 * term/gfxterm.c: Likewise.
5416 * term/i386/pc/serial.c: Likewise.
5417 * term/terminfo.c: Likewise.
5419 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5420 * term/i386/pc/vga.c: Likewise.
5421 * video/readers/jpeg.c: Likewise.
5422 * video/readers/png.c: Likewise.
5423 * video/readers/tga.c: Likewise.
5425 * util/grub-fstest (cmd_loopback): Removed.
5426 (cmd_blocklist): Likewise.
5428 (grub_register_command): Likewise.
5429 (grub_unregister_command): Likewise.
5430 (execute_command): Use grub_command_find to locate command and execute
5433 * include/grub/efi/chainloader.h: Removed.
5434 * loader/efi/chainloader_normal.c: Likewise.
5435 * loader/i386/bsd_normal.c: Likewise.
5436 * loader/i386/pc/chainloader_normal.c: Likewise.
5437 * loader/i386/pc/multiboot_normal.c: Likewise.
5438 * loader/linux_normal.c: Likewise.
5439 * loader/multiboot_loader_normal.c: Likewise.
5440 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5442 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5443 and grub_register_command_p1.
5445 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5446 kern/command.c, lib/arg.c and commands/extcmd.c.
5447 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5448 (minicmd_mod_SOURCES): New variable.
5449 (minicmd_mod_CFLAGS): Likewise.
5450 (minicmd_mod_LDFLAGS): Likewise.
5451 (extcmd_mod_SOURCES): Likewise.
5452 (extcmd_mod_CFLAGS): Likewise.
5453 (extcmd_mod_LDFLAGS): Likewise.
5454 (boot_mod_SOURCES): Removed.
5455 (boot_mod_CFLAGS): Likewise.
5456 (boot_mod_LDFLAGS): Likewise.
5458 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5460 (kernel_img_HEADERS): Add command.h.
5461 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5462 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5464 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5465 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5466 remove the corresponding normal mode command.
5467 (normal_mod_SOURCES): Remove normal/arg.c.
5468 * conf/i386-coreboot.rmk: Likewise.
5469 * conf/i386-efi.rmk: Likewise.
5470 * conf/i386-ieee1275.rmk: Likewise.
5471 * conf/powerpc-ieee1275.rmk: Likewise.
5472 * conf/x86_64-efi.rmk: Likewise.
5474 * include/grub/arg.h: Move from here ...
5475 * include/grub/lib/arg.h: ... to here.
5477 * normal/arg.c: Move from here ...
5478 * lib/arg.c: ... to here.
5480 * commands/extcmd.c: New file.
5481 * commands/minicmd.c: Likewise.
5482 * include/grub/command.h: Likewise.
5483 * include/grub/extcmd.h: Likewise.
5484 * kern/command.c: Likewise.
5485 * kern/corecmd.c: Likewise.
5487 * kern/list.c (grub_list_iterate): Return int instead of void.
5488 (grub_list_insert): New function.
5489 (grub_prio_list_insert): Likewise.
5491 * kern/rescue.c (grub_rescue_command): Removed.
5492 (grub_rescue_command_list): Likewise.
5493 (grub_rescue_register_command): Likewise.
5494 (grub_rescue_unregister_command): Likewise.
5495 (grub_rescue_cmd_boot): Move to minicmd.c
5496 (grub_rescue_cmd_help): Likewise.
5497 (grub_rescue_cmd_info): Likewise.
5498 (grub_rescue_cmd_boot): Likewise.
5499 (grub_rescue_cmd_testload): Likewise.
5500 (grub_rescue_cmd_dump): Likewise.
5501 (grub_rescue_cmd_rmmod): Likewise.
5502 (grub_rescue_cmd_lsmod): Likewise.
5503 (grub_rescue_cmd_exit): Likewise.
5504 (grub_rescue_print_devices): Moved to corecmd.c.
5505 (grub_rescue_print_files): Likewise.
5506 (grub_rescue_cmd_ls): Likewise.
5507 (grub_rescue_cmd_insmod): Likewise.
5508 (grub_rescue_cmd_set): Likewise.
5509 (grub_rescue_cmd_unset): Likewise.
5510 (attempt_normal_mode): Use grub_command_find to get normal module.
5511 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5512 commands, remove grub_rescue_register_command calls.
5514 * normal/command.c (grub_register_command): Removed.
5515 (grub_unregister_command): Likewise.
5516 (grub_command_find): Likewise.
5517 (grub_iterate_commands): Likewise.
5518 (rescue_command): Likewise.
5519 (export_command): Moved to corecmd.c.
5520 (set_command): Removed.
5521 (unset_command): Likewise.
5522 (insmod_command): Likewise.
5523 (rmmod_command): Likewise.
5524 (lsmod_command): Likewise.
5525 (grub_command_init): Likewise.
5527 * normal/completion.c (iterate_command): Use cmd->prio to check for
5529 (complete_arguments): Use grub_extcmd_t structure to find options.
5530 (grub_normal_do_completion): Change function grub_iterate_commands to
5531 grub_command_iterate.
5533 * normal/execute.c (grub_script_execute_cmd): No need to parse
5536 * normal/main.c (grub_dyncmd_dispatcher): New function.
5537 (read_command_list): Register unload commands as dyncmd.
5538 (grub_cmd_normal): Use new command interface, register rescue,
5539 unregister normal at entry, register normal, unregister rescue at exit.
5541 * include/grub/list.h (grub_list_test_t): New type.
5542 (grub_list_iterate): Return int instead of void.
5543 (grub_list_insert): New function.
5544 (GRUB_AS_NAMED_LIST_P): New macro.
5545 (GRUB_AS_PRIO_LIST): Likewise.
5546 (GRUB_AS_PRIO_LIST_P): Likewise.
5547 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5548 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5549 (grub_prio_list): New structure.
5550 (grub_prio_list_insert): New function.
5551 (grub_prio_list_remove): New inline function.
5553 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5554 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5555 (GRUB_COMMAND_FLAG_MENU): Likewise.
5556 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5557 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5558 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5559 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5560 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5561 (grub_command): Likewise.
5562 (grub_register_command): Likewise.
5563 (grub_command_find): Likewise.
5564 (grub_iterate_commands): Likewise.
5565 (grub_command_init): Likewise.
5566 (grub_arg_parse): Likewise.
5567 (grub_arg_show_help): Likewise.
5569 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5570 (grub_rescue_unregister_command): Likewise.
5572 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5573 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5574 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5576 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5577 grub_rescue_cmd_initrd.
5578 * include/grub/i386/loader.h: Likewise.
5579 * include/grub/x86_64/loader.h: Likewise.
5581 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5583 2009-03-21 Bean <bean123ch@gmail.com>
5585 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5586 instead of stat in mingw environment.
5588 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5590 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5592 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5595 2009-03-21 Bean <bean123ch@gmail.com>
5597 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5600 2009-03-18 Michel Dänzer <michel@daenzer.net>
5602 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5603 checking inode flags for EXT4_EXTENTS_FLAG.
5605 2009-03-18 Robert Millan <rmh@aybabtu.com>
5607 * loader/i386/linux.c: Include `<grub/video.h>' and
5608 `<grub/i386/pc/vbe.h>'..
5609 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5610 (grub_linux32_boot): Attempt to configure video settings with
5611 grub_linux_setup_video().
5612 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5613 to avoid grub_console_fini() which would step out of graphical mode
5616 2009-03-14 Robert Millan <rmh@aybabtu.com>
5618 Fix build on powerpc.
5619 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5621 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5623 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5624 background image command.
5626 2009-03-12 Colin D Bennett <colin@gibibit.com>
5628 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5629 (grub_gfxterm_putchar): Extract pairs of identical calls to
5630 draw_cursor out of conditional blocks.
5632 2009-03-11 Pavel Roskin <proski@gnu.org>
5634 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5635 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5637 2009-03-11 Robert Millan <rmh@aybabtu.com>
5639 * loader/i386/multiboot_elfxx.c
5640 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5642 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5644 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5647 2009-03-11 Robert Millan <rmh@aybabtu.com>
5649 * loader/i386/multiboot.c (code_size): New variable.
5650 (grub_multiboot): Define offsets by adding to `code_size' rather
5651 than subtracting from `grub_multiboot_payload_size'. Provide
5652 4-byte alignment to MBI and others by increasing
5653 `boot_loader_name_length' appropriately.
5655 * loader/i386/multiboot_elfxx.c
5656 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5658 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5660 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5663 2009-03-08 Robert Millan <rmh@aybabtu.com>
5665 Make loader/i386/linux.c usable on i386-pc again.
5667 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5669 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5672 2009-03-07 Bean <bean123ch@gmail.com>
5674 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5677 2009-03-06 Robert Millan <rmh@aybabtu.com>
5679 Fix display issue on terminals with screen size other than 80x25
5680 (e.g. gfxterm with resolution higher than 640x480).
5682 * normal/main.c (grub_normal_init_page): Display title text in a
5683 position relative to the center of the terminal instead of relying
5684 on a hardcoded offset.
5686 2009-03-04 Robert Millan <rmh@aybabtu.com>
5688 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5691 * Makefile.in (host_kernel): New variable.
5692 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5693 scripts instead of just the windows one.
5694 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5696 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5698 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5700 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5701 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5702 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5704 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5705 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5707 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5709 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5710 or if there's no space for the disk label and print the partition number on a
5713 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5715 * util/misc.c: Include <time.h>.
5716 (grub_millisleep): New function.
5718 2009-03-04 Bean <bean123ch@gmail.com>
5720 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5721 another option -mno-red-zone.
5723 * commands/handler.c: Change module description.
5725 * kern/handler.c: Add missing space at the end of description line.
5727 * kern/list.c: Likewise.
5729 2009-03-03 Robert Millan <rmh@aybabtu.com>
5731 Move more components to the relocation area, and fix mbi pointer
5732 handling to use the destination rather than the origin (thanks to
5733 Vladimir Serbinenko for spotting).
5735 * loader/i386/multiboot.c (mbi_dest): New variable.
5736 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5737 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5740 2009-03-01 Bean <bean123ch@gmail.com>
5742 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5743 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5744 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5745 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5747 * loader/i386/efi/linux.c (acpi_guid): New variable.
5748 (acpi_guid): Likewise.
5749 (EBDA_SEG_ADDR): New constant.
5750 (LOW_MEM_ADDR): Likewise.
5751 (FAKE_EBDA_SEG): Likewise.
5752 (fake_bios_data): New function.
5753 (grub_linux_boot): Call fake_bios_data.
5755 2009-03-01 Bean <bean123ch@gmail.com>
5757 * commands/terminal.c: Removed.
5759 * commands/handler.c: New file.
5761 * include/grub/list.h: Likewise.
5763 * include/grub/handler.h: Likewise.
5765 * kern/list.c: Likewise.
5767 * kern/handler.c: Likewise.
5769 * kern/term.h: Include header file <grub/handler.h>.
5770 (grub_term_input): Move next field to the beginning.
5771 (grub_term_output): Likewise.
5772 (grub_term_input_class): New variable.
5773 (grub_term_output_class): Likewise.
5774 (grub_term_register_input): Changed to inline function.
5775 (grub_term_register_output): Likewise.
5776 (grub_term_unregister_input): Likewise.
5777 (grub_term_unregister_output): Likewise.
5778 (grub_term_set_current_input): Likewise.
5779 (grub_term_set_current_output): Likewise.
5780 (grub_term_get_current_input): Likewise.
5781 (grub_term_get_current_output): Likewise.
5782 (grub_term_iterate_input): Removed.
5783 (grub_term_iterate_output): Likewise.
5785 * kern/term.c (grub_term_list_input): Removed.
5786 (grub_term_list_output): Likewise.
5787 (grub_term_input_class): New variable.
5788 (grub_term_output_class): Likewise.
5789 (grub_cur_term_input): Change variable as macro.
5790 (grub_cur_term_output): Likewise.
5791 (grub_term_register_input): Removed.
5792 (grub_term_register_output): Likewise.
5793 (grub_term_unregister_input): Likewise.
5794 (grub_term_unregister_output): Likewise.
5795 (grub_term_set_current_input): Likewise.
5796 (grub_term_set_current_output): Likewise.
5797 (grub_term_iterate_input): Likewise.
5798 (grub_term_iterate_output): Likewise.
5799 (grub_term_get_current_input): Likewise.
5800 (grub_term_get_current_output): Likewise.
5802 * util/grub-editenv.c: Include header file <grub/handler.h>.
5803 (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/grub-fstest.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 * util/grub-probe.c (grub_term_get_current_input): Removed.
5814 (grub_term_get_current_output): Likewise.
5815 (grub_term_input_class): New variable.
5816 (grub_term_output_class): Likewise.
5818 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5819 (grub_term_get_current_output): Likewise.
5820 (grub_term_input_class): New variable.
5821 (grub_term_output_class): Likewise.
5823 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5824 (terminal_mod_SOURCES): Likewise.
5825 (terminal_mod_CFLAGS): Likewise.
5826 (terminal_mod_LDFLAGS): Likewise.
5828 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5830 (kernel_img_SOURCES): Add list.c and handler.c.
5831 (kernel_img_HEADERS): Add list.h and handler.h.
5833 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5835 (kernel_mod_SOURCES): Add list.c and handler.c.
5836 (kernel_mod_HEADERS): Add list.h and handler.h.
5838 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5840 (kernel_elf_SOURCES): Add list.c and handler.c.
5841 (kernel_elf_HEADERS): Add list.h and handler.h.
5843 * conf/i386-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 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5850 (kernel_mod_SOURCES): Add list.c and handler.c.
5851 (kernel_mod_HEADERS): Add list.h and handler.h.
5853 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5855 (kernel_elf_SOURCES): Add list.c and handler.c.
5856 (kernel_elf_HEADERS): Add list.h and handler.h.
5858 2009-02-27 Robert Millan <rmh@aybabtu.com>
5860 Factorize elf32 / elf64 code in Multiboot loader. This will
5861 prevent it from getting out of sync again.
5863 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5864 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5865 grub_multiboot_load_elf64): Move from here ...
5866 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5867 grub_multiboot_load_elf): ... to here (new file).
5869 2009-02-27 Robert Millan <rmh@aybabtu.com>
5871 * util/grub.d/10_linux.in: Rename "single-user mode" to
5874 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5876 Don't leak in SCSI code.
5877 * disk/scsi.c (grub_scsi_close): free `scsi'.
5879 2009-02-27 Robert Millan <rmh@aybabtu.com>
5881 * loader/i386/pc/multiboot.c: Move from here ...
5882 * loader/i386/multiboot.c: ... to here. Update all users.
5884 2009-02-27 Robert Millan <rmh@aybabtu.com>
5886 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5887 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5889 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5891 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5894 2009-02-27 Robert Millan <rmh@aybabtu.com>
5896 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5897 `0x' qualifier as 0 when base is specified as parameter).
5899 2009-02-24 Bean <bean123ch@gmail.com>
5901 * configure.ac: Check for -mcmodel=large in x86_64 target.
5903 * include/grub/efi/api.h (efi_call_10): New macro.
5904 (efi_wrap_10): New function.
5906 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5907 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5908 (GRUB_PE32_REL_BASED_LOW): Likewise.
5909 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5910 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5911 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5912 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5913 (GRUB_PE32_REL_BASED_REL): Likewise.
5914 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5915 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5916 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5918 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5921 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5922 (efi_wrap_10): New function.
5924 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5926 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5927 MB/MBP model (NV chipset).
5928 (devdata_devs): Add devpath_5 to the list.
5930 * load/i386/efi/linux.c (video_base): Remove variable.
5931 (RGB_MASK): New macro.
5932 (RGB_MAGIC): Likewise.
5933 (LINE_MIN): Likewise.
5934 (LINE_MAX): Likewise.
5935 (FBTEST_STEP): Likewise.
5936 (FBTEST_COUNT): Likewise.
5937 (fb_list): New variable.
5938 (grub_find_video_card): Remove function.
5939 (find_framebuf): New function.
5940 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5943 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5946 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5948 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5950 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5953 2009-02-22 Robert Millan <rmh@aybabtu.com>
5955 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5956 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5957 in our relocation, instead of using it directly from heap. Also
5958 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5960 2009-02-21 Robert Millan <rmh@aybabtu.com>
5962 Implement USB keyboard support (based on patch by Marco Gerards)
5964 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5965 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5966 (usb_keyboard_mod_LDFLAGS): New variables.
5968 * term/usb_keyboard.c: New file.
5970 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5972 Corrected wrong declaration
5974 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5976 2009-02-14 Christian Franke <franke@computer.org>
5978 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5979 (grub_lspci_iter): Print class code and programming interface byte.
5981 2009-02-14 Christian Franke <franke@computer.org>
5983 * gendistlist.sh: Ignore `.svn' directories.
5985 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5987 * fs/fat.c: Add 2009 to Copyright line.
5989 2009-02-14 Christian Franke <franke@computer.org>
5991 * commands/hdparm.c: New file. Provides `hdparm' command
5992 which sends ATA commands via grub_disk_ata_pass_through ().
5994 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5996 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5997 and <grub/cpu/io.h> to include/grub/ata.h.
5998 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5999 (GRUB_CDROM_SECTOR_SIZE): Remove.
6000 (GRUB_ATA_*): Move to include/grub/ata.h.
6001 (GRUB_ATAPI_*): Likewise.
6002 (enum grub_ata_commands): Likewise.
6003 (enum grub_ata_timeout_milliseconds): Likewise.
6004 (struct grub_ata_device): Likewise.
6005 (grub_ata_regset): Likewise.
6006 (grub_ata_regget): Likewise.
6007 (grub_ata_regset2): Likewise.
6008 (grub_ata_regget2): Likewise.
6009 (grub_ata_check_ready): Likewise.
6010 (grub_ata_wait_not_busy): Remove static, exported in
6012 (grub_ata_wait_drq): Likewise.
6013 (grub_ata_pio_read): Likewise.
6015 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
6016 function for hdparm.mod.
6018 * include/grub/ata.h: New file, contains declarations from
6020 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
6022 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
6023 (grub_disk_ata_pass_through): New exported variable.
6025 * kern/disk.c (grub_disk_ata_pass_through): New variable.
6027 2009-02-13 Colin D Bennett <colin@gibibit.com>
6029 Support multiple fallback entries, and provide an API to support
6030 executing default+fallback menu entries. Renamed the `terminal' menu
6033 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
6034 variable declaration.
6035 (grub_menu_execute_callback): New structure declaration.
6036 (grub_menu_execute_callback_t): New typedef.
6037 (grub_menu_execute_with_fallback): New function declaration.
6038 (grub_menu_get_entry): Likewise.
6039 (grub_menu_get_timeout): Likewise.
6040 (grub_menu_set_timeout): Likewise.
6042 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
6044 * normal/menu.c (grub_wait_after_message): Moved to
6045 `normal/menu_text.c'.
6046 (draw_border): Likewise.
6047 (print_message): Likewise.
6048 (print_entry): Likewise.
6049 (print_entries): Likewise.
6050 (grub_menu_init_page): Likewise.
6051 (get_entry_number): Likewise.
6052 (print_timeout): Likewise.
6053 (run_menu): Likewise.
6054 (grub_menu_execute_entry): Likewise.
6055 (show_text_menu): Likewise.
6056 (get_and_remove_first_entry_number): New function.
6057 (grub_menu_execute_with_fallback): Likewise.
6058 (get_entry): Renamed to ...
6059 (grub_menu_get_entry): .. this and made it global.
6060 (get_timeout): Renamed to ...
6061 (grub_menu_get_timeout): ... this and made it global.
6062 (set_timeout): Renamed to ...
6063 (grub_menu_set_timeout): ... this and made it global.
6064 (grub_normal_terminal_menu_viewer): Renamed to ...
6065 (grub_normal_text_menu_viewer): ... this.
6067 * normal/menu_text.c: New file. Extracted text-menu-specific code
6070 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6071 (normal_mod_SOURCES): Likewise.
6073 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6074 (normal_mod_SOURCES): Likewise.
6076 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6077 (normal_mod_SOURCES): Likewise.
6079 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6080 (normal_mod_SOURCES): Likewise.
6082 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6083 (normal_mod_SOURCES): Likewise.
6085 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6086 (normal_mod_SOURCES): Likewise.
6088 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6089 (normal_mod_SOURCES): Likewise.
6091 2009-02-11 Robert Millan <rmh@aybabtu.com>
6093 * util/grub.d/00_header.in: Update old reference to `font' command.
6095 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6097 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6099 Based on patch from Javier MartÃn.
6101 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6103 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6104 to avoid false positives with FAT.
6105 (grub_fstest_SOURCES): Likewise.
6106 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6107 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6108 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6109 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6110 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6111 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6113 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6115 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6116 bpb.version_specific.fat12_or_fat16.fstype and
6117 bpb.version_specific.fat32.fstype.
6119 2009-02-08 Robert Millan <rmh@aybabtu.com>
6121 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6123 2009-02-08 Robert Millan <rmh@aybabtu.com>
6125 * Makefile.in (host_os, host_cpu): New variables.
6126 (target_os): Remove. Update all users.
6128 2009-02-08 Marco Gerards <marco@gnu.org>
6130 * Makefile.in (enable_grub_emu_usb): New variable.
6131 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6132 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6133 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6134 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6135 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6136 `usbtest.mod' and `usbms.mod'.
6137 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6138 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6139 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6140 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6141 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6144 * disk/usbms.c: New file.
6146 * include/grub/usb.h: Likewise.
6148 * include/grub/usbtrans.h: Likewise.
6150 * include/grub/usbdesc.h: Likewise.
6152 * bus/usb/usbtrans.c: Likewise.
6154 * bus/usb/ohci.c: Likewise.
6156 * bus/usb/uhci.c: Likewise.
6158 * bus/usb/usbhub.c: Likewise.
6160 * bus/usb/usb.c: Likewise.
6162 * commands/usbtest.c: Likewise.
6164 * util/usb.c: Likewise.
6166 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6168 * configure.ac: Test for libusb presence.
6170 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6172 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6174 * kern/mm.c: Add more comments.
6176 2009-02-08 Robert Millan <rmh@aybabtu.com>
6178 Patch from Javier MartÃn.
6179 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6180 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6182 2009-02-08 Robert Millan <rmh@aybabtu.com>
6184 * fs/cpio.c: Split tar functionality to ...
6185 * fs/tar.c: ... here (new file). Update all users.
6187 2009-02-07 Robert Millan <rmh@aybabtu.com>
6189 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6190 backward-incompatible features.
6192 Based on patch from Javier MartÃn, with some adjustments.
6194 2009-02-07 Michael Scherer <misc@mandriva.org>
6196 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6198 2009-02-07 Robert Millan <rmh@aybabtu.com>
6200 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6201 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6202 after the RAID stuff.
6204 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6206 Fixes problem when running vbetest command as reported by
6207 Vladimir Serbinenko <phcoder@gmail.com>.
6209 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6211 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6213 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6214 /dev/md/NpN style mdraid devices.
6216 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6218 * util/unifont2pff.rb: Remove.
6220 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6222 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6225 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6227 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6228 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6229 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6230 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6231 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6232 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6233 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6235 2009-02-02 Christian Franke <franke@computer.org>
6237 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6239 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6241 * INSTALL: Note that we now require at least autoconf 2.59 and
6242 that LZO is optional.
6244 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6246 Base on patch on bug #24154 created by Tomas Tintera
6249 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6251 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6253 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6254 <bero@arklinux.org>.
6256 * normal/parser.y (script_init): Add missing semicolon.
6258 2009-01-31 Colin D Bennett <colin@gibibit.com>
6260 * normal/main.c: Add include to grub/menu_viewer.h.
6261 (free_menu_entry_classes): Added.
6262 (grub_normal_menu_addentry): Added class property handling.
6263 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6264 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6266 * normal/menu_viewer.c: New file.
6268 * normal/menu.c (run_menu_entry): Renamed to ...
6269 (grub_menu_execute_entry): ... this and made it as global.
6270 (grub_menu_run): Renamed to ...
6271 (show_text_menu): ... this and made it local.
6272 (show_text_menu): Adapt to new function names.
6273 (grub_normal_terminal_menu_viewer): New global variable.
6275 * include/grub/menu.h: New file.
6277 * include/grub/menu_viewer.h: New file.
6279 * include/grub/normal.h: Added include to grub/menu.h.
6280 (grub_menu_entry): Moved to include/grub/menu.h.
6281 (grub_menu_entry_t): Likewise.
6282 (grub_menu): Likewise.
6283 (grub_menu_t): Likewise.
6284 (grub_normal_terminal_menu_viewer): Added.
6285 (grub_menu_execute_entry): Likewise.
6286 (grub_menu_run): Removed.
6288 * DISTLIST: Added include/grub/menu.h.
6289 Added include/grub/menu_viewer.h.
6290 Added normal/menu_viewer.c.
6292 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6294 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6295 arglist for menutitle arguments.
6297 * normal/main.c (grub_normal_menu_addentry): Likewise.
6299 * normal/parser.y (menuentry): Likewise.
6301 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6303 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6304 (grub_script_create_cmdmenu): Likewise.
6306 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6308 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6311 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6313 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6315 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6317 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6319 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6321 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6323 2009-01-30 Christian Franke <franke@computer.org>
6325 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6326 in option help text.
6328 2009-01-27 Pavel Roskin <proski@gnu.org>
6330 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6332 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6334 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6336 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6338 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6339 unregister function.
6341 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6343 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6345 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6347 * util/grub-mkfont.c (usage): Fix typo.
6349 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6351 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6353 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6355 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6357 * kern/misc.c (grub_strcasecmp): New function.
6358 (grub_strcasecmp): Use grub_size_t instead of int for length.
6360 * include/grub/misc.h: Update function prototypes.
6362 2009-01-26 Robert Millan <rmh@aybabtu.com>
6364 * configure.ac: Fix cross-compilation check.
6366 2009-01-22 Christian Franke <franke@computer.org>
6368 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6369 (precision) digit string. Allow `.format2' without `format1' (width).
6370 Limit input chars for `%s' output to `format2' if specified. This is
6371 compatible with standard printf ().
6373 2009-01-22 Christian Franke <franke@computer.org>
6375 * disk/ata.c (grub_ata_wait_status): Replace by ...
6376 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6377 other status bits may be invalid while BSY is asserted.
6378 (grub_ata_check_ready): New function.
6379 (grub_ata_cmd): Removed.
6380 (grub_ata_wait_drq): New function.
6381 (grub_ata_strncpy): Remove inline.
6382 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6383 and error check now done by grub_ata_wait_drq ().
6384 (grub_ata_pio_write): Likewise.
6385 (grub_atapi_identify): Set DEV before check for !BSY. Use
6386 grub_ata_wait_drq () to wait for data.
6387 (grub_ata_device_initialize): Add status register check to
6388 detect missing SATA slave devices. Add debug messages.
6389 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6390 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6391 transfer loop by grub_ata_pio_write ().
6392 (grub_ata_identify): Set DEV before check for !BSY. Use
6393 grub_ata_wait_drq () to wait for data.
6394 (grub_ata_setaddress): Set DEV before check for !BSY.
6395 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6396 read/write in one loop. Fix invalid command on write. Fix incomplete
6397 command on (size % batch) == 0. Add missing error check after write of
6398 last block. Add debug messages.
6399 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6401 2009-01-19 Christian Franke <franke@computer.org>
6403 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6404 (GRUB_ATAPI_IREASON_*): Likewise.
6405 (grub_ata_pio_write): Fix timeout error return.
6406 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6407 (grub_atapi_wait_drq): New function.
6408 (grub_atapi_packet): New parameter `size'.
6409 Use grub_atapi_wait_drq () and direct write instead of
6410 grub_ata_pio_write ().
6411 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6412 reads the number of bytes requested by the device for each DRQ
6414 (grub_atapi_write): Remove old implementation, return not
6415 implemented instead.
6417 2009-01-19 Christian Franke <franke@computer.org>
6419 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6420 of 512 to calculate data size.
6421 (grub_scsi_read12): Likewise.
6422 (grub_scsi_write10): Likewise.
6423 (grub_scsi_write12): Likewise.
6424 (grub_scsi_read): Adjust size according to blocksize.
6425 Add checks for invalid blocksize and unaligned transfer.
6427 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6429 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6431 * term/gfxterm.c (write_char): Fix background rendering for wide
6434 2009-01-19 Robert Millan <rmh@aybabtu.com>
6436 * config.guess: Update to latest version from config git.
6437 * config.sub: Likewise.
6439 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6441 * Makefile.in: Change font compilation to use new grub-mkfont instead
6444 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6445 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6446 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6447 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6448 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6449 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6450 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6451 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6452 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6454 2009-01-16 Christian Franke <franke@computer.org>
6456 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6457 (enum grub_ata_timeout_milliseconds): New enum.
6458 (grub_ata_wait_status): Add parameter milliseconds.
6459 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6460 recovery from timed-out commands.
6461 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6462 return grub_errno instead of REG_ERROR.
6463 (grub_ata_pio_write): Add parameter milliseconds.
6464 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6465 Pass milliseconds to grub_ata_wait_status () and
6466 grub_ata_pio_read ().
6467 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6468 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6469 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6470 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6471 It is not suitable for device detection, because DEV bit is ignored,
6472 the command may run too long, and not all devices set the signature
6474 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6475 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6476 Fix device selection, DEV bit must be set first to address the registers
6477 of the correct device.
6478 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6479 grub_ata_pio_read/write ().
6480 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6481 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6483 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6485 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6487 2009-01-13 Bean <bean123ch@gmail.com>
6489 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6491 2009-01-13 Bean <bean123ch@gmail.com>
6493 * Makefile.in: (enable_grub_mkfont): New variable.
6494 (freetype_cflags): Likewise.
6495 (freetype_libs): Likewise.
6497 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6498 (grub_mkfont_SOURCES): New variable.
6499 (grub_mkfont_CFLAGS): Likewise.
6500 (grub_mkfont_LDFLAGS): Likewise.
6502 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6503 library if `--enable-grub-mkfont' is requested.
6504 (enable_grub_mkfont): New variable.
6505 (freetype_cflags): Likewise.
6506 (freetype_libs): Likewise.
6508 * util/grub-mkfont.c: New file.
6510 2009-01-12 Christian Franke <franke@computer.org>
6512 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6513 mode check. Fix setting of compat_use[].
6515 2009-01-10 Robert Millan <rmh@aybabtu.com>
6517 Update a few copyright years which we forgot to do in 2008 (only for
6518 files whose changes made in 2008 were copyright-significant)
6520 * Makefile.in: Add 2008 to Copyright line.
6521 * disk/ieee1275/ofdisk.c: Likewise.
6522 * disk/efi/efidisk.c: Likewise.
6523 * kern/dl.c: Likewise.
6524 * kern/sparc64/ieee1275/init.c: Likewise.
6525 * kern/mm.c: Likewise.
6526 * kern/efi/mm.c: Likewise.
6527 * boot/i386/pc/boot.S: Likewise.
6528 * genfslist.sh: Likewise.
6529 * fs/iso9660.c: Likewise.
6530 * fs/hfs.c: Likewise.
6531 * fs/jfs.c: Likewise.
6532 * fs/minix.c: Likewise.
6533 * fs/ufs.c: Likewise.
6534 * gensymlist.sh.in: Likewise.
6535 * genkernsyms.sh.in: Likewise.
6536 * include/grub/misc.h: Likewise.
6537 * include/grub/types.h: Likewise.
6538 * include/grub/symbol.h: Likewise.
6539 * include/grub/elf.h: Likewise.
6540 * include/grub/kernel.h: Likewise.
6541 * include/grub/disk.h: Likewise.
6542 * include/grub/dl.h: Likewise.
6543 * include/grub/i386/linux.h: Likewise.
6544 * include/grub/i386/pc/biosdisk.h: Likewise.
6545 * include/grub/efi/api.h: Likewise.
6546 * include/grub/efi/pe32.h: Likewise.
6547 * include/grub/util/misc.h: Likewise.
6548 * normal/execute.c: Likewise.
6549 * normal/arg.c: Likewise.
6550 * normal/completion.c: Likewise.
6551 * normal/lexer.c: Likewise.
6552 * normal/parser.y: Likewise.
6553 * normal/misc.c: Likewise.
6554 * commands/i386/pc/vbeinfo.c: Likewise.
6555 * commands/hexdump.c: Likewise.
6556 * commands/terminal.c: Likewise.
6557 * commands/ls.c: Likewise.
6558 * commands/help.c: Likewise.
6559 * partmap/pc.c: Likewise.
6560 * loader/efi/chainloader.c: Likewise.
6561 * loader/multiboot_loader.c: Likewise.
6562 * loader/i386/pc/multiboot2.c: Likewise.
6563 * term/efi/console.c: Likewise.
6564 * term/i386/pc/serial.c: Likewise.
6565 * util/lvm.c: Likewise.
6566 * util/console.c: Likewise.
6567 * util/i386/efi/grub-mkimage.c: Likewise.
6568 * util/raid.c: Likewise.
6570 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6572 * commands/videotest.c: Removed include to grub/machine/memory.h.
6574 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6575 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6576 (video_mod_SOURCES): Removed.
6577 (video_mod_CFLAGS): Likewise.
6578 (video_mod_LDFLAGS): Likewise.
6579 (gfxterm_mod_SOURCES): Likewise.
6580 (gfxterm_mod_CFLAGS): Likewise.
6581 (gfxterm_mod_LDFLAGS): Likewise.
6582 (videotest_mod_SOURCES): Likewise.
6583 (videotest_mod_CFLAGS): Likewise.
6584 (videotest_mod_LDFLAGS): Likewise.
6585 (bitmap_mod_SOURCES): Likewise.
6586 (bitmap_mod_CFLAGS): Likewise.
6587 (bitmap_mod_LDFLAGS): Likewise.
6588 (tga_mod_SOURCES): Likewise.
6589 (tga_mod_CFLAGS): Likewise.
6590 (tga_mod_LDFLAGS): Likewise.
6591 (jpeg_mod_SOURCES): Likewise.
6592 (jpeg_mod_CFLAGS): Likewise.
6593 (jpeg_mod_LDFLAGS): Likewise.
6594 (png_mod_SOURCES): Likewise.
6595 (png_mod_CFLAGS): Likewise.
6596 (png_mod_LDFLAGS): Likewise.
6598 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6599 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6600 (video_mod_SOURCES): Added.
6601 (video_mod_CFLAGS): Likewise.
6602 (video_mod_LDFLAGS): Likewise.
6603 (videotest_mod_SOURCES): Likewise.
6604 (videotest_mod_CFLAGS): Likewise.
6605 (videotest_mod_LDFLAGS): Likewise.
6606 (bitmap_mod_SOURCES): Likewise.
6607 (bitmap_mod_CFLAGS): Likewise.
6608 (bitmap_mod_LDFLAGS): Likewise.
6609 (tga_mod_SOURCES): Likewise.
6610 (tga_mod_CFLAGS): Likewise.
6611 (tga_mod_LDFLAGS): Likewise.
6612 (jpeg_mod_SOURCES): Likewise.
6613 (jpeg_mod_CFLAGS): Likewise.
6614 (jpeg_mod_LDFLAGS): Likewise.
6615 (png_mod_SOURCES): Likewise.
6616 (png_mod_CFLAGS): Likewise.
6617 (png_mod_LDFLAGS): Likewise.
6618 (gfxterm_mod_SOURCES): Likewise.
6619 (gfxterm_mod_CFLAGS): Likewise.
6620 (gfxterm_mod_LDFLAGS): Likewise.
6622 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6623 grub/machine/console.h.
6625 2009-01-04 Jerone Young <jerone@gmail.com>
6627 Make on screen instructions clearer
6629 Based on patch created by Jidanni <jidanni@jidanni.org>
6631 * normal/menu.c: print clearer instructions on the screen
6633 2009-01-02 Colin D Bennett <colin@gibibit.com>
6637 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6638 build system and fixed gfxterm.c to work with different sized fonts.
6640 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6642 * configure: Re-generated.
6644 * DISTLIST: Removed font/manager.c.
6646 Added font/font_cmd.c.
6648 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6651 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6653 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6655 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6657 * normal/menu.c: Likewise.
6659 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6660 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6662 * include/grub/font.h: Replaced with new file.
6664 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6665 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6666 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6667 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6668 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6669 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6670 fg_red, fg_green, fg_blue, fg_alpha.
6671 (grub_video_adapter): Removed blit_glyph.
6672 (grub_video_blit_glyph): Removed.
6674 * font/manager.c: Removed file.
6676 * font/font.c: New file.
6678 * font/font_cmd.c: Likewise.
6680 * video/video.c (grub_video_blit_glyph): Removed.
6682 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6683 (grub_video_vbe_map_rgba): Likewise.
6684 (grub_video_vbe_unmap_color_int): Likewise.
6685 (grub_video_vbe_blit_glyph): Removed.
6686 (grub_video_vbe_adapter): Removed blit_glyph.
6688 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6689 (get_pixel): Likewise.
6690 (set_pixel): Likewise.
6692 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6694 * term/gfxterm.c: Adapted to new font engine.
6696 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6698 * term/i386/pc/vga.c: Likewise.
6700 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6702 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6704 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6706 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6708 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6710 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6712 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6714 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6716 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6718 * util/grub.d/00_header.in: Changed to use new loadfont command.
6720 * util/grub-mkconfig_lib.in: Changed font extension.
6722 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6724 * util/getroot.c (grub_util_get_grub_dev): Add support for
6725 /dev/md/dNNpNN style partitionable mdraid devices.
6727 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6729 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6730 at a time limit of the PXE TFTP API correctly.
6731 (grub_pxefs_close): Likewise.
6733 2008-11-29 Robert Millan <rmh@aybabtu.com>
6735 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6736 grub_ata_device_initialize() calls.
6738 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6740 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6742 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6744 2008-11-28 Robert Millan <rmh@aybabtu.com>
6746 Fix build on powerpc-ieee1275. Based on patch created by
6747 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6748 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6749 `kern/ieee1275/mmap.c'.
6750 * include/grub/powerpc/ieee1275/memory.h: New file.
6752 Provide grub-install on coreboot.
6753 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6754 (grub_install_SOURCES): New variable.
6755 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6758 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6760 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6761 to `grub_term_input_t'.
6762 (grub_term_get_current_output): Change return type to
6763 `grub_term_output_t'.
6765 2008-11-22 Robert Millan <rmh@aybabtu.com>
6767 Fix breakage on coreboot due to declaration mismatch.
6768 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6769 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6770 grub_vga_text_cls().
6772 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6773 comments. Avoid copying one more byte than necessary (just in case).
6775 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6776 to 0x200000 (avoids trouble with some OFW implementations, and matches
6777 with the one in Yaboot).
6778 Reported by Manoel Abranches
6780 2008-11-20 Robert Millan <rmh@aybabtu.com>
6782 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6783 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6785 * util/grub-mkconfig_lib.in (grub_warn): New function.
6786 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6787 warnings, to obtain consistent formatting.
6788 * util/grub.d/00_header.in: Likewise.
6789 * util/update-grub_lib.in: Likewise.
6791 * loader/i386/linux.c (allocate_pages): Fix a warning.
6792 Move comment text to `#error' stanza.
6794 Harmonize ieee1275's grub_available_iterate() with the generic
6795 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6796 build problem on i386-ieee1275):
6797 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6798 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6799 parameter `type'. Update all users of this function.
6800 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6801 `kern/ieee1275/mmap.c'.
6802 * kern/ieee1275/init.c
6803 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6805 (grub_machine_mmap_iterate): ... this.
6806 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6807 return type to `grub_err_t'. Update all implementations of this
6809 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6812 Add `lsmmap' command (lists firmware-provided memory map):
6813 * commands/lsmmap.c: New file.
6814 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6815 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6817 * conf/powerpc-ieee1275.rmk: Likewise.
6818 * conf/i386-coreboot.rmk: Likewise.
6819 * conf/i386-ieee1275.rmk: Likewise.
6821 2008-11-19 Robert Millan <rmh@aybabtu.com>
6823 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6824 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6825 constraints to initrd allocation (based on code from
6826 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6827 for Linux to find it.
6829 2008-11-14 Robert Millan <rmh@aybabtu.com>
6831 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6832 order to cope with duplicate slashes.
6834 2008-11-14 Robert Millan <rmh@aybabtu.com>
6836 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6837 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6838 don't want to mess with lower memory, because it is used in the Linux
6841 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6842 an appropriate place in lower memory, between 0x10000 and 0x90000,
6843 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6844 is in our heap (probably as a result of it being corrupted during
6845 decompression). Add #error instance with comment to explain why this
6846 loader isn't currently usable on PC/BIOS.
6848 2008-11-14 Robert Millan <rmh@aybabtu.com>
6850 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6851 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6853 2008-11-12 Robert Millan <rmh@aybabtu.com>
6855 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6857 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6858 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6860 * include/grub/i386/pc/memory.h: ... to here.
6862 2008-11-12 Robert Millan <rmh@aybabtu.com>
6864 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6867 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6868 (grub_console_cur_color, grub_console_real_putchar)
6869 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6870 (grub_console_setcolorstate, grub_console_setcolor)
6871 (grub_console_getcolor): Move from here ...
6872 * include/grub/i386/vga_common.h: ... to here (new file).
6874 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6875 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6877 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6878 `<grub/i386/vga_common.h>'.
6880 2008-11-12 Robert Millan <rmh@aybabtu.com>
6882 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6883 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6884 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6886 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6887 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6889 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6890 grub_console_init() with call to grub_vga_text_init().
6891 (grub_machine_fini): Replace call to
6892 grub_console_fini() with call to grub_vga_text_fini() and
6893 grub_at_keyboard_fini().
6895 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6896 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6897 (grub_console_setcolorstate, grub_console_setcolor)
6898 (grub_console_getcolor): New function prototypes.
6900 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6901 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6902 (grub_vga_text_setcursor): Static-ize.
6903 (grub_vga_text_term): New structure.
6904 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6906 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6907 (grub_console_cur_color, grub_console_standard_color)
6908 (grub_console_normal_color, grub_console_highlight_color)
6909 (map_char, grub_console_putchar, grub_console_getcharwidth)
6910 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6911 (grub_console_getcolor): Move from here ...
6912 * term/i386/vga_common.c: ... to here (same function names).
6914 2008-11-12 Robert Millan <rmh@aybabtu.com>
6916 Use newly-added Multiboot support in coreboot.
6918 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6919 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6921 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6922 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6923 (codestart): Store the MBI in `startup_multiboot_info' when we're
6924 being loaded using Multiboot.
6926 * kern/i386/coreboot/init.c (grub_machine_init): Move
6927 grub_at_keyboard_init() call to beginning of function (useful for
6928 debugging). Call grub_machine_mmap_init() before attempting to use
6929 grub_machine_mmap_iterate().
6930 (grub_lower_mem, grub_upper_mem): Move from here ...
6931 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6934 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6937 2008-11-12 Robert Millan <rmh@aybabtu.com>
6939 Fix a regression introduced by the at_keyboard.mod split. Because
6940 some terminals are default on some platforms and non-default on
6941 others, the first terminal being registered determines which is
6942 going to be default.
6944 * kern/term.c (grub_term_register_input): If this is the first
6945 terminal being registered, set it as the current one.
6946 (grub_term_register_output): Likewise.
6948 * term/efi/console.c (grub_console_init): Do not call
6949 grub_term_set_current_output() or grub_term_set_current_input().
6950 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6951 * term/i386/pc/console.c (grub_console_init): Likewise.
6952 (grub_console_fini): Do not call grub_term_set_current_input()
6953 (but leave grub_term_set_current_output() to restore text mode).
6955 2008-11-10 Robert Millan <rmh@aybabtu.com>
6957 * util/grub.d/00_header.in: Add backward compatibility check for
6958 versions of terminal.mod that don't understand `terminal_input' or
6961 2008-11-09 Robert Millan <rmh@aybabtu.com>
6963 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6964 `terminal_input' / `terminal_output', not `terminal'.
6966 2008-11-08 Robert Millan <rmh@aybabtu.com>
6968 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6969 (DISTCLEANFILES): Add `build_env.mk'.
6971 2008-11-08 Robert Millan <rmh@aybabtu.com>
6973 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6974 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6975 members. Update all users.
6976 * util/console.c (grub_ncurses_term): Split in ...
6977 (grub_ncurses_term_input): ... this, and ...
6978 (grub_ncurses_term_output): ... this. Update all users.
6979 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6981 2008-11-08 Robert Millan <rmh@aybabtu.com>
6983 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6984 (PKGDATA): Add $(pkgdata_SRCDIR).
6985 (pkglib_BUILDDIR): New variable.
6986 (pkgdata_SRCDIR): New variable.
6987 (build_env.mk): New target.
6988 (include_DATA): New variable.
6989 (install-local): Install $(include_DATA) files in $(includedir).
6991 2008-11-07 Pavel Roskin <proski@gnu.org>
6993 * gendistlist.sh: Use C locale for sorting to ensure consistent
6994 output on all systems.
6996 * util/grub.d/00_header.in: Remove incorrect space before
6999 2008-11-07 Robert Millan <rmh@aybabtu.com>
7001 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
7003 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
7004 * loader/multiboot_loader.c (find_multi_boot2_header): New function
7005 (based on find_multi_boot1_header).
7006 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
7007 using find_multi_boot2_header(), and abort if neither Multiboot or
7008 Multiboot headers were found.
7010 2008-11-07 Robert Millan <rmh@aybabtu.com>
7012 Modularize at_keyboard.mod:
7014 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
7015 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
7016 (at_keyboard_mod_LDFLAGS): New variables.
7018 Actual terminal split:
7020 * include/grub/term.h (struct grub_term): Split in ...
7021 (struct grub_term_input): ... this, and ...
7022 (struct grub_term_output): ... this. Update all users.
7023 (grub_term_set_current): Split in ...
7024 (grub_term_set_current_input): ... this, and ...
7025 (grub_term_set_current_output): ... this.
7026 (grub_term_get_current): Split in ...
7027 (grub_term_get_current_input): ... this, and ...
7028 (grub_term_get_current_output): ... this.
7029 (grub_term_register): Split in ...
7030 (grub_term_register_input): ... this, and ...
7031 (grub_term_register_output): ... this.
7032 (grub_term_unregister): Split in ...
7033 (grub_term_unregister_input): ... this, and ...
7034 (grub_term_unregister_output): ... this.
7035 (grub_term_iterate): Split in ...
7036 (grub_term_iterate_input): ... this, and ...
7037 (grub_term_iterate_output): ... this.
7039 * kern/term.c (grub_term_list): Split in ...
7040 (grub_term_list_input): ... this, and ...
7041 (grub_term_list_output): ... this. Update all users.
7042 (grub_cur_term): Split in ...
7043 (grub_cur_term_input): ... this, and ...
7044 (grub_cur_term_output): ... this. Update all users.
7045 (grub_term_set_current): Split in ...
7046 (grub_term_set_current_input): ... this, and ...
7047 (grub_term_set_current_output): ... this.
7048 (grub_term_get_current): Split in ...
7049 (grub_term_get_current_input): ... this, and ...
7050 (grub_term_get_current_output): ... this.
7051 (grub_term_register): Split in ...
7052 (grub_term_register_input): ... this, and ...
7053 (grub_term_register_output): ... this.
7054 (grub_term_unregister): Split in ...
7055 (grub_term_unregister_input): ... this, and ...
7056 (grub_term_unregister_output): ... this.
7057 (grub_term_iterate): Split in ...
7058 (grub_term_iterate_input): ... this, and ...
7059 (grub_term_iterate_output): ... this.
7061 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7062 a check for input and one for output (and only attempt to get keys
7063 from user when input works).
7065 * util/grub-probe.c (grub_term_get_current): Split in ...
7066 (grub_term_get_current_input): ... this, and ...
7067 (grub_term_get_current_output): ... this.
7068 * util/grub-fstest.c: Likewise.
7069 * util/i386/pc/grub-setup.c: Likewise.
7070 * util/grub-editenv.c: Likewise.
7072 Portability adjustments:
7074 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7075 `term/i386/pc/at_keyboard.c'.
7076 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7077 grub_keyboard_controller_init() (now handled by terminal .init).
7078 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7079 grub_at_keyboard_init().
7080 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7081 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7082 at_keyboard.mod via input terminal interface).
7083 * include/grub/i386/coreboot/console.h: Convert into a stub for
7084 `<grub/i386/pc/console.h>'.
7086 Migrate full terminals to new API:
7088 * term/efi/console.c (grub_console_term): Split into ...
7089 (grub_console_term_input): ... this, and ...
7090 (grub_console_term_output): ... this. Update all users.
7091 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7092 (grub_ofconsole_init): Split into ...
7093 (grub_ofconsole_init_input): ... this, and ...
7094 (grub_ofconsole_init_output): ... this.
7095 (grub_ofconsole_term): Split into ...
7096 (grub_ofconsole_term_input): ... this, and ...
7097 (grub_ofconsole_term_output): ... this. Update all users.
7098 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7099 (grub_serial_term_input): ... this, and ...
7100 (grub_serial_term_output): ... this. Update all users.
7101 * term/i386/pc/console.c (grub_console_term): Split into ...
7102 (grub_console_term_input): ... this, and ...
7103 (grub_console_term_output): ... this. Update all users.
7104 (grub_console_term_input): Only enable it on PC/BIOS platform.
7105 (grub_console_init): Remove grub_keyboard_controller_init() call.
7107 Migrate input terminals to new API:
7109 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7110 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7111 i386-specific anyway).
7112 (grub_console_checkkey): Rename to ...
7113 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7115 (grub_keyboard_controller_orig): New variable.
7116 (grub_console_getkey): Rename to ...
7117 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7119 (grub_keyboard_controller_init): Static-ize. Save original
7120 controller value so that it can be restored ...
7121 (grub_keyboard_controller_fini): ... here (new function).
7122 (grub_at_keyboard_term): New structure.
7123 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7126 Migrate output terminals to new API:
7128 * term/i386/pc/vga.c (grub_vga_term): Change type to
7129 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7130 members. Update all users.
7131 * term/gfxterm.c (grub_video_term): Change type to
7132 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7133 members. Update all users.
7134 * include/grub/i386/pc/console.h (grub_console_checkkey)
7135 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7138 Migrate `terminal' command and userland tools to new API:
7140 * commands/terminal.c (grub_cmd_terminal): Split into ...
7141 (grub_cmd_terminal_input): ... this, and ...
7142 (grub_cmd_terminal_output): ... this.
7143 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7144 `terminal_input' and `terminal_output'.
7145 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7146 `terminal_input' / `terminal_output' API.
7147 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7148 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7149 provided ${GRUB_TERMINAL}, convert it).
7151 2008-11-04 Robert Millan <rmh@aybabtu.com>
7153 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7155 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7157 2008-11-03 Bean <bean123ch@gmail.com>
7159 * kern/elf.c (grub_elf32_load): Revert to previous code.
7160 (grub_elf64_load): Likewise.
7162 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7164 2008-11-01 Robert Millan <rmh@aybabtu.com>
7166 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7167 (TARGET_CPPFLAGS): Likewise.
7168 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7170 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7172 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7174 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7176 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7177 addition of objects until the code is not going to be able to fail.
7179 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7181 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7182 (add a missing NULL check, and correct them by moving the pointer
7183 operations after the actual check).
7185 2008-10-29 Robert Millan <rmh@aybabtu.com>
7187 * util/i386/pc/grub-install.in: Handle empty string as output from
7188 make_system_path_relative_to_its_root().
7190 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7192 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7193 circular metadata worst case scenario. If the metadata is circular
7194 then copy the wrap in place.
7195 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7196 project lib/format_text/layout.h
7197 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7199 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7201 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7203 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7205 * util/update-grub_lib.in: Mention filename in warning message.
7207 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7209 * NEWS: Update for rename of update-grub to grub-mkconfig.
7211 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7213 * util/update-grub_lib.in: Copy to ...
7214 * util/grub-mkconfig_lib.in: ... this. Update all users.
7215 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7216 * util/update-grub.in: Rename to ...
7217 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7218 option. Add `--output' option to allow users to specify the generated
7219 configuration file. Default to stdout.
7220 (update_grub_dir): Rename to ...
7221 (grub_mkconfig_dir): ... this.
7222 (grub_cfg): Default to an empty string.
7223 * conf/common.rmk (update-grub): Rename to ...
7224 (grub-mkconfig): ... this.
7225 (update-grub_lib): Copy to ...
7226 (grub-mkconfig_lib): ... this.
7227 (update-grub_SCRIPTS): Copy to ...
7228 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7229 (update-grub_DATA): Rename to ...
7230 (grub-mkconfig_DATA): ... this.
7232 2008-09-28 Robert Millan <rmh@aybabtu.com>
7234 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7235 to `modified'. Add the real `created' field.
7236 (grub_iso9660_uuid): Use `modified' rather than `created' for
7237 constructing the UUID.
7239 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7241 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7242 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7244 2008-09-28 Bean <bean123ch@gmail.com>
7246 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7247 Thanks to Christian Franke for finding this bug.
7249 2008-09-25 Robert Millan <rmh@aybabtu.com>
7251 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7252 instances of grub_util_get_disk_name() (see previous commit).
7254 2008-09-25 Robert Millan <rmh@aybabtu.com>
7256 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7257 `util/i386/get_disk_name.c'.
7258 * conf/i386-efi.rmk: Likewise.
7259 * conf/x86_64-efi.rmk: Likewise.
7260 * conf/i386-coreboot.rmk: Likewise.
7261 * conf/i386-ieee1275.rmk: Likewise.
7262 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7263 `util/ieee1275/get_disk_name.c'.
7264 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7265 * util/ieee1275/get_disk_name.c: Remove file.
7266 * util/i386/get_disk_name.c: Remove file.
7267 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7268 "hd%d" for device.map entries, rather than using
7269 grub_util_get_disk_name().
7271 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7273 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7275 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7277 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7279 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7281 (GRUB_TERM_PPAGE): Changed to 0x4900.
7283 2008-09-24 Robert Millan <rmh@aybabtu.com>
7285 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7286 macros (they were i386-pc specific).
7287 * include/grub/sparc64/ieee1275/console.h: Likewise.
7288 * include/grub/efi/console.h: Likewise.
7290 2008-09-22 Bean <bean123ch@gmail.com>
7292 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7293 resident and in attribute list.
7295 * include/grub/ntfs.h (BMP_LEN): Removed.
7297 2008-09-22 Bean <bean123ch@gmail.com>
7299 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7300 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7302 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7303 error occurs, as grub_disk_open will call grub_disk_close, which will
7304 call p->close (scsi).
7306 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7308 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7309 (AC_PREREQ): Bumped to 2.59.
7310 (AC_TRY_COMPILE): Replace obsolete macro with ...
7311 (AC_COMPILE_IFELSE): ... this.
7312 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7313 (AC_LINK_IFELSE): ... this.
7315 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7317 * autogen.sh: Add a call to `gendistlist.sh'.
7319 2008-09-19 Christian Franke <franke@computer.org>
7321 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7322 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7323 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7324 Export __enable_execute_stack() to modules.
7325 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7328 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7330 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7333 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7335 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7336 #include <grub/util/hostdisk.h>.
7338 2008-09-08 Robert Millan <rmh@aybabtu.com>
7340 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7341 segments when their filesz is zero (grub_file_read() interprets
7342 zero-size as "read until EOF", which results in memory corruption).
7343 Use `lowest_segment' rather than 0 for calculating the current
7344 segment load address.
7346 2008-09-08 Robert Millan <rmh@aybabtu.com>
7348 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7349 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7350 clobbered useful information.
7352 2008-09-08 Robert Millan <rmh@aybabtu.com>
7354 * include/grub/util/biosdisk.h: Move to ...
7355 * include/grub/util/hostdisk.h: ... here. Update all users.
7356 * util/biosdisk.c: Move to ...
7357 * util/hostdisk.c: ... here. Update all users.
7359 2008-09-07 Robert Millan <rmh@aybabtu.com>
7361 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7363 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7364 and length can be stored directly in the `mbi->mmap_addr' and
7365 `mbi->mmap_length' struct fields.
7367 2008-09-07 Robert Millan <rmh@aybabtu.com>
7369 * conf/i386.rmk: New file. Provides declaration for building
7371 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7372 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7374 Include `conf/i386.mk'.
7375 * conf/i386-efi.rmk: Likewise.
7376 * conf/x86_64-efi.rmk: Likewise.
7377 * conf/i386-coreboot.rmk: Likewise.
7378 * conf/i386-ieee1275.rmk: Likewise.
7380 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7382 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7383 Adds optimization support for BGR based modes.
7385 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7386 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7387 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7388 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7389 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7390 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7391 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7392 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7393 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7394 (grub_video_i386_vbeblit_index_index): Likewise.
7395 (grub_video_i386_vbeblit_replace_directN): Added.
7396 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7397 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7398 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7399 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7400 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7401 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7402 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7403 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7404 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7405 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7406 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7407 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7408 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7410 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7411 (grub_video_i386_vbefill_R8G8B8): Likewise.
7412 (grub_video_i386_vbefill_index): Likewise.
7413 (grub_video_i386_vbefill_direct32): Added.
7414 (grub_video_i386_vbefill_direct24): Likewise.
7415 (grub_video_i386_vbefill_direct16): Likewise.
7416 (grub_video_i386_vbefill_direct8): Likewise.
7418 * include/grub/video.h (grub_video_blit_format): Removed
7419 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7420 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7421 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7422 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7423 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7425 * video/video.c (grub_video_get_blit_format): Updated to use new
7426 blit formats. Added handling for 16 bit color modes.
7428 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7430 (common_blitter): Updated to use new blitters.
7432 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7434 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7435 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7436 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7437 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7438 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7439 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7440 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7441 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7442 (grub_video_i386_vbeblit_index_index): Likewise.
7443 (grub_video_i386_vbeblit_replace_directN): Added.
7444 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7445 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7446 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7447 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7448 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7449 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7450 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7451 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7452 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7453 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7454 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7455 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7456 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7458 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7459 (grub_video_i386_vbefill_R8G8B8): Likewise.
7460 (grub_video_i386_vbefill_index): Likewise.
7461 (grub_video_i386_vbefill_direct32): Added.
7462 (grub_video_i386_vbefill_direct24): Likewise.
7463 (grub_video_i386_vbefill_direct16): Likewise.
7464 (grub_video_i386_vbefill_direct8): Likewise.
7466 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7469 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7472 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7475 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7478 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7480 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7483 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7485 * fs/iso9660.c (grub_iso9660_date): New structure.
7486 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7487 (grub_iso9660_uuid): New function.
7489 2008-09-05 Bean <bean123ch@gmail.com>
7491 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7493 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7494 insensitive bit for names in Win32 and Win32 & DOS namespace.
7496 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7498 * include/grub/types.h (LONG_MAX): Likewise.
7500 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7502 * util/getroot.c: Include <config.h>.
7503 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7504 add support for /dev/md/N devices and handle LVM double dash escaping.
7506 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7508 * config.guess: Update to latest version from config git.
7509 * config.sub: Likewise.
7511 2008-09-03 Robert Millan <rmh@aybabtu.com>
7513 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7514 `disk->total_sectors'.
7516 2008-09-01 Colin D Bennett <colin@gibibit.com>
7518 * include/grub/normal.h: Fixed incorrect comment for
7519 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7521 2008-09-01 Colin D Bennett <colin@gibibit.com>
7523 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7524 values with defines.
7526 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7527 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7528 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7529 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7530 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7531 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7532 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7533 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7534 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7535 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7536 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7537 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7538 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7539 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7540 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7541 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7542 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7543 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7544 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7546 2008-08-31 Robert Millan <rmh@aybabtu.com>
7548 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7550 (grub_multiboot): Fix a few warnings.
7552 2008-08-31 Robert Millan <rmh@aybabtu.com>
7554 * loader/i386/pc/multiboot.c: Update comment not to say that
7555 boot_device support is unimplemented.
7557 2008-08-31 Robert Millan <rmh@aybabtu.com>
7559 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7560 or memory map support are unimplemented.
7562 2008-08-31 Colin D Bennett <colin@gibibit.com>
7564 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7566 2008-08-31 Colin D Bennett <colin@gibibit.com>
7568 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7569 total video memory in 'vbeinfo' output; show color format details for
7572 2008-08-30 Pavel Roskin <proski@gnu.org>
7574 * util/genmoddep.c: Remove for real this time.
7575 * DISTLIST: Remove util/genmoddep.c.
7577 2008-08-30 Robert Millan <rmh@aybabtu.com>
7579 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7580 as required by Multiboot spec (it was already 4-byte aligned, but
7583 2008-08-29 Pavel Roskin <proski@gnu.org>
7585 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7586 * kern/powerpc/ieee1275/startup.S: ... this.
7587 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7588 * DISTLIST: Likewise.
7590 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7591 grub/cpu/kernel.h. Add start label for consistency with other
7592 platforms. Add grub_prefix immediately after start. Add jump
7593 to the code after grub_prefix.
7594 * include/grub/powerpc/kernel.h: Provide valid values for
7595 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7597 2008-08-29 Bean <bean123ch@gmail.com>
7599 * configure.ac: Change host_os to cygwin for mingw.
7600 (asprintf): New check for function.
7602 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7603 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7605 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7606 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7607 sync, sleep and grub_util_get_disk_size for mingw.
7609 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7610 to get size in mingw.
7611 (open_device): Use flag O_BINARY if it's defined.
7612 (find_root_device): Add dummy code for mingw.
7614 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7615 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7616 (get_scsi_disk_name): Return 0 for mingw.
7618 * util/hostfs.c: #include <grub/util/misc.h>.
7619 (grub_hostfs_open): Use "rb" flag to open file, use
7620 grub_util_get_disk_size to get disk size for mingw.
7622 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7623 (asprintf): New function if HAVE_ASPRINTF is not set.
7624 (sync): New function for mingw.
7626 (grub_util_get_disk_size): Likewise.
7628 2008-08-28 Pavel Roskin <proski@gnu.org>
7630 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7633 2008-08-28 Robert Millan <rmh@aybabtu.com>
7635 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7637 2008-08-28 Robert Millan <rmh@aybabtu.com>
7639 Change find_grub_drive() syntax so it doesn't prevent it from
7640 detecting NULL names as errors.
7642 * util/biosdisk.c (find_grub_drive): Move free slot search code
7644 (find_free_slot): ... to here.
7645 (read_device_map): Use find_free_slot() to search for free slots.
7647 2008-08-27 Marco Gerards <marco@gnu.org>
7649 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7650 (scsi_mod_SOURCES): New variable.
7651 (scsi_mod_CFLAGS): Likewise
7652 (scsi_mod_LDFLAGS): Likewise.
7654 * disk/scsi.c: New file.
7656 * include/grub/scsi.h: Likewise.
7658 * include/grub/scsicmd.h: Likewise.
7660 * disk/ata.c: Include <grub/scsi.h>.
7661 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7663 (grub_ata_iterate): Skip ATAPI devices.
7664 (grub_ata_open): Only handle ATAPI devices.
7665 (struct grub_atapi_read): Removed.
7666 (grub_atapi_readsector): Likewise.
7667 (grub_ata_read): No longer handle ATAPI devices.
7668 (grub_ata_write): Likewise.
7669 (grub_atapi_iterate): New function.
7670 (grub_atapi_read): Likewise.
7671 (grub_atapi_write): Likewise.
7672 (grub_atapi_open): Likewise.
7673 (grub_atapi_close): Likewise.
7674 (grub_atapi_dev): New variable.
7675 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7676 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7678 * include/grub/disk.h (enum grub_disk_dev_id): Add
7679 `GRUB_DISK_DEVICE_SCSI_ID'.
7681 2008-08-26 Robert Millan <rmh@aybabtu.com>
7683 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7684 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7687 2008-08-23 Bean <bean123ch@gmail.com>
7689 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7690 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7691 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7692 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7694 (raid5rec_mod_SOURCES): New macro.
7695 (raid5rec_mod_CFLAGS): Likewise.
7696 (raid5rec_mod_LDFLAGS): Likewise.
7697 (raid6rec_mod_SOURCES): Likewise.
7698 (raid6rec_mod_CFLAGS): Likewise.
7699 (raid6rec_mod_LDFLAGS): Likewise.
7700 (mdraid_mod_SOURCES): Likewise.
7701 (mdraid_mod_CFLAGS): Likewise.
7702 (mdraid_mod_LDFLAGS): Likewise.
7703 (dm_nv_mod_SOURCES): Likewise.
7704 (dm_nv_mod_CFLAGS): Likewise.
7705 (dm_nv_mod_LDFLAGS): Likewise.
7707 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7708 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7709 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7711 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7712 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7714 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7716 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7722 * disk/raid5_recover.c: New file.
7724 * disk/raid6_recover.c: Likewise.
7726 * disk/mdraid_linux.c: Likewise.
7728 * disk/dmraid_nvidia.c: Likewise.
7730 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7733 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7734 calculate the size of raid device.
7735 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7736 different layout of raid5.
7737 (grub_raid_scan_device): Remove code specific to mdraid.
7738 (grub_raid_list): New variable.
7739 (free_array): New function.
7740 (grub_raid_register): Likewise.
7741 (grub_raid_unregister): Likewise.
7742 (grub_raid_rescan): Likewise.
7743 (GRUB_MOD_INIT): Don't iterate device here.
7744 (GRUB_MOD_FINI): Use free_array to release resource.
7746 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7747 (grub_raid5_recover_func_t): New function variable type.
7748 (grub_raid6_recover_func_t): Likewise.
7749 (grub_raid5_recover_func): New variable.
7750 (grub_raid6_recover_func): Likewise.
7751 (grub_raid_register): New function.
7752 (grub_raid_unregister): Likewise.
7753 (grub_raid_rescan): Likewise.
7754 (grub_raid_block_xor): Likewise.
7756 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7757 (CMD_CRC): New macro.
7759 (read_file): Handle device as well as file.
7760 (cmd_crc): New function.
7761 (fstest): Handle multiple disks.
7762 (options): Remove part, raw and long, add root and diskcount.
7763 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7764 (main): Find the first non option entry and ignore subsequent options,
7765 add handling for the new options, support multiple disks.
7767 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7769 2008-08-23 Bean <bean123ch@gmail.com>
7771 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7773 * genfslist.sh: Ignore kernel.mod.
7775 * genpartmaplist.sh: Likewise.
7777 2008-08-23 Robert Millan <rmh@aybabtu.com>
7779 * util/getroot.c (find_root_device): Skip anything that starts with
7780 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7782 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7784 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7785 * util/grub.d/00_header.in: Allow the administrator to change default
7786 gfxmode via ${GRUB_GFXMODE}.
7788 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7790 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7792 2008-08-21 Robert Millan <rmh@aybabtu.com>
7794 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7796 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7797 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7799 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7801 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7802 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7804 2008-08-19 Robert Millan <rmh@aybabtu.com>
7806 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7807 (struct grub_virtual_screen): Remove `cursor_color'.
7808 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7810 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7812 2008-08-18 Robert Millan <rmh@aybabtu.com>
7814 Unify (identical) linux_normal.c files.
7815 * loader/i386/efi/linux_normal.c: Move from here ...
7816 * loader/linux_normal.c: ... to here. Update all users.
7817 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7818 * loader/i386/ieee1275/linux_normal.c: Likewise.
7820 2008-08-18 Robert Millan <rmh@aybabtu.com>
7822 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7823 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7824 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7825 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7826 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7828 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7829 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7830 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7831 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7832 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7833 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7834 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7835 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7836 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7837 portably using grub_getxy().
7838 Replace `-EFI' with `-bzImage' in boot message.
7840 2008-08-17 Robert Millan <rmh@aybabtu.com>
7842 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7844 2008-08-17 Robert Millan <rmh@aybabtu.com>
7846 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7848 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7849 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7850 (grub_machine_mmap_iterate): New function declaration.
7851 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7853 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7856 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7857 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7858 Move e820 parsing from here ...
7859 * kern/i386/pc/mmap.c: New file.
7860 (grub_machine_mmap_iterate): ... to here.
7862 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7863 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7864 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7865 (grub_available_iterate): Redeclare to return `void', and redeclare
7866 its hook to use grub_uint64_t as addr and size parameters, and rename
7868 (grub_machine_mmap_iterate): ... this. Update all users.
7870 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7871 to make it more readable. Rename to ...
7872 (grub_machine_mmap_iterate): ... this.
7874 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7875 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7876 (grub_multiboot): Allocate an extra region after the payload, and fill
7877 it with a Multiboot memory map. Adjust a.out loader to calculate size
7878 with the extra space.
7879 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7880 with the extra space.
7882 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7884 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7886 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7888 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7889 mdate-sh to the list `find' searches for.
7890 * DISTLIST: Regenerated.
7892 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7894 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7895 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7896 genmoddep.awk, gensymlist.sh.in.
7897 (DISTDIRS): Add bus, docs, hook, lib.
7898 * DISTLIST: Regenerated.
7899 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7901 2008-08-16 Robert Millan <rmh@aybabtu.com>
7903 * disk/raid.c (grub_raid_init): Handle/report errors set by
7904 grub_device_iterate().
7905 * disk/lvm.c (grub_lvm_init): Likewise.
7907 2008-08-15 Bean <bean123ch@gmail.com>
7909 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7911 (datetime_mod_SOURCES): New macro.
7912 (datetime_mod_CFLAGS): Likewise.
7913 (datetime_mod_LDFLAGS): Likewise.
7914 (date_mod_SOURCES): Likewise.
7915 (date_mod_CFLAGS): Likewise.
7916 (date_mod_LDFLAGS): Likewise.
7917 (datehook_mod_SOURCES): Likewise.
7918 (datehook_mod_CFLAGS): Likewise.
7919 (datehook_mod_LDFLAGS): Likewise.
7921 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7923 (datetime_mod_SOURCES): New macro.
7924 (datetime_mod_CFLAGS): Likewise.
7925 (datetime_mod_LDFLAGS): Likewise.
7926 (date_mod_SOURCES): Likewise.
7927 (date_mod_CFLAGS): Likewise.
7928 (date_mod_LDFLAGS): Likewise.
7929 (datehook_mod_SOURCES): Likewise.
7930 (datehook_mod_CFLAGS): Likewise.
7931 (datehook_mod_LDFLAGS): Likewise.
7933 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7935 (datetime_mod_SOURCES): New macro.
7936 (datetime_mod_CFLAGS): Likewise.
7937 (datetime_mod_LDFLAGS): Likewise.
7938 (date_mod_SOURCES): Likewise.
7939 (date_mod_CFLAGS): Likewise.
7940 (date_mod_LDFLAGS): Likewise.
7941 (datehook_mod_SOURCES): Likewise.
7942 (datehook_mod_CFLAGS): Likewise.
7943 (datehook_mod_LDFLAGS): Likewise.
7945 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7947 (datetime_mod_SOURCES): New macro.
7948 (datetime_mod_CFLAGS): Likewise.
7949 (datetime_mod_LDFLAGS): Likewise.
7950 (date_mod_SOURCES): Likewise.
7951 (date_mod_CFLAGS): Likewise.
7952 (date_mod_LDFLAGS): Likewise.
7953 (datehook_mod_SOURCES): Likewise.
7954 (datehook_mod_CFLAGS): Likewise.
7955 (datehook_mod_LDFLAGS): Likewise.
7957 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7959 (datetime_mod_SOURCES): New macro.
7960 (datetime_mod_CFLAGS): Likewise.
7961 (datetime_mod_LDFLAGS): Likewise.
7962 (date_mod_SOURCES): Likewise.
7963 (date_mod_CFLAGS): Likewise.
7964 (date_mod_LDFLAGS): Likewise.
7965 (datehook_mod_SOURCES): Likewise.
7966 (datehook_mod_CFLAGS): Likewise.
7967 (datehook_mod_LDFLAGS): Likewise.
7969 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7971 * commands/date.c: New file.
7973 * hook/datehook.c: Likewise.
7975 * include/grub/lib/datetime.h: Likewise.
7977 * include/grub/i386/cmos.h: Likewise.
7979 * lib/datetime.c: Likewise.
7981 * lib/i386/datetime.c: Likewise.
7983 * lib/efi/datetime.c: Likewise.
7985 2008-08-14 Robert Millan <rmh@aybabtu.com>
7987 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7988 (grub_mkelfimage_SOURCES): New variable.
7989 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7991 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7992 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7993 * conf/powerpc-ieee1275.rmk: Likewise.
7994 * conf/i386-ieee1275.rmk: Likewise.
7996 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7997 * kern/i386/coreboot/init.c: Likewise.
7999 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
8000 with `<grub/cpu/kernel.h>'.
8001 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
8003 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
8004 * kern/i386/coreboot/startup.S: Likewise.
8006 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
8007 (GRUB_MOD_GAP): Remove.
8008 * include/grub/powerpc/kernel.h: New file.
8009 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
8010 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8011 * include/grub/i386/kernel.h: New file.
8012 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
8013 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
8014 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8016 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
8018 Use --directory when invoking grub_mkimage.
8020 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
8021 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
8022 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
8023 and GRUB_KERNEL_CPU_PREFIX.
8025 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
8027 * include/grub/err.h (grub_err_printf): New function prototype.
8028 * util/misc.c (grub_err_printf): New function.
8029 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
8031 * kern/err.c (grub_print_error): Use grub_err_printf.
8033 2008-08-13 Robert Millan <rmh@aybabtu.com>
8035 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
8037 2008-08-13 Robert Millan <rmh@aybabtu.com>
8039 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
8042 2008-08-12 Robert Millan <rmh@aybabtu.com>
8044 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
8045 of the relocation code from here ...
8046 (grub_multiboot): ... to here.
8047 (forward_relocator, backward_relocator): Move from here ...
8048 * kern/i386/loader.S (grub_multiboot_forward_relocator)
8049 (grub_multiboot_backward_relocator): ... to here.
8050 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8051 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8052 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8053 (grub_multiboot_forward_relocator_end)
8054 (grub_multiboot_backward_relocator)
8055 (grub_multiboot_backward_relocator_end): New variables.
8057 2008-08-12 Bean <bean123ch@gmail.com>
8059 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8061 2008-08-11 Robert Millan <rmh@aybabtu.com>
8063 * kern/i386/linuxbios/startup.S: Move from here ...
8064 * kern/i386/coreboot/startup.S: ... to here.
8066 * kern/i386/linuxbios/init.c: Move from here ...
8067 * kern/i386/coreboot/init.c: ... to here.
8069 * kern/i386/linuxbios/table.c: Move from here ...
8070 * kern/i386/coreboot/mmap.c: ... to here.
8072 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8074 2008-08-11 Robert Millan <rmh@aybabtu.com>
8076 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8077 errors. Leave it to the upper layer to handle them.
8079 2008-08-09 Christian Franke <franke@computer.org>
8081 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8082 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8083 Install `grub.d/10_windows' only on Cygwin.
8084 * configure.ac: Add subst of `target_os'.
8085 Check `target_os' also before setting TARGET_OBJ2ELF.
8086 Add `--enable-grub-pe2elf'.
8088 2008-08-08 Robert Millan <rmh@aybabtu.com>
8090 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8091 (grub_last_time): Change type to grub_uint64_t.
8092 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8093 (grub_disk_close): Likewise.
8095 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8096 (run_menu): Migrate code from to using grub_get_time_ms().
8098 * util/misc.c (grub_get_time_ms): New function.
8100 2008-08-08 Marco Gerards <marco@gnu.org>
8102 * disk/ata.c (grub_ata_regget): Change return type to
8104 (grub_ata_regget2): Likewise.
8105 (grub_ata_wait_status): New function.
8106 (grub_ata_wait_busy): Removed function, updated all users to use
8107 `grub_ata_wait_status'.
8108 (grub_ata_wait_drq): Likewise.
8109 (grub_ata_cmd): New function.
8110 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8112 (grub_ata_pio_write): Add error handling.
8113 (grub_atapi_identify): Likewise.
8114 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8116 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8117 handling. Actually use the detected registers. Reorder the
8118 detection logic such that it is easier to read.
8119 (grub_ata_pciinit): Do not assign the same ID to each controller.
8120 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8122 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8124 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8126 2008-08-08 Marco Gerards <marco@gnu.org>
8130 2008-08-07 Bean <bean123ch@gmail.com>
8132 * include/grub/x86_64/pci.h: New file.
8134 2008-08-07 Christian Franke <franke@computer.org>
8136 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8137 (TIMER2_GATE): Likewise.
8138 (grub_pit_wait): Add enable/disable of the timer2 gate
8139 bit of port 0x61. This fixes a possible infinite loop.
8141 2008-08-07 Bean <bean123ch@gmail.com>
8143 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8144 kern/i386/tsc.c and kern/i386/pit.c.
8146 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8149 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8152 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8154 2008-08-07 Bean <bean123ch@gmail.com>
8156 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8158 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8160 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8161 multiple inclusion. Add #include <grub/types.h>.
8163 2008-08-06 Christian Franke <franke@computer.org>
8165 * conf/common.rmk: Build and install `10_windows'.
8166 * util/grub.d/10_windows.in: New script.
8168 2008-08-06 Pavel Roskin <proski@gnu.org>
8170 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8172 2008-08-06 Robert Millan <rmh@aybabtu.com>
8174 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8175 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8177 2008-08-06 Bean <bean123ch@gmail.com>
8179 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8180 (grub_pxefs_fs_int): Remove dummy definition.
8181 (grub_pxefs_open): Use data->block_size to store the current block
8183 (grub_pxefs_read): Use block size stored in data->block_size. As the
8184 value of grub_pxe_blksize can be changed after the file is opened.
8186 2008-08-06 Bean <bean123ch@gmail.com>
8188 * fs/i386/pc/pxe.c (curr_file): new variable.
8189 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8190 require the dummy internal file system anymore.
8191 (grub_pxefs_read): Removed.
8192 (grub_pxefs_close): Likewise.
8193 (grub_pxefs_fs_int): Likewise.
8194 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8195 connection when we switch file.
8196 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8198 2008-08-06 Robert Millan <rmh@aybabtu.com>
8200 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8202 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8203 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8205 * kern/i386/halt.c: New file.
8206 * kern/i386/reboot.c: Likewise.
8207 * include/grub/i386/reboot.h: Likewise.
8208 * include/grub/i386/halt.h: Likewise.
8210 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8211 Include `<grub/cpu/halt.h>'.
8212 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8213 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8215 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8216 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8217 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8218 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8219 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8220 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8222 * include/grub/i386/at_keyboard.h: ... to here.
8224 2008-08-05 Robert Millan <rmh@aybabtu.com>
8226 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8227 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8228 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8229 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8230 `kern/generic/millisleep.c'.
8232 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8233 instead of grub_get_rtc().
8234 (grub_tsc_init): Initialize `tsc_boot_time'.
8236 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8237 (grub_machine_init): Use grub_tsc_init() rather than
8238 installing an RTC-based handler via grub_install_get_time_ms().
8240 * kern/i386/pit.c: New file.
8241 * include/grub/i386/pit.h: Likewise.
8243 2008-08-05 Bean <bean123ch@gmail.com>
8245 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8247 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8248 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8249 (pxe_mod_SOURCES): New macro.
8250 (pxe_mod_CFLAGS): Likewise.
8251 (pxe_mod_LDFLAGS): Likewise.
8252 (pxecmd_mod_SOURCES): Likewise.
8253 (pxecmd_mod_CFLAGS): Likewise.
8254 (pxecmd_mod_LDFLAGS): Likewise.
8256 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8257 (grub_pxe_call): Likewise.
8259 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8261 * commands/i386/pc/pxecmd.c: New file.
8263 * fs/i386/pc/pxe.c: Likewise.
8265 * include/grub/i386/pc/pxe.h: Likewise.
8267 2008-08-05 Bean <bean123ch@gmail.com>
8269 * util/console.c (grub_console_cur_color): New variable.
8270 (grub_console_standard_color): Likewise.
8271 (grub_console_normal_color): Likewise.
8272 (grub_console_highlight_color): Likewise.
8273 (color_map): Likewise.
8274 (use_color): Likewise.
8275 (NUM_COLORS): New macro.
8276 (grub_ncurses_setcolorstate): Handle color properly.
8277 (grub_ncurses_setcolor): Don't change color here, just remember the
8278 settings, color will be set in grub_ncurses_setcolorstate.
8279 (grub_ncurses_getcolor): New function.
8280 (grub_ncurses_init): Initialize color pairs.
8281 (grub_ncurses_term): New member grub_ncurses_getcolor.
8283 2008-08-05 Colin D Bennett <colin@gibibit.com>
8285 High resolution timer support. Implemented for x86 CPUs using TSC.
8286 Extracted generic grub_millisleep() so it's linked in only as needed.
8287 This requires a Pentium compatible CPU; if the RDTSC instruction is
8288 not supported, then it falls back on the generic grub_get_time_ms()
8289 implementation that uses the machine's RTC.
8291 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8292 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8293 `kern/generic/millisleep.c'.
8295 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8296 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8298 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8299 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8301 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8303 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8304 `kern/generic/millisleep.c'.
8306 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8308 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8310 * kern/generic/rtc_get_time_ms.c: New file.
8312 * kern/generic/millisleep.c: New file.
8314 * kern/misc.c: Don't include
8315 <kern/time.h> anymore.
8316 (grub_millisleep_generic): Removed.
8318 * commands/sleep.c (grub_interruptible_millisleep): Uses
8319 grub_get_time_ms() instead of grub_get_rtc().
8321 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8323 (grub_cpu_is_cpuid_supported): New inline function.
8324 (grub_cpu_is_tsc_supported): New inline function.
8325 (grub_tsc_init): New function prototype.
8326 (grub_tsc_get_time_ms): New function prototype.
8328 * kern/i386/tsc.c (grub_get_time_ms): New file.
8330 * include/grub/time.h: Include <grub/types.h.
8331 (grub_millisleep_generic): Removed.
8332 (grub_get_time_ms): New prototype.
8333 (grub_install_get_time_ms): New prototype.
8334 (grub_rtc_get_time_ms): New prototype.
8336 * kern/time.c (grub_get_time_ms): New function.
8337 (grub_install_get_time_ms): New function.
8339 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8340 <grub/time.h> anymore.
8341 (grub_millisleep): Removed.
8342 (grub_machine_init): Call grub_tsc_init.
8344 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8345 get_time_ms() implementation.
8347 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8348 (ieee1275_get_time_ms): New function.
8349 (grub_machine_init): Install get_time_ms() implementation.
8351 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8352 (grub_machine_init): Call grub_tsc_init().
8353 (grub_millisleep): Removed.
8355 * kern/ieee1275/init.c (grub_millisleep): Removed.
8356 (grub_machine_init): Install ieee1275_get_time_ms()
8358 (ieee1275_get_time_ms): New function.
8359 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8362 2008-08-05 Marco Gerards <marco@gnu.org>
8364 * disk/ata.c: Include <grub/pci.h>.
8365 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8366 (grub_ata_initialize): Rewritten.
8367 (grub_ata_device_initialize): New function.
8369 2008-08-04 Pavel Roskin <proski@gnu.org>
8371 * kern/main.c: Include grub/mm.h.
8373 2008-08-04 Robert Millan <rmh@aybabtu.com>
8375 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8376 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8377 corruption problem).
8379 2008-08-04 Robert Millan <rmh@aybabtu.com>
8381 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8382 warnings introduced in my last commit.
8384 2008-08-03 Robert Millan <rmh@aybabtu.com>
8386 Make PCI available on all i386 architectures.
8388 * include/grub/i386/pc/pci.h: Move from here ...
8389 * include/grub/i386/pci.h: ... to here.
8391 * include/grub/i386/pc/pci.h: Remove.
8392 * include/grub/i386/efi/pci.h: Remove.
8393 * include/grub/x86_64/efi/pci.h: Remove.
8395 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8398 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8399 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8400 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8402 * conf/i386-ieee1275.rmk: Likewise.
8404 2008-08-03 Robert Millan <rmh@aybabtu.com>
8406 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8407 (grub_console_setcursor): Make it possible to set cursor off.
8409 2008-08-03 Robert Millan <rmh@aybabtu.com>
8411 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8412 of modules instead of assuming which platform provides what.
8413 * util/update-grub.in: Likewise.
8415 2008-08-03 Robert Millan <rmh@aybabtu.com>
8417 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8418 instead of `grub_install_dos_part' to determine whether a drive needs
8419 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8420 because it can be overridden when loading GRUB via Multiboot).
8422 2008-08-02 Robert Millan <rmh@aybabtu.com>
8424 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8426 2008-08-02 Robert Millan <rmh@aybabtu.com>
8428 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8429 of informational grub_dprintf() calls.
8431 2008-08-02 Robert Millan <rmh@aybabtu.com>
8433 * disk/memdisk.c (memdisk_size): Don't initialize.
8434 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8436 * include/grub/i386/pc/kernel.h
8437 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8438 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8439 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8440 (grub_arch_memdisk_size): Remove.
8442 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8443 field (was only used to transfer a constant). Add `type' field to
8444 support multiple module types.
8445 (grub_module_iterate): New function.
8447 * kern/device.c (grub_device_open): Do not hide error messages
8448 when grub_disk_open() fails. Use grub_print_error() instead.
8450 * kern/i386/pc/init.c (grub_arch_modules_addr)
8451 (grub_arch_memdisk_size): Remove functions.
8452 (grub_arch_modules_addr): Return the module address in high memory
8453 (now that it isn't copied anymore).
8455 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8456 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8457 decompression routine (grub_total_module_size already includes that
8458 now). Don't copy modules back to low memory.
8460 * kern/main.c: Include `<grub/mm.h>'.
8461 (grub_load_modules): Split out (and use) ...
8462 (grub_module_iterate): ... this function, which iterates through
8463 module objects and runs a hook.
8464 Comment out grub_mm_init_region() call, as it would cause non-ELF
8465 modules to be overwritten.
8467 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8468 the memdisk image in its own region, make it part of the module list.
8469 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8470 (main): Parse --memdisk|-m option, and pass user-provided path as
8471 parameter to generate_image().
8472 (add_segments): Pass `memdisk_path' down to load_modules().
8473 (load_modules): Embed memdisk image in module section when requested.
8474 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8475 `header.type' instead of `header.offset'.
8477 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8478 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8479 (memdisk_mod_LDFLAGS): New variables.
8480 * conf/i386-coreboot.rmk: Likewise.
8481 * conf/i386-ieee1275.rmk: Likewise.
8483 2008-08-02 Robert Millan <rmh@aybabtu.com>
8485 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8486 (backward_relocator): New variables. Used to allocate and relocate
8487 the payload, respectively.
8488 (grub_multiboot_load_elf32): Load into heap instead of requested
8489 address, install the appropriate relocator code in each bound of
8490 the payload, and set the entry point such that
8491 grub_multiboot_real_boot() will jump to one of them.
8493 * kern/i386/loader.S (grub_multiboot_payload_size)
8494 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8495 (grub_multiboot_payload_entry_offset): New variables.
8496 (grub_multiboot_real_boot): Set cpu context to what the relocator
8497 expects, and jump to the relocator instead of the payload.
8499 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8500 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8501 (grub_multiboot_payload_entry_offset): Export.
8503 2008-08-01 Bean <bean123ch@gmail.com>
8505 * normal/menu_entry.c (editor_getline): Don't return the original
8506 string as result, as it will be released by lexer once it has done
8509 2008-08-01 Robert Millan <rmh@aybabtu.com>
8511 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8512 within menuentries, not before them.
8513 util/grub.d/10_hurd.in: Likewise.
8515 2008-08-01 Bean <bean123ch@gmail.com>
8517 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8518 (bufio_mod_SOURCES): New macro.
8519 (bufio_mod_CFLAGS): Likewise.
8520 (bufio_mod_LDFLAGS): Likewise.
8522 * include/grub/bufio.h: New file.
8524 * io/bufio.c: Likewise.
8526 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8527 (grub_video_reader_png): Use grub_buffile_open to open file.
8529 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8530 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8532 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8533 (grub_video_reader_tga): Use grub_buffile_open to open file.
8535 * font/manager.c: Include <grub/bufio.h>.
8536 (add_font): Use grub_buffile_open to open file.
8538 2008-07-31 Robert Millan <rmh@aybabtu.com>
8540 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8541 ELF segments, use a macro for arbitrarily accessing any of them instead
8542 of preparing a pointer that allows access to one at a time.
8543 (grub_multiboot_load_elf64): Likewise.
8545 2008-07-31 Bean <bean123ch@gmail.com>
8547 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8548 GRUB_KERNEL_MACHINE_DATA_END.
8550 2008-07-30 Robert Millan <rmh@aybabtu.com>
8552 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8553 Increase from 0x50 to 0x60.
8554 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8555 use UUIDs to identify the root drive for them. If that's not
8557 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8558 check, for cross-disk installs.
8560 2008-07-30 Robert Millan <rmh@aybabtu.com>
8562 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8563 is non-empty, use it to set the `prefix' environment variable instead
8564 of the usual approach.
8565 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8566 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8567 environment variable instead of dummy make_install_device().
8569 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8570 (start): Insert a data section, with `grub_prefix' variable.
8571 * kern/i386/linuxbios/startup.S: Likewise.
8573 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8574 New variable reference.
8575 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8576 New macro. Defines offset of `grub_prefix' within startup.S (relative
8578 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8579 section within startup.S (relative to `start').
8580 * include/grub/i386/coreboot/kernel.h: Likewise.
8582 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8583 Overwrite grub_prefix with its contents, at the beginning of the
8585 (main): Understand -p|--prefix.
8587 2008-07-30 Robert Millan <rmh@aybabtu.com>
8589 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8591 2008-07-30 Robert Millan <rmh@aybabtu.com>
8593 * term/i386/pc/vga_text.c (grub_console_cls): Use
8594 grub_console_gotoxy() to go back to beginning of the screen.
8595 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8597 2008-07-29 Christian Franke <franke@computer.org>
8599 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8600 Add conversion of emulated mount points on Cygwin.
8602 2008-07-29 Christian Franke <franke@computer.org>
8604 * util/update-grub.in: Add a check for admin
8606 Remove old `grub.cfg.new' before creation.
8607 Add `-f' to `mv' to handle the different filesystem
8608 semantics of Windows.
8610 2008-07-29 Bean <bean123ch@gmail.com>
8612 * normal/main.c (get_line): Fix buffer overflow bug.
8614 2008-07-28 Robert Millan <rmh@aybabtu.com>
8616 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8617 (struct grub_apple_header): New struct. Describes the layout of
8619 (apple_partition_map_iterate): Check the header magic as well as the
8620 partition magic (which was already being checked).
8622 2008-07-28 Pavel Roskin <proski@gnu.org>
8624 * genmk.rb: Add a warning to the beginning of the output that
8625 it's a generated file and should not be edited.
8627 2008-07-28 Robert Millan <rmh@aybabtu.com>
8629 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8630 with the same number are found, just use issue a warning with
8631 grub_dprintf(), as this error has been reported to be non-fatal.
8633 2008-07-27 Robert Millan <rmh@aybabtu.com>
8635 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8638 2008-07-27 Bean <bean123ch@gmail.com>
8640 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8641 (grub_fat_find_dir): Ignore case when comparing filename.
8643 2008-07-27 Bean <bean123ch@gmail.com>
8645 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8646 smallino, as it's more descriptive, and i8count can be confused with
8647 the other field count.
8648 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8651 2008-07-27 Bean <bean123ch@gmail.com>
8653 * commands/crc.c: New file.
8655 * lib/crc.c: Likewise.
8657 * include/grub/lib/crc.h: Likewise.
8659 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8661 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8662 (hexdump): Move this function to ...
8664 * lib/hexdump.c: ... here.
8666 * include/grub/hexdump.h: Renamed to ...
8668 * include/grub/lib/hexdump.h: ... this.
8670 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8672 * util/grub-editenv.c: Likewise.
8674 * include/envblk.h: Renamed to ...
8676 * include/lib/envblk.h: ... this.
8678 * util/envblk.c: Renamed to ...
8680 * lib/envblk.c: ... this.
8682 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8684 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8685 (pkglib_MODULES): Add crc.mod.
8686 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8687 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8688 (crc_mod_SOURCES): New macro.
8689 (crc_mod_CFLAGS): Likewise.
8690 (crc_mod_LDFLAGS): Likewise.
8692 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8694 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8696 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8700 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8702 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8704 * commands/help.c: Include <grub/term.h>.
8705 (TERM_WIDTH): Removed. Updated all users.
8707 2008-07-27 Pavel Roskin <proski@gnu.org>
8709 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8710 spurious warnings about a comment within a comment.
8712 2008-07-25 Robert Millan <rmh@aybabtu.com>
8714 * util/getroot.c (find_root_device): Skip devices that match
8715 /dev/dm-[0-9]. This lets the real device be found for any type of
8716 abstraction (LVM, EVMS, RAID..).
8717 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8718 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8719 device is found first, find_root_device() will now skip it.
8721 2008-07-24 Pavel Roskin <proski@gnu.org>
8723 * include/grub/types.h: Use __builtin_bswap32() and
8724 __builtin_bswap64() with gcc 4.3 and newer.
8726 2008-07-24 Christian Franke <franke@computer.org>
8728 * util/i386/pc/grub-install.in: If `--debug' is specified,
8729 pass `--verbose' to grub-setup.
8730 Abort script if make_system_path_relative_to_its_root() fails.
8732 2008-07-24 Bean <bean123ch@gmail.com>
8734 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8735 variable `target_platform' should be `platform'.
8737 2008-07-24 Bean <bean123ch@gmail.com>
8739 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8740 (grub_png_init_fixed_block): New function.
8741 (grub_png_decode_image_data): Handle fixed huffman code compression.
8743 2008-07-24 Bean <bean123ch@gmail.com>
8745 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8746 (grub_pe2elf_SOURCES): New macro.
8747 (CLEANFILES): Add grub-pe2elf.
8749 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8750 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8751 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8752 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8753 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8754 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8755 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8756 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8757 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8758 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8759 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8760 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8761 (GRUB_PE32_DT_FUNCTION): Likewise.
8762 (GRUB_PE32_REL_I386_DIR32): Likewise.
8763 (GRUB_PE32_REL_I386_REL32): Likewise.
8764 (grub_pe32_symbol): New structure.
8765 (grub_pe32_reloc): Likewise.
8767 * util/grub-pe2elf.c: New file.
8769 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8770 start symbol in non pc platform.
8772 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8774 The following patches are from Christian Franke.
8776 * include/grub/dl.h: Remove .previous, gas supports this only
8779 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8780 Remove .type, gas supports this only for ELF format.
8782 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8783 nullbytes in symbol table. This fixes an infinite loop if table is
8786 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8787 TARGET_IMG_LDFLAGS and EXEEXT.
8789 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8790 TARGET_IMG_LDFLAGS_AC.
8791 (grub_CHECK_STACK_ARG_PROBE): New function.
8793 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8795 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8797 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8798 to set TARGET_IMG_LD* accordingly.
8799 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8800 Add call to grub_CHECK_STACK_ARG_PROBE.
8801 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8803 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8805 * genmk.rb: Add EXEEXT to CLEANFILES.
8807 2008-07-23 Robert Millan <rmh@aybabtu.com>
8809 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8810 define the codes for arrows and lines used for the menu).
8811 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8814 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8815 fonts, because the latter are too slow.
8817 2008-07-21 Bean <bean123ch@gmail.com>
8819 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8820 a20. Run keyboard test last, as it will cause macbook to halt.
8822 2008-07-18 Pavel Roskin <proski@gnu.org>
8824 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8825 load foreign architecture modules correctly anyway. Keep
8826 support for loading host architecture modules, whether we
8827 compile them or not.
8829 2008-07-17 Pavel Roskin <proski@gnu.org>
8831 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8832 change target_cpu. The compiler default can mismatch target_cpu
8835 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8836 * kern/efi/efi.c: Likewise.
8838 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8839 target compiler is functional.
8840 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8843 * configure.ac: Default to efi platform for x86_64-apple. Allow
8844 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8845 adjustments from the rest, only do them if target is not
8846 explicitly given. Merge other adjustments with the final sanity
8847 check. Remove an extraneous check for supported CPU. Be
8848 specific which CPU and which platform is not supported.
8850 * configure.ac: Default to pc platform for x86_64.
8852 2008-07-17 Robert Millan <rmh@aybabtu.com>
8854 Partial LinuxBIOS -> Coreboot rename.
8856 * conf/i386-linuxbios.rmk: Renamed to ...
8857 * conf/i386-coreboot.rmk: ... this.
8858 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8859 * configure.ac: Accept "coreboot" as input platform (but maintain
8860 compatibility with "linuxbios").
8861 * include/grub/i386/linuxbios: Renamed to ...
8862 * include/grub/i386/coreboot: ... this.
8864 2008-07-17 Bean <bean123ch@gmail.com>
8866 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8867 (appleldr_mod_SOURCE): New variable.
8868 (appleldr_mod_CFLAGS): Likewise.
8869 (appleldr_mod_LDFLAGS): Likewise.
8870 (pci_mod_SOURCES): Likewise.
8871 (pci_mod_CFLAGS): Likewise.
8872 (pci_mod_LDFLAGS): Likewise.
8873 (lspci_mod_SOURCES): Likewise.
8874 (lspci_mod_CFLAGS): Likewise.
8875 (lspci_mod_LDFLAGS): Likewise.
8877 * conf/x86_64-efi.rmk: New file.
8879 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8881 (grub_efidisk_write): Likewise.
8883 * include/efi/api.h (efi_call_0): New macro.
8884 (efi_call_1): Likewise.
8885 (efi_call_2): Likewise.
8886 (efi_call_3): Likewise.
8887 (efi_call_4): Likewise.
8888 (efi_call_5): Likewise.
8889 (efi_call_6): Likewise.
8891 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8892 grub_rescue_cmd_chainloader.
8894 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8895 (grub_pe32_optional_header): Change some fields based on i386 or
8897 (GRUB_PE32_PE32_MAGIC): Likewise.
8899 * include/grub/efi/uga_draw.h: New file.
8901 * include/grub/elf.h (STN_ABS): New constant.
8902 (R_X86_64_NONE): Relocation constant for x86_64.
8903 (R_X86_64_64): Likewise.
8904 (R_X86_64_PC32): Likewise.
8905 (R_X86_64_GOT32): Likewise.
8906 (R_X86_64_PLT32): Likewise.
8907 (R_X86_64_COPY): Likewise.
8908 (R_X86_64_GLOB_DAT): Likewise.
8909 (R_X86_64_JUMP_SLOT): Likewise.
8910 (R_X86_64_RELATIVE): Likewise.
8911 (R_X86_64_GOTPCREL): Likewise.
8912 (R_X86_64_32): Likewise.
8913 (R_X86_64_32S): Likewise.
8914 (R_X86_64_16): Likewise.
8915 (R_X86_64_PC16): Likewise.
8916 (R_X86_64_8): Likewise.
8917 (R_X86_64_PC8): Likewise.
8919 * include/grub/i386/efi/pci.h: New file.
8921 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8922 Change it value based on platform.
8923 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8924 (GRUB_E820_RAM): Likewise.
8925 (GRUB_E820_RESERVED): Likewise.
8926 (GRUB_E820_ACPI): Likewise.
8927 (GRUB_E820_NVS): Likewise.
8928 (GRUB_E820_EXEC_CODE): Likewise.
8929 (GRUB_E820_MAX_ENTRY): Likewise.
8930 (grub_e820_mmap): New structure.
8931 (linux_kernel_header): Change the efi field according to different
8932 kernel version, also field from linux_kernel_header.
8934 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8936 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8937 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8938 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8939 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8940 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8941 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8942 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8943 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8944 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8945 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8947 * include/grub/x86_64/efi/kernel.h: New file.
8949 * include/grub/x86_64/efi/loader.h: Likewise.
8951 * include/grub/x86_64/efi/machine.h: Likewise.
8953 * include/grub/x86_64/efi/pci.h: Likewise.
8955 * include/grub/x86_64/efi/time.h: Likewise.
8957 * include/grub/x86_64/linux.h: Likewise.
8959 * include/grub/x86_64/setjmp.h: Likewise.
8961 * include/grub/x86_64/time.h: Likewise.
8963 * include/grub/x86_64/types.h: Likewise.
8965 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8966 GRUB_TARGET_SIZEOF_VOID_P.
8968 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8969 (grub_efi_locate_handle): Likewise.
8970 (grub_efi_open_protocol): Likewise.
8971 (grub_efi_set_text_mode): Likewise.
8972 (grub_efi_stall): Likewise.
8973 (grub_exit): Likewise.
8974 (grub_reboot): Likewise.
8975 (grub_halt): Likewise.
8976 (grub_efi_exit_boot_services): Likewise.
8977 (grub_get_rtc): Likewise.
8979 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8980 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8981 (grub_efi_allocate_pages): Wrap efi calls.
8982 (grub_efi_free_pages): Wrap efi calls.
8983 (grub_efi_get_memory_map): Wrap efi calls.
8985 * kern/x86_64/dl.c: New file.
8987 * kern/x86_64/efi/callwrap.S: Likewise.
8989 * kern/x86_64/efi/startup.S: Likewise.
8991 * loader/efi/appleloader.c: Likewise.
8993 * loader/efi/chainloader.c (cmdline): New variable.
8994 (grub_chainloader_unload): Wrap efi calls.
8995 (grub_chainloader_boot): Likewise.
8996 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8999 * loader/efi/chainloader_normal.c (chainloader_command):
9000 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
9003 * loader/i386/efi/linux.c (allocate_pages): Change allocation
9005 (grub_e820_add_region): New function.
9006 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
9008 (grub_find_video_card): New function.
9009 (grub_linux_setup_video): New function.
9010 (grub_rescue_cmd_linux): Probe for video information.
9012 * normal/x86_64/setjmp.S: New file.
9014 * term/efi/console.c (map_char): New function.
9015 (grub_console_putchar): Map unicode char.
9016 (grub_console_checkkey): Wrap efi calls.
9017 (grub_console_getkey): Likewise.
9018 (grub_console_getwh): Likewise.
9019 (grub_console_gotoxy): Likewise.
9020 (grub_console_cls): Likewise.
9021 (grub_console_setcolorstate): Likewise.
9022 (grub_console_setcursor): Likewise.
9024 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
9026 2008-07-16 Pavel Roskin <proski@gnu.org>
9028 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
9031 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
9032 pointer, not an integer. This fixes a warning and prevents
9033 precision loss on 64-bit systems.
9034 (relocate_addresses): Remove unneeded cast.
9036 2008-07-15 Pavel Roskin <proski@gnu.org>
9038 * kern/i386/ieee1275/init.c: Include grub/cache.h.
9040 * term/ieee1275/ofconsole.c: Disable code unused on i386.
9042 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
9043 Fix comparison between signed and unsigned.
9045 * include/grub/i386/ieee1275/console.h: Declare
9046 grub_console_init() and grub_console_fini().
9048 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
9049 It's empty and unused.
9051 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9052 beginning to avoid warnings with some compilers.
9054 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9055 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9057 2008-07-14 Pavel Roskin <proski@gnu.org>
9059 * kern/env.c (grub_register_variable_hook): Don't copy empty
9060 string, it leaks memory. Pass "" to grub_env_set(), it should
9061 handle constant strings.
9063 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9064 * commands/cmp.c (grub_cmd_cmp): Likewise.
9065 * kern/dl.c (grub_dl_flush_cache): Likewise.
9066 (grub_dl_load_core): Likewise.
9067 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9068 (grub_elf64_load_phdrs): Likewise.
9070 2008-07-13 Pavel Roskin <proski@gnu.org>
9072 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9073 between signed and unsigned.
9074 (LzmaEnc_Finish): Fix warning about an unused parameter.
9076 2008-07-13 Bean <bean123ch@gmail.com>
9078 * Makefile.in (enable_lzo): New rule.
9080 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9082 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9084 * boot/i386/pc/lnxboot.S: #include <config.h>.
9086 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9087 its value according to the compression algorithm used, lzo or lzma.
9089 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9090 compression algorithm according to configure macro.
9092 * kern/i386/pc/startup.S (codestart): Likewise.
9094 * kern/i386/pc/lzma_decode.S: New file.
9096 * include/grub/lib/LzFind.h: Likewise.
9098 * include/grub/lib/LzHash.h: Likewise.
9100 * include/grub/lib/LzmaDec.h: Likewise.
9102 * include/grub/lib/LzmaEnc.h: Likewise.
9104 * include/grub/lib/LzmaTypes.h: Likewise.
9106 * lib/LzFind.c: Likewise.
9108 * lib/LzmaDec.c: Likewise.
9110 * lib/LzmaEnc.c: Likewise.
9112 2008-07-13 Bean <bean123ch@gmail.com>
9114 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9115 (grub_ext4_extent_header): New structure.
9116 (grub_ext4_extent): Likewise.
9117 (grub_ext4_extent_idx): Likewise.
9118 (grub_ext4_find_leaf): New function.
9119 (grub_ext2_read_block): Handle extents.
9121 2008-07-12 Robert Millan <rmh@aybabtu.com>
9123 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9125 2008-07-11 Robert Millan <rmh@aybabtu.com>
9127 * util/grub.d/40_custom.in: New file. Example on how to add custom
9128 entries to /etc/grub.d.
9129 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9130 40_custom (implicitly, by merging all the grub.d rules).
9132 2008-07-11 Pavel Roskin <proski@gnu.org>
9134 * commands/read.c (grub_getline): Fix invalid memory access.
9135 Don't add newline to the variable value.
9137 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9138 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9139 (serial_hw_get_port): Check validity of the port number.
9140 (grub_cmd_serial): Check return value of serial_hw_get_port().
9142 2008-07-07 Pavel Roskin <proski@gnu.org>
9144 * boot/i386/pc/diskboot.S (notification_string): Replace
9145 "Loading kernel" with just "loading". This is shorter, less
9146 confusing and saves a few bytes for possible future changes.
9148 2008-07-05 Pavel Roskin <proski@gnu.org>
9150 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9151 size for ATAPI devices, they are undefined. Output sector
9152 number in decimal form.
9154 * disk/ata.c: Use named constants for status bits.
9156 2008-07-04 Pavel Roskin <proski@gnu.org>
9158 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9159 grub_addr_t before casting it to the void pointer to fix a
9160 warning. Non-addressable regions are discarded earlier.
9161 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9162 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9163 (check_signature): Don't shadow table_header.
9164 (grub_linuxbios_table_iterate): Cast numeric constants to
9165 grub_linuxbios_table_header_t.
9166 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9169 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9172 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9173 pointer, which can cause warnings. Support 64-bit addresses.
9175 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9176 of sizeof(long). This fixes PowerPC image generation on x86_64.
9178 2008-07-04 Robert Millan <rmh@aybabtu.com>
9180 This fixes a performance issue when pc & gpt partmap iterators
9181 didn't abort iteration even after our hook found what it was
9182 looking for (often causing expensive probes of non-existent drives).
9184 Some callers relied on previous buggy behaviour, since they would
9185 raise an error when their own hooks caused early abortion of its
9188 * kern/device.c (grub_device_open): Improve error message.
9189 * disk/lvm.c (grub_lvm_open): Likewise.
9190 * disk/raid.c (grub_raid_open): Likewise.
9192 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9193 when hook requests it, independently of grub_errno.
9194 (pc_partition_map_probe): Do not fail when find_func() caused
9195 early abortion of pc_partition_map_iterate().
9197 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9198 when hook requests it, independently of grub_errno.
9199 (gpt_partition_map_probe): Do not fail when find_func() caused
9200 early abortion of gpt_partition_map_iterate().
9202 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9203 when hook requests it, independently of grub_errno. Do not fail when
9204 part_map_iterate_hook() caused early abortion of p->iterate().
9206 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9207 when grub_partition_iterate() returned with non-zero.
9209 2008-07-03 Pavel Roskin <proski@gnu.org>
9211 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9212 like we do in grub_ata_pio_read().
9213 (grub_ata_readwrite): Always write individual sectors. Fix the
9214 sector count for the remainder.
9215 (grub_ata_write): Enable writing to ATA devices. Correctly
9216 report error for ATAPI devices.
9218 2008-07-02 Pavel Roskin <proski@gnu.org>
9220 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9223 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9224 for every read sector, we already increment it for the whole
9225 batch. This fixes reading more than 256 sectors at once.
9227 * util/grub-editenv.c (cmd_info): Cast argument to long
9228 explicitly. ptrdiff_t reduces to int on i386.
9230 * util/grub-editenv.c (main): Be specific which parameter is
9233 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9234 (memdisk): Make memdisk_orig_addr a pointer.
9236 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9237 for file offsets, use grub_off_t instead. Fix printf format
9240 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9241 there. Real unexpected warnings should not drown in the noise
9242 about known problems.
9244 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9245 grub_disk_addr_t for memory addresses.
9247 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9248 explicitly to fix a warning.
9250 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9252 * Makefile.in (MODULE_LDFLAGS): New variable.
9253 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9254 the linker accepts --build-id=none.
9255 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9257 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9259 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9260 those in Linux XFS code. Provide a way to access 64-bit parent
9262 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9263 the end of struct grub_xfs_dir_header.
9265 2008-07-02 Bean <bean123ch@gmail.com>
9267 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9268 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9269 and GRUB_IEEE1275_FLAG_NO_ANSI.
9271 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9272 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9273 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9275 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9276 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9278 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9279 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9281 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9282 esc sequence on non ANSI terminal.
9283 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9285 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9288 2008-07-02 Bean <bean123ch@gmail.com>
9290 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9291 (grub_editenv_SOURCES): New variable.
9292 (pkglib_MODULES): Add loadenv.mod.
9293 (loadenv_mod_SOURCES): New variable.
9294 (loadenv_mod_CFLAGS): Likewise.
9295 (loadenv_mod_LDFLAGS): Likewise.
9297 * include/grub/envblk.h: New file.
9299 * util/envblk.c: New file.
9301 * util/grub-editenv.c: New file.
9303 * commands/loadenv.c: New file.
9305 2008-07-01 Pavel Roskin <proski@gnu.org>
9307 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9308 not unsigned char. This fixes warnings and is consistent with
9311 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9313 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9315 * term/tparm.c (analyze): Always set *popcount.
9317 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9318 cast to fix a warning.
9320 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9321 cast to suppress a warning.
9323 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9324 grub_fshelp_read_file() expects.
9326 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9327 write uuid as a 32-bit value in CPU byte order, so declare and
9330 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9331 long if the format specifier expects it.
9332 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9333 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9334 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9335 long to fix a warning.
9336 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9337 grub_dprintf() arguments to fix warnings.
9339 2008-06-30 Pavel Roskin <proski@gnu.org>
9341 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9342 install_bsd_part immediately before core.img is embedded or
9343 modified on disk. This fixes core.img verification if core.img
9346 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9347 core_path to calculate the blocklist.
9348 Patch from Javier MartÃn <lordhabbit@gmail.com>
9350 2008-06-29 Robert Millan <rmh@aybabtu.com>
9352 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9353 block to disk block.
9354 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9355 Patch from Niels Böhm <bitbucket@arcor.de>
9357 2008-06-29 Robert Millan <rmh@aybabtu.com>
9359 * util/update-grub_lib.in (font_path): Search for fonts in
9360 /boot/grub first, which is more likely to be readable (we aren't
9361 deciding where fonts live, just looking for them).
9363 2008-06-26 Pavel Roskin <proski@gnu.org>
9365 * util/biosdisk.c (read_device_map): Don't leave dead map
9366 entries for devices failing stat() check.
9368 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9369 core_path_dev for the core.img path on the target device.
9371 2008-06-26 Robert Millan <rmh@aybabtu.com>
9373 * disk/fs_uuid.c: New file.
9374 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9375 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9376 (fs_uuid_mod_LDFLAGS): New variables.
9377 * include/grub/disk.h (grub_disk_dev_id): Add
9378 `GRUB_DISK_DEVICE_UUID_ID'.
9379 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9380 implement iterate().
9382 2008-06-26 Robert Millan <rmh@aybabtu.com>
9384 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9385 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9386 Linux image includes no initrd.
9388 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
9390 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9391 call to resolve the core image location that effectively appended the
9394 2008-06-21 Robert Millan <rmh@aybabtu.com>
9396 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9399 * util/grub.d/10_hurd.in: ... to here ...
9400 * util/grub.d/10_linux.in: ... and here.
9402 2008-06-19 Robert Millan <rmh@aybabtu.com>
9404 * kern/main.c (grub_main): Export `prefix' variable immediately
9405 after it has been set by grub_machine_set_prefix().
9407 2008-06-19 Robert Millan <rmh@aybabtu.com>
9409 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9410 search result when not saving to variable, not the other way around.
9411 When saving to variable, abort iteration as soon as a match is found.
9413 2008-06-19 Robert Millan <rmh@aybabtu.com>
9415 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9416 check for partition that provides /boot/grub. Its logic is flawed,
9417 as it prevents prepare_grub_to_access_device() from being called
9420 2008-06-19 Robert Millan <rmh@aybabtu.com>
9422 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9423 "insmod" command directly when abstraction modules are needed,
9424 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9425 since it had already been processed).
9427 2008-06-19 Pavel Roskin <proski@gnu.org>
9429 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9430 changed. This is needed in case GRUB_LIBDIR changes.
9431 * conf/i386-ieee1275.rmk: Likewise.
9432 * conf/i386-linuxbios.rmk: Likewise.
9433 * conf/i386-pc.rmk: Likewise.
9434 * conf/powerpc-ieee1275.rmk: Likewise.
9436 2008-06-18 Pavel Roskin <proski@gnu.org>
9438 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9439 kernel_elf_symlist.c to symlist.c for consistency with other
9440 architectures. Update all users.
9441 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9443 2008-06-18 Robert Millan <rmh@aybabtu.com>
9445 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9448 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9449 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9450 a RAID device, run setup() for all members independently on whether
9451 LVM abstraction is being used.
9452 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9453 If grub-mkimage has set `*install_dos_part == -2', don't override this
9455 Perform *install_dos_part adjustments independently on whether
9456 we're embedding or not.
9457 Clarify error message when image is too big for embedding.
9458 Remove duplicate *install_dos_part stanza.
9460 2008-06-17 Robert Millan <rmh@aybabtu.com>
9462 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9463 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9465 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9466 values in grub_ofconsole_normal_color and
9467 grub_ofconsole_highlight_color (they're not directly related to
9468 background and foreground).
9469 (grub_ofconsole_setcolorstate): Extract background and foreground
9470 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9472 2008-06-17 Robert Millan <rmh@aybabtu.com>
9474 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9475 /boot/grub for the check in last commit, not /boot (they could be
9476 different partitions).
9478 2008-06-16 Robert Millan <rmh@aybabtu.com>
9480 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9481 asked to setup access for the same partition that provides /boot,
9482 don't bother using UUIDs since our root already has the value we
9485 2008-06-16 Robert Millan <rmh@aybabtu.com>
9487 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9489 Patch from Sven Mueller <sven@debian.org>.
9491 2008-06-16 Robert Millan <rmh@aybabtu.com>
9493 * util/update-grub.in: Check for $EUID instead of $UID.
9494 Reported by Vincent Zweije.
9496 2008-06-16 Bean <bean123ch@gmail.com>
9498 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9499 (grub_ext2_read_block): Likewise.
9500 (grub_ext2_read_inode): Likewise.
9501 (grub_ext2_mount): Likewise.
9502 (grub_ext2_close): Likewise.
9503 (grub_ext3_get_journal): Removed.
9505 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9506 (grub_reiserfs_read_symlink): Likewise.
9507 (grub_reiserfs_mount): Likewise.
9508 (grub_reiserfs_open): Likewise.
9509 (grub_reiserfs_read): Likewise.
9510 (grub_reiserfs_close): Likewise.
9511 (grub_reiserfs_get_journal): Removed.
9513 * fs/fshelp.c (grub_fshelp_read): Removed.
9514 (grub_fshelp_map_block): Likewise.
9516 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9517 (grub_fshelp_journal): Likewise.
9518 (grub_fshelp_read): Likewise.
9519 (grub_fshelp_map_block): Likewise.
9521 2008-06-16 Pavel Roskin <proski@gnu.org>
9523 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9524 floating point anymore.
9525 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9527 2008-06-15 Pavel Roskin <proski@gnu.org>
9529 * commands/ls.c (grub_ls_list_files): Use integer calculations
9530 for human readable format, avoid floating point use.
9531 * kern/misc.c (grub_ftoa): Remove.
9532 (grub_vsprintf): Remove floating point support.
9534 2008-06-15 Robert Millan <rmh@aybabtu.com>
9536 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9538 Reported by Max Vozeler.
9540 2008-06-15 Robert Millan <rmh@aybabtu.com>
9542 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9543 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9545 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9546 the beginning of the prefix.
9548 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9549 It is assumed that if we have a memdisk, grub-mkimage has set
9550 grub_prefix to include the "(memdisk)" drive in it.
9552 2008-06-15 Robert Millan <rmh@aybabtu.com>
9554 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9555 Initialize keyboard controller after registering the terminal, so that
9556 grub_printf() can be called from grub_keyboard_controller_init().
9558 2008-06-15 Robert Millan <rmh@aybabtu.com>
9560 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9561 extent-btree which is written as big endian on disk.
9562 Reported by Alain Greppin <al@chilibi.org>.
9564 2008-06-14 Robert Millan <rmh@aybabtu.com>
9566 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9567 * util/i386/pc/grub-install.in (modules): Likewise.
9569 2008-06-13 Pavel Roskin <proski@gnu.org>
9571 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9573 2008-06-13 Bean <bean123ch@gmail.com>
9575 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9577 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9579 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9580 to indicate sparse block.
9582 2008-06-12 Pavel Roskin <proski@gnu.org>
9584 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9585 number, grub_fshelp_read() does it for us.
9587 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9588 linear disk read with journal translation.
9589 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9590 * include/grub/fshelp.h: Declare grub_fshelp_read().
9592 2008-06-09 Pavel Roskin <proski@gnu.org>
9594 * fs/minix.c (grub_minix_mount): Handle error reading
9597 2008-06-08 Robert Millan <rmh@aybabtu.com>
9599 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9600 don't append the RAID prefix afterwards.
9601 Reported by Clint Adams.
9603 2008-06-08 Robert Millan <rmh@aybabtu.com>
9605 Based on description from Pavel:
9606 * kern/disk.c (grub_disk_check_range): Rename to ...
9607 (grub_disk_adjust_range): ... this. Add a comment explaining the
9608 tasks performed by this function.
9610 2008-06-08 Robert Millan <rmh@aybabtu.com>
9612 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9613 `num_serial' (for consistency with other variables).
9614 (struct grub_ntfs_data): Add `uuid' member.
9615 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9616 (grub_ntfs_uuid): New function.
9617 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9619 2008-06-07 Pavel Roskin <proski@gnu.org>
9621 * util/biosdisk.c (open_device): Revert last change to the
9622 function, it broke installation. The sector needs to be
9623 different dependent on which device is opened.
9625 2008-06-06 Robert Millan <rmh@aybabtu.com>
9627 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9628 rest of GRUB, and breakage doesn't happen if its value were modified.
9630 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9631 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9632 a constant (same value).
9633 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9634 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9636 2008-06-06 Robert Millan <rmh@aybabtu.com>
9638 * util/biosdisk.c (open_device): Do not modify sector offset when
9639 accessing a partition. kern/disk.c already handles this for us.
9641 2008-06-06 Robert Millan <rmh@aybabtu.com>
9643 * util/grub-emu.c (grub_machine_init): Move code in this function from
9645 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9646 segfault in case grub_printf() is called).
9648 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9649 grub_probe. Update all users not to explicitly add it again.
9650 (grub_device): New variable; contains corresponding device for grubdir.
9651 (fs_module, partmap_module, devabstraction_module): Pass
9652 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9655 2008-06-05 Robert Millan <rmh@aybabtu.com>
9657 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9658 is found, print it (same layout as with labels).
9660 2008-06-04 Robert Millan <rmh@aybabtu.com>
9662 * util/biosdisk.c (get_drive): Rename to ...
9663 (find_grub_drive): ... this. Update all users.
9665 (get_os_disk): Rename to ...
9666 (convert_system_partition_to_system_disk): ... this. Update all users.
9668 (find_drive): Rename to ...
9669 (find_system_device): ... this. Update all users.
9671 2008-06-04 Robert Millan <rmh@aybabtu.com>
9673 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9674 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9675 (make_device_map): Likewise.
9677 2008-06-01 Robert Millan <rmh@aybabtu.com>
9679 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9680 before dereferencing it.
9682 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9683 union with fat12/fat16-specific ones. Add some new fields, including
9684 `num_serial' for both versions.
9685 (struct grub_fat_data): Add `uuid' member.
9686 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9687 names. Initialize `data->uuid' using `num_serial'.
9688 (grub_fat_uuid): New function.
9689 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9691 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9692 (grub_reiserfs_uuid): New function.
9693 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9696 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9697 (grub_xfs_uuid): New function.
9698 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9700 2008-06-01 Robert Millan <rmh@aybabtu.com>
9702 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9703 code that is backward compatible with pre-uuid search command.
9705 2008-05-31 Robert Millan <rmh@aybabtu.com>
9707 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9708 floppies after everything else, to ensure floppy drive isn't accessed
9709 unnecessarily (patch from Bean).
9711 2008-05-31 Robert Millan <rmh@aybabtu.com>
9713 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9714 not print device names when we were asked to set a variable.
9716 2008-05-31 Robert Millan <rmh@aybabtu.com>
9718 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9719 using "cursor-on" and "cursor-off" commands (understood at least by
9720 the Open Firmware flavour on OLPC).
9722 2008-05-31 Michael Gorven <michael@gorven.za.net>
9724 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9725 on and off sequences.
9727 2008-05-31 Robert Millan <rmh@aybabtu.com>
9729 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9730 * util/update-grub.in: Likewise.
9732 2008-05-30 Pavel Roskin <proski@gnu.org>
9734 * util/biosdisk.c (linux_find_partition): Simplify logic and
9735 make the code more universal. Keep special processing for
9736 devfs, but use a simple rule for all other devices. If the
9737 device ends with a number, append 'p' and the partition number.
9738 Otherwise, append only the partition number.
9740 2008-05-30 Robert Millan <rmh@aybabtu.com>
9742 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9743 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9744 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9745 the `root' parameter to Linux.
9747 2008-05-30 Robert Millan <rmh@aybabtu.com>
9749 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9750 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9751 --fs_uuid with --fs-uuid.
9752 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9753 all filesystems support them).
9755 2008-05-30 Robert Millan <rmh@aybabtu.com>
9757 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9758 grub_printf() flags, since we're printing in units of 2 bytes.
9760 2008-05-30 Robert Millan <rmh@aybabtu.com>
9762 * util/grub.d/00_header.in: Remove obsolete comment referencing
9763 convert_system_path_to_grub_path().
9764 * util/update-grub.in: Likewise.
9765 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9766 (convert_system_path_to_grub_path): Add a warning message explaining
9767 that this function is deprecated. Rely on is_path_readable_by_grub()
9768 for the readability checks.
9769 (font_path): Use is_path_readable_by_grub() for the readability
9770 check rather than convert_system_path_to_grub_path().
9772 2008-05-30 Robert Millan <rmh@aybabtu.com>
9774 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9775 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9776 converting it first.
9777 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9778 grub.cfg for access to font file, and afterwards call it again to set
9781 2008-05-30 Robert Millan <rmh@aybabtu.com>
9783 * commands/search.c (options): Add --fs_uuid option.
9784 (search_fs_uuid): New function.
9785 (grub_cmd_search): Fix --set argument passing.
9786 Use search_fs_uuid() when requested via --fs_uuid.
9787 (grub_search_init): Update help message.
9788 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9789 and redeclare it as an array of 16-bit words.
9790 (grub_ext2_uuid): New function.
9791 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9792 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9793 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9794 (GRUB_DEVICE_BOOT_UUID): New variables.
9795 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9796 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9798 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9799 just assume `root' variable has the right value.
9800 * util/grub.d/10_linux.in: Likewise.
9801 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9803 (main): Recognise `-t fs_uuid' argument.
9805 2008-05-30 Robert Millan <rmh@aybabtu.com>
9807 * util/biosdisk.c (map): Redefine structure to hold information
9808 about GRUB drive name.
9809 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9811 (call_hook): Remove.
9812 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9813 member. Assume drive has partitions.
9814 (grub_util_biosdisk_open): Access device names via `.device' struct
9816 (open_device): Likewise.
9817 (find_drive): Likewise.
9818 (read_device_map): Adjust map[] usage to match the new struct
9819 definition. Don't check for duplicates (still possible, but not cheap
9821 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9822 (make_device_name): Remove assumption of BIOS-like drive names.
9824 2008-05-30 Pavel Roskin <proski@gnu.org>
9826 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9827 compiling execute.c doesn't need grub_script.tab.h anymore.
9828 (normal/command.c_DEPENDENCIES): Likewise.
9829 (normal/function.c_DEPENDENCIES): Likewise.
9830 * conf/i386-ieee1275.rmk: Likewise.
9831 * conf/i386-linuxbios.rmk: Likewise.
9832 * conf/i386-pc.rmk: Likewise.
9833 * conf/powerpc-ieee1275.rmk: Likewise.
9834 * conf/sparc64-ieee1275.rmk: Likewise.
9836 2008-05-29 Pavel Roskin <proski@gnu.org>
9838 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9839 when scanning metadata for volume group name.
9841 * include/grub/script.h: Don't include grub_script.tab.h. It's
9842 a generated file, which may only be included from the files with
9843 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9844 use union YYSTYPE, as the later allows forward declaration.
9845 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9847 2008-05-29 Robert Millan <rmh@aybabtu.com>
9849 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9850 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9851 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9852 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9855 2008-05-29 Robert Millan <rmh@aybabtu.com>
9857 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9858 control key combinations.
9860 2008-05-29 Robert Millan <rmh@aybabtu.com>
9862 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9863 * util/ieee1275/grub-install.in: ... to here.
9864 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9865 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9866 (grub_install_SOURCES): Likewise.
9868 2008-05-29 Robert Millan <rmh@aybabtu.com>
9870 * fs/affs.c: Update copyright year.
9871 * fs/ext2.c: Likewise.
9872 * fs/fshelp.c: Likewise.
9873 * fs/hfsplus.c: Likewise.
9874 * fs/ntfs.c: Likewise.
9875 * fs/xfs.c: Likewise.
9876 * include/grub/fshelp.h: Likewise.
9877 * util/grub-mkdevicemap.c: Likewise.
9879 2008-05-28 Robert Millan <rmh@aybabtu.com>
9881 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9882 might need to be fatfs to support some firmware implementations
9885 2008-05-28 Robert Millan <rmh@aybabtu.com>
9887 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9889 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9890 (make_device_map): Likewise.
9892 2008-05-20 Bean <bean123ch@gmail.com>
9894 * fs/fshelp.c (grub_fshelp_map_block): New function.
9895 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9896 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9898 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9899 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9900 (grub_fshelp_journal): New structure.
9901 (grub_fshelp_map_block): New function prototype.
9902 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9903 (grub_fshelp_map_block): Likewise.
9905 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9906 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9907 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9908 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9909 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9910 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9911 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9912 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9913 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9914 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9915 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9916 (grub_ext2_sblock): New members for journal support.
9917 (grub_ext3_journal_header): New structure.
9918 (grub_ext3_journal_revoke_header): Likewise.
9919 (grub_ext3_journal_block_tag): Likewise.
9920 (grub_ext3_journal_sblock): Likewise.
9921 (grub_fshelp_node): New members logfile and journal.
9922 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9923 grub_fshelp_map_block to get real block number.
9924 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9926 (grub_ext2_read_inode): Likewise.
9927 (grub_ext3_get_journal): New function.
9928 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9929 (grub_ext2_close): Release memory used by journal.
9931 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9932 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9933 (grub_reiserfs_transaction_header): Renamed to
9934 grub_reiserfs_description_block, replace field data with real_blocks.
9935 (grub_reiserfs_commit_block): New structure.
9936 (grub_reiserfs_data): New member journal.
9937 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9939 (grub_reiserfs_read_symlink): Likewise.
9940 (grub_reiserfs_iterate_dir): Likewise.
9941 (grub_reiserfs_open): Likewise.
9942 (grub_reiserfs_read): Likewise.
9943 (grub_reiserfs_get_journal): New function.
9944 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9945 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9946 using grub_reiserfs_get_journal.
9947 (grub_reiserfs_close): Release memory used by journal.
9949 * fs/affs.c (grub_affs_read_block): Change block type to
9950 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9952 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9954 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9956 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9958 * fs/udf.c (grub_udf_read_block): Change block type to
9959 grub_disk_addr_t. Use type cast to avoid warning.
9961 * fs/xfs.c (grub_xfs_read_block): Likewise.
9963 2008-05-16 Christian Franke <franke@computer.org>
9965 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9966 to ensure that break with ESC will always work.
9967 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9968 Remove ESC from keyboard queue.
9970 2008-05-16 Christian Franke <franke@computer.org>
9972 * util/biosdisk.c: [__CYGWIN__] Add includes.
9973 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9974 (get_os_disk): Move variable declarations to OS specific
9975 parts to avoid warning.
9976 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9977 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9978 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9980 * util/getroot.c: [__CYGWIN__] Add includes.
9981 (strip_extra_slashes): Fix "/" case.
9982 [__CYGWIN__] (get_win32_path): New function.
9983 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9984 [__CYGWIN__] (find_root_device): Disable.
9985 [__CYGWIN__] (get_bootsec_serial): New function.
9986 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9987 [__linux__] (grub_guess_root_device): Add early returns to simplify
9989 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9990 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9991 check for Linux only.
9993 2008-05-15 Bean <bean123ch@gmail.com>
9995 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9996 keyboard hang problem in apple's intel mac.
9998 2008-05-09 Robert Millan <rmh@aybabtu.com>
10000 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
10002 * util/grub-mkdevicemap.c (get_virtio_disk_name)
10003 (make_device_map): Likewise.
10004 Reported by Aurelien Jarno <aurel32@debian.org>
10006 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
10008 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
10009 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
10010 (make_device_map): Output entries for xvd type disks.
10012 2008-05-07 Robert Millan <rmh@aybabtu.com>
10014 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
10016 * util/grub-mkdevicemap.c (get_cciss_disk_name)
10017 (make_device_map): Likewise.
10018 Reported by Roland Dreier <rdreier@cisco.com>
10020 2008-05-07 Robert Millan <rmh@aybabtu.com>
10022 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
10023 grub_strstr() call. Correct a few mistakes in failure path handling.
10025 2008-05-06 Robert Millan <rmh@aybabtu.com>
10027 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
10028 Do not print a trailing slash (therefore, the root directory is an
10030 (convert_system_path_to_grub_path): Do not remove trailing slash
10031 from make_system_path_relative_to_its_root() output.
10033 * util/i386/pc/grub-install.in: Add trailing slash to output from
10034 make_system_path_relative_to_its_root().
10036 2008-05-06 Robert Millan <rmh@aybabtu.com>
10038 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
10039 ensures that output lines aren't intermangled with those sent to
10040 stderr (via grub_util_info()).
10041 * util/grub-probe.c (grub_refresh): Likewise.
10042 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
10044 2008-05-05 Christian Franke <franke@computer.org>
10046 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
10047 Add Cygwin device names.
10048 (get_ide_disk_name) [__CYGWIN__]: Likewise.
10049 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10050 (check_device): Return error instead of success on empty name.
10051 (make_device_map): Move label inside linux specific code to
10052 prevent compiler warning.
10054 2008-04-30 Robert Millan <rmh@aybabtu.com>
10056 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10057 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10059 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10061 2008-04-29 Robert Millan <rmh@aybabtu.com>
10063 * docs/grub.cfg: New file (example GRUB configuration).
10065 2008-04-26 Robert Millan <rmh@aybabtu.com>
10067 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10068 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10069 and `disk/ieee1275/nand.c'.
10071 2008-04-25 Bean <bean123ch@gmail.com>
10073 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10076 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10077 change the buffer size to 4096 for cdrom device.
10079 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10081 (_linux_mod_SOURCES): New variable.
10082 (_linux_mod_CFLAGS): Likewise.
10083 (_linux_mod_LDFLAGS): Likewise.
10084 (linux_mod_SOURCES): Likewise.
10085 (linux_mod_CFLAGS): Likewise.
10086 (linux_mod_LDFLAGS): Likewise.
10087 (nand_mod_SOURCES): Likewise.
10088 (nand_mod_CFLAGS): Likewise.
10089 (nand_mod_LDFLAGS): Likewise.
10091 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10092 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10093 type property. (nand device in olpc don't have this property)
10095 * include/grub/disk.h (grub_disk_dev_id): New macro
10096 GRUB_DISK_DEVICE_NAND_ID.
10098 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10099 function prototype.
10100 (grub_rescue_cmd_initrd): Likewise.
10102 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10103 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10104 ofw_cif_handler and ofw_idt, adjust padding number.
10106 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10107 GRUB_MACHINE_IEEE1275 is defined.
10109 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10110 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10112 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10113 on nested function heap_init.
10114 (grub_upper_mem): New variable for i386-ieee1275.
10115 (grub_get_extended_memory): New function for i386-ieee1275.
10116 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10118 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10119 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10122 * loader/i386/ieee1275/linux.c: New file.
10124 * loader/i386/ieee1275/linux_normal.c: New file.
10126 * disk/ieee1275/nand.c: New file.
10128 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10130 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10132 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10134 2008-04-18 Robert Millan <rmh@aybabtu.com>
10136 Restructures early code path on ieee1275 to unify grub_main() as
10137 the first C function that is executed in every platform.
10139 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10140 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10142 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10143 * kern/ieee1275/cmain.c (cmain): Rename to ...
10144 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10145 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10148 2008-04-18 Robert Millan <rmh@aybabtu.com>
10150 * util/update-grub.in: Fix syntax error when setting
10151 `GRUB_PRELOAD_MODULES'.
10152 Reported by Stephane Chazelas <stephane@artesyncp.com>
10154 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10156 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10157 section into account, newer toolchains generate unique build ids
10158 * configure.ac: remove the test for --build-id=none acceptance,
10159 we want build ids to be preserved
10160 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10161 far from other sections don't cause the raw binary images grow
10164 2008-04-15 Robert Millan <rmh@aybabtu.com>
10166 * disk/lvm.c: Update copyright year.
10167 * kern/misc.c: Likewise.
10169 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10171 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10172 there is no memory left for physical volume name.
10174 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10176 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10177 volume name mapping to support bigger than 9 character names properly.
10179 2008-04-13 Robert Millan <rmh@aybabtu.com>
10181 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10182 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10184 2008-04-13 Christian Franke <franke@computer.org>
10186 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10187 to create a floppy emulation boot CD when non emulation mode
10189 Enable Joliet CD filesystem extension.
10191 2008-04-13 Robert Millan <rmh@aybabtu.com>
10193 * kern/misc.c (grub_strncat): Fix off-by-one error.
10194 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10196 * kern/env.c (grub_env_context_close): Clear current context, not
10198 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10200 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10202 2008-04-13 Robert Millan <rmh@aybabtu.com>
10204 Improve robustness when handling LVM.
10206 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10207 (and leave `*p' unmodified).
10208 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10210 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10211 iterating through it.
10212 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10214 (grub_lvm_scan_device): Check the return value (and fail gracefully
10215 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10216 Don't assume `vg->pvs != NULL' when iterating through it.
10218 2008-04-13 Robert Millan <rmh@aybabtu.com>
10220 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10221 * genmk.rb (partmap): New variable.
10222 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10223 (#{partmap}): New target rule.
10224 * genpartmaplist.sh: New file.
10225 * Makefile.in (pkglib_DATA): Add partmap.lst.
10226 (partmap.lst): New target rule.
10227 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10228 modules (including all partition maps), instead of preloading them.
10230 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10232 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10233 `linux-boot-prober' (if installed) to detect other operating
10234 systems which are installed on the computer and add them to
10236 * conf/common.rmk: Build and install 30_os-prober.
10238 2008-04-12 Robert Millan <rmh@aybabtu.com>
10240 * kern/powerpc/ieee1275/init.c: Move from here ...
10241 * kern/ieee1275/init.c: ... to here. Update all users.
10243 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10244 * kern/ieee1275/cmain.c: ... to here. Update all users.
10246 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10247 * kern/ieee1275/openfw.c: ... to here. Update all users.
10249 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10250 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10252 2008-04-10 Pavel Roskin <proski@gnu.org>
10254 * configure.ac: Always use "_cv_" in cache variables for
10255 compatibility with Autoconf 2.62.
10257 2008-04-07 Robert Millan <rmh@aybabtu.com>
10259 Revert grub/machine/init.h addition by Pavel (since it breaks on
10260 i386-ieee1275 and others):
10261 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10262 * util/powerpc/ieee1275/misc.c: Likewise.
10264 2008-04-07 Robert Millan <rmh@aybabtu.com>
10266 * util/grub-probe.c (probe): Improve error message.
10268 2008-04-07 Robert Millan <rmh@aybabtu.com>
10270 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10271 (this prevents the presence of a bogus entry from ruining the whole
10274 2008-04-06 Pavel Roskin <proski@gnu.org>
10276 * util/biosdisk.c: Include grub/util/biosdisk.h.
10277 * util/grub-fstest.c (execute_command): Make static.
10278 * util/grub-mkdevicemap.c (check_device): Likewise.
10279 * util/i386/pc/misc.c: Include grub/machine/init.h.
10280 * util/powerpc/ieee1275/misc.c: Likewise.
10281 * util/lvm.c: Include grub/util/lvm.h.
10282 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10284 * util/raid.c: Include grub/util/raid.h.
10285 (grub_util_getdiskname): Make static.
10287 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10288 grub_hostfs_fini(), as they are called from grub_init_all() and
10289 grub_fini_all() respectively. This fixes an infinite loop in
10290 grub-fstest due to double registration of hostfs.
10291 Reported by Christian Franke <Christian.Franke@t-online.de>
10293 2008-04-05 Pavel Roskin <proski@gnu.org>
10295 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10296 all 8 functions. Otherwise, probe function 0 only.
10298 2008-04-04 Pavel Roskin <proski@gnu.org>
10300 * commands/lspci.c (grub_lspci_iter): Print the bus number
10303 * commands/lspci.c (grub_pci_classes): Fix typos.
10304 (grub_lspci_iter): Don't print func twice. Print vendor ID
10305 before device ID, as it's normally done.
10307 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10308 Fix signedness warnings.
10309 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10311 * util/ieee1275/get_disk_name.c: Include config.h so that
10312 _GNU_SOURCE is defined and getline() is declared. Mark an
10313 unused argument as such. Fix a signedness warning.
10315 2008-04-02 Pavel Roskin <proski@gnu.org>
10317 * genkernsyms.sh.in: Use more robust assignments for CC and
10318 srcdir. Quote srcdir.
10319 * gensymlist.sh.in: Likewise. Assert at the compile time that
10320 the symbol table is not empty.
10322 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10323 * fs/cpio.c (grub_cpio_read): Likewise.
10325 2008-04-01 Pavel Roskin <proski@gnu.org>
10327 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10328 * disk/host.c (grub_host_open): Likewise.
10329 * disk/loopback.c (grub_loopback_open): Likewise.
10330 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10331 disk->id as in disk/host.c, not a multi-character constant.
10333 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10334 later is obsolete, potentially dangerous and sets a bad example.
10335 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10336 * util/misc.c (grub_util_get_image_size): Likewise.
10338 * disk/loopback.c (options): Improve help for "--partitions".
10340 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10341 options to align them with the short options, e.g. "echo -e".
10343 2008-03-31 Bean <bean123ch@gmail.com>
10345 * video/reader/png.c (grub_png_data): New member is_16bit and
10347 (grub_png_decode_image_header): Detect 16 bit png image.
10348 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10349 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10350 (grub_video_reader_png): Release memory occupied by image_data.
10352 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10354 (grub_nfs_mount): Skip the test for sector per cluster.
10356 * include/grub/ntfs.h (MAX_SPC): Removed.
10358 2008-03-31 Bean <bean123ch@gmail.com>
10360 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10361 (grub_probe_SOURCES): Add fs/afs.c.
10362 (grub_fstest_SOURCES): Likewise.
10363 (afs_mod_SOURCES): New variable.
10364 (afs_mod_CFLAGS): Likewise.
10365 (afs_mod_LDFLAGS): Likewise.
10367 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10368 (grub_emu_SOURCES): Likewise.
10370 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10372 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10374 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10376 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10378 * fs/afs.c: New file.
10380 2008-03-30 Pavel Roskin <proski@gnu.org>
10382 * disk/host.c: Include grub/misc.h to fix a warning.
10383 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10384 warnings about implicit declarations.
10386 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10388 * include/grub/i386/loader.h: Change declaration of
10389 grub_linux_boot() to match what grub_loader_set() expects.
10390 * util/getroot.c (grub_guess_root_device): Return const char* to
10392 * util/grub-probe.c (probe): Fix a warning about uninitialized
10393 abstraction_name variable.
10394 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10395 second argument as unused to fix a warning.
10397 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10398 missing grub_error() call.
10400 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10401 2.60 and newer uses it to define datadir.
10403 * commands/sleep.c: Fix warning about implicit declaration.
10404 * disk/memdisk.c: Likewise.
10405 * loader/aout.c: Likewise.
10406 * loader/i386/bsd_normal.c: Likewise.
10407 * util/grub-probe.c: Likewise.
10409 * commands/i386/cpuid.c (has_longmode): Make static.
10410 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10411 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10413 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10414 GDT. This is more robust, as %ds can change.
10415 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10416 calling real_to_prot().
10417 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10419 2008-03-28 Pavel Roskin <proski@gnu.org>
10421 * kern/i386/pc/startup.S: Assert that uncompressed functions
10422 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10423 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10424 code, as they push parts of the code (error handlers) beyond
10425 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10426 code as correctness and size.
10428 2008-03-28 Pavel Roskin <proski@gnu.org>
10430 * kern/i386/pc/startup.S
10431 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10432 data block address to the real mode, keep offset minimal. This
10433 works around a bug in AWARD BIOS on old Athlon systems, which
10434 makes CD detection hang.
10436 2008-03-26 Pavel Roskin <proski@gnu.org>
10438 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10440 * include/grub/normal.h: Add grub_parse_color_name_pair()
10443 2008-03-24 Bean <bean123ch@gmail.com>
10445 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10446 (cd_count): Removed.
10447 (cd_drive): New variable.
10448 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10449 (grub_biosdisk_call_hook): Likewise.
10450 (grub_biosdisk_iterate): Change cdrom detection method.
10451 (grub_biosdisk_open): Replace cd_start with cd_drive.
10452 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10453 detect cdrom device.
10455 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10457 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10458 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10459 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10460 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10461 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10462 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10463 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10464 (grub_biosdisk_cdrp): New structure.
10465 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10467 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10469 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10472 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10475 2008-03-20 Robert Millan <rmh@aybabtu.com>
10477 Remove 2 TiB limit in ata.mod.
10478 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10479 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10480 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10481 grub_uint64_t instead of grub_uint32_t.
10483 2008-03-05 Bean <bean123ch@gmail.com>
10485 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10486 (grub_multiboot): Set boot device.
10488 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10490 2008-03-02 Bean <bean123ch@gmail.com>
10492 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10495 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10497 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10500 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10503 * docs/fdl.texi: New file.
10505 * docs/mdate-sh: New file. Copied from gnulib.
10506 * docs/texinfo.tex: Likewise.
10508 * config.guess: Updated from gnulib.
10509 * install-sh: Likewise.
10511 2008-02-28 Robert Millan <rmh@aybabtu.com>
10513 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10514 (aout_mod_SOURCES): New variable.
10515 (aout_mod_CFLAGS): Likewise.
10516 (aout_mod_LDFLAGS): Likewise.
10518 * conf/i386-ieee1275.rmk: Likewise.
10520 2008-02-28 Robert Millan <rmh@aybabtu.com>
10522 * util/update-grub.in: Reorganise terminal validity check. Accept
10523 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10524 Based on suggestion by Franklin PIAT.
10526 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10528 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10530 * util/getroot.c (grub_util_check_block_device): New function that
10531 returns the given argument if it is a block device and returns NULL else.
10532 * util/grub-probe.c (argument_is_device): New variable.
10533 (probe): Promote device_name from a variable to an argument. Receive
10534 device_name from grub_util_check_block_device() if path is NULL and from
10535 grub_guess_root_device() else. Do not free() device_name anymore.
10536 (options): Introduce new parameter '-d, --device'.
10537 (main): Add description of the new parameter to the help screen.
10538 Rename path variable to argument. Set argument_is_device if the '-d'
10539 option is given. Pass argument to probe() depending on
10540 argument_is_device.
10542 2008-02-24 Bean <bean123ch@gmail.com>
10544 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10545 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10546 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10547 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10548 (GRUB_ISO9660_VOLDESC_END): Likewise.
10549 (grub_iso9660_primary_voldesc): New member escape.
10550 (grub_iso9660_data): New member joliet.
10551 (grub_iso9660_convert_string): New function.
10552 (grub_iso9660_mount): Detect joliet extension.
10553 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10554 (grub_iso9660_iso9660_label): Likewise.
10556 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10557 (grub_setup_SOURCES): Add fs/udf.c.
10558 (grub_fstest_SOURCES): Likewise.
10559 (udf_mod_SOURCES): New variable.
10560 (udf_mod_CFLAGS): Likewise.
10561 (udf_mod_LDFLAGS): Likewise.
10563 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10564 (grub_emu_SOURCES): Likewise.
10566 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10568 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10570 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10574 * fs/udf.c: New file.
10576 2008-02-24 Robert Millan <rmh@aybabtu.com>
10578 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10579 (normal/lexer.c_DEPENDENCIES): New variables.
10580 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10581 (normal/lexer.c_DEPENDENCIES): Likewise.
10582 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10583 (normal/lexer.c_DEPENDENCIES): Likewise.
10584 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10585 (normal/lexer.c_DEPENDENCIES): Likewise.
10586 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10587 (normal/lexer.c_DEPENDENCIES): Likewise.
10588 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10589 (normal/lexer.c_DEPENDENCIES): Likewise.
10591 2008-02-23 Robert Millan <rmh@aybabtu.com>
10593 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10594 since they were intended to be in hex. This didn't break previously
10595 because of a bug in gpt_partition_map_iterate() (see below).
10597 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10598 when checking the validity of GPT header.
10599 Remove `partno', since it always provides the same information as `i'.
10601 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10603 * include/grub/efi/time.h: Fix a wrong comment.
10605 2008-02-19 Pavel Roskin <proski@gnu.org>
10607 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10610 2008-02-19 Bean <bean123ch@gmail.com>
10612 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10613 (aout_mod_SOURCES): New variable.
10614 (aout_mod_CFLAGS): Likewise.
10615 (aout_mod_LDFLAGS): Likewise.
10616 (_bsd_mod_SOURCES): New variable.
10617 (_bsd_mod_CFLAGS): Likewise.
10618 (_bsd_mod_LDFLAGS): Likewise.
10619 (bsd_mod_SOURCES): New variable.
10620 (bsd_mod_CFLAGS): Likewise.
10621 (bsd_mod_LDFLAGS): Likewise.
10623 * include/grub/aout.h: New file.
10625 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10627 * include/grub/i386/bsd.h: New file.
10629 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10632 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10633 function is called, so that it's possible to change it inside the hook.
10634 (grub_elf64_load): Likewise.
10635 (grub_elf_file): Don't close the file if elf header is not found.
10636 (grub_elf_close): Close the file if grub_elf_file fails (The new
10637 grub_elf_file won't close it).
10638 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10639 (grub_elf64_size): Likewise.
10641 * kern/i386/loader.S (grub_unix_real_boot): New function.
10643 * loader/aout.c: New file.
10645 * loader/i386/bsd.c: New file.
10647 * loader/i386/bsd_normal.c: New file.
10649 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10651 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10652 can test other formats.
10654 2008-02-19 Robert Millan <rmh@aybabtu.com>
10656 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10657 (grub_gpt_partition_type_empty): Redefine with macro from
10658 `<grub/gpt_partition.h>'.
10659 (gpt_partition_map_iterate): Adjust partition type comparison.
10661 Export `entry' as partmap-specific `part.data' struct.
10662 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10664 * include/grub/gpt_partition.h (grub_gpt_header)
10665 (grub_gpt_partentry): ... to here (new file).
10667 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10669 (grub_gpt_partition_type_bios_boot): New const variable, defined
10670 with macro from `<grub/gpt_partition.h>'.
10672 (setup): Replace `first_start' with `embed_region', which keeps
10673 track of the embed region (and is partmap-agnostic).
10675 Replace find_first_partition_start() with find_usable_region(),
10676 which finds a usable region for embedding using partmap-specific
10677 knowledge (supports PC/MSDOS and GPT).
10679 Fix all assumptions that the embed region start at sector 1, using
10680 `embed_region.start' from now on. Similarly, use `embed_region.end'
10681 rather than `first_start' to calculate available size.
10683 In grub_util_info() message, replace "into after the MBR" with an
10684 indication of the specific sector our embed region starts at.
10686 2008-02-19 Robert Millan <rmh@aybabtu.com>
10688 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10689 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10690 `commands/reboot.c'.
10691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10692 (halt_mod_SOURCES): Likewise.
10693 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10694 (halt_mod_SOURCES): Likewise.
10696 2008-02-17 Christian Franke <franke@computer.org>
10698 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10700 2008-02-17 Robert Millan <rmh@aybabtu.com>
10702 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10703 set `first_start' to 0 for non-PC/MSDOS partition maps.
10705 2008-02-16 Robert Millan <rmh@aybabtu.com>
10707 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10708 do not assume partition map is PC/MSDOS before performing checks that
10709 are specific to that layout.
10711 2008-02-13 Robert Millan <rmh@aybabtu.com>
10713 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10714 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10715 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10717 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10719 * configure.ac: Only a cosmetic change on the handling of
10720 -fno-stack-protector.
10722 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10724 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10725 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10727 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10728 (halt_mod_SOURCES): New variable.
10729 (halt_mod_CFLAGS): Likewise.
10730 (halt_mod_LDFLAGS): Likewise.
10731 (reboot_mod_SOURCES): Likewise.
10732 (reboot_mod_CFLAGS): Likewise.
10733 (reboot_mod_LDFLAGS): Likewise.
10735 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10736 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10738 (halt_mod_SOURCES): Likewise.
10739 (reboot_mod_SOURCES): Likewise.
10741 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10742 commands/i386/pc/reboot.c by commands/reboot.c.
10743 (reboot_mod_SOURCES): Likewise.
10745 * commands/i386/pc/reboot.c: merge this file ...
10747 * commands/ieee1275/reboot.c: ... and this file ...
10749 * commands/reboot.c: ... to this file.
10750 Add some precompiler directive to include the correct header for
10753 * commands/ieee1275/halt.c: move this file ...
10755 * commands/halt.c: ... to here.
10756 Add some precompiler directive to include the correct header for
10759 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10760 (grub_halt): Likewise.
10762 * kern/efi/efi.c (grub_reboot): New function.
10763 (grub_halt): Likewise.
10765 2008-02-12 Robert Millan <rmh@aybabtu.com>
10767 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10768 /dev (like it is done for /dev/mapper). This doesn't provide support
10769 for EVMS, but at least it is now easy to identify the problem when it
10772 2008-02-11 Robert Millan <rmh@aybabtu.com>
10774 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10775 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10776 comparing it with -1, not 0.
10778 2008-02-10 Robert Millan <rmh@aybabtu.com>
10780 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10782 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10783 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10785 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10786 `disk/lvm.c' to the end of the list.
10787 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10788 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10790 2008-02-10 Robert Millan <rmh@aybabtu.com>
10792 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10793 grub_print_error() instead. This will let user know why we're entering
10795 Based on suggestions from Sam Morris.
10797 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10799 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10800 on remaining N args, instead of "--" arg N times.
10802 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10804 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10805 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10806 pattern for unknown glyphs.
10808 2008-02-09 Robert Millan <rmh@aybabtu.com>
10810 * configure.ac: Probe for `help2man'.
10811 * Makefile.in (builddir): New variable.
10812 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10813 or otherwise add a few flags/options to it.
10814 (install-local): For every executable utility or script that is
10815 installed, invoke $(HELP2MAN) to install a manpage based on --help
10818 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10819 that it doesn't prevent --help from working in build tree.
10821 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10822 with `bug-grub@gnu.org'.
10823 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10824 * util/update-grub.in (usage): New function.
10825 Implement proper argument check, with support for --help and --version
10826 (as well as existing -y).
10828 2008-02-09 Christian Franke <franke@computer.org>
10830 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10831 avoid overwriting previous output.
10832 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10834 2008-02-09 Robert Millan <rmh@aybabtu.com>
10836 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10839 2008-02-09 Robert Millan <rmh@aybabtu.com>
10841 * commands/sleep.c: New file.
10842 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10843 (sleep_mod_SOURCES): New variable.
10844 (sleep_mod_CFLAGS): Likewise.
10845 (sleep_mod_LDFLAGS): Likewise.
10847 2008-02-09 Robert Millan <rmh@aybabtu.com>
10849 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10850 situations in which we can deduce the RAID size and the superblock
10853 2008-02-09 Robert Millan <rmh@aybabtu.com>
10855 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10856 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10857 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10859 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10860 and return a grub_diskmemberlist_t composed of physical array members.
10861 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10863 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10865 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10866 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10867 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10869 * util/grub-probe.c (probe): Move partmap probing code from here ...
10870 (probe_partmap): ... to here.
10871 (probe): Use probe_partmap() once for the disk we're probing, and
10872 additionally, when such disk contains a memberlist() struct member,
10873 once for each disk that is contained in the structure returned by
10876 2008-02-09 Robert Millan <rmh@aybabtu.com>
10878 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10879 environment variable to 'all' in order to obtain debug output from
10881 * util/i386/pc/grub-setup.c (main): Likewise.
10883 2008-02-08 Robert Millan <rmh@aybabtu.com>
10885 * disk/raid.c (grub_raid_scan_device): Check for
10886 `array->device[sb.this_disk.number]' rather than for
10887 `array->device[sb.this_disk.number]->name', since the latter is not
10888 guaranteed to be accessible.
10890 2008-02-08 Robert Millan <rmh@aybabtu.com>
10892 * disk/raid.c: Update copyright.
10893 * fs/cpio.c: Likewise.
10894 * include/grub/raid.h: Likewise.
10895 * loader/i386/pc/multiboot.c: Likewise.
10896 * util/hostfs.c: Likewise.
10898 2008-02-08 Robert Millan <rmh@aybabtu.com>
10900 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10901 to a grub_disk_t array.
10902 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10904 (grub_raid_scan_device): Replace `device[x].name' accesses with
10905 `device[x]->name'. Simplify initialization of `array->device[x]'.
10907 2008-02-08 Robert Millan <rmh@aybabtu.com>
10909 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10910 grub_dprintf() calls.
10911 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10914 2008-02-07 Christian Franke <franke@computer.org>
10916 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10917 instead of fseek and ftell to support large files.
10918 (grub_hostfs_read): Likewise.
10920 2008-02-07 Robert Millan <rmh@aybabtu.com>
10922 Patch from Jeroen Dekkers.
10923 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10924 failure, since successfully reading all array members might not be
10927 2008-02-06 Robert Millan <rmh@aybabtu.com>
10929 * util/grub-probe.c (probe): Simplify partmap probing (with the
10930 assumption that the first word up to the underscore equals to
10933 2008-02-06 Christian Franke <franke@computer.org>
10935 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10936 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10937 last block of a cpio or tar stream.
10938 Check for "TRAILER!!!" instead of any empty data
10939 block to detect last block of a cpio stream.
10940 (grub_cpio_dir): Fix constness of variable np.
10941 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10942 cpio or tar trailer is detected. This fixes a crash
10943 on open of a non existing file.
10945 2008-02-05 Bean <bean123ch@gmail.com>
10947 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10949 (grub_multiboot_load_elf64): Likewise.
10950 (grub_multiboot): Initialize mbi structure.
10952 * util/grub-fstest.c: Don't include unused header file script.h.
10954 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10956 (grub_fstest_SOURCES): Likewise.
10958 2008-02-05 Robert Millan <rmh@aybabtu.com>
10960 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10961 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10962 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10963 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10965 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10966 (translation_table): Replace hardcoded values with macros
10967 provided by `<grub/term.h>'.
10969 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10970 (keyboard_map): Correct/add a few values, with macros provided
10971 by `<grub/term.h>'.
10972 (keyboard_map_shift): Zero values that don't differ from their
10973 `keyboard_map' equivalents.
10974 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10975 Discard the second scan code that is always sent by Caps lock.
10976 Only use `keyboard_map_shift' when it provides a non-zero value,
10977 otherwise fallback to `keyboard_map'.
10979 2008-02-04 Bean <bean123ch@gmail.com>
10981 * Makefile.in (enable_grub_fstest): New variable.
10983 * conf/common.rmk (grub_fstest_init.lst): New rule.
10984 (grub_fstest_init.h): Likewise.
10985 (grub_fstest_init.c): Likewise.
10986 (util/grub-fstest.c_DEPENDENCIES): New variable.
10987 (grub_fstest_SOURCES): Likewise.
10989 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10991 * util/grub-fstest.c: New file.
10993 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10995 Make grub-setup handle a separate root device.
10997 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10998 so that the root device can be compared with the destination
11000 When embedding the core image, if the root and destination devices
11001 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
11003 When not embedding, set ROOT_DRIVE to 0xFF.
11005 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11007 Add support for having a grub directory in a different drive. This
11008 is still only the data handling part.
11010 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
11011 (codestart): Save %dh in GRUB_ROOT_DRIVE.
11012 (grub_root_drive): New variable.
11014 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
11015 instead of GRUB_BOOT_DRIVE to construct a device name. Set
11016 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
11019 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
11021 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
11023 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
11025 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
11026 is bogus, because PXE booting does not specify any drive
11029 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
11030 am not sure if this is really correct.
11032 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
11033 is always identical to the boot drive when booting from a CD.
11035 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
11037 (root_drive): New variable.
11038 (real_start): Unconditionally set %dh to ROOT_DRIVE.
11039 (setup_sectors): Push %dx right after popping it, because %dh will
11041 (copy_buffer): Restore %dx.
11043 2008-02-03 Robert Millan <rmh@aybabtu.com>
11045 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
11046 use `cdboot.img' for cdrom images.
11048 2008-02-03 Robert Millan <rmh@aybabtu.com>
11050 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11051 only setup gfxterm when `font' command has succeeded.
11053 2008-02-03 Robert Millan <rmh@aybabtu.com>
11055 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11056 (grub_rescue_cmd_multiboot_loader)
11057 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11059 2008-02-03 Pavel Roskin <proski@gnu.org>
11061 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11062 %edx and %esi from stack only after grub_gate_a20() is called.
11063 grub_gate_a20() clobbers %edx.
11065 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11067 * configure.ac (AC_INIT): Bumped to 1.96.
11069 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11070 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11071 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11072 video/readers/png.c.
11074 2008-02-03 Bean <bean123ch@gmail.com>
11076 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11077 (cdboot_img_SOURCES): New variable.
11078 (cdboot_img_ASFLAGS): New variable.
11079 (cdboot_img_LDFLAGS): New variable.
11081 * boot/i386/pc/cdboot.S: New file.
11083 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11084 (cd_count): Likewise.
11085 (grub_biosdisk_get_drive): Add support for cd device.
11086 (grub_biosdisk_call_hook): Likewise.
11087 (grub_biosdisk_iterate): Likewise.
11088 (grub_biosdisk_open): Likewise.
11089 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11090 (grub_biosdisk_rw): Support reading from cd device.
11091 (GRUB_MOD_INIT): Iterate cd devices.
11093 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11094 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11095 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11097 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11099 2008-02-02 Robert Millan <rmh@aybabtu.com>
11101 * commands/read.c: New file.
11102 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11103 (read_mod_SOURCES): New variable.
11104 (read_mod_CFLAGS): Likewise.
11105 (read_mod_LDFLAGS): Likewise.
11107 2008-02-02 Robert Millan <rmh@aybabtu.com>
11109 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11110 determining whether menu has to be displayed.
11112 2008-02-02 Marco Gerards <marco@gnu.org>
11114 * bus/pci.c: New file.
11116 * include/grub/pci.h: Likewise.
11118 * include/grub/i386/pc/pci.h: Likewise.
11120 * commands/lspci.c: Likewise.
11122 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11124 (pci_mod_SOURCES): New variable.
11125 (pci_mod_CFLAGS): Likewise.
11126 (pci_mod_LDFLAGS): Likewise.
11127 (lspci_mod_SOURCES): Likewise.
11128 (lspci_mod_CFLAGS): Likewise.
11129 (lspci_mod_LDFLAGS): Likewise.
11131 2008-02-02 Bean <bean123ch@gmail.com>
11133 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11134 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11136 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11137 (grub_xfs_btree_node): New structure.
11138 (grub_xfs_btree_root): New structure.
11139 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11140 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11141 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11142 (GRUB_XFS_EXTENT_SIZE): Likewise.
11143 (grub_xfs_read_block): Support btree format type.
11144 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11145 Use directory block as basic unit.
11147 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11149 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11150 __attribute__ ((__regparm__ (1))).
11152 2008-02-01 Robert Millan <rmh@aybabtu.com>
11154 Correct a mistake in previous commit.
11156 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11158 (normal/command.c_DEPENDENCIES): New variable.
11160 2008-02-01 Robert Millan <rmh@aybabtu.com>
11162 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11164 (normal/command.c_DEPENDENCIES): New variable.
11165 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11166 * conf/i386-ieee1275.rmk: Likewise.
11167 * conf/i386-linuxbios.rmk: Likewise.
11168 * conf/i386-pc.rmk: Likewise.
11169 * conf/sparc64-ieee1275.rmk: Likewise.
11170 * conf/powerpc-ieee1275.rmk: Likewise.
11171 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11173 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11175 2008-02-01 Robert Millan <rmh@aybabtu.com>
11177 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11178 call at beginning of function.
11180 2008-01-31 Pavel Roskin <proski@gnu.org>
11182 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11183 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11184 (grub_mkrescue_SOURCES): Likewise.
11185 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11187 2008-01-30 Robert Millan <rmh@aybabtu.com>
11189 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11190 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11191 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11192 (grub_probe_SOURCES): ... to here.
11194 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11195 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11196 * conf/i386-ieee1275.rmk: Likewise.
11197 * conf/i386-linuxbios.rmk: Likewise.
11198 * conf/powerpc-ieee1275.rmk: Likewise.
11200 2008-01-30 Tristan Gingold <gingold@free.fr>
11202 * kern/rescue.c: Silently accept empty lines.
11204 2008-01-29 Bean <bean123ch@gmail.com>
11206 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11207 (real_code_2): Code cleanup and change comment style.
11208 (move_memory): Avoid using 32-bit address mode.
11210 2008-01-29 Bean <bean123ch@gmail.com>
11212 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11213 (png_mod_SOURCES): New variable.
11214 (png_mod_CFLAGS): Likewise.
11215 (png_mod_LDFLAGS): Likewise.
11217 * video/readers/png.c: New file.
11219 2008-01-28 Robert Millan <rmh@aybabtu.com>
11221 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11222 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11223 `ifndef GRUB_MOD_GAP' hack.
11224 * util/elf/grub-mkimage.c (add_segments): Likewise.
11226 2008-01-27 Robert Millan <rmh@aybabtu.com>
11228 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11229 `GRUB_MOD_GAP' for platforms in which it's not defined.
11230 * util/elf/grub-mkimage.c (add_segments): Likewise.
11232 2008-01-27 Robert Millan <rmh@aybabtu.com>
11234 Get grub-emu to build again (including parallel builds).
11236 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11238 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11239 (normal/execute.c_DEPENDENCIES): ... this, ...
11240 (grub-emu_DEPENDENCIES): ... and this.
11242 * conf/i386-efi.rmk: Likewise.
11243 * conf/i386-linuxbios.rmk: Likewise.
11244 * conf/i386-ieee1275.rmk: Likewise.
11245 * conf/powerpc-ieee1275.rmk: Likewise.
11246 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11248 2008-01-27 Robert Millan <rmh@aybabtu.com>
11250 * NEWS: Add a few items.
11252 2008-01-27 Robert Millan <rmh@aybabtu.com>
11254 Fix parallel builds with grub-emu. Based on earlier commit for
11255 grub-probe and grub-setup.
11257 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11258 (util/grub-emu.c_DEPENDENCIES): ... this.
11259 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11260 (util/grub-emu.c_DEPENDENCIES): ... this.
11261 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11262 (util/grub-emu.c_DEPENDENCIES): ... this.
11263 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11264 (util/grub-emu.c_DEPENDENCIES): ... this.
11265 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11266 (util/grub-emu.c_DEPENDENCIES): ... this.
11268 2008-01-27 Pavel Roskin <proski@gnu.org>
11270 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11271 to create a gap between _end and the modules added to the image
11272 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11273 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11274 * util/elf/grub-mkimage.c (add_segments): Likewise.
11276 2008-01-26 Pavel Roskin <proski@gnu.org>
11278 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11279 just return an error.
11281 2008-01-26 Bean <bean123ch@gmail.com>
11283 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11284 (grub_reiserfs_get_item): Save offset of the next item.
11285 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11287 2008-01-25 Robert Millan <rmh@aybabtu.com>
11289 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11290 make all filesystem sources appear together (possibly fixing omissions
11292 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11293 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11294 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11295 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11297 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11299 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11300 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11301 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11302 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11304 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11305 (probe): Add a sanity check to make sure of our ability to read
11306 requested files when probing for filesystem type.
11308 * genmk.rb: Update copyright year (2007).
11310 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11311 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11312 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11313 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11314 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11315 : Remove function prototypes.
11317 2008-01-25 Robert Millan <rmh@aybabtu.com>
11319 Revert my previous commits (based on wrong assumption of how grub_errno
11322 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11323 * kern/file.c (grub_file_open): Likewise.
11325 2008-01-24 Pavel Roskin <proski@gnu.org>
11327 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11328 that hang if GRUB tries to setup colors.
11329 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11330 colors for firmwares that don't support it.
11331 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11332 Recognize Open Hack'Ware, set flags to work around its
11335 2008-01-24 Robert Millan <rmh@aybabtu.com>
11337 * kern/file.c (grub_file_open): Do not account previous failures of
11338 unrelated functions when grub_errno is checked for.
11339 Reported by Oleg Strikov.
11341 2008-01-24 Bean <bean123ch@gmail.com>
11343 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11344 (grub_ufs_sblock): New member volume name.
11345 (grub_ufs_find_file): Fix string copy bug.
11346 (grub_ufs_label): Implement this function properly.
11348 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11349 (grub_hfs_iterate_records): Use the correct file number for extents
11350 and catalog file. Fix problem in next index calculation.
11351 (grub_hfs_find_node): Replace recursive function call with loop.
11352 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11354 2008-01-23 Robert Millan <rmh@aybabtu.com>
11356 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11357 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11358 (grub_multiboot2_real_boot): New function prototype.
11360 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11361 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11363 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11364 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11366 2008-01-23 Robert Millan <rmh@aybabtu.com>
11368 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11369 #ifdef'ed out grub_printf().
11371 2008-01-23 Robert Millan <rmh@aybabtu.com>
11373 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11374 grub_dprintf calls, since they make "debug=all" mode unusable.
11375 (grub_console_checkkey): Likewise.
11377 2008-01-23 Robert Millan <rmh@aybabtu.com>
11379 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11380 `term/i386/pc/at_keyboard.c'.
11381 (pkglib_MODULES): Add `serial.mod'.
11382 (serial_mod_SOURCES): New variable.
11383 (serial_mod_CFLAGS): Likewise.
11384 (serial_mod_LDFLAGS): Likewise.
11386 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11387 `<grub/powerpc/ieee1275/console.h>'.
11388 (grub_keyboard_controller_init): New function prototype.
11389 (grub_console_checkkey): Likewise.
11390 (grub_console_getkey): Likewise.
11392 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11395 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11396 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11398 2008-01-23 Robert Millan <rmh@aybabtu.com>
11400 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11401 present, "(memdisk)/boot/grub" becomes the default prefix.
11403 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11404 a memdisk tarball with all the modules. Add --overlay=DIR option that
11405 allows users to overlay additional files into the image.
11407 2008-01-23 Robert Millan <rmh@aybabtu.com>
11409 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11410 and `machine/memory.h'.
11411 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11412 (_multiboot_mod_SOURCES): New variable.
11413 (_multiboot_mod_CFLAGS): Likewise.
11414 (_multiboot_mod_LDFLAGS): Likewise.
11415 (multiboot_mod_SOURCES): Likewise.
11416 (multiboot_mod_CFLAGS): Likewise.
11417 (multiboot_mod_LDFLAGS): Likewise.
11419 * include/grub/i386/ieee1275/loader.h: New file.
11421 * include/grub/i386/ieee1275/machine.h: Likewise.
11423 * include/grub/i386/ieee1275/memory.h: Likewise.
11425 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11426 variable declaration.
11427 (grub_os_area_size): Likewise.
11429 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11430 (grub_lower_mem, grub_upper_mem): New variables.
11431 (grub_stop_floppy): New function (just to make
11432 grub_multiboot2_real_boot() happy).
11434 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11435 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11436 (grub_stop): New function.
11437 Include `"../realmode.S"' and `"../loader.S"'.
11439 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11440 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11442 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11443 rely on grub_multiboot2_real_boot() for final boot.
11445 2008-01-22 Robert Millan <rmh@aybabtu.com>
11447 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11448 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11449 device that doesn't look like an SD card.
11450 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11451 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11452 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11453 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11456 2008-01-22 Robert Millan <rmh@aybabtu.com>
11458 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11459 avoid claiming over our own code.
11461 2008-01-22 Bean <bean123ch@gmail.com>
11463 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11464 (jpeg_mod_SOURCES): New variable.
11465 (jpeg_mod_CFLAGS): Likewise.
11466 (jpeg_mod_LDFLAGS): Likewise.
11468 * video/readers/jpeg.c : New file.
11470 2008-01-22 Bean <bean123ch@gmail.com>
11472 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11473 there are no more items.
11475 2008-01-21 Robert Millan <rmh@aybabtu.com>
11477 * kern/mm.c (grub_mm_init_region): Improve debug message.
11479 2008-01-21 Robert Millan <rmh@aybabtu.com>
11481 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11482 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11484 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11486 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11487 Indicates start of upper memory.
11488 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11489 (generate_image): Abort when image size is big enough to corrupt
11492 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11493 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11494 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11495 instead of hardcoding 0xA0000.
11496 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11497 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11498 instead of hardcoding 0xA0000.
11500 2008-01-21 Robert Millan <rmh@aybabtu.com>
11502 * disk/memdisk.c (memdisk_size): New variable.
11503 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11505 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11506 image to dynamic memory.
11507 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11508 `memdisk_size'. Free memdisk block.
11510 2008-01-21 Robert Millan <rmh@aybabtu.com>
11512 Fix detection of very small filesystems (like tar).
11514 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11515 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11516 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11517 a problem with this disk).
11519 2008-01-21 Robert Millan <rmh@aybabtu.com>
11521 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11522 on grub_biosdisk_rw_standard() error.
11524 2008-01-21 Robert Millan <rmh@aybabtu.com>
11526 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11528 * kern/elf.c: Likewise.
11529 * kern/ieee1275/ieee1275.c: Likewise.
11530 * kern/powerpc/ieee1275/openfw.c: Likewise.
11531 * term/ieee1275/ofconsole.c: Likewise.
11533 2008-01-21 Robert Millan <rmh@aybabtu.com>
11535 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11537 * include/grub/kernel.h (grub_arch_memdisk_addr)
11538 (grub_arch_memdisk_size): Moved from here ...
11540 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11541 (grub_arch_memdisk_size): ... to here.
11543 2008-01-21 Robert Millan <rmh@aybabtu.com>
11545 Mostly based on bugfix from Bean.
11547 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11548 attribute with hook() parameter.
11549 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11551 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11552 attribute with hook() parameter.
11553 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11556 2008-01-21 Robert Millan <rmh@aybabtu.com>
11558 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11559 (pkglib_MODULES): Add `memdisk.mod'.
11560 (memdisk_mod_SOURCES): New variable.
11561 (memdisk_mod_CFLAGS): Likewise.
11562 (memdisk_mod_LDFLAGS): Likewise.
11564 * disk/memdisk.c: New file.
11566 * include/grub/disk.h (grub_disk_dev_id): Add
11567 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11569 * include/grub/i386/pc/kernel.h
11570 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11571 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11572 (grub_kernel_image_size): New variable declaration.
11573 (grub_total_module_size): Likewise.
11574 (grub_memdisk_image_size): Likewise.
11576 * include/grub/i386/pc/memory.h
11577 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11579 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11580 (grub_arch_memdisk_addr): New variable declaration.
11581 (grub_arch_memdisk_size): Likewise.
11583 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11584 (grub_arch_memdisk_size): Likewise.
11586 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11587 (codestart): Replace hardcoded `0x100000' with
11588 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11590 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11591 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11592 not NULL, append the contents of the file it refers to, at the end of
11593 the compressed kernel image. Initialize `grub_memdisk_image_size'
11594 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11595 (options): Add "memdisk"|'m' option.
11596 (main): Parse --memdisk|-m option, and pass user-provided path as
11597 parameter to generate_image().
11599 2008-01-20 Robert Millan <rmh@aybabtu.com>
11601 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11602 grub_dprintf() calls from here ...
11603 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11605 2008-01-20 Robert Millan <rmh@aybabtu.com>
11607 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11609 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11611 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11612 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11613 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11614 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11616 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11617 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11619 2008-01-19 Robert Millan <rmh@aybabtu.com>
11621 Get rid of confusing function (superseded by
11622 `grub_ieee1275_get_integer_property')
11623 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11625 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11627 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11628 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11629 in native endianness from grub_ieee1275_get_integer_property().
11631 2008-01-19 Robert Millan <rmh@aybabtu.com>
11633 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11634 command after "shut-down", since implementations differ on which
11635 the command for halt is.
11637 2008-01-19 Robert Millan <rmh@aybabtu.com>
11639 * include/grub/i386/linuxbios/console.h: Add header protection.
11640 (grub_keyboard_controller_init): New function prototype.
11641 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11642 (KEYBOARD_COMMAND_READ): Likewise.
11643 (KEYBOARD_COMMAND_WRITE): Likewise.
11644 (KEYBOARD_SCANCODE_SET1): Likewise.
11645 (grub_keyboard_controller_write): New function.
11646 (grub_keyboard_controller_read): Likewise.
11647 (grub_keyboard_controller_init): Likewise.
11649 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11650 (grub_console_init): On coreboot/LinuxBIOS, call
11651 grub_keyboard_controller_init().
11653 2008-01-19 Robert Millan <rmh@aybabtu.com>
11655 PowerPC changes provided by Pavel Roskin.
11657 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11658 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11659 don't rely on cmain() doing it.
11660 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11661 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11663 2008-01-16 Robert Millan <rmh@aybabtu.com>
11665 * include/grub/i386/linuxbios/memory.h
11666 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11667 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11668 receive `table_header' as argument. Instead, probe for it in the
11669 known memory ranges where it can be present.
11670 (grub_available_iterate): Do not pass a fixed `table_header' address
11671 to grub_linuxbios_table_iterate().
11673 2008-01-15 Robert Millan <rmh@aybabtu.com>
11675 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11676 * conf/i386-ieee1275.rmk: New file.
11677 * include/grub/i386/ieee1275/console.h: Likewise.
11678 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11679 * include/grub/i386/ieee1275/kernel.h: Likewise.
11680 * include/grub/i386/ieee1275/time.h: Likewise.
11681 * kern/i386/ieee1275/init.c: Likewise.
11682 * kern/i386/ieee1275/startup.S: Likewise.
11684 2008-01-15 Robert Millan <rmh@aybabtu.com>
11686 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11687 when pointers are 32-bit (but still do set it to one when they are
11690 2008-01-15 Robert Millan <rmh@aybabtu.com>
11692 * include/grub/ieee1275/ieee1275.h
11693 (grub_ieee1275_get_integer_property): New function prototype.
11695 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11696 (grub_ieee1275_get_integer_property): New function. Wraps around
11697 grub_ieee1275_get_property() to handle endianness.
11699 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11700 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11702 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11703 (grub_map): Likewise.
11704 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11706 2008-01-15 Bean <bean123ch@gmail.com>
11708 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11709 (grub_script_execute_cmdline): Reset grub_errno.
11711 * normal/main.c (read_config_file): Reset grub_errno.
11713 * normal/parse.y (script_init): New.
11714 (script): Move function and menuentry here.
11716 (command): Add delimiter at the end of command.
11717 (commands): Adjust to match the new command.
11718 (commandblock): Remove grub_script_lexer_record_start.
11719 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11720 (if): Use the new commands.
11722 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11724 2008-01-15 Robert Millan <rmh@aybabtu.com>
11726 * normal/menu.c (run_menu): Move timeout message from here ...
11727 (print_timeout): ... to here.
11728 (run_menu): Use print_timeout() once during initial draw to print
11729 the whole message, and again in every clock tick to update only
11730 the number of seconds.
11732 2008-01-15 Robert Millan <rmh@aybabtu.com>
11734 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11735 actual size of `available' from grub_ieee1275_get_property(), and
11736 restrict parsing to that bound.
11738 2008-01-15 Christian Franke <franke@computer.org>
11740 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11741 (argp_program_version): Remove variable.
11742 (argp_program_bug_address): Likewise.
11743 (options): Convert from struct argp_option to struct option.
11744 (struct arguments): Remove.
11745 (parse_opt): Remove.
11746 (usage): New function.
11747 (main): Replace struct args members by simple variables.
11748 Replace argp_parse() by getopt_long().
11749 Add switch to evaluate options.
11750 Add missing "(...)" around root_dev in prefix string.
11752 2008-01-14 Robert Millan <rmh@aybabtu.com>
11754 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11755 for grub_ieee1275_exit(), in order to improve portability.
11757 2008-01-14 Robert Millan <rmh@aybabtu.com>
11759 * util/grub.d/10_linux.in (prefix): Define.
11760 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11762 2008-01-13 Pavel Roskin <proski@gnu.org>
11764 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11765 grub_errno if no errors have been detected.
11767 2008-01-12 Robert Millan <rmh@aybabtu.com>
11769 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11770 (grub_util_get_dev_abstraction): New function prototype.
11772 * util/getroot.c: Include `<grub/util/getroot.h>'
11773 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11774 (grub_util_get_dev_abstraction): ... here (new function).
11776 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11777 `PRINT_ABSTRACTION'.
11778 (probe): Probe for abstraction type when requested.
11779 (main): Understand `--target=abstraction'.
11781 * util/i386/efi/grub-install.in: Add abstraction module to core
11782 image when it is found to be necessary.
11783 * util/i386/pc/grub-install.in: Likewise.
11784 * util/powerpc/ieee1275/grub-install.in: Likewise.
11786 * util/update-grub_lib.in (font_path): Return system path without
11787 converting to GRUB path.
11788 * util/update-grub.in: Convert system path returned by font_path()
11789 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11790 abstraction module is needed for loading fonts (if any). Export
11791 that as `GRUB_PRELOAD_MODULES'.
11792 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11795 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11797 Remove some unused code from reiserfs.
11799 * fs/reiserfs.c (struct grub_reiserfs_key)
11800 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11801 (struct grub_reiserfs_node_body): Removed.
11802 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11804 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11806 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11808 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11810 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11812 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11814 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11815 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11816 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11818 2008-01-10 Robert Millan <rmh@aybabtu.com>
11820 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11821 Determines if a file is garbage left by packaging systems, etc.
11822 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11823 for processing /etc/grub.d scripts.
11824 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11825 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11826 as a condition for processing Linux images.
11828 2008-01-10 Pavel Roskin <proski@gnu.org>
11830 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11831 to compile reiserfs.c on PowerPC.
11833 2008-01-10 Robert Millan <rmh@aybabtu.com>
11835 * kern/device.c (grub_device_iterate): Do not abort device iteration
11836 when one of the devices cannot be opened.
11837 * kern/disk.c (grub_disk_open): Do not account previous failures of
11838 unrelated functions when grub_errno is checked for.
11840 2008-01-08 Robert Millan <rmh@aybabtu.com>
11842 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11843 `! grub_linux_is_bzimage', change order of address comparison to make
11844 it more intuitive, and improve "too big zImage" error message.
11846 2008-01-08 Robert Millan <rmh@aybabtu.com>
11848 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11849 `$(update-grub_DATA)'.
11850 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11853 2008-01-07 Robert Millan <rmh@aybabtu.com>
11855 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11856 which instruction is modified by grub-setup during installation
11857 (since it wasn't obvious by only looking at this file).
11859 2008-01-07 Robert Millan <rmh@aybabtu.com>
11861 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11862 listing actual TODO items.
11864 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11866 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11868 (grub_reiserfs_get_key_offset): Likewise.
11869 (grub_reiserfs_set_key_offset): Likewise.
11870 (grub_reiserfs_set_key_type): Likewise.
11871 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11873 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11874 better to remove the bitfield version completely.
11876 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11878 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11879 allocated from the heap, due to the fshelp implementation.
11880 (grub_reiserfs_dir): Free NODE, due to the same reason.
11882 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11884 Mostly from Vincent Pelletier:
11886 * fs/reiserfs.c: New file.
11888 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11889 (reiserfs_mod_SOURCES): New variable.
11890 (reiserfs_mod_CFLAGS): Likewise.
11891 (reiserfs_mod_LDFLAGS): Likewise.
11893 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11894 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11895 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11898 2008-01-06 Robert Millan <rmh@aybabtu.com>
11900 * normal/color.c: Remove `<grub/env.h>'.
11902 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11904 * include/grub/normal.h: Include <grub/env.h>.
11906 2008-01-05 Robert Millan <rmh@aybabtu.com>
11908 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11909 usage example with `(hd0,1)'.
11910 Reported by Samuel Thibault.
11912 2008-01-05 Robert Millan <rmh@aybabtu.com>
11914 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11915 (grub_linux_boot_zimage): Rename to ...
11916 (grub_linux_boot): ... this.
11917 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11918 (grub_linux_boot_zimage): Conditionalize zImage copy.
11920 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11921 (grub_linux_boot_bzimage): Remove prototype.
11922 (grub_linux_boot_zimage): Rename to ...
11923 (grub_linux_boot): ... this.
11925 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11926 (grub_linux_boot): Remove function.
11928 2008-01-05 Robert Millan <rmh@aybabtu.com>
11930 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11931 (grub_env_write_color_highlight): Likewise.
11932 (grub_wait_after_message): Likewise.
11934 * normal/color.c: New file.
11936 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11937 (normal_mod_DEPENDENCIES): Likewise.
11939 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11940 (normal_mod_DEPENDENCIES): Likewise.
11942 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11943 (normal_mod_DEPENDENCIES): Likewise.
11945 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11946 (normal_mod_DEPENDENCIES): Likewise.
11948 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11949 for waiting after a message is printed.
11950 * normal/main.c (read_config_file): Likewise.
11951 (grub_normal_init): Register grub_env_write_color_normal() and
11952 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11953 `color_highlight' variables as global.
11955 * normal/menu.c (grub_wait_after_message): New function.
11956 (grub_color_menu_normal): New variable. Replaces ...
11957 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11958 (grub_color_menu_highlight): New variable. Replaces ...
11959 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11960 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11961 `GRUB_TERM_COLOR_STANDARD'.
11962 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11963 `normal_code' and `highlight_code' to `old_color_normal' and
11964 `old_color_highlight', respectively.
11965 (grub_menu_init_page): Update colors when drawing the menu, based on
11966 `menu_color_normal' and `menu_color_highlight' variables.
11967 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11968 a message is printed.
11970 2008-01-05 Robert Millan <rmh@aybabtu.com>
11972 * kern/env.c (grub_env_context_open): Propagate hooks for global
11973 variables to new context.
11975 * kern/main.c (grub_set_root_dev): Export `root' variable.
11977 2008-01-05 Robert Millan <rmh@aybabtu.com>
11979 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11980 discs unconditionally, since udev and others have options to provide
11983 2008-01-05 Robert Millan <rmh@aybabtu.com>
11985 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11987 2008-01-04 Christian Franke <franke@computer.org>
11989 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11992 2008-01-03 Pavel Roskin <proski@gnu.org>
11994 * kern/i386/linuxbios/init.c: Put "void" to all function
11995 declarations with no arguments.
11996 * kern/powerpc/ieee1275/init.c: Likewise.
11997 * term/i386/pc/at_keyboard.c: Likewise.
11998 * term/i386/pc/vga_text.c: Likewise.
11999 * util/grub-mkdevicemap.c: Likewise.
12001 2008-01-02 Robert Millan <rmh@aybabtu.com>
12003 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
12004 message when loaded image is out of bounds.
12005 (grub_multiboot_load_elf64): Likewise.
12007 2008-01-02 Pavel Roskin <proski@gnu.org>
12009 * util/grub.d/10_linux.in: Try version without ".old" when
12010 looking for initrd. It's better to use initrd from the newer
12011 kernel of the same version than no initrd at all.
12013 2008-01-01 Robert Millan <rmh@aybabtu.com>
12015 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
12017 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
12019 * include/grub/video.h: Added grub_video_unmap_color and
12020 grub_video_get_active_render_target.
12021 (grub_video_adapter): Added unmap_color and get_active_render_target.
12023 * video/video.c: Added grub_video_unmap_color and
12024 grub_video_get_active_render_target.
12025 (grub_video_get_info): Changed method to accept NULL pointer as an
12026 argument to allow detection of active video adapter.
12028 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
12029 grub_video_vbe_unmap_color_int.
12030 Added grub_video_vbe_unmap_color and
12031 grub_video_vbe_get_active_render_target.
12032 (grub_video_vbe_adapter): Added unmap_color and
12033 get_active_render_target.
12035 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
12036 with grub_video_vbe_unmap_color_int.
12038 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
12039 (DEFAULT_NORMAL_COLOR): Likewise.
12040 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
12041 (DEFAULT_FG_COLOR): Removed.
12042 (DEFAULT_BG_COLOR): Likewise.
12043 (DEFAULT_CURSOR_COLOR): Changed value.
12044 (grub_virtual_screen): Added standard_color_setting,
12045 normal_color_setting, highlight_color_setting and term_color.
12046 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
12047 (bitmap_width): Added.
12048 (bitmap_height): Likewise.
12049 (bitmap): Likewise.
12050 (set_term_color): Likewise.
12051 (grub_virtual_screen_setup): Changed to use new terminal coloring
12053 (grub_gfxterm_init): Added init for bitmap.
12054 (grub_gfxterm_fini): Added destroy for bitmap.
12055 (redraw_screen_rect): Updated to use background bitmap and new
12057 (scroll_up): Added optimization for case when there is no bitmap.
12058 (grub_gfxterm_cls): Fixed to use correct background color.
12059 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12061 (grub_virtual_screen_setcolor): Likewise.
12062 (grub_virtual_screen_getcolor): Added.
12063 (grub_gfxterm_background_image_cmd): Likewise.
12064 (grub_video_term): Added setcolor and getcolor.
12065 (MOD_INIT): Added registration of background_image command.
12066 (MOD_TERM): Added unregistration for background_image command.
12068 2007-12-30 Pavel Roskin <proski@gnu.org>
12070 * loader/multiboot_loader.c: Fix multiboot command
12071 unregistration. Fix all typos in the word "multiboot".
12073 2007-12-29 Pavel Roskin <proski@gnu.org>
12075 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12076 support for initrd names used in Fedora.
12078 2007-12-26 Bean <bean123ch@gmail.com>
12080 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12081 (cpio_mod_SOURCES): New variable.
12082 (cpio_mod_CFLAGS): Likewise.
12083 (cpio_mod_LDFLAGS): Likewise.
12085 * fs/cpio.c: New file.
12087 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12089 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12091 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12093 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12095 2007-12-25 Robert Millan <rmh@aybabtu.com>
12097 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12098 (grub_getcolor): New function.
12100 * kern/term.c (grub_getcolor): New function.
12101 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12102 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12103 (print_entry): Set normal and highlight colors to
12104 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12105 respectively, before printing and restore them to old
12107 (grub_menu_init_page): Likewise. Fill an additional colored space
12108 that would otherwise be left blank.
12110 * term/efi/console.c (grub_console_getcolor): New function.
12111 (struct grub_console_term.getcolor): New variable.
12112 * term/i386/pc/console.c (grub_console_getcolor): New function.
12113 (struct grub_console_term.getcolor): New variable.
12114 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12115 (struct grub_console_term.getcolor): New variable.
12117 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12118 (struct grub_console_term.setcolor): Remove variable.
12119 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12120 (struct grub_console_term.setcolor): Remove variable.
12121 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12122 (struct grub_console_term.setcolor): Remove variable.
12123 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12124 (struct grub_console_term.setcolor): Remove variable.
12126 2007-12-25 Robert Millan <rmh@aybabtu.com>
12128 * configure.ac: Search for possible unifont.hex locations, and
12129 define UNIFONT_HEX if found.
12131 * Makefile.in (UNIFONT_HEX): Define variable.
12132 (DATA): Rename to ...
12133 (PKGLIB): ... this. Update all users.
12134 (PKGDATA): New variable.
12135 (pkgdata_IMAGES): Rename to ...
12136 (pkglib_IMAGES): ... this. Update all users.
12137 (pkgdata_MODULES): Rename to ...
12138 (pkglib_MODULES): ... this. Update all users.
12139 (pkgdata_PROGRAMS): Rename to ...
12140 (pkglib_PROGRAMS): ... this. Update all users.
12141 (pkgdata_DATA): Rename to ...
12142 (pkglib_DATA): ... this. Update all users.
12143 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12144 (unicode.pff, ascii.pff): New rules.
12145 (all-local): Add `$(PKGDATA)' dependency.
12146 (install-local): Process `$(PKGDATA)'.
12148 * util/update-grub_lib.in (font_path): Search for *.pff files in
12149 a few more locations, including `${pkgdata}'.
12151 2007-12-23 Robert Millan <rmh@aybabtu.com>
12153 Patch from Bean <bean123ch@gmail.com>:
12154 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12157 2007-12-21 Bean <bean123ch@gmail.com>
12159 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12160 (ntfscomp_mod_SOURCES): New variable.
12161 (ntfscomp_mod_CFLAGS): Likewise.
12162 (ntfscomp_mod_LDFLAGS): Likewise.
12164 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12165 (grub_probe_SOURCES): Likewise.
12166 (grub_emu_SOURCES): Likewise.
12168 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12169 (grub_emu_SOURCES): Likewise.
12171 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12172 (grub_emu_SOURCES): Likewise.
12174 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12175 (grub_emu_SOURCES): Likewise.
12177 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12178 (read_run_list): Renamed to grub_ntfs_read_run_list.
12179 (decomp_nextvcn): Moved to ntfscomp.c.
12180 (decomp_getch): Likewise.
12181 (decomp_get16): Likewise.
12182 (decomp_block): Likewise.
12183 (read_block): Likewise.
12184 (read_data): Partially moved to ntfscomp.c.
12185 (fixup): Change unsigned to grub_uint16_t.
12186 (read_mft): Change unsigned long to grub_uint32_t.
12187 (read_attr): Likewise.
12188 (read_data): Likewise.
12189 (read_run_data): Likewise.
12190 (read_run_list): Likewise.
12191 (read_mft): Likewise.
12193 * fs/ntfscomp.c: New file.
12195 * include/grub/ntfs.h: New file.
12197 2007-12-16 Robert Millan <rmh@aybabtu.com>
12199 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12200 IDE disk check, since Linux is known to support 20 IDE disks.
12201 Reported by Colin Watson.
12203 2007-12-15 Bean <bean123ch@gmail.com>
12205 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12206 (lnxboot_img_SOURCES): New variable.
12207 (lnxboot_img_ASFLAGS): Likewise.
12208 (lnxboot_img_LDFLAGS): Likewise.
12210 * boot/i386/pc/lnxboot.S: New file.
12212 2007-11-24 Pavel Roskin <proski@gnu.org>
12214 * configure.ac: Test if '--build-id=none' is supported by the
12215 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12216 objcopy to generate incorrect binary files (binutils
12217 2.17.50.0.18-1 as shipped by Fedora 8).
12218 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12219 linking, so that build ID doesn't break the test.
12221 2007-11-24 Pavel Roskin <proski@gnu.org>
12223 * include/grub/i386/time.h: use "void" in the argument list
12224 of grub_cpu_idle().
12225 * include/grub/powerpc/time.h: Likewise.
12226 * include/grub/sparc64/time.h: Likewise.
12228 2007-11-18 Christian Franke <franke@computer.org>
12230 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12231 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12232 This fixes the problem that function keys did not work in grub-emu.
12234 2007-11-18 Christian Franke <franke@computer.org>
12236 * disk/host.c (grub_host_open): Remove attribute unused from
12237 name parameter. Add check for "host". This fixes the problem
12238 that grub-emu does not find partitions.
12240 2007-11-18 Christian Franke <franke@computer.org>
12242 * util/hostfs.c (is_dir): New function.
12243 (grub_hostfs_dir): Handle missing dirent.d_type case.
12244 (grub_hostfs_read): Add missing fseek().
12245 (grub_hostfs_label): Clear label pointer. This fixes a crash
12246 of grub-emu on "ls (host)".
12248 2007-11-18 Christian Franke <franke@computer.org>
12250 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12251 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12252 to 64 bit boundary by default.
12254 2007-11-18 Bean <bean123ch@gmail.com>
12256 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12257 (hexdump_mod_SOURCES): New variable.
12258 (hexdump_mod_CFLAGS): Likewise.
12259 (hexdump_mod_LDFLAGS): Likewise.
12261 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12263 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12265 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12269 * include/grub/hexdump.h: New file.
12271 * commands/hexdump.c: New file.
12273 2007-11-10 Robert Millan <rmh@aybabtu.com>
12275 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12276 in grub_outb() calls.
12277 (beep_on): Likewise.
12279 2007-11-10 Christian Franke <franke@computer.org>
12281 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12282 (grub_menu_run): Likewise.
12284 2007-11-10 Robert Millan <rmh@aybabtu.com>
12286 * include/grub/i386/efi/machine.h: New file.
12287 * include/grub/i386/linuxbios/machine.h: Likewise.
12288 * include/grub/i386/pc/machine.h: Likewise.
12289 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12290 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12292 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12293 (serial_hw_io_addr): New variable.
12294 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12295 instead of `(unsigned short *) 0x400'.
12297 2007-11-10 Bean <bean123ch@gmail.com>
12299 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12301 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12303 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12304 (vga_mod_SOURCES): Added.
12305 (vga_mod_CFLAGS): Likewise.
12306 (vga_mod_LDFLAGS): Likewise.
12308 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12310 (set_map_mask): Likewise.
12311 (set_read_map): Likewise.
12312 (set_read_address): Likewise.
12313 (vga_font): Removed variable.
12314 (get_vga_glyph): Removed function.
12315 (invalidate_char): Likewise.
12316 (write_char): Changed to use grub_font_get_glyph() for font
12318 (grub_vga_putchar): Likewise.
12319 (grub_vga_getcharwidth): Likewise.
12321 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12323 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12325 (pxeboot_img_LDFLAGS): Likewise.
12326 (diskboot_img_LDFLAGS): Likewise.
12327 (kernel_img_LDFLAGS): Likewise.
12329 2007-11-06 Robert Millan <rmh@aybabtu.com>
12331 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12332 in grub_outb() calls.
12333 (serial_hw_init): Likewise.
12335 2007-11-05 Robert Millan <rmh@aybabtu.com>
12337 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12338 spaces. Skip non-regular files.
12340 2007-11-05 Robert Millan <rmh@aybabtu.com>
12342 * kern/disk.c (grub_disk_firmware_fini)
12343 (grub_disk_firmware_is_tainted): New variables.
12345 * include/grub/disk.h (grub_disk_firmware_fini)
12346 (grub_disk_firmware_is_tainted): Likewise.
12348 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12349 (grub_disk_biosdisk_fini): ... to here.
12350 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12351 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12352 is set. Register grub_disk_biosdisk_fini() in
12353 `grub_disk_firmware_fini'.
12355 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12356 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12357 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12358 to finish existing firmware disk interface.
12360 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12361 (ata_mod_SOURCES): New variable.
12362 (ata_mod_CFLAGS): Likewise.
12363 (ata_mod_LDFLAGS): Likewise.
12365 2007-11-05 Robert Millan <rmh@aybabtu.com>
12367 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12368 (grub_ata_wait): Reimplement using grub_millisleep().
12370 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12371 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12373 2007-11-03 Marco Gerards <marco@gnu.org>
12375 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12376 (CRTC_ADDR_PORT): New macro.
12377 (CRTC_DATA_PORT): Likewise.
12378 (CRTC_CURSOR): Likewise.
12379 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12380 (CRTC_CURSOR_ADDR_LOW): Likewise.
12381 (update_cursor): New function.
12382 (grub_console_real_putchar): Call `update_cursor'.
12383 (grub_console_gotoxy): Likewise.
12384 (grub_console_cls): Set the default color when clearing the
12386 (grub_console_setcursor): Implemented.
12388 2007-11-03 Marco Gerards <marco@gnu.org>
12390 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12392 (grub_ata_pio_write): Likewise.
12394 (grub_atapi_identify): Wait after issuing an ATA command.
12395 (grub_atapi_packet): Likewise.
12396 (grub_ata_identify): Likewise.
12397 (grub_ata_readwrite): Likewise.
12399 2007-11-03 Marco Gerards <marco@gnu.org>
12401 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12402 (grub_ata_pio_write): Likewise.
12403 (grub_ata_readwrite): Use `grub_error', instead of
12404 returning `grub_errno'.
12406 2007-11-03 Marco Gerards <marco@gnu.org>
12408 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12409 grub_ata_pio_write once for every single sector, instead of for
12412 2007-10-31 Robert Millan <rmh@aybabtu.com>
12414 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12416 * conf/i386-linuxbios.rmk: New file.
12418 * kern/i386/pc/hardware.c: Likewise.
12419 * term/i386/pc/at_keyboard.c: Likewise.
12420 * term/i386/pc/vga_text.c: Likewise.
12422 * include/grub/i386/linuxbios/boot.h: Likewise.
12423 * include/grub/i386/linuxbios/console.h: Likewise.
12424 * include/grub/i386/linuxbios/init.h: Likewise.
12425 * include/grub/i386/linuxbios/kernel.h: Likewise.
12426 * include/grub/i386/linuxbios/loader.h: Likewise.
12427 * include/grub/i386/linuxbios/memory.h: Likewise.
12428 * include/grub/i386/linuxbios/serial.h: Likewise.
12429 * include/grub/i386/linuxbios/time.h: Likewise.
12431 * kern/i386/linuxbios/init.c: Likewise.
12432 * kern/i386/linuxbios/startup.S: Likewise.
12433 * kern/i386/linuxbios/table.c: Likewise.
12435 2007-10-31 Marco Gerards <marco@gnu.org>
12437 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12438 (ata_mod_SOURCES): New variable.
12439 (ata_mod_CFLAGS): Likewise.
12440 (ata_mod_LDFLAGS): Likewise.
12442 * disk/ata.c: New file.
12444 * include/grub/disk.h (grub_disk_dev_id): Add
12445 `GRUB_DISK_DEV_ATA_ID'.
12447 2007-10-31 Robert Millan <rmh@aybabtu.com>
12449 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12450 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12452 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12453 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12455 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12458 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12460 2007-10-27 Robert Millan <rmh@aybabtu.com>
12462 * include/grub/types.h (ULONG_MAX): Define macro.
12464 2007-10-22 Robert Millan <rmh@aybabtu.com>
12466 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12468 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12470 2007-10-22 Robert Millan <rmh@aybabtu.com>
12472 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12473 (pkgdata_MODULES): Add `biosdisk.mod'.
12474 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12477 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12478 (grub_biosdisk_init): Replace with ...
12479 (GRUB_MOD_INIT(biosdisk)): ... this.
12480 (grub_biosdisk_fini): Replace with ...
12481 (GRUB_MOD_FINI(biosdisk)): ... this.
12483 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12484 (grub_machine_init): Remove call to grub_biosdisk_init().
12485 (grub_machine_fini): Remove call to grub_machine_fini().
12487 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12489 2007-10-22 Robert Millan <rmh@aybabtu.com>
12491 * include/grub/time.h: New file.
12492 * include/grub/i386/time.h: Likewise.
12493 * include/grub/powerpc/time.h: Likewise.
12494 * include/grub/sparc64/time.h: Likewise.
12496 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12498 (KERNEL_MACHINE_TIME_HEADER): ... this.
12499 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12501 (KERNEL_MACHINE_TIME_HEADER): ... this.
12502 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12504 (KERNEL_MACHINE_TIME_HEADER): ... this.
12506 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12507 (grub_millisleep): New function.
12508 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12509 (grub_millisleep): New function.
12510 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12511 Remove `grub/machine/time.h' include.
12512 (grub_millisleep): New function.
12513 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12514 Remove `grub/machine/time.h' include.
12515 (grub_millisleep): New function.
12517 * include/grub/misc.h (grub_div_roundup): New function.
12519 * kern/misc.c: Include `<grub/time.h>'.
12520 (grub_millisleep_generic): New function.
12522 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12524 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12526 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12527 `machine/time.h'. Add `time.h'.
12528 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12530 2007-10-21 Robert Millan <rmh@aybabtu.com>
12532 * include/grub/misc.h (grub_max): New function.
12534 2007-10-21 Robert Millan <rmh@aybabtu.com>
12536 * util/misc.c (grub_util_info): Call fflush() before returning.
12538 2007-10-20 Robert Millan <rmh@aybabtu.com>
12540 * genmk.rb (Image): Copy `extra_flags' from here ...
12541 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12543 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12544 to `argc' and `args' arguments.
12546 2007-10-17 Robert Millan <rmh@aybabtu.com>
12548 * kern/i386/loader.S: New file.
12550 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12551 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12552 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12553 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12554 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12555 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12556 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12557 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12558 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12559 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12560 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12561 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12562 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12563 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12565 * kern/i386/realmode.S: New file.
12567 * kern/i386/pc/startup.S (protstack): Moved from here ...
12568 * kern/i386/realmode.S (protstack)... to here.
12569 * kern/i386/pc/startup.S (gdt): Moved from here ...
12570 * kern/i386/realmode.S (gdt)... to here.
12571 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12572 * kern/i386/realmode.S (prot_to_real)... to here.
12574 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12575 `kern/i386/realmode.S'.
12577 2007-10-17 Robert Millan <rmh@aybabtu.com>
12579 * include/grub/i386/loader.h: New file.
12581 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12582 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12583 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12584 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12585 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12586 * include/grub/i386/loader.h (grub_linux_prot_size)
12587 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12588 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12589 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12590 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12592 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12594 2007-10-15 Robert Millan <rmh@aybabtu.com>
12596 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12597 filesystem when dev->disk is unset.
12598 Do probe for filesystem even when dev->disk->has_partitions is set.
12599 In case a filesystem is found, always report it.
12600 In case it isn't, if dev->disk->has_partitions is set, report that
12601 a partition table was found instead of reporting that no filesystem
12602 could be identified.
12604 2007-10-12 Robert Millan <rmh@aybabtu.com>
12606 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12607 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12609 * include/grub/types.h (grub_host_to_target16): New macro.
12610 (grub_host_to_target32): Likewise.
12611 (grub_host_to_target64): Likewise.
12612 (grub_target_to_host16): Likewise.
12613 (grub_target_to_host32): Likewise.
12614 (grub_target_to_host64): Likewise.
12616 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12617 Renamed from to ...
12618 (GRUB_MOD_ALIGN): ...this. Update all users.
12620 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12621 grub_host_to_target32.
12622 Replace grub_be_to_cpu32 with grub_target_to_host32.
12623 (load_modules): Likewise.
12624 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12625 Replace grub_be_to_cpu32 with grub_target_to_host32.
12626 Replace grub_cpu_to_be16 with grub_host_to_target16.
12627 Replace grub_cpu_to_be32 grub_host_to_target32.
12629 2007-10-12 Robert Millan <rmh@aybabtu.com>
12631 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12632 * util/elf/grub-mkimage.c: ... here.
12634 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12635 `util/powerpc/ieee1275/grub-mkimage.c'.
12637 2007-10-07 Robert Millan <rmh@aybabtu.com>
12639 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12640 and make it easier to figure out.
12641 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12642 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12643 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12644 leave us with less than HEAP_MIN_SIZE total heap.
12645 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12647 2007-10-03 Robert Millan <rmh@aybabtu.com>
12649 * include/grub/i386/io.h: New file.
12650 * commands/i386/pc/play.c (inb): Removed.
12652 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12654 * term/i386/pc/serial.c (inb): Removed.
12656 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12658 * term/i386/pc/vga.c (inb): Removed.
12660 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12663 2007-10-02 Robert Millan <rmh@aybabtu.com>
12665 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12667 Reported by Marcin Kurek.
12669 2007-09-07 Robert Millan <rmh@aybabtu.com>
12671 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12672 SmartFirmware version updates (as released by Sven Luther), and avoid
12673 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12674 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12677 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12679 From Hitoshi Ozeki:
12680 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12681 when merging two regions.
12683 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12685 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12686 * normal/completion.c (grub_normal_do_completion): Likewise.
12687 Reported by Hitoshi Ozeki.
12689 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12691 Do not use devices at boot in chainloading.
12693 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12694 (boot_part_addr): Likewise.
12695 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12696 with BOOT_DRIVE and BOOT_PART_ADDR.
12697 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12698 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12700 2007-08-29 Robert Millan <rmh@aybabtu.com>
12702 Patch from Simon Peter <dn.tlp@gmx.net>:
12703 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12704 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12705 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12706 util/i386/pc/grub-setup.c_DEPENDENCIES.
12707 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12708 util/grub-probe.c_DEPENDENCIES.
12709 * conf/powerpc-ieee1275.rmk: Likewise.
12711 2007-08-28 Robert Millan <rmh@aybabtu.com>
12713 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12714 to tell grub-mkdevicemap how to name devices.
12715 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12718 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12719 util/i386/get_disk_name.c.
12720 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12721 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12722 util/ieee1275/get_disk_name.c.
12724 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12726 * DISTLIST: Add util/i386/get_disk_name.c and
12727 util/ieee1275/get_disk_name.c.
12729 * util/grub-mkdevicemap.c: Replace device naming logic with
12730 grub_util_get_disk_name() calls.
12732 2007-08-20 Robert Millan <rmh@aybabtu.com>
12734 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12735 (so that it works for both plural and singular quantities).
12737 2007-08-05 Robert Millan <rmh@aybabtu.com>
12739 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12740 so that [xz] isn't taken into account when determining order.
12742 2007-08-02 Marco Gerards <marco@gnu.org>
12744 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12745 `include/multiboot2.h', `include/grub/elfload.h',
12746 `include/multiboot.h', `include/grub/multiboot.h',
12747 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12748 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12749 `kern/elf.c', `loader/multiboot_loader.c',
12750 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12751 `loader/i386/pc/multiboot2.c',
12752 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12753 `util/i386/pc/grub-mkrescue.in'. Remove
12754 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12755 `include/grub/i386/pc/util/biosdisk.h' and
12756 `include/grub/powerpc/ieee1275/multiboot.h'.
12758 2007-08-02 Bean <bean123ch@gmail.com>
12760 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12761 (ntfs_mod_SOURCES): New variable.
12762 (ntfs_mod_CFLAGS): Likewise.
12763 (ntfs_mod_LDFLAGS): Likewise.
12765 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12766 (grub_probe_SOURCES): Likewise.
12767 (grub_emu_SOURCES): Likewise.
12769 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12770 (grub_emu_SOURCES): Likewise.
12772 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12773 (grub_emu_SOURCES): Likewise.
12775 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12777 * fs/ntfs.c: New file.
12779 2007-08-02 Bean <bean123ch@gmail.com>
12781 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12783 * file.h (grub_file): Likewise.
12785 * fshelp.h (grub_fshelp_read_file): Likewise.
12787 * util/i386/pc/grub-setup.c (setup): Likewise.
12788 (save_first_sector): Likewise.
12789 (save_blocklists): Likewise.
12791 * fs/affs.c (grub_affs_read_file): Likewise.
12793 * fs/ext2.c (grub_ext2_read_file): Likewise.
12795 * fs/fat.c (grub_fat_read_data): Likewise.
12797 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12799 * fs/hfs.c (grub_hfs_read_file): Likewise.
12801 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12803 * fs/jfs.c (grub_jfs_read_file): Likewise.
12805 * fs/minix.c (grub_minix_read_file): Likewise.
12807 * fs/sfs.c (grub_sfs_read_file): Likewise.
12809 * fs/ufs.c (grub_ufs_read_file): Likewise.
12811 * fs/xfs.c (grub_xfs_read_file): Likewise.
12813 * command/blocklist.c (read_blocklist): Likewise.
12814 (print_blocklist): Likewise.
12816 2007-08-02 Marco Gerards <marco@gnu.org>
12818 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12821 * disk/host.c: New file.
12823 * util/hostfs.c: Likewise.
12825 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12826 return `GRUB_ERR_BAD_FS'.
12827 * fs/sfs.c (grub_sfs_mount): Likewise.
12828 * fs/xfs.c (grub_xfs_mount): Likewise.
12830 * include/grub/disk.h (enum grub_disk_dev_id): Add
12831 `GRUB_DISK_DEVICE_HOST_ID'.
12833 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12835 2007-07-24 Jerone Young <jerone@gmail.com>
12837 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12838 modules for compilation.
12839 * conf/powerpc-ieee1275.rmk: Likewise.
12841 * include/multiboot.h: Move multiboot definitions to one file. Rename
12842 many definitions to not get grub specific.
12843 * include/multiboot2.h: Create header with multiboot 2 definitions.
12844 * include/grub/multiboot.h: Header for grub specific function
12845 prototypes and definitions.
12846 * include/grub/multiboot2.h: Likewise.
12847 * include/grub/multiboot_loader.h: Likewise.
12848 * include/grub/i386/pc/multiboot.h: Removed.
12849 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12851 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12852 and 2 to allow for one multiboot and module commands.
12853 * loader/multiboot2.c: Add multiboot2 functionality.
12854 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12855 and definition names.
12856 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12858 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12859 ieee1275 specific multiboot2 code.
12861 * kern/i386/pc/startup.S: Change headers and definition names for
12862 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12864 2007-07-22 Robert Millan <rmh@aybabtu.com>
12866 * geninitheader.sh: Process file specified in first parameter rather
12867 than hardcoding grub_modules_init.lst.
12868 * geninit.sh: Likewise. Also, construct header name dynamically rather
12869 than hardcoding grub_modules_init.h.
12871 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12872 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12873 grub_probe_init.[ch] and grub_setup_init.[ch].
12875 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12876 grub_modules_init.h with grub_emu_init.h.
12877 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12878 grub_probe_init.[ch] files.
12879 * conf/i386-efi.rmk: Likewise.
12880 * conf/i386-pc.rmk: Likewise.
12881 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12882 grub_setup_init.[ch] files.
12884 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12885 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12886 to initialize modules rather than a list of hardcoded functions.
12887 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12888 grub_init_all() to initialize modules rather than a list of hardcoded
12891 2007-07-22 Robert Millan <rmh@aybabtu.com>
12893 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12894 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12896 2007-07-22 Robert Millan <rmh@aybabtu.com>
12898 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12899 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12900 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12901 flag when running on SmartFirmware.
12902 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12903 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12906 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12907 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12908 rather than decreasing it.
12910 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12911 there's not enough space to do it, fail in the same way as when it
12912 can't be done because there are no partitions.
12914 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12915 when nvsetenv failed.
12917 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12919 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12920 because this rule is automatically generated.
12921 (grub-mkrescue): Removed for the same reason as above.
12923 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12925 Migrate to GNU General Public License Version 3.
12927 * COPYING: Replaced with the plain text version of GPLv3.
12929 * config.guess: Updated from gnulib.
12930 * config.sub: Likewise.
12932 * geninit.sh: Output a GPLv3 copyright notice.
12933 * geninitheader.sh: Likewise.
12934 * genmodsrc.sh: Likewise.
12935 * gensymlist.sh.in: Likewise.
12937 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12938 * boot/i386/pc/diskboot.S: Likewise.
12939 * boot/i386/pc/pxeboot.S: Likewise.
12940 * commands/blocklist.c: Likewise.
12941 * commands/boot.c: Likewise.
12942 * commands/cat.c: Likewise.
12943 * commands/cmp.c: Likewise.
12944 * commands/configfile.c: Likewise.
12945 * commands/echo.c: Likewise.
12946 * commands/help.c: Likewise.
12947 * commands/ls.c: Likewise.
12948 * commands/search.c: Likewise.
12949 * commands/terminal.c: Likewise.
12950 * commands/test.c: Likewise.
12951 * commands/videotest.c: Likewise.
12952 * commands/i386/cpuid.c: Likewise.
12953 * commands/i386/pc/halt.c: Likewise.
12954 * commands/i386/pc/play.c: Likewise.
12955 * commands/i386/pc/reboot.c: Likewise.
12956 * commands/i386/pc/vbeinfo.c: Likewise.
12957 * commands/i386/pc/vbetest.c: Likewise.
12958 * commands/ieee1275/halt.c: Likewise.
12959 * commands/ieee1275/reboot.c: Likewise.
12960 * commands/ieee1275/suspend.c: Likewise.
12961 * disk/loopback.c: Likewise.
12962 * disk/lvm.c: Likewise.
12963 * disk/raid.c: Likewise.
12964 * disk/efi/efidisk.c: Likewise.
12965 * disk/i386/pc/biosdisk.c: Likewise.
12966 * disk/ieee1275/ofdisk.c: Likewise.
12967 * font/manager.c: Likewise.
12968 * fs/affs.c: Likewise.
12969 * fs/ext2.c: Likewise.
12970 * fs/fat.c: Likewise.
12971 * fs/fshelp.c: Likewise.
12972 * fs/hfs.c: Likewise.
12973 * fs/hfsplus.c: Likewise.
12974 * fs/iso9660.c: Likewise.
12975 * fs/jfs.c: Likewise.
12976 * fs/minix.c: Likewise.
12977 * fs/sfs.c: Likewise.
12978 * fs/ufs.c: Likewise.
12979 * fs/xfs.c: Likewise.
12980 * hello/hello.c: Likewise.
12981 * include/grub/acorn_filecore.h: Likewise.
12982 * include/grub/arg.h: Likewise.
12983 * include/grub/bitmap.h: Likewise.
12984 * include/grub/boot.h: Likewise.
12985 * include/grub/cache.h: Likewise.
12986 * include/grub/device.h: Likewise.
12987 * include/grub/disk.h: Likewise.
12988 * include/grub/dl.h: Likewise.
12989 * include/grub/elfload.h: Likewise.
12990 * include/grub/env.h: Likewise.
12991 * include/grub/err.h: Likewise.
12992 * include/grub/file.h: Likewise.
12993 * include/grub/font.h: Likewise.
12994 * include/grub/fs.h: Likewise.
12995 * include/grub/fshelp.h: Likewise.
12996 * include/grub/gzio.h: Likewise.
12997 * include/grub/hfs.h: Likewise.
12998 * include/grub/kernel.h: Likewise.
12999 * include/grub/loader.h: Likewise.
13000 * include/grub/lvm.h: Likewise.
13001 * include/grub/misc.h: Likewise.
13002 * include/grub/mm.h: Likewise.
13003 * include/grub/net.h: Likewise.
13004 * include/grub/normal.h: Likewise.
13005 * include/grub/parser.h: Likewise.
13006 * include/grub/partition.h: Likewise.
13007 * include/grub/pc_partition.h: Likewise.
13008 * include/grub/raid.h: Likewise.
13009 * include/grub/rescue.h: Likewise.
13010 * include/grub/script.h: Likewise.
13011 * include/grub/setjmp.h: Likewise.
13012 * include/grub/symbol.h: Likewise.
13013 * include/grub/term.h: Likewise.
13014 * include/grub/terminfo.h: Likewise.
13015 * include/grub/tparm.h: Likewise.
13016 * include/grub/types.h: Likewise.
13017 * include/grub/video.h: Likewise.
13018 * include/grub/efi/api.h: Likewise.
13019 * include/grub/efi/chainloader.h: Likewise.
13020 * include/grub/efi/console.h: Likewise.
13021 * include/grub/efi/console_control.h: Likewise.
13022 * include/grub/efi/disk.h: Likewise.
13023 * include/grub/efi/efi.h: Likewise.
13024 * include/grub/efi/pe32.h: Likewise.
13025 * include/grub/efi/time.h: Likewise.
13026 * include/grub/i386/linux.h: Likewise.
13027 * include/grub/i386/setjmp.h: Likewise.
13028 * include/grub/i386/types.h: Likewise.
13029 * include/grub/i386/efi/kernel.h: Likewise.
13030 * include/grub/i386/efi/loader.h: Likewise.
13031 * include/grub/i386/efi/time.h: Likewise.
13032 * include/grub/i386/pc/biosdisk.h: Likewise.
13033 * include/grub/i386/pc/boot.h: Likewise.
13034 * include/grub/i386/pc/chainloader.h: Likewise.
13035 * include/grub/i386/pc/console.h: Likewise.
13036 * include/grub/i386/pc/init.h: Likewise.
13037 * include/grub/i386/pc/kernel.h: Likewise.
13038 * include/grub/i386/pc/loader.h: Likewise.
13039 * include/grub/i386/pc/memory.h: Likewise.
13040 * include/grub/i386/pc/multiboot.h: Likewise.
13041 * include/grub/i386/pc/serial.h: Likewise.
13042 * include/grub/i386/pc/time.h: Likewise.
13043 * include/grub/i386/pc/vbe.h: Likewise.
13044 * include/grub/i386/pc/vbeblit.h: Likewise.
13045 * include/grub/i386/pc/vbefill.h: Likewise.
13046 * include/grub/i386/pc/vbeutil.h: Likewise.
13047 * include/grub/i386/pc/vga.h: Likewise.
13048 * include/grub/ieee1275/ieee1275.h: Likewise.
13049 * include/grub/ieee1275/ofdisk.h: Likewise.
13050 * include/grub/powerpc/libgcc.h: Likewise.
13051 * include/grub/powerpc/setjmp.h: Likewise.
13052 * include/grub/powerpc/types.h: Likewise.
13053 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13054 * include/grub/powerpc/ieee1275/console.h: Likewise.
13055 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13056 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13057 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13058 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13059 * include/grub/powerpc/ieee1275/time.h: Likewise.
13060 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13061 * include/grub/sparc64/libgcc.h: Likewise.
13062 * include/grub/sparc64/setjmp.h: Likewise.
13063 * include/grub/sparc64/types.h: Likewise.
13064 * include/grub/sparc64/ieee1275/console.h: Likewise.
13065 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13066 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13067 * include/grub/sparc64/ieee1275/time.h: Likewise.
13068 * include/grub/util/biosdisk.h: Likewise.
13069 * include/grub/util/getroot.h: Likewise.
13070 * include/grub/util/lvm.h: Likewise.
13071 * include/grub/util/misc.h: Likewise.
13072 * include/grub/util/raid.h: Likewise.
13073 * include/grub/util/resolve.h: Likewise.
13074 * io/gzio.c: Likewise.
13075 * kern/device.c: Likewise.
13076 * kern/disk.c: Likewise.
13077 * kern/dl.c: Likewise.
13078 * kern/elf.c: Likewise.
13079 * kern/env.c: Likewise.
13080 * kern/err.c: Likewise.
13081 * kern/file.c: Likewise.
13082 * kern/fs.c: Likewise.
13083 * kern/loader.c: Likewise.
13084 * kern/main.c: Likewise.
13085 * kern/misc.c: Likewise.
13086 * kern/mm.c: Likewise.
13087 * kern/parser.c: Likewise.
13088 * kern/partition.c: Likewise.
13089 * kern/rescue.c: Likewise.
13090 * kern/term.c: Likewise.
13091 * kern/efi/efi.c: Likewise.
13092 * kern/efi/init.c: Likewise.
13093 * kern/efi/mm.c: Likewise.
13094 * kern/i386/dl.c: Likewise.
13095 * kern/i386/efi/init.c: Likewise.
13096 * kern/i386/efi/startup.S: Likewise.
13097 * kern/i386/pc/init.c: Likewise.
13098 * kern/i386/pc/lzo1x.S: Likewise.
13099 * kern/i386/pc/startup.S: Likewise.
13100 * kern/ieee1275/ieee1275.c: Likewise.
13101 * kern/powerpc/cache.S: Likewise.
13102 * kern/powerpc/dl.c: Likewise.
13103 * kern/powerpc/ieee1275/cmain.c: Likewise.
13104 * kern/powerpc/ieee1275/crt0.S: Likewise.
13105 * kern/powerpc/ieee1275/init.c: Likewise.
13106 * kern/powerpc/ieee1275/openfw.c: Likewise.
13107 * kern/sparc64/cache.S: Likewise.
13108 * kern/sparc64/dl.c: Likewise.
13109 * kern/sparc64/ieee1275/init.c: Likewise.
13110 * kern/sparc64/ieee1275/openfw.c: Likewise.
13111 * loader/efi/chainloader.c: Likewise.
13112 * loader/efi/chainloader_normal.c: Likewise.
13113 * loader/i386/efi/linux.c: Likewise.
13114 * loader/i386/efi/linux_normal.c: Likewise.
13115 * loader/i386/pc/chainloader.c: Likewise.
13116 * loader/i386/pc/chainloader_normal.c: Likewise.
13117 * loader/i386/pc/linux.c: Likewise.
13118 * loader/i386/pc/linux_normal.c: Likewise.
13119 * loader/i386/pc/multiboot.c: Likewise.
13120 * loader/i386/pc/multiboot_normal.c: Likewise.
13121 * loader/powerpc/ieee1275/linux.c: Likewise.
13122 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13123 * normal/arg.c: Likewise.
13124 * normal/cmdline.c: Likewise.
13125 * normal/command.c: Likewise.
13126 * normal/completion.c: Likewise.
13127 * normal/execute.c: Likewise.
13128 * normal/function.c: Likewise.
13129 * normal/lexer.c: Likewise.
13130 * normal/main.c: Likewise.
13131 * normal/menu.c: Likewise.
13132 * normal/menu_entry.c: Likewise.
13133 * normal/misc.c: Likewise.
13134 * normal/parser.y: Likewise.
13135 * normal/script.c: Likewise.
13136 * normal/i386/setjmp.S: Likewise.
13137 * normal/powerpc/setjmp.S: Likewise.
13138 * normal/sparc64/setjmp.S: Likewise.
13139 * partmap/acorn.c: Likewise.
13140 * partmap/amiga.c: Likewise.
13141 * partmap/apple.c: Likewise.
13142 * partmap/gpt.c: Likewise.
13143 * partmap/pc.c: Likewise.
13144 * partmap/sun.c: Likewise.
13145 * term/gfxterm.c: Likewise.
13146 * term/terminfo.c: Likewise.
13147 * term/efi/console.c: Likewise.
13148 * term/i386/pc/console.c: Likewise.
13149 * term/i386/pc/serial.c: Likewise.
13150 * term/i386/pc/vesafb.c: Likewise.
13151 * term/i386/pc/vga.c: Likewise.
13152 * term/ieee1275/ofconsole.c: Likewise.
13153 * util/biosdisk.c: Likewise.
13154 * util/console.c: Likewise.
13155 * util/genmoddep.c: Likewise.
13156 * util/getroot.c: Likewise.
13157 * util/grub-emu.c: Likewise.
13158 * util/grub-mkdevicemap.c: Likewise.
13159 * util/grub-probe.c: Likewise.
13160 * util/lvm.c: Likewise.
13161 * util/misc.c: Likewise.
13162 * util/raid.c: Likewise.
13163 * util/resolve.c: Likewise.
13164 * util/update-grub.in: Likewise.
13165 * util/update-grub_lib.in: Likewise.
13166 * util/grub.d/00_header.in: Likewise.
13167 * util/grub.d/10_hurd.in: Likewise.
13168 * util/grub.d/10_linux.in: Likewise.
13169 * util/i386/efi/grub-install.in: Likewise.
13170 * util/i386/efi/grub-mkimage.c: Likewise.
13171 * util/i386/pc/grub-install.in: Likewise.
13172 * util/i386/pc/grub-mkimage.c: Likewise.
13173 * util/i386/pc/grub-mkrescue.in: Likewise.
13174 * util/i386/pc/grub-setup.c: Likewise.
13175 * util/i386/pc/misc.c: Likewise.
13176 * util/powerpc/ieee1275/grub-install.in: Likewise.
13177 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13178 * util/powerpc/ieee1275/misc.c: Likewise.
13179 * video/bitmap.c: Likewise.
13180 * video/video.c: Likewise.
13181 * video/i386/pc/vbe.c: Likewise.
13182 * video/i386/pc/vbeblit.c: Likewise.
13183 * video/i386/pc/vbefill.c: Likewise.
13184 * video/i386/pc/vbeutil.c: Likewise.
13185 * video/readers/tga.c: Likewise.
13187 2007-07-02 Robert Millan <rmh@aybabtu.com>
13189 * conf/i386-efi.rmk: Replace obsolete reference to
13190 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13191 with util/getroot.c.
13192 * conf/powerpc-ieee1275.rmk: Likewise.
13193 * conf/sparc64-ieee1275.rmk: Likewise.
13195 * util/grub-emu.c (main): Fix unchecked pointer handling.
13197 2007-07-02 Robert Millan <rmh@aybabtu.com>
13199 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13200 invocation to fail, in order to support partition-less media.
13202 * util/i386/pc/grub-install.in: Likewise.
13204 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13205 which fs or partmap modules are needed (akin to its sister scripts).
13207 Also use grub-probe to get rid of unportable /proc/mounts check.
13209 Print the same informational message that the other scripts do, before
13212 2007-06-23 Robert Millan <rmh@aybabtu.com>
13214 * util/update-grub_lib.in (font_path): New function. Determine whether
13215 a font file can be found and, if so, echo the GRUB path to it.
13217 * util/update-grub.in: Handle multiple terminals depending on user
13218 input, platform availability and font file presence. Propagate
13219 variables of our findings to /etc/grub.d/ children.
13221 * util/grub.d/00_header.in: Handle multiple terminals, based on
13222 environment setup by update-grub.
13224 2007-06-23 Robert Millan <rmh@aybabtu.com>
13226 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13228 2007-06-21 Robert Millan <rmh@aybabtu.com>
13230 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13231 indicate end of data section in kernel image.
13232 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13233 GRUB_KERNEL_MACHINE_DATA_END.
13235 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13237 * kern/i386/efi/startup.S: Likewise.
13239 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13240 during image generation. Implement --prefix option to override this
13242 * util/i386/efi/grub-mkimage.c: Likewise.
13244 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13245 code to make path relative to its root into a separate function.
13247 * util/i386/pc/grub-install.in: Use newly provided
13248 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13249 pass the result to grub-install --prefix.
13251 2007-06-13 Robert Millan <rmh@aybabtu.com>
13253 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13254 DEFAULT_DEVICE_MAP.
13255 * util/grub-emu.c: Use above definitions from misc.h instead of
13257 * util/grub-mkdevicemap.c: Likewise.
13258 * util/i386/pc/grub-setup.c: Likewise.
13259 * util/grub-probe.c: Likewise.
13260 (probe): Abort with grub_util_error() when either
13261 grub_guess_root_device or grub_util_get_grub_dev fails.
13263 2007-06-12 Robert Millan <rmh@aybabtu.com>
13265 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13266 "pager" assignment.
13267 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13269 * util/grub-probe.c (probe): Likewise for "drive_name".
13271 2007-06-11 Robert Millan <rmh@aybabtu.com>
13273 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13274 not just the cdrom one.
13276 2007-06-11 Robert Millan <rmh@aybabtu.com>
13278 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13279 Add --pkglibdir=DIR option to override pkglibdir.
13280 Mention --image-type=TYPE in help output.
13281 Fix --grub-mkimage (it was a no-op).
13282 Abort gracefully when no parameter is given.
13284 2007-06-11 Robert Millan <rmh@aybabtu.com>
13286 * util/i386/pc/grub-mkrescue.in: New file.
13287 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13288 * Makefile.in: Handle bin_SCRIPTS.
13290 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13292 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13293 list of video modes.
13295 2007-06-06 Robert Millan <rmh@aybabtu.com>
13297 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13298 file doesn't exist, or if it is in a filesystem grub can't read.
13300 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13301 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13302 header comment to fit in 80 columns when the variables are resolved.
13304 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13305 could be identified by update-grub. Remove redundant check for
13306 unifont.pff existence (since convert_system_path_to_grub_path now
13309 2007-06-04 Robert Millan <rmh@aybabtu.com>
13311 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13313 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13315 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13317 2007-06-04 Robert Millan <rmh@aybabtu.com>
13319 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13321 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13322 grub_apple_partition_map_fini.
13325 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13326 to access >2 TiB disks).
13328 Print disk->total_sectors with %llu instead of %lu, since this
13329 variable is always 64-bit (prevents wrong disk size from being displayed
13330 on either >2 TiB disk or big-endian CPU).
13332 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13333 into a generic case that supports all (sane) partition maps.
13335 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13338 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13339 and grub_apple_partition_map_fini() after that.
13341 2007-06-01 Robert Millan <rmh@aybabtu.com>
13343 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13345 * util/grub.d/00_header.in: Only enable gfxterm when
13346 convert_system_path_to_grub_path() succeeds.
13348 2007-05-20 Robert Millan <rmh@aybabtu.com>
13350 * util/update-grub_lib.in: New file.
13351 * DISTLIST: Add update-grub_lib.in.
13352 * conf/common.rmk: Generate update-grub_lib and install it in
13354 * Makefile.in: Add install routine for $(lib_DATA).
13356 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13357 function provided by update-grub_lib to support arbitrary paths of
13359 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13360 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13362 2007-05-19 Robert Millan <rmh@aybabtu.com>
13364 * commands/i386/cpuid.c: New module.
13365 * DISTLIST: Add it.
13366 * conf/i386-efi.rmk: Enable cpuid.mod.
13367 * conf/i386-pc.rmk: Likewise.
13369 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13371 * kern/disk.c (grub_disk_read): Check return value of
13374 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13376 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13378 * disk/raid.c (grub_raid_open): Likewise.
13380 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13382 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13383 stack instead of on the heap.
13385 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13386 before doing a read on it.
13388 * configure.ac: Only use -fno-stack-protector for the target
13391 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13393 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13394 __attribute_ ((unused)) to mode_type argument.
13396 * util/getroot.c (grub_guess_root_device): Fix #endif.
13398 * kern/misc.c (memcmp): Fix prototype.
13400 * include/grub/partition.h [GRUB_UTIL]
13401 (grub_gpt_partition_map_init): Add prototype.
13402 (grub_gpt_partition_map_fini): Likewise.
13404 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13405 at the right place.
13407 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13408 (grub_fat_read_data): Likewise.
13409 (grub_fat_find_dir): Likewise.
13411 * font/manager.c (find_glyph): Make table a const.
13412 (grub_font_get_glyph): Remove bitmap from if statement.
13414 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13416 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13417 code, first search for device in /dev/mapper, then in /dev.
13418 (grub_util_get_grub_dev): New function.
13419 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13421 * util/grub-probe.c (probe): Remove check for RAID, call
13422 grub_util_get_grub_dev() instead of
13423 grub_util_biosdisk_get_grub_dev().
13424 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13425 grub_util_biosdisk_get_grub_dev().
13426 * util/i386/pc/grub-setup.c (main): Likewise.
13428 2007-05-16 Robert Millan <rmh@aybabtu.com>
13430 * DISTLIST: Update for the latest changes.
13431 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13432 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13433 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13434 grub/util/biosdisk.h.
13435 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13436 grub/util/biosdisk.h.
13438 2007-05-16 Robert Millan <rmh@aybabtu.com>
13440 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13442 2007-05-16 Robert Millan <rmh@aybabtu.com>
13444 * util/i386/efi/grub-install.in: New.
13445 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13446 newly added grub-install.
13447 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13449 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13450 grub/util/biosdisk.h.
13451 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13452 grub/util/biosdisk.h.
13454 2007-05-16 Robert Millan <rmh@aybabtu.com>
13456 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13457 * include/grub/util/biosdisk.h: ... here.
13458 * util/i386/pc/biosdisk.c: Moved to ...
13459 * util/biosdisk.c: ... here.
13460 * util/i386/pc/getroot.c: Moved to ...
13461 * util/getroot.c: ... here.
13462 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13463 * util/grub-mkdevicemap.c: ... here.
13464 * util/i386/pc/grub-probe.c: Moved to ...
13465 * util/grub-probe.c: ... here.
13467 2007-05-15 Robert Millan <rmh@aybabtu.com>
13469 * util/update-grub.in: Remove duplicated line in grub.cfg header
13472 2007-05-13 Robert Millan <rmh@aybabtu.com>
13474 * util/update-grub.in: Fix a few assumptions about the devices holding
13475 /, /boot and /boot/grub being the same.
13476 * util/grub.d/00_header.in: Likewise.
13477 * util/grub.d/10_hurd.in: Likewise.
13478 * util/grub.d/10_linux.in: Likewise.
13480 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13481 patterns. Use that to define the `.old' suffix as older than `'.
13483 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13485 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13486 the grub.cfg header message.
13488 2007-05-11 Robert Millan <rmh@aybabtu.com>
13490 * util/update-grub.in: Create device.map if it doesn't already exist,
13491 before attempting to run grub-probe.
13492 Check for grub-probe and grub-mkdevicemap with the same code
13493 grub-install is using.
13496 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13498 * Makefile.in: Add the datarootdir autoconf variable.
13500 2007-05-09 Robert Millan <rmh@aybabtu.com>
13502 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13503 fail gracefully if dev->disk->partition == NULL.
13505 2007-05-07 Robert Millan <rmh@aybabtu.com>
13507 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13508 determine partition map module.
13509 * util/i386/pc/grub-install.in: Use this feature to decide which
13510 partition module to load, instead of hardcoding pc and gpt.
13512 2007-05-07 Robert Millan <rmh@aybabtu.com>
13514 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13515 source directory differs from build directory.
13517 2007-05-05 Robert Millan <rmh@aybabtu.com>
13519 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13522 2007-05-05 Robert Millan <rmh@aybabtu.com>
13524 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13526 2007-05-05 Robert Millan <rmh@aybabtu.com>
13528 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13529 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13531 2007-05-05 Robert Millan <rmh@aybabtu.com>
13533 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13534 (grub_probe_SOURCES): Likewise.
13535 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13536 GPT and initialize dos_part and bsd_part accordingly.
13537 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13539 (main): Activate gpt module for use during partition identification,
13540 and deactivate it afterwards.
13541 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13542 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13543 partition identification, and deactivate it afterwards.
13545 2007-05-05 Robert Millan <rmh@aybabtu.com>
13547 * term/i386/pc/console.c (grub_console_fini): Call
13548 grub_term_set_current() before grub_term_unregister().
13550 2007-05-04 Robert Millan <rmh@aybabtu.com>
13552 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13553 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13554 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13555 and update-grub_DATA.
13556 * conf/common.rmk: Build and install update-grub components.
13557 * conf/common.mk: Regenerate.
13558 * util/update-grub.in: New. Core of update-grub.
13559 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13560 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13561 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13562 * util/grub.d/README: New. Document grub.d directory layout.
13564 2007-05-01 Robert Millan <rmh@aybabtu.com>
13566 * util/grub-emu.c: Move initialization functions
13567 grub_util_biosdisk_init() and grub_init_all() before
13568 grub_util_biosdisk_get_grub_dev(), which relies on them.
13570 2007-04-19 Robert Millan <rmh@aybabtu.com>
13572 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13575 2007-04-18 Jerone Young <jerone@gmail.com>
13577 * kernel/elf.c: Add missing parenthesis for conditional statement
13580 2007-04-10 Jerone Young <jerone@gmail.com>
13582 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13583 continue on and look for device node with real device name.
13585 2007-04-10 Jerone Young <jerone@gmail.com>
13587 * configure.ac: Add argument for autoconf to use transformation
13589 * Makefile.in: Add autoconf package transformation code.
13590 * util/i386/pc/grub-install.in: Likewise.
13591 * util/powerpc/ieee1275/grub-install.in: Likewise.
13593 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13595 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13596 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13597 (EXT2_REVISION): Likewise.
13598 (EXT2_INODE_SIZE): Likewise.
13599 (struct grub_ext2_block_group): Added a missing member
13601 (grub_ext2_read_inode): Divide by the inode size in a superblock
13602 instead of 128 to obtain INODES_PER_BLOCK.
13603 Use the macro EXT2_INODE_SIZE instead of directly using
13604 SBLOCK->INODE_SIZE.
13606 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13608 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13609 superblock instead of the structure size to compute an
13610 offset. This fixes the problem that GRUB could not read a
13611 filesystem when inode size is different from 128-byte.
13613 2007-03-05 Marco Gerards <marco@gnu.org>
13615 * normal/main.c (read_config_file): When "menu" is not set, create
13616 an initial context.
13618 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13620 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13621 (HEAP_LIMIT): New macro.
13622 (grub_claim_heap): Claim memory up to `heaplimit'.
13624 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13626 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13627 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13628 (_start): Likewise.
13629 (grub_arch_modules_addr): Return address after `_end'.
13630 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13631 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13632 (add_segments): Calculate `_end' from phdr size and location.
13633 (ALIGN_UP): Moved to ...
13634 * include/grub/misc.h: here.
13635 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13637 (GRUB_IEEE1275_MODULE_BASE): Removed.
13639 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13641 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13644 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13646 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13648 (grub_elf64_load_hook_t): Likewise.
13649 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13652 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13654 * kern/mm.c: Update copyright.
13655 (grub_mm_debug): Correct syntax error.
13656 (grub_mm_dump_free): New function.
13657 (grub_debug_free): Call `grub_free'.
13658 * include/grub/mm.h: Update copyright.
13659 (grub_mm_dump_free): Add declaration.
13661 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13663 * include/grub/ieee1275/ieee1275.h: Update copyright.
13664 * kern/powerpc/ieee1275/init.c: Likewise.
13665 * kern/powerpc/ieee1275/openfw.c: Likewise.
13667 * loader/powerpc/ieee1275/linux.c: Likewise.
13668 * include/grub/elfload.h: Likewise.
13669 * kern/elf.c: Likewise.
13670 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13672 (grub_elf64_load): Likewise.
13673 (grub_elf32_load_segment): Move to a nested function.
13674 (grub_elf64_load_segment): Likewise.
13676 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13678 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13680 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13681 (grub_heap_len): Likewise.
13682 (HEAP_SIZE): New macro.
13683 (grub_claim_heap): New function.
13684 (grub_machine_init): Don't claim heap directly. Call
13686 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13687 (grub_available_iterate): New function.
13689 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13691 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13692 * configure.ac: Use it for testing the HOST and TARGET compilers.
13694 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13696 * Makefile.in (enable_grub_emu): New variable.
13697 * configure.ac (--enable-grub-emu): New option.
13698 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13699 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13700 * conf/i386-pc.rmk: Likewise.
13701 * conf/powerpc-ieee1275.rmk: Likewise.
13702 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13704 2006-12-12 Marco Gerards <marco@gnu.org>
13706 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13708 * kern/env.c (grub_env_unset): Don't free the member `value' when
13709 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13712 * normal/main.c (current_menu): Removed.
13713 (free_menu): Unset the `menu' environment variable.
13714 (grub_normal_menu_addentry): Make use of the environment variable
13715 `menu', instead of using the global `current_menu'. Allocate
13716 memory for the sourcecode of this entry.
13717 (read_config_file): New argument `nested', changed all callers.
13718 Only in the case of a new context, initialize a new menu. Set the
13719 `menu' environment variable.
13720 (grub_normal_execute): Don't set and unset the environment
13721 variable `menu' here anymore. Only free the menu when leaving the
13724 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13727 2006-12-11 Marco Gerards <marco@gnu.org>
13729 * normal/menu_entry.c (run): Fix off by one bug so the last line
13730 is executed. Move the loader check to outside the loop.
13732 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13734 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13736 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13738 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13739 the number of sectors. Reported by Andrey Shuvikov
13740 <mr_hyro@yahoo.com>.
13742 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13744 * kern/disk.c (grub_disk_read): When there is a read error, always
13745 try to read only the necessary data.
13747 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13749 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13751 [GRUB_UTIL] (grub_raid_fini): Likewise.
13752 [GRUB_UTIL] (grub_lvm_init): Likewise.
13753 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13754 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13755 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13756 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13757 and grub_raid_fini().
13759 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13761 * include/grub/types.h (__unused): Rename to UNUSED.
13762 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13763 (grub_elf64_size): Likewise.
13765 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13767 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13768 grub_error_push and grub_error_pop in the error-handling path.
13769 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13772 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13774 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13775 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13777 (kernel_elf_SOURCES): Likewise.
13778 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13779 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13780 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13781 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13782 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13783 (elf_mod_SOURCES): New variable.
13784 (elf_mod_CFLAGS): Likewise.
13785 (elf_mod_LDFLAGS): Likewise.
13786 * include/grub/types.h (__unused): New macro.
13787 * include/grub/elfload.h: New file.
13788 * kern/elf.c: Likewise.
13789 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13790 (ELF32_LOADMASK): New macro.
13791 (ELF64_LOADMASK): Likewise.
13792 (vmlinux): Removed.
13793 (grub_linux_load32): New function.
13794 (grub_linux_load64): Likewise.
13795 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13796 Use grub_elf_t instead of grub_file_t.
13798 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13800 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13801 `catch_result' to struct set_color_args.
13803 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13805 * normal/menu.c: Include grub/script.h.
13806 * normal/menu_entry.c: Likewise.
13807 * include/grub/normal.h: Do not include grub/script.h.
13809 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13811 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13813 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13815 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13817 (grub_disk_close): Print debug messages when closing a disk.
13818 (grub_disk_read): Print debug messages when disk read fails.
13819 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13821 * kern/partition.c: Include misc.h.
13822 (grub_partition_iterate): Print debug messages when detecting
13825 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13827 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13829 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13831 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13833 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13834 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13836 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13838 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13839 instead of sizeof(lv). Patch by Michael Guntsche.
13841 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13843 * disk/lvm.c: Rename VGS to VG_LIST.
13844 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13845 (grub_lvm_open): Likewise.
13846 Thanks to Michael Guntsche for finding this bug.
13848 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13850 * configure.ac (AC_INIT): Bumped to 1.95.
13852 2006-10-14 Robert Millan <rmh@aybabtu.com>
13854 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13855 with "/dev/.static/dev/md".
13857 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13859 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13860 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13861 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13862 DRIVE_NAME are always freed.
13864 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13865 DOS_PART, as a DOS partition is counted from one instead of zero
13866 now. Reported by Robert Millan.
13868 2006-10-14 Robert Millan <rmh@aybabtu.com>
13870 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13871 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13872 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13873 string returned by grub_guess_root_device.
13874 * util/i386/pc/grub-setup.c: Likewise.
13875 * util/i386/pc/grub-probefs.c: Likewise.
13877 * util/i386/pc/grub-probefs.c: Rename to ...
13878 * util/i386/pc/grub-probe.c: ... this.
13879 * DISTLIST: Remove grub-probefs, add grub-probe.
13880 * conf/i386-efi.rmk: Likewise.
13881 * conf/i386-pc.rmk: Likewise.
13882 * util/i386/pc/grub-install.in: Likewise.
13884 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13885 choose which information we want to print.
13887 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13889 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13890 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13891 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13892 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13893 video/readers/tga.c and video/i386/pc/vbeutil.c.
13895 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13897 Added support for RAID and LVM.
13899 * disk/lvm.c: New file.
13900 * disk/raid.c: Likewise.
13901 * include/grub/lvm.h: Likewise.
13902 * include/grub/raid.h: Likewise.
13903 * include/grub/util/lvm.h: Likewise.
13904 * include/grub/util/raid.h: Likewise.
13905 * util/lvm.c: Likewise.
13906 * util/raid.c: Likewise.
13908 * include/grub/disk.h (grub_disk_dev_id): Add
13909 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13910 (grub_disk_get_size): New prototype.
13911 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13912 returns a partition.
13913 (grub_disk_get_size): New function.
13915 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13916 verbatim if grub_install_dos_part is -2.
13918 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13921 * util/i386/pc/grub-setup.c (setup): New argument
13922 MUST_EMBED. Force embedding of GRUB when the argument is
13923 true. Close FILE before returning.
13924 (main): Add support for RAID and LVM.
13926 * conf/common.rmk: Add RAID and LVM modules.
13927 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13929 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13931 * kern/misc.c (grub_strstr): New function.
13932 * include/grub/misc.h (grub_strstr): New prototype.
13934 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13936 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13938 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13940 * kern/misc.c (grub_strtoull): Guess the base only if not
13943 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13945 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13948 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13950 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13952 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13953 Remove `flags' argument. All callers changed.
13954 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13955 (IEEE1275_IHANDLE_INVALID): New variable.
13956 (IEEE1275_CELL_INVALID): New variable.
13957 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13958 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13959 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13960 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13961 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13962 codes from Open Firmware. All callers updated.
13963 (grub_ieee1275_next_property): Directly return Open Firmware return
13965 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13966 Standardize error checking from `grub_ieee1275_get_property'.
13967 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13968 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13970 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13972 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13973 `instance_to_package_args' to `instance_to_path_args'.
13975 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13976 `grub_ieee1275_chosen'.
13978 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13979 `grub_ieee1275_interpret'.
13981 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13983 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13985 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13987 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13988 (__cmpdi): Likewise.
13990 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13991 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13994 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13996 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13997 to type `grub_ssize_t'.
13998 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
14000 2006-09-22 Marco Gerards <marco@gnu.org>
14002 * normal/script.c (grub_script_create_cmdmenu): Skip leading
14005 2006-09-22 Marco Gerards <marco@gnu.org>
14007 * commands/echo.c: New file.
14009 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
14011 * conf/common.rmk (echo_mod_SOURCES): New variable.
14012 (echo_mod_CFLAGS): Likewise.
14013 (echo_mod_LDFLAGS): Likewise.
14015 2006-09-22 Marco Gerards <marco@gnu.org>
14017 * normal/main.c (get_line): Malloc memory instead of using
14018 preallocated memory. Removed the arguments `cmdline' and
14019 `max_len'. Updated all callers.
14021 2006-09-22 Marco Gerards <marco@gnu.org>
14023 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
14024 (normal_mod_DEPENDENCIES): Likewise.
14026 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
14027 (normal_mod_DEPENDENCIES): Likewise.
14029 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
14031 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
14033 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
14035 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
14036 (normal_mod_DEPENDENCIES): Likewise.
14037 * conf/i386-pc.mk: Regenerate.
14038 * conf/i386-efi.mk: Likewise
14039 * conf/common.mk: Likewise.
14040 * conf/powerpc-ieee1275.mk: Likewise.
14041 * conf/sparc64-ieee1275.mk: Likewise.
14043 2006-09-22 Robert Millan <rmh@aybabtu.com>
14045 Sync with i386 version.
14046 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
14047 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
14049 2006-09-21 Robert Millan <rmh@aybabtu.com>
14051 Import from GRUB Legacy (lib/device.c):
14052 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14053 (init_device_map) [__linux__]: Add support for I2O devices.
14055 2006-09-14 Marco Gerards <marco@gnu.org>
14057 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14060 2006-09-14 Robert Millan <rmh@aybabtu.com>
14062 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14065 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14067 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14068 before adding it to device.map.
14070 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14072 * genmk.rb: Let GCC generate dependencies the first time it
14073 compiles a file; using the -MD option.
14074 * conf/common.mk: Regenerate.
14075 * conf/i386-pc.mk: Likewise.
14076 * conf/i386-efi.mk: Likewise.
14077 * conf/powerpc-ieee1275.mk: Likewise.
14078 * conf/sparc64-ieee1275.mk: Likewise.
14080 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14082 Move the prototypes of grub_setjmp and grub_longjmp to
14083 cpu/setjmp.h, so that each architecture may specify different
14086 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14087 (grub_longjmp): Likewise.
14088 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14089 (grub_longjmp): Likewise.
14090 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14091 (grub_longjmp): Likewise.
14093 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14094 [!GRUB_UTIL] (grub_longjmp): Removed.
14096 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14098 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14099 "color!" method does not return any value.
14101 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14103 * include/grub/bitmap.h: New file.
14105 * include/grub/i386/pc/vbeutil.h: Likewise.
14107 * video/bitmap.c: Likewise.
14109 * video/readers/tga.c: Likewise.
14111 * video/i386/pc/vbeutil.c: Likewise.
14113 * commands/videotest.c: Code cleanup and updated to reflect to new
14116 * term/gfxterm.c: Likewise.
14118 * video/video.c: Likewise.
14120 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14121 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14122 (bitmap_mod_SOURCES): New entry.
14123 (bitmap_mod_CFLAGS): Likewise.
14124 (bitmap_mod_LDFLAGS): Likewise.
14125 (tga_mod_SOURCES): Likewise.
14126 (tga_mod_CFLAGS): Likewise.
14127 (tga_mod_LDFLAGS): Likewise.
14129 * include/grub/video.h (grub_video_blit_operators): New enum type.
14130 (grub_video_render_target): Changed as forward declaration and moved
14131 actual definition to be video driver specific.
14132 (grub_video_adapter.blit_bitmap): Added blitting operator.
14133 (grub_video_adapter.blit_render_target): Likewise.
14134 (grub_video_blit_bitmap): Likewise.
14135 (grub_video_blit_render_target): Likewise.
14137 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14138 driver specific render target definition.
14139 (grub_video_vbe_map_rgba): Added driver internal helper.
14140 (grub_video_vbe_unmap_color): Updated to use
14141 grub_video_i386_vbeblit_info.
14142 (grub_video_vbe_get_video_ptr): Likewise.
14144 * include/grub/i386/pc/vbeblit.h
14145 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14146 grub_video_i386_vbeblit_info.
14147 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14148 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14149 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14150 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14151 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14152 (grub_video_i386_vbeblit_index_index): Likewise.
14153 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14154 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14155 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14156 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14158 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14161 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14162 include/grub/i386/pc/vbeblit.h.
14164 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14165 Updated to use grub_video_i386_vbeblit_info.
14166 (grub_video_i386_vbefill_R8G8B8): Likewise.
14167 (grub_video_i386_vbefill_index): Likewise.
14168 (grub_video_i386_vbefill): Added generic filler.
14170 * video/i386/pc/vbefill.c: Updated to reflect changes on
14171 include/grub/i386/pc/vbefill.h.
14173 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14174 grub_video_i386_vbeblit_info.
14175 (grub_video_vbe_unmap_color): Likewise.
14176 (grub_video_vbe_blit_glyph): Likewise.
14177 (grub_video_vbe_scroll): Likewise.
14178 (grub_video_vbe_draw_pixel): Removed function.
14179 (grub_video_vbe_get_pixel): Likewise.
14180 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14181 updated code to use it.
14182 (common_blitter): Added common blitter for render target and bitmap.
14183 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14184 (grub_video_vbe_blit_render_target): Likewise.
14186 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14188 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14189 is in text mode if there is no console control protocol instance
14192 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14194 * include/grub/video.h: Code cleanup.
14196 * include/grub/i386/pc/vbe.h: Likewise.
14198 * video/i386/pc/vbe.c: Likewise.
14200 * video/i386/pc/vbeblit.c: Likewise.
14202 * video/i386/pc/vbefill.c: Likewise.
14204 * video/video.c: Likewise. Also added more comments.
14206 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14208 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14209 (struct grub_biosdisk_dap): Likewise.
14211 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14212 linkage settings for all functions.
14214 2006-07-12 Marco Gerards <marco@gnu.org>
14216 * configure.ac (--enable-mm-debug): Fix typo.
14218 * genkernsyms.sh.in: Use proper quoting for `CC'.
14220 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14222 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14223 (normal_mod_ASFLAGS): Remove "-m32".
14225 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14227 * util/misc.c: Include config.h.
14228 [!HAVE_MEMALIGN]: Do not include malloc.h.
14229 (grub_memalign): Use posix_memalign, if present. Then, use
14230 memalign, if present. Otherwise, emit an error.
14232 * util/grub-emu.c: Do not include malloc.h.
14234 * include/grub/util/misc.h: Include unistd.h. This is required for
14235 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14236 D. Eades III <hde@foobar-qux.org>.
14238 * configure.ac (AC_GNU_SOURCE): Added.
14239 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14242 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14244 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14245 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14247 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14249 * include/grub/types.h (grub_host_addr_t): Rename to
14250 grub_target_addr_t.
14251 (grub_host_off_t): Rename to grub_target_off_t.
14252 (grub_host_size_t): Rename to grub_target_size_t.
14253 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14254 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14256 * include/grub/kernel.h (struct grub_module_header): Change type
14257 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14258 (grub_module_info): Likewise.
14260 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14262 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14263 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14264 Velazquez <jesus.velazquez@gmail.com>.
14266 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14268 Count partitions from 1 instead of 0 in the string representation
14269 of partitions. Still use 0-based internally.
14271 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14272 (sun_partition_map_iterate): Use grub_partition_t instead of
14273 struct grub_partition *. Cast DESC->START_CYLINDER to
14274 grub_uint64_t after converting the endian.
14275 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14276 (sun_partition_map_get_name): Add 1 to P->INDEX.
14278 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14280 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14282 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14283 zero instead of one.
14284 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14285 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14287 * partmap/apple.c (apple_partition_map_iterate): Change the type
14288 of POS to unsigned.
14289 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14290 (apple_partition_map_get_name): Add 1 into P->INDEX.
14292 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14293 of POS to unsigned.
14294 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14295 calculate the offset of a partition.
14296 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14297 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14299 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14300 SECTOR to grub_disk_addr_t.
14301 (acorn_partition_map_iterate): Likewise.
14302 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14303 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14305 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14307 * kern/i386/pc/init.c (make_install_device): Add 1 into
14308 GRUB_INSTALL_DOS_PART.
14310 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14313 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14315 Clean up the code to support 64-bit addressing in disks and
14316 files. This change is not enough for filesystems yet.
14318 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14319 type of "start" to grub_uint64_t.
14320 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14321 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14322 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14325 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14326 to grub_disk_addr_t.
14328 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14331 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14333 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14336 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14338 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14340 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14342 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14343 to grub_off_t, to detect an error from grub_file_seek.
14344 (grub_multiboot_load_elf32): Likewise.
14346 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14347 maximum unsigned long value when an overflow is detected.
14348 (grub_strtoull): New function.
14349 (grub_divmod64): Likewise.
14350 (grub_lltoa): use grub_divmod64.
14352 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14354 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14355 the pointer to next character. Use grub_strtoull instead of
14357 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14358 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14361 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14362 return value is signed.
14363 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14364 test if OFFSET is less than zero, as OFFSET is unsigned now.
14366 * kern/disk.c (struct grub_disk_cache): Change the type of
14367 "sector" to grub_disk_addr_t.
14368 (grub_disk_cache_get_index): Change the type of SECTOR to
14369 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14370 unsigned after shifting.
14371 (grub_disk_cache_invalidate): Change the type of SECTOR to
14373 (grub_disk_cache_unlock): Likewise.
14374 (grub_disk_cache_store): Likewise.
14375 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14376 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14377 grub_disk_addr_t and grub_uint64_t, respectively.
14378 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14379 body, as the value of OFFSET is tweaked by
14380 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14381 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14383 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14384 body, as the value of OFFSET is tweaked by
14385 grub_disk_check_range. Change the types of LEN and N to
14388 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14389 and "saved_offset" to grub_off_t.
14390 (test_header): Cast BUF to char *.
14391 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14393 (grub_gzio_read): Change the types of OFFSET and SIZE to
14394 grub_off_t and grub_size_t, respectively.
14396 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14398 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14399 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14400 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14401 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14402 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14404 * include/grub/types.h (grub_off_t): Unconditionally set to
14406 (grub_disk_addr_t): Changed to grub_uint64_t.
14408 * include/grub/partition.h (struct grub_partition): Change the
14409 types of "start", "len" and "offset" to grub_disk_addr_t,
14410 grub_uint64_t and grub_disk_addr_t, respectively.
14411 (grub_partition_get_start): Return grub_disk_addr_t.
14412 (grub_partition_get_len): Return grub_uint64_t.
14414 * include/grub/misc.h (grub_strtoull): New prototype.
14415 (grub_divmod64): Likewise.
14417 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14418 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14419 grub_off_t, respectively.
14420 All callers and references changed.
14422 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14423 grub_size_t in "read".
14424 All callers and references changed.
14426 * include/grub/file.h (struct grub_file): Change the types of
14427 "offset" and "size" to grub_off_t and grub_off_t,
14428 respectively. Change the type of SECTOR to grub_disk_addr_t in
14430 (grub_file_read): Change the type of LEN to grub_size_t.
14431 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14433 (grub_file_size): Return grub_off_t.
14434 (grub_file_tell): Likewise.
14435 All callers and references changed.
14437 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14438 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14440 (struct grub_disk): Change the type of "total_sectors" to
14441 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14443 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14444 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14445 (grub_disk_write): Likewise.
14446 All callers and references changed.
14448 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14449 char * for grub_strncmp to silence gcc.
14450 (grub_iso9660_mount): Likewise.
14451 (grub_iso9660_mount): Likewise.
14452 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14454 (grub_iso9660_iterate_dir): Likewise.
14455 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14457 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14458 LEN to grub_disk_addr_t and grub_size_t, respectively.
14460 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14462 * fs/jfs.c (grub_jfs_read_file): Likewise.
14464 * fs/minix.c (grub_jfs_read_file): Likewise.
14466 * fs/sfs.c (grub_jfs_read_file): Likewise.
14468 * fs/ufs.c (grub_jfs_read_file): Likewise.
14470 * fs/xfs.c (grub_jfs_read_file): Likewise.
14472 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14473 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14476 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14477 BLKNR to -1 instead of returning GRUB_ERRNO.
14478 (grub_ext2_read_file): Change the types of SECTOR and
14479 LEN to grub_disk_addr_t and grub_size_t, respectively.
14481 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14482 LEN to grub_disk_addr_t and grub_size_t, respectively.
14484 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14487 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14488 string. Do not cast SECTOR explicitly.
14490 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14491 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14492 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14493 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14494 over 2TB and LBA mode is not supported, raise an error.
14495 (get_safe_sectors): New function.
14496 (grub_biosdisk_read): Use get_safe_sectors.
14497 (grub_biosdisk_write): Likewise.
14499 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14500 (grub_efidisk_write): Likewise.
14502 * disk/loopback.c (delete_loopback): Cosmetic changes.
14503 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14505 (grub_loopback_open): Likewise.
14506 (grub_loopback_read): Likewise. Also, change the type of POS to
14507 grub_off_t, and fix the usage of grub_memset.
14509 * commands/i386/pc/play.c: Include grub/machine/time.h.
14511 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14514 * commands/configfile.c: Include grub/env.h.
14516 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14517 GRUB_ERRNO directly instead. Change the type of POS to
14518 grub_off_t. Follow the coding standard.
14520 * commands/blocklist.c: Include grub/partition.h.
14521 (grub_cmd_blocklist): Return an error if the underlying device is
14522 not a disk. Take the starting sector of a partition into account,
14523 if a partition is used.
14525 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14527 (lba_mode): Support 64-bit addresses.
14528 (chs_mode): Likewise.
14529 (copy_buffer): Adapted to the new offsets of a length field and a
14531 (blocklist_default_start): Allocate 64-bit space.
14533 * boot/i386/pc/boot.S (force_lba): Removed.
14534 (boot_drive): Moved to under KERNEL_SECTOR.
14535 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14537 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14539 (lba_mode): Refactored to support a 64-bit address. More size
14541 (setup_sectors): Likewise.
14543 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14545 * DISTLIST: Added include/grub/i386/linux.h. Removed
14546 include/grub/i386/pc/linux.h
14548 * configure.ac (AC_INIT): Bumped to 1.94.
14550 * config.guess: Updated from gnulib.
14551 * config.sub: Likewise.
14552 * install-sh: Likewise.
14553 * mkinstalldirs: Likewise.
14555 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14557 * conf/common.rmk (grub_modules_init.lst): Depended on
14558 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14561 * genmk.rb (PModule::rule): Reverted the previous change.
14563 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14565 * conf/common.rmk (grub_modules_init.lst): Depends on
14566 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14567 that the target does not exist before producing.
14568 (grub_modules_init.h): Remove the target before generating.
14569 (grub_emu_init.c): Likewise.
14571 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14573 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14575 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14576 for the target-specific tests. Make sure that we also have the
14577 up-to-date target variables for those tests.
14579 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14581 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14582 (PModule::rule): Likewise.
14584 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14586 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14587 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14588 target-specific flags should be prefixed.
14589 (PModule::rule): Likewise.
14591 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14593 * configure.ac (CMP): Check if cmp is available explicitly.
14595 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14597 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14598 (target_cpu): New variable.
14599 (pkglibdir): Use target_cpu instead of host_cpu.
14601 * util/i386/pc/grub-install.in (host_cpu): Removed.
14602 (target_cpu): New variable.
14603 (pkglibdir): Use target_cpu instead of host_cpu.
14605 * util/genmoddep.c: Removed.
14607 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14608 instead of GRUB_HOST_SIZEOF_VOID_P.
14609 * kern/dl.c: Likewise.
14611 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14613 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14614 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14615 (GRUB_TARGET_SIZEOF_LONG): ... this.
14616 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14617 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14618 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14620 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14621 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14622 (GRUB_TARGET_SIZEOF_LONG): ... this.
14623 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14624 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14625 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14627 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14628 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14629 (GRUB_TARGET_SIZEOF_LONG): ... this.
14630 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14631 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14633 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14634 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14635 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14636 instead of GRUB_HOST_SIZEOF_LONG.
14637 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14638 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14639 GRUB_CPU_WORDS_BIGENDIAN.
14640 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14641 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14644 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14645 (genmoddep_SOURCES): Likewise.
14646 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14647 (genmoddep_SOURCES): Likewise.
14648 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14649 (genmoddep_SOURCES): Likewise.
14650 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14652 (genmoddep_SOURCES): Likewise.
14654 * genmoddep.awk: New file.
14656 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14657 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14658 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14659 (PModule::rule): Likewise.
14660 (Program::rule): Likewise.
14661 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14662 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14665 * configure.ac: Rewritten intensively to use host and target
14666 instead of build and host, respectively.
14668 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14669 (host_cpu): Removed.
14670 (target_cpu): New variable.
14671 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14672 (BUILD_CC): Removed.
14673 (BUILD_CFLAGS): Likewise.
14674 (BUILD_CPPFLAGS): Likewise.
14675 (TARGET_CC): New variable.
14676 (TARGET_CFLAGS): Likewise.
14677 (TARGET_CPPFLAGS): Likewise.
14678 (TARGET_LDFLAGS): Likewise.
14680 (include): Use target_cpu instead of host_cpu.
14681 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14683 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14685 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14687 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14688 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14689 field 'false' to 'exec_on_false'.
14690 (grub_script_create_cmdif): Renamed argument names to reflect above
14693 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14695 * normal/script.c (grub_script_create_cmdif): Likewise.
14697 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14699 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14701 (grub_hfsplus_btree_recptr): Likewise.
14702 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14703 FILEBLOCK both to pass a block number and store next block
14705 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14706 overflow file correctly. Specify errors appropriately, because
14707 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14708 grub_hfsplus_btree_recptr to get the pointer to a found key.
14709 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14712 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14714 (_linux_mod_SOURCES): New variable.
14715 (_linux_mod_CFLAGS): Likewise.
14716 (_linux_mod_LDFLAGS): Likewise.
14717 (linux_mod_SOURCES): Likewise.
14718 (linux_mod_CFLAGS): Likewise.
14719 (linux_mod_LDFLAGS): Likewise.
14721 * DISTLIST: Added loader/i386/efi/linux.c,
14722 loader/i386/efi/linux_normal.c and
14723 include/grub/i386/efi/loader.h.
14725 * loader/i386/efi/linux.c: New file.
14726 * loader/i386/efi/linux_normal.c: Likewise.
14727 * include/grub/i386/efi/loader.h: Likewise.
14729 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14731 * commands/blocklist.c: New file.
14733 * DISTLIST: Added commands/blocklist.c.
14735 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14736 color for the background, and a darker color for the foreground.
14737 (grub_console_checkkey): Return READ_KEY.
14738 (grub_console_cls): Set the background to
14739 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14741 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14743 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14744 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14746 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14749 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14750 BG. The spec is wrong again.
14752 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14754 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14756 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14757 commands/blocklist.c.
14758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14760 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14761 (blocklist_mod_SOURCES): New variable.
14762 (blocklist_mod_CFLAGS): Likewise.
14763 (blocklist_mod_LDFLAGS): Likewise.
14765 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14767 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14769 (lba_mode): Use %eax more intensively to reduce the code size.
14771 2006-05-20 Marco Gerards <marco@gnu.org>
14773 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14775 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14777 (script): Accept leading newlines.
14778 (newlines): New rule to describe 0 or more newlines.
14779 (commands): Accept `command' with trailing newline. Fixed the
14780 order in which arguments were passed to `grub_script_add_cmd'.
14781 Accept commands separated by newlines.
14782 (function): Changed to accept newlines.
14783 (menuentry) Rewritten.
14785 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14786 front of the list, instead of to the end.
14788 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14790 * util/i386/pc/grub-install.in (bindir): New variable.
14791 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14792 Shaver <lbgwjl@gmail.com>.
14794 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14796 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14797 grub/machine/linux.h
14798 * loader/i386/pc/linux.c: Likewise.
14800 * include/grub/i386/pc/linux.h: Moved to ...
14801 * include/grub/i386/linux.h: ... here.
14803 * include/grub/i386/linux.h (struct linux_kernel_params): New
14806 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14808 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14810 (grub_video_vbe_blit_glyph): Likewise.
14811 (grub_video_vbe_blit_bitmap): Likewise.
14812 (grub_video_vbe_blit_render_target): Likewise.
14814 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14816 * configure.ac (--with-platform): Properly quote the square
14819 2006-05-08 Marco Gerards <marco@gnu.org>
14821 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14823 (kernel_elf_HEADERS): ...to this. Updated all users.
14824 (grubof_symlist.c): Renamed from this...
14825 (kernel_elf_symlist.c): ...to this. Updated all users.
14826 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14827 (grubof_SOURCES): Renamed from this...
14828 (kernel_elf_SOURCES): ...to this.
14829 (grubof_HEADERS): Renamed from this...
14830 (kernel_elf_HEADERS): ...to this.
14831 (grubof_CFLAGS): Renamed from this...
14832 (kernel_elf_CFLAGS): ...to this.
14833 (grubof_ASFLAGS): Renamed from this...
14834 (kernel_elf_ASFLAGS): ...to this.
14835 (grubof_LDFLAGS): Renamed from this...
14836 (kernel_elf_LDFLAGS): ...to this.
14838 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14840 (kernel_elf_HEADERS): ...to this. Updated all users.
14841 (grubof_symlist.c): Renamed from this...
14842 (kernel_elf_symlist.c): ...to this. Updated all users.
14843 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14844 (grubof_SOURCES): Renamed from this...
14845 (kernel_elf_SOURCES): ...to this.
14846 (grubof_HEADERS): Renamed from this...
14847 (kernel_elf_HEADERS): ...to this.
14848 (grubof_CFLAGS): Renamed from this...
14849 (kernel_elf_CFLAGS): ...to this.
14850 (grubof_ASFLAGS): Renamed from this...
14851 (kernel_elf_ASFLAGS): ...to this.
14852 (grubof_LDFLAGS): Renamed from this...
14853 (kernel_elf_LDFLAGS): ...to this.
14855 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14856 `kernel.elf' instead of `grubof'.
14858 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14860 Add --with-platform to configure. Use pkglibdir instead of
14861 pkgdatadir. This is reported by Roger Leigh.
14863 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14864 (host_vendor): Likewise.
14865 (host_os): Likewise.
14866 (pkgdatadir): Likewise.
14867 (platform): New variable.
14868 (pkglibdir): Likewise.
14869 Use PKGLIBDIR instead of PKGDATADIR.
14871 * util/i386/pc/grub-install.in (datadir): Removed.
14872 (host_vendor): Likewise.
14873 (host_os): Likewise.
14874 (pkgdatadir): Likewise.
14875 (platform): New variable.
14876 (pkglibdir): Likewise.
14877 Use PKGLIBDIR instead of PKGDATADIR.
14879 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14880 instead of GRUB_DATADIR.
14882 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14884 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14887 * configure.ac (--with-platform): New option.
14888 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14890 * Makefile.in: Include a makefile based on PLATFORM instead of
14892 (pkgdatadir): Not appended by the machine type.
14893 (pkglibdir): Appended by the machine type.
14894 (host_vendor): Removed.
14895 (platform): New variable.
14896 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14897 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14898 (uninstall): Likewise.
14900 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14902 Use the environment context in the menu. Remove the commands
14903 "default" and "timeout", and use variables instead.
14905 * normal/menu.c: Include grub/env.h.
14906 (print_entry): Cast TITLE to silence gcc.
14907 (get_timeout): New function.
14908 (set_timeout): Likewise.
14909 (get_entry_number): Likewise.
14910 (run_menu): Use a default entry, a fallback entry and a timeout
14911 in the environment variables "default", "fallback" and
14912 "timeout". Also, tweak the default entry if it is not within the
14913 current menu entries.
14914 (grub_menu_run): Use a fallback entry in the environment variable
14917 * normal/main.c (read_config_file): Do not initialize
14918 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14920 (grub_normal_execute): Use a data slot to store the menu.
14922 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14923 fallback_entry and timeout.
14924 (struct grub_menu_list): Removed.
14925 (grub_menu_list_t): Likewise.
14926 (struct grub_context): Likewise.
14927 (grub_context_t): Likewise.
14928 (grub_context_get): Likewise.
14929 (grub_context_get_current_menu): Likewise.
14930 (grub_context_push_menu): Likewise.
14931 (grub_context_pop_menu): Likewise.
14932 (grub_default_init): Likewise.
14933 (grub_default_fini): Likewise.
14934 (grub_timeout_init): Likewise.
14935 (grub_timeout_fini): Likewise.
14937 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14939 (normal_mod_SOURCES): Removed normal/context.c.
14941 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14942 commands/default.c, commands/timeout.c and normal/context.c.
14943 (normal_mod_SOURCES): Removed normal/context.c.
14945 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14946 commands/timeout.c and normal/context.c.
14947 (normal_mod_SOURCES): Removed normal/context.c.
14949 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14950 commands/default.c, commands/timeout.c and normal/context.c.
14951 (normal_mod_SOURCES): Removed normal/context.c.
14953 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14955 (default_mod_SOURCES): Removed.
14956 (default_mod_CFLAGS): Likewise.
14957 (default_mod_LDFLAGS): Likewise.
14958 (timeout_mod_SOURCES): Removed.
14959 (timeout_mod_CFLAGS): Likewise.
14960 (timeout_mod_LDFLAGS): Likewise.
14962 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14965 * commands/default.c: Removed.
14966 * commands/timeout.c: Likewise.
14967 * normal/context.c: Likewise.
14969 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14971 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14973 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14975 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14976 "next" to "prev" for readability.
14977 (struct grub_env_sorted_var): New struct.
14978 (grub_env_context): Renamed to ...
14979 (initial_context): ... this.
14980 (grub_env_var_context): Renamed to ...
14981 (current_context): ... this.
14982 (grub_env_find): Look only at CURRENT_CONTEXT.
14983 (grub_env_context_open): Rewritten to copy exported variables from
14985 (grub_env_context_close): Rewritten according to the new
14986 scheme. Also, add an assertion to prevent the initial context from
14988 (grub_env_insert): Removed the code for the sorted list.
14989 (grub_env_remove): Likewise.
14990 (grub_env_export): Simply mark the variable with
14991 GRUB_ENV_VAR_GLOBAL.
14992 (grub_env_set): A cosmetic change for naming consistency.
14993 (grub_env_get): Likewise.
14994 (grub_env_unset): Likewise.
14995 (grub_env_iterate): Rewritten to sort variables within this
14997 (grub_register_variable_hook): Fixed for naming consistency. Call
14998 grub_env_find again, only if NAME is not found at the first time.
14999 (mangle_data_slot_name): New function.
15000 (grub_env_set_data_slot): Likewise.
15001 (grub_env_get_data_slot): Likewise.
15002 (grub_env_unset_data_slot): Likewise.
15004 * include/grub/env.h (grub_env_var_type): New enum.
15005 (GRUB_ENV_VAR_LOCAL): New constant.
15006 (GRUB_ENV_VAR_GLOBAL): Likewise.
15007 (GRUB_ENV_VAR_DATA): Likewise.
15008 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
15010 (grub_env_set): Replace VAR with NAME for consistency.
15011 (grub_register_variable_hook): Likewise.
15012 (grub_env_export): Specify the name of the argument.
15013 (grub_env_set_data_slot): New prototype.
15014 (grub_env_get_data_slot): Likewise.
15015 (grub_env_unset_data_slot): Likewise.
15017 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15019 Extend the loader so that GRUB can accept a loader which comes
15020 back to GRUB when a loaded image exits. Also, this change adds
15021 support for a chainloader on EFI.
15023 * term/efi/console.c: Include grub/misc.h.
15024 (grub_console_checkkey): Display a scan code on the top for
15025 debugging. This will be removed once the EFI port gets stable.
15026 Correct the scan code mapping.
15028 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
15029 allocate memory from larger regions, in order to reduce the number
15030 of allocated regions. Otherwise, the MacOSX loader panics.
15031 (filter_memory_map): Avoid less than 1MB for compatibility with
15033 (add_memory_regions): Allocate from the tail of a region, if
15034 possible, to avoid allocating a region near to 1MB, for the MacOSX
15037 * kern/efi/init.c (grub_efi_set_prefix): Specify
15038 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
15040 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
15041 argument IMAGE_HANDLE and specify it to get a loaded image.
15042 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
15043 grub_efi_get_loaded_image.
15044 (grub_efi_get_filename): Divide the length by the size of
15046 (grub_efi_get_device_path): New function.
15047 (grub_efi_print_device_path): Print End Device Path nodes. Divide
15048 the length by the size of grub_efi_char16_t for a file path device
15051 * kern/loader.c (grub_loader_noreturn): New variable.
15052 (grub_loader_set): Accept a new argument NORETURN. Set
15053 GRUB_LOADER_NORETURN to NORETURN.
15054 All callers changed.
15055 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15058 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15060 (grub_efi_get_loaded_image): Take an argument to specify an image
15063 * include/grub/loader.h (grub_loader_set): Added one more argument
15066 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15067 instead of grub_efi_open_protocol.
15068 (grub_efidisk_get_device_name): Likewise.
15069 (grub_efidisk_close): Print a newline.
15070 (grub_efidisk_get_device_handle): Fixed to use
15071 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15072 GRUB_EFI_DEVICE_PATH_TYPE.
15074 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15075 * kern/efi/efi.c (device_path_guid): ... here.
15077 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15079 (kernel_mod_HEADERS): Added efi/disk.h.
15080 (_chain_mod_SOURCES): New variable.
15081 (_chain_mod_CFLAGS): Likewise.
15082 (_chain_mod_LDFLAGS): Likewise.
15083 (chain_mod_SOURCES): Likewise.
15084 (chain_mod_CFLAGS): Likewise.
15085 (chain_mod_LDFLAGS): Likewise.
15087 * DISTLIST: Added include/grub/efi/chainloader.h,
15088 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15090 * include/grub/efi/chainloader.h: New file.
15091 * loader/efi/chainloader.c: Likewise.
15092 * loader/efi/chainloader_normal.c: Likewise.
15094 2006-04-30 Marco Gerards <marco@gnu.org>
15096 * commands/configfile.c (grub_cmd_source): New function.
15097 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15098 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15100 2006-04-30 Marco Gerards <marco@gnu.org>
15102 * normal/execute.c (grub_script_execute_cmd): Change the return
15103 type to `grub_err_t'. Correctly return the error.
15104 (grub_script_execute_cmdline): In case a command line is not a
15105 command or a function, try to interpret it as an assignment.
15107 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15109 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15110 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15111 skip a node whose name is obviously invalid as UTF-16,
15112 i.e. contains a NUL character. Stop the iteration when the last
15113 directory entry is found. Instead of using the return value of
15114 grub_hfsplus_btree_iterate_node, store the value in RET and use
15115 it, because the iterator can be stopped by the last directory
15118 2006-04-30 Marco Gerards <marco@gnu.org>
15120 * include/grub/env.h (grub_env_export): New prototype. Reported
15121 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15123 2006-04-30 Marco Gerards <marco@gnu.org>
15125 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15126 size of the extents in a catalog file record.
15128 2006-04-29 Marco Gerards <marco@gnu.org>
15130 * commands/configfile.c (grub_cmd_configfile): Execute the
15131 configfile within its own context.
15133 * include/grub/env.h (grub_env_context_open): New prototype.
15134 (grub_env_context_close): Likewise.
15136 * kern/env.c (grub_env): Removed.
15137 (grub_env_sorted): Likewise.
15138 (grub_env_context): New variable.
15139 (grub_env_var_context): Likewise.
15140 (grub_env_find): Search both the active context and the global
15142 (grub_env_context_open): New function.
15143 (grub_env_context_close): Likewise.
15144 (grub_env_insert): Likewise.
15145 (grub_env_remove): Likewise.
15146 (grub_env_export): Likewise.
15147 (grub_env_set): Changed to use helper functions to avoid code
15149 (grub_env_iterate): Rewritten so both the current context and the
15150 global context are being used.
15152 * normal/command.c (export_command): New function.
15153 (grub_command_init): Register the `export' function.
15155 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15157 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15158 explicitly to suppress gcc's warnings.
15159 * fs/fat.c (grub_fat_find_dir): Likewise.
15160 (grub_fat_label): Likewise.
15161 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15162 (grub_xfs_mount): Likewise.
15163 (grub_xfs_label): Likewise.
15164 * fs/affs.c (grub_affs_mount): Likewise.
15165 (grub_affs_label): Likewise.
15166 (grub_affs_iterate_dir): Likewise.
15167 * fs/sfs.c (grub_sfs_mount): Likewise.
15168 (grub_sfs_iterate_dir): Likewise.
15169 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15170 * fs/hfs.c (grub_hfs_mount): Likewise.
15171 (grub_hfs_cmp_catkeys): Likewise.
15172 (grub_hfs_find_dir): Likewise.
15173 (grub_hfs_dir): Likewise.
15174 (grub_hfs_label): Likewise.
15175 * fs/jfs.c (grub_jfs_mount): Likewise.
15176 (grub_jfs_opendir): Likewise.
15177 (grub_jfs_getent): Likewise.
15178 (grub_jfs_lookup_symlink): Likewise.
15179 (grub_jfs_label): Likewise.
15180 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15181 (grub_hfsplus_iterate_dir): Likewise.
15182 (grub_hfsplus_btree_iterate_node): Made static.
15184 * util/grub-emu.c (prefix): New variable.
15185 (grub_machine_set_prefix): New function.
15186 (main): Do not set the environment variable "prefix" here. Only
15187 set PREFIX, which is used later by grub_machine_set_prefix.
15189 * include/grub/video.h: Do not include grub/symbol.h.
15190 (grub_video_register): Not exported. This symbol is not defined in
15192 (grub_video_unregister): Likewise.
15193 (grub_video_iterate): Likewise.
15194 (grub_video_setup): Likewise.
15195 (grub_video_restore): Likewise.
15196 (grub_video_get_info): Likewise.
15197 (grub_video_get_blit_format): Likewise.
15198 (grub_video_set_palette): Likewise.
15199 (grub_video_get_palette): Likewise.
15200 (grub_video_set_viewport): Likewise.
15201 (grub_video_get_viewport): Likewise.
15202 (grub_video_map_color): Likewise.
15203 (grub_video_map_rgb): Likewise.
15204 (grub_video_map_rgba): Likewise.
15205 (grub_video_fill_rect): Likewise.
15206 (grub_video_blit_glyph): Likewise.
15207 (grub_video_blit_bitmap): Likewise.
15208 (grub_video_blit_render_target): Likewise.
15209 (grub_video_scroll): Likewise.
15210 (grub_video_swap_buffers): Likewise.
15211 (grub_video_create_render_target): Likewise.
15212 (grub_video_delete_render_target): Likewise.
15213 (grub_video_set_active_render_target): Likewise.
15215 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15217 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15219 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15220 config.h. Use 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/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15225 config.h. Use 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 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15230 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15231 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15232 instead of $(srcdir)/genkernsyms.sh.
15234 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15235 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15236 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15237 instead of $(srcdir)/genkernsyms.sh.
15239 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15242 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15244 (gensymlist.sh): New target.
15245 (genkernsyms.sh): Likewise.
15247 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15248 genkernsyms.sh.in and gensymlist.sh.in.
15250 * genkernsyms.sh: Removed.
15251 * gensymlist.sh: Likewise.
15253 * genkernsyms.sh.in: New file.
15254 * gensymlist.sh.in: Likewise.
15256 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15258 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15259 clobber "prefix", since we may have already set it manually.
15261 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15263 * kern/misc.c (abort): New alias for grub_abort.
15265 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15267 A new machine-specific function "grub_machine_set_prefix" is
15268 defined. This is called after loading modules, so that a prefix
15269 initialization can use modules. Also, this change adds an
15270 intensive debugging feature for the memory manager via the
15271 configure option "--enable-mm-debug".
15273 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15276 * kern/sparc64/ieee1275/init.c (abort): Removed.
15277 (grub_stop): Likewise.
15278 (grub_exit): New function.
15279 (grub_set_prefix): Renamed to ...
15280 (grub_machine_set_prefix): ... this.
15281 (grub_machine_init): Do not call grub_set_prefix.
15283 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15284 (grub_machine_set_prefix): ... this.
15285 (grub_machine_init): Do not call grub_set_prefix.
15287 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15288 (grub_machine_init): Do not set the prefix here.
15290 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15292 * kern/efi/init.c: Include grub/mm.h.
15293 (grub_efi_set_prefix): New function.
15295 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15296 (grub_efi_get_filename): New function.
15297 (grub_print_device_path): Renamed to ...
15298 (grub_efi_print_device_path): ... this.
15300 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15301 [MM_DEBUG] (grub_realloc): Likewise.
15302 [MM_DEBUG] (grub_free): Likewise.
15303 [MM_DEBUG] (grub_memalign): Likewise.
15304 [MM_DEBUG] (grub_mm_debug): New variable.
15305 [MM_DEBUG] (grub_debug_malloc): New function.
15306 [MM_DEBUG] (grub_debug_free): New function.
15307 [MM_DEBUG] (grub_debug_realloc): New function.
15308 [MM_DEBUG] (grub_debug_memalign): New function.
15310 * kern/misc.c (grub_abort): Print a newline to distinguish
15313 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15314 grub_set_root_dev after loading modules. This is necessary when
15315 setting a prefix depends on modules.
15317 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15318 (grub_efi_print_device_path): ... this.
15319 (grub_efi_get_filename): New prototype.
15320 (grub_efi_set_prefix): Likewise.
15322 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15324 (grub_efidisk_get_device_handle): New prototype.
15325 (grub_efidisk_get_device_name): Likewise.
15327 * include/grub/mm.h: Include config.h.
15328 (MM_DEBUG): Removed.
15329 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15330 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15331 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15332 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15333 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15334 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15335 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15336 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15337 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15339 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15341 * disk/efi/efidisk.c: Include grub/partition.h.
15342 (iterate_child_devices): New function.
15343 (add_device): First, compare only last device path nodes, so that
15344 devices are sorted by the types.
15345 (grub_efidisk_get_device_handle): New function.
15346 (grub_efidisk_get_device_name): Likewise.
15348 * configure.ac (--enable-mm-debug): New option to enable the
15349 memory manager debugging feature. This makes the binary much
15350 bigger, so is disabled by default.
15352 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15354 Use grub_abort instead of grub_stop, and grub_exit must be
15355 define in each architecture now. Also, this change adds support
15358 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15359 (grub_getkey): New function.
15360 (grub_term_get_current): Likewise.
15362 * util/i386/pc/grub-setup.c: Include grub/term.h.
15363 (grub_getkey): New function.
15364 (grub_term_get_current): Likewise.
15366 * util/misc.c (grub_stop): Renamed to ...
15367 (grub_exit): ... this.
15369 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15370 (grub_exit): ... this.
15371 (grub_machine_init): Use grub_abort instead of abort.
15372 (grub_stop): Removed.
15374 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15377 * kern/i386/pc/startup.S (grub_exit): New function.
15378 (cold_reboot): New label.
15380 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15381 (grub_efi_init): Call grub_efidisk_init.
15382 (grub_efi_fini): Call grub_efidisk_fini.
15384 * kern/efi/efi.c: Include grub/mm.h.
15385 (grub_efi_console_control_guid): Renamed to ...
15386 (console_control_guid): ... this.
15387 (grub_efi_loaded_image_guid): Renamed to ...
15388 (loaded_image_guid): ... this.
15389 (grub_efi_locate_handle): New function.
15390 (grub_efi_open_protocol): Likewise.
15391 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15392 GRUB_EFI_CONSOLE_CONTROL_GUID.
15393 (grub_efi_exit): Removed.
15394 (grub_stop): Likewise.
15395 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15396 (grub_exit): New function.
15397 (grub_print_device_path): Likewise.
15399 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15400 (grub_enter_rescue_mode): Register "exit".
15402 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15403 (grub_abort): New function.
15405 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15407 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15409 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15411 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15412 (grub_print_device_path): New prototype.
15413 (grub_efi_locate_handle): Likewise.
15414 (grub_efi_open_protocol): Likewise.
15416 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15417 * disk/efi/efidisk.c: Likewise.
15419 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15421 * include/grub/efi/console_control.h
15422 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15424 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15425 last 8 bytes as an array.
15426 (GRUB_EFI_DISK_IO_GUID): New macro.
15427 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15428 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15429 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15431 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15432 (struct grub_efi_device_path): Rename the member "sub_type" to
15434 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15435 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15436 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15437 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15438 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15439 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15440 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15441 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15442 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15443 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15444 (struct grub_efi_pci_device_path): New structure.
15445 (grub_efi_pci_device_path_t): New type.
15446 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15447 (struct grub_efi_pccard_device_path): New structure.
15448 (grub_efi_pccard_device_path_t): New type.
15449 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15450 (struct grub_efi_memory_mapped_device_path): New structure.
15451 (grub_efi_memory_mapped_device_path_t): New type.
15452 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15453 (struct grub_efi_vendor_device_path): New structure.
15454 (grub_efi_vendor_device_path_t): New type.
15455 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15456 (struct grub_efi_controller_device_path): New structure.
15457 (grub_efi_controller_device_path_t): New type.
15458 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15459 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15460 (struct grub_efi_acpi_device_path): New structure.
15461 (grub_efi_acpi_device_path_t): New type.
15462 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15463 (struct grub_efi_expanded_acpi_device_path): New structure.
15464 (grub_efi_expanded_acpi_device_path_t): New type.
15465 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15466 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15467 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15468 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15469 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15470 (struct grub_efi_atapi_device_path): New structure.
15471 (grub_efi_atapi_device_path_t): New type.
15472 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15473 (struct grub_efi_fibre_channel_device_path): New structure.
15474 (grub_efi_fibre_channel_device_path_t): New type.
15475 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15476 (struct grub_efi_1394_device_path): New structure.
15477 (grub_efi_1394_device_path_t): New type.
15478 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15479 (struct grub_efi_usb_device_path): New structure.
15480 (grub_efi_usb_device_path_t): New type.
15481 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15482 (struct grub_efi_usb_class_device_path): New structure.
15483 (grub_efi_usb_class_device_path_t): New type.
15484 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15485 (struct grub_efi_i2o_device_path): New structure.
15486 (grub_efi_i2o_device_path_t): New type.
15487 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15488 (struct grub_efi_mac_address_device_path): New structure.
15489 (grub_efi_mac_address_device_path_t): New type.
15490 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15491 (struct grub_efi_ipv4_device_path): New structure.
15492 (grub_efi_ipv4_device_path_t): New type.
15493 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15494 (struct grub_efi_ipv6_device_path): New structure.
15495 (grub_efi_ipv6_device_path_t): New type.
15496 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15497 (struct grub_efi_infiniband_device_path): New structure.
15498 (grub_efi_infiniband_device_path_t): New type.
15499 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15500 (struct grub_efi_uart_device_path): New structure.
15501 (grub_efi_uart_device_path_t): New type.
15502 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15503 (struct grub_efi_vendor_messaging_device_path): New structure.
15504 (grub_efi_vendor_messaging_device_path_t): New type.
15505 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15506 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15507 (struct grub_efi_hard_drive_device_path): New structure.
15508 (grub_efi_hard_drive_device_path_t): New type.
15509 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15510 (struct grub_efi_cdrom_device_path): New structure.
15511 (grub_efi_cdrom_device_path_t): New type.
15512 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15513 (struct grub_efi_vendor_media_device_path): New structure.
15514 (grub_efi_vendor_media_device_path_t): New type.
15515 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15516 (struct grub_efi_file_path_device_path): New structure.
15517 (grub_efi_file_path_device_path_t): New type.
15518 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15519 (struct grub_efi_protocol_device_path): New structure.
15520 (grub_efi_protocol_device_path_t): New type.
15521 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15522 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15523 (struct grub_efi_bios_device_path): New structure.
15524 (grub_efi_bios_device_path_t): New type.
15525 (struct grub_efi_disk_io): New structure.
15526 (grub_efi_disk_io_t): New type.
15527 (struct grub_efi_block_io_media): New structure.
15528 (grub_efi_block_io_media_t): New type.
15529 (struct grub_efi_block_io): New structure.
15530 (grub_efi_block_io_t): New type.
15532 * include/grub/misc.h (grub_stop): Removed.
15533 (grub_exit): New prototype.
15534 (grub_abort): Likewise.
15536 * include/grub/disk.h (enum grub_disk_dev_id): Added
15537 GRUB_DISK_DEVICE_EFIDISK_ID.
15539 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15540 disk/efi/efidisk.c.
15541 (kernel_syms.lst): Remove the target if an error occurs.
15543 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15545 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15546 as it was simply too buggy.
15548 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15550 * kern/misc.c (grub_lltoa): New function.
15551 (grub_vsprintf): Added support for the long long suffix,
15554 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15556 * Makefile.in (LDFLAGS): Add variable.
15557 (LD): Remove variable.
15558 * configure.ac: Add -m32 to LDFLAGS.
15559 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15560 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15561 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15562 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15563 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15565 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15566 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15567 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15569 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15571 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15572 length for unknown glyph.
15574 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15576 Add support for pre-loaded modules into the EFI port.
15578 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15579 completely. Accept one more argument DIR. The caller has changed.
15581 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15583 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15584 (grub_efi_loaded_image_guid): New variable.
15585 (grub_efi_get_loaded_image): New function.
15586 (grub_arch_modules_addr): Likewise.
15588 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15591 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15592 (struct grub_efi_loaded_image): New structure.
15593 (grub_efi_loaded_image_t): New type.
15595 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15597 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15598 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15599 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15601 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15603 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15605 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15607 * DISTLIST: Added include/grub/efi/console.h,
15608 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15609 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15611 * include/grub/efi/console.h: New file.
15612 * include/grub/efi/time.h: Likewise.
15613 * include/grub/i386/efi/kernel.h: Likewise.
15614 * kern/efi/init.c: Likewise.
15615 * kern/efi/mm.c: Likewise.
15616 * term/efi/console.c: Likewise.
15618 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15619 (grub_stop): Removed.
15620 (grub_get_rtc): Likewise.
15621 (grub_machine_init): Simply call grub_efi_init.
15622 (grub_machine_fini): Call grub_efi_fini.
15624 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15625 (grub_efi_output_string): Removed.
15626 (grub_efi_stall): New function.
15627 (grub_stop): Likewise.
15628 (grub_get_rtc): Likewise.
15630 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15631 (grub_efi_stall): New prototype.
15632 (grub_efi_allocate_pages): Likewise.
15633 (grub_efi_free_pages): Likewise.
15634 (grub_efi_get_memory_map): Likewise.
15635 (grub_efi_mm_init): Likewise.
15636 (grub_efi_mm_fini): Likewise.
15637 (grub_efi_init): Likewise.
15638 (grub_efi_fini): Likewise.
15640 * include/grub/i386/efi/time.h: Do not include
15641 grub/symbol.h. Include grub/efi/time.h.
15642 (GRUB_TICKS_PER_SECOND): Removed.
15643 (grub_get_rtc): Likewise.
15645 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15646 Added padding. The EFI spec is buggy.
15647 (GRUB_EFI_BLACK): New macro.
15648 (GRUB_EFI_BLUE): Likewise.
15649 (GRUB_EFI_GREEN): Likewise.
15650 (GRUB_EFI_CYAN): Likewise.
15651 (GRUB_EFI_RED): Likewise.
15652 (GRUB_EFI_MAGENTA): Likewise.
15653 (GRUB_EFI_BROWN): Likewise.
15654 (GRUB_EFI_LIGHTGRAY): Likewise.
15655 (GRUB_EFI_BRIGHT): Likewise.
15656 (GRUB_EFI_DARKGRAY): Likewise.
15657 (GRUB_EFI_LIGHTBLUE): Likewise.
15658 (GRUB_EFI_LIGHTGREEN): Likewise.
15659 (GRUB_EFI_LIGHTCYAN): Likewise.
15660 (GRUB_EFI_LIGHTRED): Likewise.
15661 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15662 (GRUB_EFI_YELLOW): Likewise.
15663 (GRUB_EFI_WHITE): Likewise.
15664 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15665 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15666 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15667 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15668 (GRUB_EFI_BACKGROUND_RED): Likewise.
15669 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15670 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15671 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15672 (GRUB_EFI_TEXT_ATTR): Likewise.
15674 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15675 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15676 (kernel_mod_HEADERS): Added efi/time.h.
15678 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15680 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15681 include/grub/efi/api.h, include/grub/efi/console_control.h,
15682 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15683 include/grub/i386/efi/time.h, kern/efi/efi.c,
15684 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15685 and util/i386/efi/grub-mkimage.c.
15687 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15689 * genmk.rb (PModule#rule): Do not export symbols if
15690 #{prefix}_EXPORTS is set to "no".
15692 * conf/i386-efi.mk: New file.
15693 * conf/i386-efi.rmk: Likewise.
15694 * include/grub/efi/api.h: Likewise.
15695 * include/grub/efi/console_control.h: Likewise.
15696 * include/grub/efi/efi.h: Likewise.
15697 * include/grub/efi/pe32.h: Likewise.
15698 * include/grub/i386/efi/time.h: Likewise.
15699 * kern/efi/efi.c: Likewise.
15700 * kern/i386/efi/init.c: Likewise.
15701 * kern/i386/efi/startup.S: Likewise.
15702 * util/i386/efi/grub-mkimage.c: Likewise.
15704 2006-04-17 Marco Gerards <marco@gnu.org>
15706 * include/grub/script.h: Include <grub/parser.h> and
15707 "grub_script.tab.h".
15708 (struct grub_lexer_param): New struct.
15709 (struct grub_parser_param): Likewise.
15710 (grub_script_create_arglist): Pass the state in an argument.
15711 (grub_script_add_arglist): Likewise.
15712 (grub_script_create_cmdline): Likewise.
15713 (grub_script_create_cmdblock): Likewise.
15714 (grub_script_create_cmdif): Likewise.
15715 (grub_script_create_cmdmenu): Likewise.
15716 (grub_script_add_cmd): Likewise.
15717 (grub_script_arg_add): Likewise.
15718 (grub_script_lexer_ref): Likewise.
15719 (grub_script_lexer_deref): Likewise.
15720 (grub_script_lexer_record_start): Likewise.
15721 (grub_script_lexer_record_stop): Likewise.
15722 (grub_script_mem_record): Likewise.
15723 (grub_script_mem_record_stop): Likewise.
15724 (grub_script_malloc): Likewise.
15725 (grub_script_yylex): Likewise.
15726 (grub_script_yyparse): Likewise.
15727 (grub_script_yyerror): Likewise.
15728 (grub_script_yylex): Likewise.
15729 (grub_script_lexer_init): Return the state.
15731 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15732 (grub_script_lexer_done): Likewise.
15733 (grub_script_lexer_getline): Likewise.
15734 (grub_script_lexer_refs): Likewise.
15735 (script): Likewise.
15736 (newscript): Likewise.
15737 (record): Likewise.
15738 (recording): Likewise.
15739 (recordpos): Likewise.
15740 (recordlen): Likewise.
15741 (grub_script_lexer_init): Return the state instead of setting
15743 (grub_script_lexer_ref): Use the newly added argument for state
15744 instead of globals.
15745 (grub_script_lexer_deref): Likewise.
15746 (grub_script_lexer_record_start): Likewise.
15747 (grub_script_lexer_record_stop): Likewise.
15748 (recordchar): Likewise.
15749 (nextchar): Likewise.
15750 (grub_script_yylex2): Likewise.
15751 (grub_script_yylex): Likewise.
15752 (grub_script_yyerror): Likewise.
15754 * normal/parser.y (func_mem): Removed variable.
15755 (menu_entry): Likewise.
15757 (%lex-param): New parser option.
15758 (%parse-param): Likewise.
15759 (script): Always return the AST.
15760 (argument): Pass the state around.
15761 (arguments): Likewise.
15762 (grubcmd): Likewise.
15763 (commands): Likewise.
15764 (function): Likewise.
15765 (menuentry): Likewise.
15766 (if_statement): Likewise.
15769 * normal/script.c (grub_script_memused): Removed variable.
15770 (grub_script_parsed): Likewise.
15771 (grub_script_malloc): Added a state argument. Use that instead of
15773 (grub_script_mem_record): Likewise.
15774 (grub_script_mem_record_stop): Likewise.
15775 (grub_script_arg_add): Likewise.
15776 (grub_script_add_arglist): Likewise.
15777 (grub_script_create_cmdline): Likewise.
15778 (grub_script_create_cmdif): Likewise.
15779 (grub_script_create_cmdmenu): Likewise.
15780 (grub_script_add_cmd): Likewise.
15781 (grub_script_parse): Setup the state before calling the parser.
15783 2006-04-16 Marco Gerards <marco@gnu.org>
15785 * normal/command.c (grub_command_init): Remove the title command.
15787 * normal/lexer.c (grub_script_yylex): Renamed from this...
15788 (grub_script_yylex2): ... to this.
15789 (grub_script_yylex): New function. Temporary
15790 introduced to filter some tokens.
15791 (grub_script_yyerror): Print a newline.
15793 * normal/main.c (read_config_file): Output information about the
15794 lines that contain errors. Wait for a key after all lines have
15795 been processed. Don't return an empty menu.
15797 * normal/parser.y (func_mem): Don't initialize.
15798 (menu_entry): Likewise.
15799 (err): New variable.
15800 (script): Don't return anything when an error was encountered.
15801 (ws, returns): Removed rules.
15802 (argument): Disabled concatenated variable support.
15803 (arguments): Remove explicit separators.
15804 (grubcmd): Likewise.
15805 (function): Likewise.
15806 (menuentry): Likewise.
15808 (commands): Likewise. Add error handling.
15810 * normal/script.c (grub_script_create_cmdline): If
15811 `grub_script_parsed' is 0, assume the parser encountered an error.
15813 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15815 * configure.ac: Add support for EFI. Fix the typo
15816 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15818 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15820 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15821 foreign multibyte characters should be shown correctly.
15823 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15825 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15827 (read_config_file): Made it to close file before returning.
15829 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15831 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15832 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15833 video/i386/pc/vbefill.c.
15835 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15836 video/i386/pc/vbefill.c.
15838 * include/grub/video.h (grub_video_blit_format): New enum.
15839 (grub_video_mode_info): Added new member blit_format.
15840 (grub_video_get_blit_format): New function prototype.
15842 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15843 function prototype.
15844 (grub_video_vbe_map_rgb): Likewise.
15845 (grub_video_vbe_unmap_color): Likewise.
15847 * include/grub/i386/pc/vbeblit.h: New file.
15849 * include/grub/i386/pc/vbefill.h: New file.
15851 * video/video.c (grub_video_get_blit_format): New function.
15852 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15853 (grub_video_vbe_map_rgb): Likewise.
15854 (grub_video_vbe_unmap_color): Likewise.
15856 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15858 (grub_video_vbe_blit_render_target): Changed to use more optimized
15860 (grub_video_vbe_setup): Added detection for optimized settings.
15861 (grub_video_vbe_create_render_target): Likewise.
15863 * video/i386/pc/vbeblit.c: New file.
15865 * video/i386/pc/vbefill.c: New file.
15867 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15869 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15872 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15873 parsing to support both hex and dec ranges. If filename was missing
15874 show usage information.
15876 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15878 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15879 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15881 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15882 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15883 (video_mod_SOURCES): Added.
15884 (video_mod_CFLAGS): Likewise.
15885 (video_mod_LDFLAGS): Likewise.
15886 (gfxterm_mod_SOURCES): Likewise.
15887 (gfxterm_mod_CFLAGS): Likewise.
15888 (gfxterm_mod_LDFLAGS): Likewise.
15889 (videotest_mod_SOURCES): Likewise.
15890 (videotest_mod_CFLAGS): Likewise.
15891 (videotest_mod_LDFLAGS): Likewise.
15892 (vesafb_mod_SOURCES): Removed.
15893 (vesafb_mod_CFLAGS): Likewise.
15894 (vesafb_mod_LDFLAGS): Likewise.
15895 (vga_mod_SOURCES): Likewise.
15896 (vga_mod_CFLAGS): Likewise.
15897 (vga_mod_LDFLAGS): Likewise.
15899 * commands/videotest.c: New file.
15901 * font/manager.c (fill_with_default_glyph): Modified to use
15903 (grub_font_get_glyph): Likewise.
15904 (fontmanager): Renamed from this...
15905 (font_manager): ... to this.
15907 * include/grub/font.h (grub_font_glyph): Added new structure.
15908 (grub_font_get_glyph): Modified to use grub_font_glyph.
15910 * include/grub/misc.h (grub_abs): Added as inline function.
15912 * include/grub/video.h: New file.
15914 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15915 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15916 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15917 (grub_vbe_get_controller_info): Renamed from this...
15918 (grub_vbe_bios_get_controller_info): ... to this.
15919 (grub_vbe_get_mode_info): Renamed from this...
15920 (grub_vbe_bios_get_mode_info): ... to this.
15921 (grub_vbe_set_mode): Renamed from this...
15922 (grub_vbe_bios_set_mode): ... to this.
15923 (grub_vbe_get_mode): Renamed from this...
15924 (grub_vbe_bios_get_mode): ... to this.
15925 (grub_vbe_set_memory_window): Renamed from this...
15926 (grub_vbe_bios_set_memory_window): ... to this.
15927 (grub_vbe_get_memory_window): Renamed from this...
15928 (grub_vbe_bios_get_memory_window): ... to this.
15929 (grub_vbe_set_scanline_length): Renamed from this...
15930 (grub_vbe_set_scanline_length): ... to this.
15931 (grub_vbe_get_scanline_length): Renamed from this...
15932 (grub_vbe_bios_get_scanline_length): ... to this.
15933 (grub_vbe_set_display_start): Renamed from this...
15934 (grub_vbe_bios_set_display_start): ... to this.
15935 (grub_vbe_get_display_start): Renamed from this...
15936 (grub_vbe_bios_get_display_start): ... to this.
15937 (grub_vbe_set_palette_data): Renamed from this...
15938 (grub_vbe_bios_set_palette_data): ... to this.
15939 (grub_vbe_set_pixel_rgb): Removed.
15940 (grub_vbe_set_pixel_index): Likewise.
15942 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15944 (grub_vbe_bios_get_controller_info): ... to this.
15945 (grub_vbe_get_mode_info): Renamed from this...
15946 (grub_vbe_bios_get_mode_info): ... to this.
15947 (grub_vbe_set_mode): Renamed from this...
15948 (grub_vbe_bios_set_mode): ... to this.
15949 (grub_vbe_get_mode): Renamed from this...
15950 (grub_vbe_bios_get_mode): ... to this.
15951 (grub_vbe_set_memory_window): Renamed from this...
15952 (grub_vbe_bios_set_memory_window): ... to this.
15953 (grub_vbe_get_memory_window): Renamed from this...
15954 (grub_vbe_bios_get_memory_window): ... to this.
15955 (grub_vbe_set_scanline_length): Renamed from this...
15956 (grub_vbe_set_scanline_length): ... to this.
15957 (grub_vbe_get_scanline_length): Renamed from this...
15958 (grub_vbe_bios_get_scanline_length): ... to this.
15959 (grub_vbe_set_display_start): Renamed from this...
15960 (grub_vbe_bios_set_display_start): ... to this.
15961 (grub_vbe_get_display_start): Renamed from this...
15962 (grub_vbe_bios_get_display_start): ... to this.
15963 (grub_vbe_set_palette_data): Renamed from this...
15964 (grub_vbe_bios_set_palette_data): ... to this.
15965 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15966 getting corrupted after calling it. Added more pushes and pops.
15967 (grub_vbe_bios_set_mode): Likewise.
15968 (grub_vbe_bios_get_mode): Likewise.
15969 (grub_vbe_bios_get_memory_window): Likewise.
15970 (grub_vbe_bios_set_scanline_length): Likewise.
15971 (grub_vbe_bios_get_scanline_length): Likewise.
15972 (grub_vbe_bios_get_display_start): Likewise.
15973 (grub_vbe_bios_set_palette_data): Likewise.
15975 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15976 (cl_insert): Likewise.
15977 (cl_delete): Likewise.
15979 * term/gfxterm.c: New file.
15981 * term/i386/pc/vesafb.c: Removed file.
15983 * video/video.c: New file.
15985 * video/i386/pc/vbe.c (real2pm): Added new function.
15986 (grub_video_vbe_draw_pixel): Likewise.
15987 (grub_video_vbe_get_video_ptr): Likewise.
15988 (grub_video_vbe_get_pixel): Likewise
15989 (grub_video_vbe_init): Likewise.
15990 (grub_video_vbe_fini): Likewise.
15991 (grub_video_vbe_setup): Likewise.
15992 (grub_video_vbe_get_info): Likewise.
15993 (grub_video_vbe_set_palette): Likewise.
15994 (grub_video_vbe_get_palette): Likewise.
15995 (grub_video_vbe_set_viewport): Likewise.
15996 (grub_video_vbe_get_viewport): Likewise.
15997 (grub_video_vbe_map_color): Likewise.
15998 (grub_video_vbe_map_rgb): Likewise.
15999 (grub_video_vbe_map_rgba): Likewise.
16000 (grub_video_vbe_unmap_color): Likewise.
16001 (grub_video_vbe_fill_rect): Likewise.
16002 (grub_video_vbe_blit_glyph): Likewise.
16003 (grub_video_vbe_blit_bitmap): Likewise.
16004 (grub_video_vbe_blit_render_target): Likewise.
16005 (grub_video_vbe_scroll): Likewise.
16006 (grub_video_vbe_swap_buffers): Likewise.
16007 (grub_video_vbe_create_render_target): Likewise.
16008 (grub_video_vbe_delete_render_target): Likewise.
16009 (grub_video_vbe_set_active_render_target): Likewise.
16010 (grub_vbe_set_pixel_rgb): Remove function.
16011 (grub_vbe_set_pixel_index): Likewise.
16012 (index_color_mode): Remove static variable.
16013 (active_mode): Likewise.
16014 (framebuffer): Likewise.
16015 (bytes_per_scan_line): Likewise.
16016 (grub_video_vbe_adapter): Added new static variable.
16017 (framebuffer): Likewise.
16018 (render_target): Likewise.
16019 (initial_mode): Likewise.
16020 (mode_in_use): Likewise.
16021 (mode_list): Likewise.
16023 2006-03-10 Marco Gerards <marco@gnu.org>
16025 * configure.ac (AC_INIT): Bumped to 1.93.
16027 * DISTLIST: Added `include/grub/hfs.h'.
16029 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
16031 * boot/i386/pc/boot.S (general_error): Before looping, try INT
16032 18H, which might help the BIOS falling back to next boot media.
16034 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
16036 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
16037 Poe Chen <poe.poechen@gmail.com>.
16039 2006-01-17 Marco Gerards <marco@gnu.org>
16041 * include/grub/normal.h: Include <grub/script.h>.
16042 (grub_command_list): Removed struct.
16043 (grub_command_list_t): Removed type.
16044 (grub_menu_entry): Remove members `num' and `command_list'. Add
16045 members `commands' and `sourcecode'.
16046 * include/grub/script.h: Add inclusion guards.
16047 (grub_script_cmd_menuentry): New struct.
16048 (grub_script_execute_menuentry): New prototype.
16049 (grub_script_lexer_record_start): Likewise.
16050 (grub_script_lexer_record_stop): Likewise.
16051 * normal/execute.c (grub_script_execute_menuentry): New function.
16052 * normal/lexer.c (record, recording, recordpos, recordlen): New
16054 (grub_script_lexer_record_start): New function.
16055 (grub_script_lexer_record_stop): Likewise.
16056 (recordchar): Likewise.
16057 (nextchar): Likewise.
16058 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16059 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16060 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16061 (current_menu): New variable.
16062 (free_menu): Mainly rewritten.
16063 (grub_normal_menu_addentry): New function.
16064 (read_config_file): Rewritten.
16065 * normal/menu.c (run_menu_entry): Mainly rewritten.
16066 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16068 (run): Mainly rewritten.
16069 * normal/parser.y (menu_entry): New variable.
16070 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16071 (menuentry): New rule.
16072 (command): Add `menuentry'.
16073 (if_statement): Allow additional returns before `fi'.
16074 * normal/script.c (grub_script_create_cmdmenu): New function.
16076 2006-01-03 Marco Gerards <marco@gnu.org>
16078 * INSTALL: GNU Bison is required.
16079 * configure.ac: Rewritten the test to detect Bison.
16080 * Makefile.in (YACC): New variable. Reported by Xun Sun
16081 <xun.sun.cn@gmail.com>.
16083 2006-01-03 Marco Gerards <marco@gnu.org>
16085 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16086 the HFS+ filesystem to filesystem blocks.
16087 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16088 GCC warning is silenced.
16090 2006-01-03 Marco Gerards <marco@gnu.org>
16092 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16093 read from disk from big endian to host byte order.
16095 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16097 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16099 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16100 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16101 embedded HFS+ filesystem.
16102 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16103 (grub_hfs_sblock): Move from here...
16104 * include/grub/hfs.h: To here... New file.
16105 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16107 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16109 (grub_hfsplus_volheader): Change type of member `magic' to
16111 (grub_hfsplus_data): Add new member `embedded_offset'.
16112 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16114 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16115 Calculate the offset.
16117 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16119 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16121 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16123 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16125 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16126 ENV->NAME is NULL after allocating ENV->VALUE.
16128 2005-12-25 Marco Gerards <marco@gnu.org>
16130 * kern/env.c (grub_env_set): Rewritten the error handling code.
16132 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16134 * geninit.sh: Made more robust, and more portable.
16136 2005-12-25 Marco Gerards <marco@gnu.org>
16138 Add support for Apple HFS+ filesystems.
16140 * fs/hfsplus.c: New file.
16142 * DISTLIST: Added `fs/hfsplus.c'.
16144 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16145 (hfsplus_mod_SOURCES): New variable.
16146 (hfsplus_mod_CFLAGS): Likewise.
16147 (hfsplus_mod_LDFLAGS): Likewise.
16148 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16149 (grub_setup_SOURCES): Likewise.
16150 (grub_mkdevicemap_SOURCES): Likewise.
16151 (grub_emu_SOURCES): Likewise.
16152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16154 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16156 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16158 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16160 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16161 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16162 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16163 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16164 normal/lexer.c, normal/parser.y, normal/script.c, and
16166 Removed kern/sparc64/cache.c.
16168 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16169 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16172 * configure.ac (AC_INIT): Bumped to 1.92.
16174 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16176 * kern/err.c (grub_error_push): Added new function to support error
16178 (grub_error_pop): Likewise.
16179 (grub_error_stack_items): New local variable to support error stacks.
16180 (grub_error_stack_pos): Likewise.
16181 (grub_error_stack_assert): Likewise.
16182 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16184 (grub_print_error): Added support to print errors from error stack.
16186 * include/grub/err.h (grub_error_push): Added function prototype.
16187 (grub_error_pop): Likewise.
16189 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16191 * configure.ac: Accept `powerpc64' as host_cpu.
16192 (amd64): Rename to `biarch32'.
16194 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16195 non-cacheline-aligned addresses.
16197 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16198 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16199 if `size' is non-zero.
16201 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16203 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16204 and `cd' to make sure the filename is not prefixed with a
16206 (pkgdata_MODULES): Add `gpt.mod'.
16207 (gpt_mod_SOURCES): New variable.
16208 (gpt_mod_CFLAGS): Likewise.
16209 (gpt_mod_LDFLAGS): Likewise.
16211 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16213 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16216 * partmap/gpt.c: New file.
16218 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16219 GPT partition map is detected.
16221 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16223 * commands/i386/pc/play.c: New file.
16224 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16225 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16228 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16230 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16231 ((unused))' to silence gcc warning.
16233 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16235 * configure.ac: Correct `AC_PROG_YACC' test.
16237 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16239 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16240 check before installing files.
16242 2005-11-22 Mike Small <smallm@panix.com>
16244 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16245 number regex so multidigit numbers are recognized correctly.
16247 2005-11-22 Mike Small <smallm@panix.com>
16249 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16250 debugging message before attempting to claim memory.
16251 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16252 multiple addresses in case of failure.
16254 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16256 * term/tparm.c (get_space): Remove empty `if' statement.
16258 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16260 * kern/parser.c (check_varstate): Rename `state' to 's'.
16262 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16264 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16265 variable definitions to the beginning of each function. Sort stack
16267 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16268 `buf' argument to `char *'.
16270 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16272 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16273 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16274 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16275 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16276 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16277 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16278 configfile.mod, search.mod, gzio.mod and test.mod.
16279 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16280 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16281 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16282 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16283 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16284 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16285 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16286 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16287 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16288 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16289 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16290 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16291 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16292 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16293 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16294 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16295 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16296 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16297 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16298 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16299 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16300 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16301 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16303 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16305 (pkgdata_MODULES): Add test.mod.
16307 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16309 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16310 appending to variables with "+=".
16311 (PModule): Use full pathname to generate *.lst filenames.
16313 * Makefile.in: Fixed list rules moved from genmk.rb.
16314 (.DELETE_ON_ERROR): New special target.
16315 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16317 * conf/i386-pc.rmk: Include conf/common.mk.
16318 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16319 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16320 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16321 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16322 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16323 configfile.mod, search.mod, gzio.mod and test.mod.
16324 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16325 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16326 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16327 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16328 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16329 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16330 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16331 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16332 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16333 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16334 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16335 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16336 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16337 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16338 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16339 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16340 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16341 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16342 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16343 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16344 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16345 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16346 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16348 * conf/common.rmk: ... to here. New file.
16350 * conf/common.mk: New file.
16352 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16354 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16355 (grub_script.tab.c): ... here.
16357 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16358 (grub_script.tab.c): ... here.
16360 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16361 (grub_script.tab.c): ... here.
16363 * normal/command.c (grub_command_find): Fixed a memory leak of
16364 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16366 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16368 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16369 "@" which marks the start of a comment on ARM.
16370 (VARIABLE): Likewise.
16372 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16374 Add support for Linux/ADFS partition tables.
16376 * partmap/acorn.c: New file.
16378 * include/grub/acorn_filecore.h: Likewise.
16380 * DISTLIST: Added `partmap/acorn.c' and
16381 `include/grub/acorn_filecore.h'.
16383 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16385 (pkgdata_MODULES): Add `acorn.mod'.
16386 (acorn_mod_SOURCES): New variable.
16387 (acorn_mod_CFLAGS): Likewise.
16389 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16391 (pkgdata_MODULES): Add `acorn.mod'.
16392 (acorn_mod_SOURCES): New variable.
16393 (acorn_mod_CFLAGS): Likewise.
16395 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16396 (pkgdata_MODULES): Add `acorn.mod'.
16397 (acorn_mod_SOURCES): New variable.
16398 (acorn_mod_CFLAGS): Likewise.
16399 (acorn_mod_LDFLAGS): Likewise.
16401 * include/types.h (grub_disk_addr_t): New typedef.
16403 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16405 * geninit.sh: New file.
16407 * geninitheader.sh: Likewise.
16409 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16410 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16411 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16412 * commands/configfile.c (grub_configfile_init)
16413 (grub_configfile_fini): Likewise.
16414 * commands/default.c (grub_default_init, grub_default_fini):
16416 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16417 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16418 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16419 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16421 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16422 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16424 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16425 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16427 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16429 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16431 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16432 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16433 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16434 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16435 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16436 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16437 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16438 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16439 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16440 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16441 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16442 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16443 * partmap/amiga.c (grub_amiga_partition_map_init)
16444 (grub_amiga_partition_map_fini): Likewise.
16445 * partmap/apple.c (grub_apple_partition_map_init)
16446 (grub_apple_partition_map_fini): Likewise.
16447 * partmap/pc.c (grub_pc_partition_map_init)
16448 (grub_pc_partition_map_fini): Likewise.
16449 * partmap/sun.c (grub_sun_partition_map_init,
16450 grub_sun_partition_map_fini): Likewise.
16451 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16454 * util/grub-emu.c: Include <grub_modules_init.h>.
16455 (main): Don't initialize and de-initialize any modules directly,
16456 use `grub_init_all' and `grub_fini_all' instead.
16458 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16459 `grub_vesafb_mod_init'.
16460 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16462 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16463 `grub_vga_mod_init'. Updated all users.
16464 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16466 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16467 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16470 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16471 Generate a function to initialize the module in utilities.
16472 Updated all callers.
16473 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16474 initialize the module in utilities. Updated all callers.
16476 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16478 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16479 escape sequence and a literal ^L to clear the screen.
16481 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16482 when returning from Open Firmware.
16484 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16486 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16487 (grub_ofconsole_height): Likewise.
16488 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16489 manually insert a '\n'.
16490 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16491 `grub_ofconsole_height'. Return early if these are already set.
16493 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16495 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16496 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16497 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16498 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16499 and `normal/script.c'.
16500 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16501 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16502 (test_mod_SOURCES): New variable.
16503 (test_mod_CFLAGS): Likewise.
16504 (test_mod_LDFLAGS): Likewise.
16505 (pkgdata_MODULES): Add `test.mod'.
16506 (grub_script.tab.c): New rule.
16507 (grub_script.tab.h): Likewise.
16509 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16512 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16513 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16514 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16515 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16516 (test_mod_SOURCES): New variable.
16517 (test_mod_CFLAGS): Likewise.
16518 (pkgdata_MODULES): Add `test.mod'.
16519 (grub_script.tab.c): New rule.
16520 (grub_script.tab.h): Likewise.
16522 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16524 Add initial scripting support.
16526 * commands/test.c: New file.
16527 * include/grub/script.h: Likewise.
16528 * normal/execute.c: Likewise.
16529 * normal/function.c: Likewise.
16530 * normal/lexer.c: Likewise.
16531 * normal/parser.y: Likewise.
16532 * normal/script.c: Likewise.
16534 * configure.ac: Add `AC_PROG_YACC' test.
16536 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16537 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16538 `normal/function.c' and `normal/script.c'.
16539 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16540 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16541 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16543 (pkgdata_MODULES): Add `test.mod'.
16544 (grub_script.tab.c): New rule.
16545 (grub_script.tab.h): Likewise.
16547 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16549 * include/grub/normal.h (grub_test_init): New prototype.
16550 (grub_test_fini): Likewise.
16552 * normal/command.c: Include <grub/script.h>.
16553 (grub_command_execute): Rewritten.
16555 * util/grub-emu.c (main): Call `grub_test_init' and
16558 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16560 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16562 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16563 there are no pending characters.
16565 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16567 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16568 `grub_strndup' to drop device arguments. Replace unnecessary
16569 `grub_strndup' with `grub_strdup'.
16571 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16573 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16574 `debug' environment variable has been set.
16576 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16578 * Makefile.in (install-local): Use $(DATA).
16579 (uninstall): Likewise.
16580 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16581 (sbin_UTILITIES): ... to here.
16582 (sbin_SCRIPTS): New variable.
16583 (grub_install_SOURCES): New variable.
16584 * util/powerpc/ieee1275/grub-install.in: New file.
16585 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16587 (add_segments): Call `grub_util_get_path'.
16589 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16591 From Timothy Baldwin:
16592 * commands/ls.c (grub_ls_list_files): Close FILE with
16594 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16596 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16598 * include/grub/parser.h: New file.
16600 * kern/parser.c: Likewise.
16602 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16603 (grub_setup_SOURCES): Likewise.
16604 (grub_probefs_SOURCES): Likewise.
16605 (grub_emu_SOURCES): Likewise.
16606 (kernel_img_HEADERS): Add `parser.h'.
16608 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16609 (grub_emu_SOURCES): Add `kern/parser.c'.
16610 (grubof_SOURCES): Likewise.
16612 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16613 (grubof_SOURCES): Add `kern/parser.c'.
16615 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16617 * kern/misc.c (grub_split_cmdline): Removed function.
16619 * kern/rescue.c: Include <grub/parser.h>.
16620 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16621 of `grub_split_cmdline'.
16623 * normal/command.c: Include <grub/parser.h>.
16624 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16625 of `grub_split_cmdline'.
16627 * normal/completion.c: Include <grub/parser.h>.
16628 (cmdline_state): New variable.
16629 (iterate_dir): End the filename with a quote depending on the
16630 command line state.
16631 (get_state): new function.
16632 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16633 split the arguments and determine the current argument. When the
16634 argument string is not quoted, escape all spaces.
16636 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16638 * normal/sparc64/setjmp.S: New file.
16640 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16642 * include/grub/sparc64/libgcc.h: New file.
16643 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16644 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16645 normal/sparc64/setjmp.c.
16647 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16649 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16650 * kern/sparc64/cache.S: New file.
16651 * kern/sparc64/cache.c: Removed.
16652 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16653 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16655 (COMMON_LDFLAGS): Add -melf64_sparc.
16656 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16657 (grubof_SOURCES): Use cache.S instead of cache.c.
16658 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16659 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16660 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16662 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16663 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16664 (linux_mod_CFLAGS): Commented out.
16665 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16666 out because module isn't built.
16667 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16668 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16669 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16670 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16671 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16672 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16673 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16674 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16675 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16676 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16677 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16678 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16679 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16680 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16682 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16684 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16685 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16686 longer, because HFS should not be used on PC.
16688 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16690 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16691 consistently within the loop.
16693 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16695 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16696 directory can not be read.
16698 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16700 * configure.ac (AC_INIT): Increase the version number to 1.91.
16702 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16703 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16704 term/i386/pc/serial.c.
16706 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16708 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16709 file size must be permitted.
16711 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16712 between %ah and %al.
16714 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16716 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16718 Call the hook with a NUL-terminated filename.
16719 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16722 * kern/term.c (cursor_state): New variable.
16723 (grub_term_set_current): Reset the cursor state on a new
16725 (grub_setcursor): Rewritten to use CURSOR_STATE.
16726 (grub_getcursor): New function.
16728 * include/grub/term.h (grub_getcursor): New prototype.
16730 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16731 integers on ARM. Reported by Timothy Baldwin
16732 <T.E.Baldwin99@members.leeds.ac.uk>.
16734 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16736 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16738 (grub_sfs_dir): Likewise.
16740 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16742 Add support for the SFS filesystem.
16744 * fs/sfs.c: New file.
16746 * DISTLIST: Added `fs/sfs.c'.
16748 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16749 (grub_probefs_SOURCES): Likewise.
16750 (grub_emu_SOURCES): Likewise.
16751 (pkgdata_MODULES): Add `sfs.mod'.
16752 (sfs_mod_SOURCES): New variable.
16753 (sfs_mod_CFLAGS): Likewise.
16754 (sfs_mod_LDFLAGS): Likewise.
16756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16757 (pkgdata_MODULES): Add `sfs.mod'.
16758 (sfs_mod_SOURCES): New variable.
16759 (sfs_mod_CFLAGS): Likewise.
16761 * util/grub-emu.c (main): Call `grub_sfs_init' and
16764 * include/grub/fs.h (grub_sfs_init): New prototype.
16765 (grub_sfs_fini): Likewise.
16767 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16769 Add support for the AFFS filesystem.
16771 * fs/affs.c: New file.
16773 * DISTLIST: Added `fs/affs.c'.
16775 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16776 (grub_probefs_SOURCES): Likewise.
16777 (grub_emu_SOURCES): Likewise.
16778 (pkgdata_MODULES): Add `affs.mod'.
16779 (affs_mod_SOURCES): New variable.
16780 (affs_mod_CFLAGS): Likewise.
16781 (affs_mod_LDFLAGS): Likewise.
16783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16784 (pkgdata_MODULES): Add `affs.mod'.
16785 (affs_mod_SOURCES): New variable.
16786 (affs_mod_CFLAGS): Likewise.
16788 * util/grub-emu.c (main): Call `grub_affs_init' and
16791 * include/grub/fs.h (grub_affs_init): New prototype.
16792 (grub_affs_fini): Likewise.
16794 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16796 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16798 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16800 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16803 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16806 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16807 (COMMON_LDFLAGS): New variable.
16808 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16809 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16810 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16811 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16812 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16813 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16814 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16815 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16816 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16817 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16818 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16819 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16820 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16821 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16822 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16824 (normal_mod_ASFLAGS): Add `-m32'.
16826 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16827 (grub_host_size_t, grub_host_ssize_t): New types.
16828 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16829 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16830 `GRUB_HOST_SIZEOF_VOID_P'.
16832 * include/grub/kernel.h (struct grub_module_header): Type of
16833 member offset changed to `grub_host_off_t'. Type of member size
16834 changed to `grub_host_size_t'.
16835 (struct grub_module_info): Type of member offset changed to
16836 `grub_host_off_t'. Type of member size changed to
16837 `grub_host_size_t'.
16839 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16841 Make GRUB's kernel compliant to Multiboot Specification.
16843 * kern/i386/pc/startup.S (multiboot_header): New label.
16844 (multiboot_entry): Likewise.
16845 (multiboot_trampoline): Likewise.
16847 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16848 Increased to 0x4A0.
16850 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16851 put parentheses after a question mark.
16852 [!GRUB_UTIL] (my_mod): New variable.
16854 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16856 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16858 Adds support for the XFS filesystem. Btrees are not supported
16861 * fs/xfs.c: New file.
16863 * DISTLIST: Added `fs/xfs.c'.
16865 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16866 (grub_probefs_SOURCES): Likewise.
16867 (grub_emu_SOURCES): Likewise.
16868 (pkgdata_MODULES): Add `xfs.mod'.
16869 (xfs_mod_SOURCES): New variable.
16870 (xfs_mod_CFLAGS): Likewise.
16872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16873 (pkgdata_MODULES): Add `xfs.mod'.
16874 (xfs_mod_SOURCES): New variable.
16875 (xfs_mod_CFLAGS): Likewise.
16877 * util/grub-emu.c (main): Call `grub_xfs_init' and
16880 * include/grub/fs.h (grub_xfs_init): New prototype.
16881 (grub_xfs_fini): Likewise.
16884 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16886 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16887 color modes, allow greater than 16 colors to be configured as
16890 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16892 * normal/completion.c (complete_arguments): Add the qualifier
16893 const into OPTIONS.
16895 From Omniflux <omniflux+lists@omniflux.com>:
16896 * include/grub/terminfo.h: New file.
16897 * include/grub/tparm.h: Likewise.
16898 * include/grub/i386/pc/serial.h: Likewise.
16899 * term/terminfo.c: Likewise.
16900 * term/tparm.c: Likewise.
16901 * term/i386/pc/serial.c: Likewise.
16902 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16904 (terminfo_mod_SOURCES): New variable.
16905 (terminfo_mod_CFLAGS): Likewise.
16906 (serial_mod_SOURCES): Likewise.
16907 (serial_mod_CFLAGS): Likewise.
16909 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16911 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16912 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16913 and kern/powerpc/ieee1275/cmain.c, respectively.
16915 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16916 * kern/powerpc/ieee1275/crt0.S: ... here.
16918 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16919 * kern/powerpc/ieee1275/cmain.c: ... here.
16921 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16922 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16923 instead of boot/powerpc/ieee1275/crt0.S and
16924 boot/powerpc/ieee1275/cmain.c, respectively.
16926 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16927 sectors. It was not used anyway.
16929 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16931 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16932 `unused parameter' warning.
16934 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16936 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16938 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16941 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16943 * include/grub/normal.h (enum grub_completion_type): Added
16944 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16946 * normal/cmdline.c (print_completion): Handle
16947 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16948 * normal/menu_entry.c (store_completion): Likewise.
16950 * normal/completion.c (complete_arguments): New function.
16951 (grub_normal_do_completion): Call `complete_arguments' when the
16952 current words start with a dash.
16954 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16956 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16957 `gzio.mod' instead of `io.mod').
16959 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16961 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16962 (DISTDIRS): Added io and video.
16963 Rewrite the search routine to make an output consistently.
16965 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16966 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16967 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16968 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16969 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16970 util/powerpc/ieee1275/misc.c.
16972 * include/grub/gzio.h: New file.
16973 * io/gzio.c: Likewise.
16975 * kern/file.c (grub_file_close): Call grub_device_close only if
16976 FILE->DEVICE is not NULL.
16978 * include/grub/mm.h [!NULL] (NULL): New macro.
16980 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16983 (pkgdata_MODULES): Added gzio.mod.
16984 (gzio_mod_SOURCES): New variable.
16985 (gzio_mod_CFLAGS): Likewise.
16987 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16988 (pkgdata_MODULES): Added gzio.mod.
16989 (gzio_mod_SOURCES): New variable.
16990 (gzio_mod_CFLAGS): Likewise.
16992 * commands/cat.c: Include grub/gzio.h.
16993 (grub_cmd_cat): Use grub_gzfile_open instead of
16996 * commands/cmp.c: Include grub/gzio.h.
16997 (grub_cmd_cmp): Use grub_gzfile_open instead of
17000 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
17001 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
17003 (grub_rescue_cmd_module): Likewise.
17005 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17007 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
17008 kern/sparc64/ieee1275/init.c because it contains _start.
17009 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
17011 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17013 * configure.ac: Add support for sparc64 host with ieee1275
17015 * configure: Generated from configure.ac.
17016 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
17018 (grub_ofdisk_read): Likewise.
17019 (grub_ofdisk_open): Use %p to print pointer values, and cast the
17020 pointers as (void *) to remove a warning.
17021 (grub_ofdisk_close): Likewise.
17022 (grub_ofdisk_read): Likewise.
17023 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
17024 returns, so make it return void to remove a warning.
17025 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
17026 Corresponding prototype change.
17027 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
17028 values, and cast the pointers as (void *) to remove a warning.
17029 (grub_mm_dump): Likewise.
17030 * conf/sparc64-ieee1275.mk: New file.
17031 * conf/sparc64-ieee1275.rmk: Likewise.
17032 * include/grub/sparc64/setjmp.h: Likewise.
17033 * include/grub/sparc64/types.h: Likewise.
17034 * include/grub/sparc64/ieee1275/console.h: Likewise.
17035 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17036 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17037 * include/grub/sparc64/ieee1275/time.h: Likewise.
17038 * kern/sparc64/cache.c: Likewise.
17039 * kern/sparc64/dl.c: Likewise.
17040 * kern/sparc64/ieee1275/init.c: Likewise.
17041 * kern/sparc64/ieee1275/openfw.c: Likewise.
17043 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17045 * util/console.c (grub_ncurses_putchar): If C is greater than
17046 0x7f, set C to a question mark.
17047 (grub_ncurses_getcharwidth): New function.
17048 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17051 * normal/menu.c (print_entry): Made aware of Unicode. First,
17052 convert TITLE to UCS-4, and predict the cursor position by
17055 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17057 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17059 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17061 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17062 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17065 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17066 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17067 grub_strcpy and grub_strlen. Take it into account that a space
17068 character is inserted as a delimiter.
17070 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17072 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17073 invalid magic in the error.
17075 * commands/search.c: New file.
17077 * util/grub-emu.c (main): Call grub_search_init and
17080 * kern/rescue.c (grub_rescue_print_disks): Removed.
17081 (grub_rescue_print_devices): New function.
17082 (grub_rescue_cmd_ls): Use grub_device_iterate with
17083 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17084 grub_rescue_print_disks.
17086 * kern/partition.c (grub_partition_iterate): Return the result of
17087 PARTMAP->ITERATE instead of GRUB_ERRNO.
17089 * kern/device.c: Include grub/partition.h.
17090 (grub_device_iterate): New function.
17092 * include/grub/partition.h (grub_partition_iterate): Return int
17093 instead of grub_err_t.
17095 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17097 [GRUB_UTIL] (grub_search_fini): Likewise.
17099 * include/grub/device.h (grub_device_iterate): New prototype.
17101 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17103 (pkgdata_MODULES): Added search.mod.
17104 (search_mod_SOURCES): New variable.
17105 (search_mod_CFLAGS): Likewise.
17107 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17108 (pkgdata_MODULES): Added search.mod.
17109 (search_mod_SOURCES): New variable.
17110 (search_mod_CFLAGS): Likewise.
17112 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17113 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17114 All callers changed.
17116 * DISTLIST: Added commands/search.c.
17118 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17120 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17122 (grub_getcharwidth): New function.
17124 * kern/misc.c (grub_utf8_to_ucs4): New function.
17126 * include/grub/term.h (struct grub_term): Added a new member
17128 (grub_getcharwidth): New prototype.
17130 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17132 * term/i386/pc/console.c (map_char): New function. Segregated from
17133 grub_console_putchar.
17134 (grub_console_putchar): Use map_char.
17135 (grub_console_getcharwidth): New function.
17136 (grub_console_term): Specified grub_console_getcharwidth as
17139 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17140 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17142 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17144 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17145 on grub_strtoul completely.
17146 (write_char): Declare local variables in the beginning of the
17148 (grub_vesafb_getcharwidth): New function.
17149 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17152 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17154 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17155 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17156 commands/i386/pc/vbetest.c.
17158 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17159 call grub_vbe_get_controller_info again, because the returned
17160 information is volatile.
17161 (grub_vbe_set_video_mode): Mostly rewritten.
17162 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17163 grub_vbe_status_t correctly.
17164 (grub_vbe_get_video_mode_info): Likewise.
17165 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17166 several if statements.
17168 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17169 * commands/i386/pc/vbeinfo.c: ... this.
17171 * commands/i386/pc/vbe_test.c: Renamed to ...
17172 * commands/i386/pc/vbetest.c: ... this.
17174 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17176 (grub_cmd_vbeinfo): ... this. Save video modes before
17177 iterating. Skip a video mode, if it is not available, not enough
17178 information is given or it is monochrome. Show the memory
17179 model. Leave the interpretation of MODEVAR to grub_strtoul
17181 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17182 (GRUB_MOD_FINI): Likewise.
17184 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17185 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17186 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17187 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17188 grub_strtoul completely.
17189 (real2pm): Removed.
17190 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17191 (GRUB_MOD_FINI): Likewise.
17193 * normal/misc.c: Include grub/mm.h.
17195 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17196 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17197 (vbe_list_modes_mod_SOURCES): Removed.
17198 (vbe_list_modes_mod_CFLAGS): Likewise.
17199 (vbe_test_mod_SOURCES): Likewise.
17200 (vbe_test_mod_CFLAGS): Likewise.
17201 (vbeinfo_mod_SOURCES): New variable.
17202 (vbeinfo_mod_CFLAGS): Likewise.
17203 (vbetest_mod_SOURCES): Likewise.
17204 (vbetest_mod_CFLAGS): Likewise.
17206 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17208 * normal/misc.c: New file.
17210 * DISTLIST: Added normal/misc.c.
17212 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17213 DISK to HOOK. Call HOOK with DISK.
17214 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17215 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17216 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17218 * normal/menu_entry.c (struct screen): Added a new member
17219 "completion_shown".
17220 (completion_buffer): New global variable.
17221 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17222 (store_completion): New function.
17223 (complete): Likewise.
17224 (clear_completions): Likewise.
17225 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17226 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17227 a tab, call complete.
17229 * normal/completion.c (disk_dev): Removed.
17230 (print_simple_completion): Likewise.
17231 (print_partition_completion): Likewise.
17232 (print_func): New global variable.
17233 (add_completion): Do not take the arguments WHAT or PRINT any
17234 longer. Added a new argument TYPE. Instead of printing directly,
17235 call PRINT_FUNC if not NULL.
17236 All callers changed.
17237 (complete_device): Use a local variable DEV instead of
17238 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17239 (grub_normal_do_completion): Take a new argument HOOK. Do not
17240 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17241 empty string, return NULL instead.
17242 All callers changed.
17244 * normal/cmdline.c (print_completion): New function.
17246 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17248 All callers changed.
17250 * kern/disk.c (grub_print_partinfo): Removed.
17252 * include/grub/partition.h (struct grub_partition_map): Add a new
17253 argument DISK into HOOK of ITERATE.
17254 (grub_partition_iterate): Add a new argument DISK to HOOK.
17256 * include/grub/normal.h (enum grub_completion_type): New enum.
17257 (grub_completion_type_t): New type.
17258 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17259 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17260 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17261 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17262 (grub_normal_do_completion): Added a new argument HOOK.
17263 (grub_normal_print_device_info): New prototype.
17265 * include/grub/disk.h (grub_print_partinfo): Removed.
17267 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17268 (normal_mod_SOURCES): Likewise.
17269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17270 (normal_mod_SOURCES): Likewise.
17272 * commands/ls.c (grub_ls_list_disks): Use
17273 grub_normal_print_device_info instead of grub_print_partinfo. Free
17275 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17276 duplicating the code.
17278 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17280 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17281 follow GCS more precisely.
17282 * commands/i386/pc/vbe_test.c: Likewise.
17283 * include/grub/i386/pc/vbe.h: Likewise.
17284 * term/i386/pc/vesafb.c: Likewise.
17285 * video/i386/pc/vbe.c: Likewise.
17287 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17289 * DISTLIST: Added term/i386/pc/vesafb.c
17290 DISTLIST: Added video/i386/pc/vbe.c
17291 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17292 DISTLIST: Added commands/i386/pc/vbe_test.c.
17293 * commands/i386/pc/vbe_list_modes.c: New file.
17294 * commands/i386/pc/vbe_test.c: Likewise.
17295 * term/i386/pc/vesafb.c: Likewise.
17296 * video/i386/pc/vbe.c: Likewise.
17297 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17298 (grub_vbe_probe) Added prototype.
17299 (grub_vbe_set_video_mode) Likewise.
17300 (grub_vbe_get_video_mode) Likewise.
17301 (grub_vbe_get_video_mode_info) Likewise.
17302 (grub_vbe_set_pixel_rgb) Likewise.
17303 (grub_vbe_set_pixel_index) Likewise.
17304 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17305 (pkgdata_MODULES): Added vesafb.mod.
17306 (pkgdata_MODULES): Added vbe_list_modes.mod.
17307 (pkgdata_MODULES): Added vbe_test.mod.
17308 (vbe_mod_SOURCES): Added.
17309 (vbe_mod_CFLAGS): Likewise.
17310 (vesafb_mod_SOURCES): Likewise.
17311 (vesafb_mod_CFLAGS): Likewise.
17312 (vbe_list_modes_mod_SOURCES): Likewise.
17313 (vbe_list_modes_mod_CFLAGS): Likewise.
17314 (vbe_test_mod_SOURCES): Likewise.
17315 (vbe_test_mod_CFLAGS): Likewise.
17317 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17319 * normal/command.c (grub_command_execute): If INTERACTIVE is
17320 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17321 CMDLINE. Disable the pager if INTERACTIVE is true.
17322 All callers are changed.
17324 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17325 before reading a config file.
17326 * normal/main.c (read_config_file): Even if a command is not
17327 found, register it if it is within an entry.
17329 * util/grub-emu.c: Include sys/types.h and unistd.h.
17330 (options): Added --hold.
17331 (struct arguments): Added a new member "hold".
17332 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17334 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17335 cleared by a debugger, if it is not zero.
17337 * include/grub/normal.h (grub_command_execute): Add an argument
17340 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17342 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17344 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17346 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17347 program with another one, because the old one didn't detect a bug
17348 in gcc-3.4. Always use regparm 2, because the new test is still
17349 not enough for gcc-4.0. Someone must investigate a simple test
17350 case which detects a bug in gcc-4.0.
17352 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17354 * DISTLIST: Added normal/completion.c.
17356 * normal/completion.c: New file.
17358 * term/i386/pc/console.c (grub_console_getwh): New function.
17359 (grub_console_term): Assign grub_console_getwh to getwh.
17361 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17362 function is defined in normal/completion.c as
17363 grub_normal_do_completion.
17364 (grub_cmdline_get): Use grub_normal_do_completion instead of
17367 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17368 returns non-zero, otherwise return 0.
17369 (grub_partition_iterate): First, probe the partition map. Then,
17370 call ITERATE only for this partition map.
17372 * kern/misc.c (grub_strncmp): Rewritten.
17374 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17375 returns non-zero. Otherwise return 0.
17377 * include/grub/partition.h (grub_partition_map_iterate): Return
17378 int instead of void.
17380 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17382 * include/grub/misc.h (grub_strncmp): Change the type of N to
17385 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17388 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17389 unsigned explicitly before comparing it with I.
17391 * kern/main.c (grub_env_write_root): Add the attribute unused into
17394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17395 normal/completion.c.
17396 (normal_mod_SOURCES): Likewise.
17397 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17398 (normal_mod_SOURCES): Likewise.
17400 * normal/command.c (grub_iterate_commands): If ITERATE returns
17401 non-zero, return one immediately.
17403 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17405 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17406 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17408 (grub_vbe_get_controller_info): New function.
17409 (grub_vbe_get_mode_info): Likewise.
17410 (grub_vbe_set_mode): Likewise.
17411 (grub_vbe_get_mode): Likewise.
17412 (grub_vbe_set_memory_window): Likewise.
17413 (grub_vbe_get_memory_window): Likewise.
17414 (grub_vbe_set_scanline_length): Likewise.
17415 (grub_vbe_get_scanline_length): Likewise.
17416 (grub_vbe_set_display_start): Likewise.
17417 (grub_vbe_get_display_start): Likewise.
17418 (grub_vbe_set_palette_data): Likewise.
17419 * include/grub/i386/pc/vbe.h: New file.
17421 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17423 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17424 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17425 * DISTLIST: Likewise.
17426 * kern/ieee1275/of.c: Moved to ...
17427 * kern/ieee1275/ieee1275.c: ... here.
17429 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17431 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17432 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17433 Pass 0 as `end' parameter to grub_strtoul().
17435 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17437 * include/grub/powerpc/ieee1275/console.h: Do not include
17438 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17440 (grub_console_cur_color): Remove i386-specific prototype.
17441 (grub_console_real_putchar): Likewise.
17442 (grub_console_checkkey): Likewise.
17443 (grub_console_getkey): Likewise.
17444 (grub_console_getxy): Likewise.
17445 (grub_console_gotoxy): Likewise.
17446 (grub_console_cls): Likewise.
17447 (grub_console_setcursor): Likewise.
17448 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17449 Include <grub/machine/console.h>.
17450 * term/ieee1275/ofconsole.c: Likewise.
17452 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17454 * Makefile.in (LIBLZO): New variable.
17456 * configure.ac: Check for LZO version 2.
17458 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17459 lzo/lzo1x.h instead of lzo1x.h.
17461 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17464 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17465 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17467 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17468 copying the data from PARTITION to P.
17470 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17472 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17473 negative, unload the module.
17475 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17476 map is "pc_partition_map" but not "pc".
17477 (usage): Fix the description. The options are --boot-image and
17478 --core-image but not --boot-file or --core-file.
17479 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17480 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17483 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17484 --core-file. Specify INSTALL_DEVICE as an argument.
17486 * util/console.c: Include config.h.
17487 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17488 [HAVE_NCURSES_H]: Include ncurses.h.
17489 [HAVE_CURSES_H]: Include curses.h.
17490 [!A_NORMAL] (A_NORMAL): Defined as zero.
17491 [!A_STANDOUT] (A_STANDOUT): Likewise.
17493 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17495 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17497 * configure.ac: Check for curses libraries and headers.
17499 * Makefile.in (LIBCURSES): New variable.
17501 * genmk.rb (Script::rule): Set the executable bits.
17503 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17504 name of the PC partition map is "pc_partition_map" but not "pc".
17506 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17508 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17509 (modules): Likewise.
17510 (usage): Added descriptions for --modules and --grub-probefs.
17511 Handle --modules and --grub-probefs. Save the arguments in MODULES
17512 and GRUB_PROBEFS, respectively.
17513 Auto-detect a filesystem module against GRUBDIR. If the result is
17514 empty and modules are not specified explicitly, abort the
17515 installation. Add the result to MODULES.
17517 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17518 disk/powerpc/ieee1275/ofdisk.c,
17519 include/grub/powerpc/ieee1275/init.h and
17520 term/powerpc/ieee1275/ofconsole.c.
17521 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17522 term/ieee1275/ofconsole.c.
17524 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17526 * COPYING: Upgraded to the latest version. Only the address of the
17527 FSF office has changed.
17529 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17531 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17532 kern/ieee1275.c with kern/ieee1275/of.c.
17534 * kern/ieee1275.c: Moved to ...
17535 * kern/ieee1275/of.c: ... here.
17537 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17539 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17542 * config.guess: Updated to the latest version from gnulib.
17543 * config.sub: Likewise.
17544 * install.sh: Likewise.
17545 * mkinstalldirs: Likewise.
17547 * include/grub/console.h: Removed. This file is arch-specific. Do
17548 not put this in include/grub.
17550 * include/grub/i386/pc/console.h: Resurrected.
17552 * util/console.c: Include grub/machine/console.h instead of
17554 * util/grub-emu.c: Likewise.
17556 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17558 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17561 From Vincent Pelletier <subdino2004@yahoo.fr>
17562 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17563 Redefined to use grub_getwh.
17564 (grub_term): New member named getwh.
17565 (grub_getwh): New prototype.
17566 * kern/term.c (grub_getwh): New function.
17567 * term/i386/pc/console.c (grub_console_getwh): New function.
17568 (grub_console_term): New member `getwh'.
17569 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17570 (grub_vga_term): New member `getwh'.
17571 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17573 (grub_ofconsole_getw): New function.
17574 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17575 (grub_ofconsole_term): New field named getwh and new initial
17578 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17580 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17581 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17582 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17583 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17584 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17585 of <grub/machine/ieee1275.h>.
17586 * commands/ieee1275/reboot.c: Likewise.
17587 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17588 * kern/ieee1275.c: ... to here. All users updated. Change all
17589 parameter structs to use new type `grub_ieee1275_cell_t'.
17590 * term/powerpc/ieee1275/ofconsole.c: Move ...
17591 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17592 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17593 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17594 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17596 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17597 Remove unused prototypes. All users updated.
17598 * include/grub/powerpc/ieee1275/console.h: Removed.
17599 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17600 `grub_ieee1275_cell_t'.
17601 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17602 Cast comparisons with -1 to the correct type.
17603 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17604 type to match `grub_ieee1275_entry_fn'.
17606 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17608 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17610 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17611 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17613 (grub_probefs_SOURCES): New variable.
17615 * util/i386/pc/grub-probefs.c: New file.
17617 * util/i386/pc/grub-setup.c (main): Call
17618 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17619 grub_hfs_init and grub_jfs_init to initialize the system. Call
17620 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17621 grub_pc_partition_map_fini to finish the system.
17623 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17625 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17627 (grub_multiboot_load_elf32): Likewise.
17628 (grub_multiboot_is_elf64): Likewise.
17629 (grub_multiboot_load_elf64): Likewise.
17630 (grub_multiboot_load_elf): Likewise.
17631 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17632 an ELF32 or ELF64 file.
17633 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17635 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17636 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17637 NULL before calling FS->LABEL.
17638 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17639 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17640 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17641 before calling FS->LABEL.
17643 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17645 * util/i386/pc/grub-install.in (datadir): New variable.
17647 (pkgdatadir): New variable.
17648 (pkglibdir): Removed.
17650 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17652 * DISTLIST: Added util/i386/pc/grub-install.in.
17654 * util/i386/pc/grub-install.in: New file.
17656 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17657 (grub_install_SOURCES): Likewise.
17659 * genmk.rb: Added support for scripts.
17660 (Script): New class.
17661 (scripts): New variable.
17663 * Makefile.in (install-local): Install sbin_SCRIPTS by
17665 (uninstall): Remove sbin_SCRIPTS.
17667 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17668 device, try to get a GRUB device by
17669 grub_util_biosdisk_get_grub_dev.
17672 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17673 description for --device-map.
17675 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17677 Change the semantics of variable hooks. They now return strings
17678 instead of error values.
17680 * util/i386/pc/grub-setup.c: Include grub/env.h.
17681 (setup): Use grub_device_set_root instead of grub_env_set.
17683 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17684 grub_env_get instead of grub_device_set_root and
17685 grub_device_get_root, respectively.
17687 * kern/main.c (grub_env_write_root): New function.
17688 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17689 grub_env_set instead of grub_device_set_root.
17691 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17693 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17694 rather than calling ENV->WRITE_HOOK afterwards.
17695 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17696 passing a pointer of a pointer.
17697 (grub_register_variable_hook): Change the types of "read_hook" and
17698 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17700 Allocate the default empty string on the heap, because this string
17701 may be freed later.
17703 * kern/device.c: Include grub/env.h.
17704 (grub_device_set_root): Removed.
17705 (grub_device_get_root): Likewise.
17706 (grub_device_open): Use grub_env_get instead of
17707 grub_device_get_root.
17709 * include/grub/env.h (grub_env_read_hook_t): New type.
17710 (grub_env_write_hook_t): Likewise.
17711 (grub_env_var): Change the types of "read_hook" and "write_hook"
17712 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17713 (grub_register_variable_hook): Likewise.
17715 * include/grub/device.h (grub_device_set_root): Removed.
17716 (grub_device_set_root): Likewise.
17718 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17719 make sure that DIRNAME terminates with '/', so that
17720 grub_fat_find_dir will fail if PATH is not a directory.
17722 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17724 Use the qualifier auto for print_files and print_files_long.
17725 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17727 Put a newline only if there is no error.
17728 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17731 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17733 * kern/partition.c (grub_partition_probe): Initialize PART to
17734 NULL. Otherwise, when no partition map is registered, this returns
17737 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17739 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17740 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17743 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17745 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17746 information on each device, if it does not have partitions. Print
17747 "Device" instead of "Disk", because this function is not specific
17750 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17751 static to ensure that it is put on the memory rather than a
17754 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17756 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17757 (grub_cat_init): Likewise.
17758 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17759 (options): Likewise.
17760 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17761 (grub_configfile_init): Likewise.
17762 * font/manager.c (GRUB_MOD_INIT): Likewise.
17763 * commands/help.c (GRUB_MOD_INIT): Likewise.
17764 (grub_help_init): Likewise.
17765 * normal/command.c (grub_command_init): Likewise.
17766 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17767 * disk/loopback.c (grub_loop_init): Likewise.
17768 (GRUB_MOD_INIT): Likewise.
17769 * commands/ls.c (grub_ls_init): Likewise.
17770 (GRUB_MOD_INIT): Likewise.
17771 (options): Likewise.
17772 * commands/boot.c (grub_boot_init): Likewise.
17773 (GRUB_MOD_INIT): Likewise.
17774 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17775 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17776 (GRUB_MOD_INIT): Likewise.
17777 * commands/cmp.c (grub_cmp_init): Likewise.
17778 (GRUB_MOD_INIT): Likewise.
17780 * normal/arg.c: Use <> instead of "" to include header files.
17781 (SHORT_ARG_HELP): New macro.
17782 (SHORT_ARG_USAGE): Likewise.
17783 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17784 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17786 (find_short): Check if C is 'h' or 'u' explicitly.
17787 (grub_arg_show_help): Use space characters instead of tabs. Treat
17788 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17789 are shown with --help and --usage only if they are not used for
17790 the command itself.
17791 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17794 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17795 const into "longarg". Change the type of "shortarg" to int.
17797 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17799 * boot/i386/pc/boot.S (boot_drive_check): New label.
17801 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17804 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17805 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17807 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17809 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17810 When turning off Gate A20, skip the check and return immediately,
17811 because this is not fatal usually.
17813 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17815 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17816 be 0x7C00 instead of 0x8000.
17818 * boot/i386/pc/pxeboot.S: Rewritten.
17820 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17822 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17825 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17827 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17828 robustness. This routine now supports a BIOS call and System
17829 Control Port A to modify the gate A20.
17831 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17832 Increased to 0x440.
17834 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17836 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17837 device path and resulting ihandle.
17838 (grub_ofdisk_close): dprintf the ihandle being closed.
17839 (grub_ofdisk_read): dprintf function parameters.
17840 * kern/mm.c (grub_mm_init_region): Likewise.
17841 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17842 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17843 size, and boot arguments.
17844 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17845 before loading into memory.
17846 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17847 before loading into memory.
17849 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17851 * kern/mm.c: Added much documentation.
17852 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17853 8, set to 5 instead of 8.
17855 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17857 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17859 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17860 (grub_mkdevicemap_SOURCES): New variable.
17862 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17863 lib/device.c of GRUB Legacy.
17865 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17867 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17868 instead of PATH is NULL.
17870 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17872 * commands/cmp.c (BUFFER_SIZE): New macro.
17873 (grub_cmd_cmp): Close the right file at the right time. Compare
17874 only data just read. Don't report files of different size as
17875 identical. Dynamically allocate buffers. Move variable
17876 declarations at the beginning of function.
17878 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17880 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17883 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17885 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17886 when backspace is pressed at beginning of line.
17888 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17890 * DISTLIST: Added genfslist.sh.
17892 * normal/main.c (fs_module_list): New variable.
17893 (autoload_fs_module): New function.
17894 (read_fs_list): Likewise.
17895 (grub_normal_execute): Call read_fs_list.
17897 * kern/fs.c (grub_fs_autoload_hook): New variable.
17898 (grub_fs_probe): Added support for auto-loading.
17900 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17901 (grub_fs_module_list_t): New type.
17903 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17904 (grub_fs_autoload_hook): New prototype.
17906 * genfslist.sh: New file.
17908 * genmk.rb: Added a rule to generate a filesystem list.
17910 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17912 * configure.ac: Fix the test for cross-compiling.
17914 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17915 define GRUB_UTIL anymore.
17917 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17918 so this function works on other systems than just big endian.
17919 (load_modules): Likewise.
17920 (add_segments): Likewise.
17922 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17924 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17925 contains `l' modifier, get a long from va_arg().
17927 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17929 * kern/mm.c (grub_free): If the next free block which is being
17930 merged is the first free block, set the first block to the block
17932 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17934 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17936 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17937 `grub_ieee1275_chosen'.
17939 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17941 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17942 (grub_ieee1275_chosen): New variable.
17943 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17945 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17946 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17947 Rename first argument to `phandle' for consistency.
17948 (grub_ieee1275_get_property_length): Likewise.
17949 (grub_ieee1275_next_property): Likewise. Change type of first argument
17950 to grub_ieee1275_phandle_t.
17951 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17952 Move export next to declaration.
17953 (grub_ieee1275_chosen): New variable.
17954 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17955 Correct cosmetic typo.
17956 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17957 `grub_ieee1275_chosen'.
17958 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17959 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17960 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17961 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17962 `grub_ieee1275_chosen'.
17964 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17966 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17968 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17969 /chosen/bootargs as "variable=value" pairs.
17971 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17973 * include/grub/misc.h (grub_dprintf): New macro.
17974 (grub_real_dprintf): New prototype.
17975 (grub_strword): Likewise.
17976 (grub_iswordseparator): Likewise.
17977 * kern/misc.c (grub_real_dprintf): New function.
17978 (grub_strword): Likewise.
17979 (grub_iswordseparator): Likewise.
17981 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17983 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17984 (roundup): Remove macro.
17985 (grub_ieee1275_flags): Make static.
17986 (grub_ieee1275_realmode): Remove.
17987 (grub_ieee1275_test_flag): New function.
17988 (grub_ieee1275_set_flag): Likewise.
17989 (find_options): Rename to `grub_ieee1275_find_options'; update
17990 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17991 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17992 (cmain): New prototype.
17993 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17994 `grub_ieee1275_flags' directly.
17995 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17996 machine/biosdisk.h.
17997 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17998 Don't include grub/machine/init.h.
17999 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
18000 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18002 (grub_ieee1275_realmode): Likewise.
18003 (grub_ieee1275_flag): New enum.
18004 (grub_ieee1275_test_flag): New prototype.
18005 (grub_ieee1275_set_flag): New prototype.
18006 * include/grub/powerpc/ieee1275/init.h: Remove file.
18007 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
18008 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
18009 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
18010 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
18012 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
18013 `grub_ieee1275_test_flag'.
18014 (grub_ieee1275_encode_devname): Likewise.
18016 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
18018 * include/grub/powerpc/ieee1275/ieee1275.h
18019 (grub_ieee1275_encode_devname): New prototype.
18020 (grub_ieee1275_get_filename): Likewise.
18021 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
18023 (grub_set_prefix): Likewise.
18024 (grub_machine_init): Call grub_set_prefix.
18025 * kern/powerpc/ieee1275/openfw.c: Fix typos.
18026 (grub_parse_type): New enum.
18027 (grub_ieee1275_get_devargs): New function.
18028 (grub_ieee1275_get_devname): Likewise.
18029 (grub_ieee1275_parse_args): Likewise.
18030 (grub_ieee1275_get_filename): Likewise.
18031 (grub_ieee1275_encode_devname): Likewise.
18033 2005-03-30 Marco Gerards <metgerards@student.han.nl>
18035 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
18036 `grub_loader_unset'.
18038 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
18040 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
18041 instead of grub_ieee1275_interpret.
18042 (grub_halt_init): New function.
18043 (grub_halt_fini): Likewise.
18044 (GRUB_MOD_INIT): Correct message grammar.
18045 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
18046 instead of grub_ieee1275_interpret.
18047 (grub_reboot_init): New function.
18048 (grub_reboot_fini): Likewise.
18049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18050 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18051 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18052 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18053 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18055 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18057 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18059 (grub_halt): Likewise.
18060 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18061 (cmain): Remove __attribute__((unused)).
18062 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18063 (grub_heap_len): Likewise.
18064 (grub_machine_fini): New function.
18065 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18066 (grub_halt): Likewise.
18067 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18069 * util/powerpc/ieee1275/misc.c: New file.
18071 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18073 * DISTLIST: New file.
18074 * gendistlist.sh: Likewise.
18076 * Makefile.in (COMMON_DISTFILES): Removed.
18077 (BOOT_DISTFILES): Likewise.
18078 (CONF_DISTFILES): Likewise.
18079 (DISK_DISTFILES): Likewise.
18080 (FS_DISTFILES): Likewise.
18081 (INCLUDE_DISTFILES): Likewise.
18082 (KERN_DISTFILES): Likewise.
18083 (LOADER_DISTFILES): Likewise.
18084 (TERM_DISTFILES): Likewise.
18085 (UTIL_DISTFILES): Likewise.
18086 (DISTFILES): Likewise.
18087 (uninstall): Uninstall files in $(pkgdata_DATA).
18088 (DISTLIST): New target.
18089 (distdir): Use the contents of the file DISTLIST to get a list of
18092 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18094 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18095 descriptor. This is ported from GRUB Legacy.
18097 * gencmdlist.sh: Added an extra semicolon to make it work with
18098 old sed versions. Reported by Robert Bihlmeyer
18099 <robbe@orcus.priv.at>.
18101 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18103 Automatic loading of commands is supported.
18105 * normal/main.c (read_command_list): New function.
18106 (grub_normal_execute): Call read_command_list.
18108 * normal/command.c (grub_register_command): Return zero or CMD.
18109 Allocate CMD->NAME from the heap.
18110 Initialize CMD->MODULE_NAME to zero.
18111 Find the same name as well. If the same command is found and it is
18112 a dummy command, overwrite members. If it is not a dummy command,
18114 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18115 (grub_command_find): If a dummy command is found, load a module
18116 and retry to find a command only once.
18118 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18119 make sure that each command is loaded.
18121 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18123 (struct grub_command): Remove const from the member `name'.
18124 Add a new member `module_name'.
18125 (grub_register_command): Return grub_command_t.
18127 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18128 sure that each command is loaded.
18130 * genmk.rb (PModule::rule): Specify a module name without the
18131 suffix ".mod" to gencmdlist.sh.
18133 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18135 * gencmdlist.sh: New file.
18137 * genmk.rb (PModule::rule): Generate a rule for a command list.
18139 Generate command.lst from $(COMMANDFILES).
18141 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18142 (DATA): Added $(pkgdata_DATA).
18143 (install-local): Install files in $(pkgdata_DATA).
18145 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18147 * term/i386/pc/vga.c (debug_command): Removed.
18148 (GRUB_MOD_INIT): Do not register the command "debug".
18150 From Hollis Blanchard:
18151 * commands/configfile.c: New file.
18152 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18153 commands/configfile.c.
18154 (pkgdata_MODULES): Added configfile.mod.
18155 (configfile_mod_SOURCES): New variable.
18156 (configfile_mod_CFLAGS): Likewise.
18157 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18158 commands/configfile.c.
18159 (pkgdata_MODULES): Added configfile.mod.
18160 (configfile_mod_SOURCES): New variable.
18161 (configfile_mod_CFLAGS): Likewise.
18162 * util/grub-emu.c (main): Call grub_configfile_init and
18163 grub_configfile_fini.
18164 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18166 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18168 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18170 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18173 * commands/help.c (grub_cmd_help): Do not print newlines after
18174 the last command in print_command_help.
18176 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18178 * commands/default.h: New file.
18179 * commands/timeout.h: Likewise.
18180 * normal/context.c: Likewise.
18182 * util/misc.c: Do not include sys/times.h.
18183 Include sys/time.h and grub/machine/time.h.
18184 (grub_get_rtc): Rewritten with gettimeofday.
18186 * util/grub-emu.c (main): Call grub_default_init and
18187 grub_timeout_init before grub_normal_init, and call
18188 grub_timeout_fini and grub_default_fini after grub_main.
18190 * util/console.c (grub_ncurses_checkkey): Return the read
18193 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18196 * normal/main.c (read_config_file): Push MENU. If this fails,
18197 print an error and wait for a user input.
18198 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18199 If a menu is empty or an error occurs, pop MENU.
18200 (grub_normal_execute): Pop and free MENU after grub_menu_run
18203 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18205 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18207 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18209 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18211 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18214 * include/grub/normal.h (struct grub_menu_list): New struct.
18215 (grub_menu_list_t): New type.
18216 (struct grub_context): New struct.
18217 (grub_context_t): New type.
18218 (grub_register_command): Got rid of EXPORT_FUNC.
18219 (grub_unregister_command): Likewise.
18220 (grub_context_get): New prototype.
18221 (grub_context_get_current_menu): Likewise.
18222 (grub_context_push_menu): Likewise.
18223 (grub_context_pop_menu): Likewise.
18224 [GRUB_UTIL] (grub_default_init): Likewise.
18225 [GRUB_UTIL] (grub_default_fini): Likewise.
18226 [GRUB_UTIL] (grub_timeout_init): Likewise.
18227 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18229 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18230 commands/timeout.c and normal/context.c.
18231 (pkgdata_MODULES): Added default.mod and timeout.mod.
18232 (normal_mod_SOURCES): Added normal/context.c.
18233 (default_mod_SOURCES): New variable.
18234 (default_mod_CFLAGS): Likewise.
18235 (timeout_mod_SOURCES): Likewise.
18236 (timeout_mod_CFLAGS): Likewise.
18237 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18239 (pkgdata_MODULES): Added default.mod and timeout.mod.
18240 (normal_mod_SOURCES): Added normal/context.c.
18241 (default_mod_SOURCES): New variable.
18242 (default_mod_CFLAGS): Likewise.
18243 (timeout_mod_SOURCES): Likewise.
18244 (timeout_mod_CFLAGS): Likewise.
18246 * Makefile.in (all-local): Added $(MKFILES).
18248 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18251 (grub_emu_SOURCES): Likewise.
18252 (pkgdata_MODULES): Add `sun.mod'.
18253 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18254 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18256 (pkgdata_MODULES): Add `sun.mod'.
18257 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18258 * include/grub/partition.h (grub_sun_partition_map_init): New
18260 (grub_sun_partition_map_fini): Likewise.
18261 * partmap/sun.c: New file.
18262 * util/grub-emu.c (main): Initialize and de-initialize the sun
18263 partitionmap support.
18265 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18267 This implements an Emacs-like menu entry editor.
18269 * normal/menu_entry.c: New file.
18271 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18272 characters to ASCII.
18273 (saved_char): New variable.
18274 (grub_ncurses_checkkey): Rewritten completely.
18275 (grub_ncurses_getkey): Likewise.
18276 (grub_ncurses_init): Call raw instead of cbreak.
18278 * normal/menu.c (print_entry): Do not put a space.
18279 (init_page): Renamed to ...
18280 (grub_menu_init_page): ... this. All callers changed.
18281 (edit_menu_entry): Removed.
18282 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18284 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18286 * kern/misc.c (grub_vprintf): Call grub_refresh.
18288 * normal/menu.c (DISP_LEFT): Renamed to ...
18289 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18290 * normal/menu.c (DISP_UP): Renamed to ...
18291 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18292 * normal/menu.c (DISP_RIGHT): Renamed to ...
18293 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18294 * normal/menu.c (DISP_DOWN): Renamed to ...
18295 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18296 * normal/menu.c (DISP_HLINE): Renamed to ...
18297 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18298 * normal/menu.c (DISP_VLINE): Renamed to ...
18299 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18300 * normal/menu.c (DISP_UL): Renamed to ...
18301 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18302 * normal/menu.c (DISP_UR): Renamed to ...
18303 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18304 * normal/menu.c (DISP_LL): Renamed to ...
18305 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18306 * normal/menu.c (DISP_LR): Renamed to ...
18307 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18308 * normal/menu.c (TERM_WIDTH): Renamed to ...
18309 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18310 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18311 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18312 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18313 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18314 * normal/menu.c (TERM_MARGIN): Renamed to ...
18315 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18316 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18317 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18318 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18319 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18320 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18321 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18322 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18323 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18324 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18325 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18326 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18327 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18328 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18329 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18330 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18331 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18332 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18333 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18334 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18335 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18336 All callers changed.
18338 * include/grub/normal.h: New prototype.
18340 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18341 normal/menu_entry.c.
18342 (normal_mod_SOURCES): Likewise.
18343 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18344 (normal_mod_SOURCES): Likewise.
18346 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18348 * include/grub/normal.h (grub_halt_init): New prototype.
18349 (grub_halt_fini): Likewise.
18350 (grub_reboot_init): Likewise.
18351 (grub_reboot_fini): Likewise.
18353 * util/grub-emu.c: Include signal.h.
18354 (main_env): New global variable.
18355 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18357 (grub_machine_fini): New function.
18358 (main): Call grub_halt_init and grub_reboot_init before
18359 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18360 Call setjmp with MAIN_ENV to go back afterwards.
18361 Call grub_machine_fini right before return.
18363 * include/grub/util/misc.h: Include setjmp.h.
18364 (main_env): New prototype.
18366 * include/grub/kernel.h (grub_machine_fini): New prototype.
18367 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18368 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18370 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18371 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18372 * term/i386/pc/console.c (grub_console_fini): Likewise.
18374 * util/i386/pc/misc.c: New file.
18376 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18377 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18378 commands/i386/pc/reboot.c.
18380 2005-02-14 Guillem Jover <guillem@hadrons.org>
18382 * include/grub/dl.h (grub_dl_check_header): New prototype.
18383 (grub_arch_dl_check_header): Change return type to grub_err_t,
18384 remove size parameter and export function. Update all callers.
18385 * kern/dl.c (grub_dl_check_header): New function.
18386 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18387 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18388 are inside the core.
18389 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18390 independent ELF header checks.
18391 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18392 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18393 `grub_dl_check_header' instead of explicit checks. Check for the
18395 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18396 `grub_dl_check_header' instead of explicit checks. Remove arch
18397 specific ELF header checks.
18399 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18402 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18404 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18405 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18407 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18409 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18410 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18411 (part_map_iterate): Clear `grub_errno' and return 0 if
18412 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18413 * partmap/amiga.c (amiga_partition_map_iterate): Return
18414 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18415 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18417 2005-02-01 Guillem Jover <guillem@hadrons.org>
18419 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18422 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18424 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18426 (grub_rescue_cmd_linux): New prototype.
18427 (grub_rescue_cmd_initrd): Likewise.
18428 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18430 (grub_linux_release_mem): Release the memory for the initrd.
18431 (grub_load_linux): Renamed from this...
18432 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18433 Changed `entry' not to be static. Loop over memory regions to
18434 find another one when the default fails.
18435 (grub_rescue_cmd_initrd): New function.
18436 (grub_linux_init): Remove function.
18437 (grub_linux_fini): Likewise.
18438 (GRUB_MOD_INIT): Register `initrd'.
18439 (GRUB_MOD_FINI): Unregister `initrd'.
18440 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18442 (grub_linux_normal_fini): Likewise.
18443 (GRUB_MOD_INIT): Register `initrd'.
18444 (GRUB_MOD_FINI): Unregister `initrd'.
18446 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18448 * commands/help.c: New file.
18449 * normal/arg.c (show_help): Renamed to...
18450 (grub_arg_show_help): ... this.
18451 * commands/i386/pc/halt.c: New file.
18452 * commands/i386/pc/reboot.c: Likewise.
18453 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18454 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18455 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18456 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18460 (pkgdata_MODULES): Add `help.mod'.
18461 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18462 * grub/i386/pc/init.h (grub_reboot): New prototype.
18463 (grub_halt): Likewise.
18464 * include/grub/normal.h (grub_arg_show_help): New prototype.
18465 (grub_help_init): Likewise.
18466 (grub_help_fini): Likewise.
18467 * util/grub-emu.c (main): Initialize and deinitialize the help
18470 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18472 * normal/command.c (grub_command_init): Fixed the description of
18473 the `set' and `unset' commands.
18475 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18477 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18479 * commands/ieee1275/halt.c: New file.
18480 * commands/ieee1275/reboot.c: Likewise.
18481 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18482 `__attribute__ ((unused))'. Some GCS related fixed.
18483 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18484 (grub_suspend_fini): Likewise.
18485 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18487 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18488 (halt_mod_CFLAGS): New variables.
18489 * include/grub/powerpc/ieee1275/ieee1275.h
18490 (grub_ieee1275_interpret): New prototype.
18492 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18494 * include/grub/misc.h (memmove): New prototype.
18495 (memcpy): Likewise.
18497 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18499 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18500 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18502 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18504 * kern/misc.c (grub_strndup): Function rewritten.
18506 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18508 * normal/menu.c (TERM_WIDTH): Macro redefined.
18509 (TERM_TOP_BORDER_Y): Likewise.
18510 (draw_border): Replaced while-loop by a for-loop. Make the number
18511 of lines consistent with the number of lines displayed in
18512 print_entries. Added a margin below the rectangle.
18513 (print_entry): Make the entry fit in the rectangle.
18514 (print_entries): Display the scroll arrows next to the right
18517 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18519 * fs/minix.c (grub_minix_find_file): Reserve more space for
18520 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18521 `grub_strncpy' to copy `path' into it.
18523 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18525 Add the loopback device, a device via which files can be accessed
18528 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18529 (pkgdata_MODULES): Add loopback.mod.
18530 (loopback_mod_SOURCES): New variable.
18531 (loopback_mod_CFLAGS): Likewise.
18532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18534 (pkgdata_MODULES): Add loopback.mod.
18535 (loopback_mod_SOURCES): New variable.
18536 (loopback_mod_CFLAGS): Likewise.
18537 * disk/loopback.c: new file.
18538 * include/grub/normal.h (grub_loop_init): New prototype.
18539 (grub_loop_fini): New prototype.
18540 * util/grub-emu.c (main): Initialize and de-initialize loopback
18542 * include/grub/disk.h (grub_disk_dev_id): Add
18543 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18545 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18547 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18549 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18550 (suspend_mod_SOURCES): New variable.
18551 (suspend_mod_CFLAGS): Likewise.
18552 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18554 * commands/ieee1275/suspend.c: New file.
18556 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18558 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18559 ((unused))' to `__attribute__ ((used))'.
18560 (GRUB_MOD_FINI): Likewise.
18561 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18562 * genmk.rb (PModule): Assign space to common symbols when linking
18565 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18567 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18568 `unsigned' arguments to `grub_size_t'.
18569 (grub_malloc): Likewise.
18570 (grub_realloc): Likewise.
18571 (grub_memalign): Likewise.
18572 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18573 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18574 * util/misc.c (grub_malloc): Likewise.
18575 (grub_realloc): Likewise.
18576 * kern/mm.c (get_header_from_pointer): Change the casts to
18577 `unsigned' into a cast to `grub_size_t'.
18579 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18580 point to `currnode' when `currnode' is changed.
18582 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18583 Schottelius <nico-linux@schottelius.org>.
18585 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18587 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18588 (note_path): Remove variable.
18589 (GRUB_IEEE1275_NOTE_NAME): New macro.
18590 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18591 (grub_ieee1275_note_hdr): New structure.
18592 (grub_ieee1275_note_desc): Likewise.
18593 (grub_ieee1275_note): Likewise.
18594 (load_note): Remove `dir' argument. All callers updated. Remove
18595 `note_img' and `path'. Do not load a file from `note_path'.
18596 Initialize a struct grub_ieee1275_note and write that to `out'.
18597 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18599 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18601 * util/misc.c (grub_util_read_image): Revert last change. It
18602 called `grub_util_read_at', which seeks from the beginning of the
18605 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18607 * TODO: Add note about endianness in grub-mkimage.
18608 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18610 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18611 (grub_mkimage_SOURCES): New target.
18612 * include/grub/kernel.h (grub_start_addr): Remove variable.
18613 (grub_end_addr): Likewise.
18614 (grub_total_module_size): Likewise.
18615 (grub_kernel_image_size): Likewise.
18616 (GRUB_MODULE_MAGIC): New constant.
18617 (grub_module_info): New structure.
18618 (grub_arch_modules_addr): New prototype.
18619 (grub_get_end_addr): Remove prototype.
18620 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18621 * include/grub/powerpc/ieee1275/kernel.h: New file.
18622 * include/grub/util/misc.h (grub_util_get_fp_size): New
18624 (grub_util_read_at): Likewise.
18625 (grub_util_write_image_at): Likewise.
18626 * kern/main.c (grub_get_end_addr): Remove function.
18627 (grub_load_modules): Call grub_arch_modules_addr instead of using
18628 grub_end_addr. Look for a grub_module_info struct in memory. Use
18629 the grub_module_info fields instead of calling grub_get_end_addr
18630 as loop conditions. Move grub_add_unused_region code here.
18631 (grub_add_unused_region): Remove function.
18632 * kern/i386/pc/init.c: Include grub/cache.h.
18633 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18634 one call to add_mem_region.
18635 (grub_arch_modules_addr): New function.
18636 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18637 (grub_total_module_size): Likewise.
18638 Include grub/machine/kernel.h.
18639 (grub_arch_modules_addr): New function.
18640 * util/grub-emu.c (grub_end_addr): Remove variable.
18641 (grub_total_module_size): Likewise.
18642 (grub_arch_modules_addr): New function.
18643 * util/misc.c: Include unistd.h.
18644 (grub_util_get_fp_size): New function.
18645 (grub_util_read_at): Likewise.
18646 (grub_util_write_image_at): Likewise.
18647 (grub_util_read_image): Call grub_util_read_at.
18648 (grub_util_write_image): Call grub_util_write_image_at.
18649 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18650 additional memory in kernel_img for a struct grub_module_info.
18651 Fill in that grub_module_info.
18652 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18654 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18656 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18658 * include/grub/powerpc/ieee1275/ieee1275.h
18659 (grub_ieee1275_milliseconds): New prototype.
18660 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18662 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18663 grub_ieee1275_milliseconds.
18665 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18667 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18669 (find_options): New function.
18670 (cmain): Call find_options.
18671 * include/grub/powerpc/ieee1275/ieee1275.h
18672 (grub_ieee1275_realmode): New extern variable.
18673 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18674 grub_map if grub_ieee1275_realmode is false.
18676 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18678 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18679 lines are inserted and make it work like readline. Reported by
18680 Vincent Pelletier <subdino2004@yahoo.fr>.
18682 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18684 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18687 `kern/powerpc/cache.S'.
18689 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18691 * genmk.rb: Handle the `Program' class in the main loop. Written
18692 by Johan Rydberg <jrydberg@gnu.org>.
18693 (Program): New class.
18694 (programs): New variable.
18695 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18696 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18697 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18698 (help_arch): Function removed.
18699 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18700 `powerpc/libgcc.h' and `loader.h'.
18701 (pkgdata_PROGRAMS): New variable.
18702 (sbin_UTILITIES): Variable removed.
18703 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18704 (grubof_SOURCES): Variable re-defined so it only includes the
18705 core functionality.
18706 (grubof_CFLAGS): Remove `-DGRUBOF'.
18707 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18708 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18709 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18710 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18711 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18712 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18713 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18714 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18715 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18716 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18717 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18718 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18719 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18720 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18721 (pc_mod_CFLAGS): New variables.
18722 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18723 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18724 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18725 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18727 * include/grub/i386/pc/init.h (grub_os_area_addr)
18728 (rub_os_area_size): ... to here.
18729 * include/grub/powerpc/ieee1275/ieee1275.h
18730 (grub_ieee1275_entry_fn): Export symbol.
18731 * include/grub/powerpc/ieee1275/init.h: New file.
18732 * include/grub/powerpc/libgcc.h: Likewise.
18733 * include/grub/cache.h: Likewise.
18734 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18735 <hollis@penguinppc.org>.
18736 * kern/dl.c: Include <grub/cache.h>.
18737 (grub_dl_flush_cache): New function.
18738 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18740 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18741 (grub_console_init): Removed prototypes.
18742 (grub_machine_init): Don't initialize the modules anymore.
18743 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18745 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18746 Macro undef removed.
18747 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18748 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18749 relocation `R_PPC_REL32'. Return an error when the relocation is
18751 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18752 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18753 * util/misc.c (grub_arch_sync_caches): Likewise.
18755 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18757 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18758 `symlist.c', add `grubof_symlist.c'.
18759 (symlist.c): Variable removed.
18760 (grubof_HEADERS): Variable added.
18761 (grubof_symlist.c): New target.
18762 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18763 `kernel_img_HEADERS'.
18764 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18765 * kern/powerpc/dl.c: New file.
18766 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18768 (grub_arch_dl_relocate_symbols): Likewise.
18769 (grub_register_exported_symbols): Likewise.
18771 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18773 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18774 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18775 to fail instead. Reported by Vincent Pelletier
18776 <subdino2004@yahoo.fr>.
18778 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18779 it is not allocated. Reported by Vincent Pelletier
18780 <subdino2004@yahoo.fr>.
18782 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18783 output so the output looks better.
18785 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18787 Modulize the partition map support and add support for the amiga
18790 * commands/ls.c: Include <grub/partition.h> instead of
18791 <grub/machine/partition.h>.
18792 * kern/disk.c: Likewise.
18793 * kern/rescue.c: Likewise.
18794 * loader/i386/pc/chainloader.c: Likewise.
18795 * normal/cmdline.c: Likewise.
18796 * kern/powerpc/ieee1275/init.c: Likewise.
18797 (grub_machine_init): Call `grub_pc_partition_map_init',
18798 `grub_amiga_partition_map_init' and
18799 `grub_apple_partition_map_init'.
18800 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18801 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18802 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18803 `partition.h' and `pc_partition.h'.
18804 (grub_setup_SOURCES): Remove
18805 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18806 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18807 (grub_emu_SOURCES): Likewise.
18808 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18809 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18810 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18812 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18813 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18814 (grubof_SOURCES): Likewise.
18815 * disk/i386/pc/partition.c: File removed.
18816 * disk/powerpc/ieee1275/partition.c: Likewise.
18817 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18818 * include/grub/i386/pc/partition.h: Likewise.
18819 * kern/partition.c: New file.
18820 * partmap/amiga.c: Likewise.
18821 * partmap/apple.c: Likewise.
18822 * partmap/pc.c: Likewise.
18823 * include/grub/partition.h: Likewise..
18824 * include/grub/pc_partition.h: Likewise.
18825 * util/grub-emu.c: Include <grub/partition.h> instead of
18826 <grub/machine/partition.h>.
18827 (main): Call `grub_pc_partition_map_init',
18828 `grub_amiga_partition_map_init' and
18829 `grub_apple_partition_map_init' and deinitialize afterwards.
18830 * util/i386/pc/biosdisk.c: Include `#include
18831 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18832 `<grub/machine/partition.h>'.
18833 * util/i386/pc/grub-setup.c: Likewise.
18834 * util/i386/pc/biosdisk.c: Likewise.
18835 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18836 partition information in case of a PC partition.
18837 * util/i386/pc/grub-setup.c: Include `#include
18838 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18839 `<grub/machine/partition.h>'.
18840 (setup): Only access the PC specific partition information in case
18843 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18845 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18846 (grub_longjmp): Likewise.
18847 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18849 * normal/powerpc/setjmp.S: New file.
18850 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18851 `normal/powerpc/setjmp.S'.
18852 (grubof_CFLAGS): Add `-DGRUBOF'.
18853 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18854 [GRUB_UTIL && !GRUBOF].
18856 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18858 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18859 property named `name'. Correctly handle the error returned by
18860 `grub_ieee1275_finddevice' if a device can not be opened.
18862 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18864 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18865 `actual' for negativity.
18866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18869 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18871 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18872 (PAGE_OFFSET): New macro.
18873 (CRTC_ADDR_PORT): Likewise.
18874 (CRTC_DATA_PORT): Likewise.
18875 (START_ADDR_HIGH_REGISTER): Likewise.
18876 (START_ADDR_LOW_REGISTER): Likewise.
18877 (GRAPHICS_ADDR_PORT): Likewise.
18878 (GRAPHICS_DATA_PORT): Likewise.
18879 (READ_MAP_REGISTER): Likewise.
18880 (INPUT_STATUS1_REGISTER): Likewise.
18881 (INPUT_STATUS1_VERTR_BIT): Likewise.
18882 (page): New variable.
18883 (wait_vretrace): New function.
18884 (set_read_map): Likewise.
18885 (set_start_address): Likewise.
18886 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18888 (check_vga_mem): Take the page into account.
18889 (write_char): Likewise.
18890 (write_cursor): Likewise.
18891 (scroll_up): Likewise. Copy the page to the page that is not
18892 shown and switch between both pages.
18893 (grub_vga_putchar): Fix off by one error.
18894 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18897 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18899 Add support for iso9660 (including rockridge).
18901 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18902 (iso9660_mod_SOURCES): New variable.
18903 (iso9660_mod_CFLAGS): Likewise.
18904 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18905 * include/grub/fs.h (grub_iso9660_init): New prototype.
18906 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18907 * fs/iso9660.c: New file.
18909 * include/grub/misc.h (grub_strncat): New prototype.
18910 * kern/misc.c (grub_strncat): New function.
18912 * fs/hfs.c (grub_hfs_mount): Translate the error
18913 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18914 * fs/jfs.c (grub_jfs_mount): Likewise.
18915 * fs/ufs.c (grub_ufs_mount): Likewise.
18917 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18919 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18920 which initialized BAT registers.
18921 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18922 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18924 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18925 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18927 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18928 (grub_mapclaim): Likewise.
18929 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18930 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18933 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18935 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18936 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18937 -ffreestanding and -msoft-float.
18939 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18941 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18942 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18943 set in grub_ieee1275_flags.
18945 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18947 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18949 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18950 grub_console_init first.
18951 Change the memory range used for grub_ieee1275_claim and
18952 grub_mm_init_region.
18953 Print an error message if the claim fails.
18954 Include <grub/misc.h>.
18956 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18958 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18959 Call grub_children_iterate for device nodes of type `scsi',
18961 (grub_ofdisk_open): Remove manual device alias resolution.
18962 Fix memory leak when device cannot be opened.
18963 * include/grub/powerpc/ieee1275/ieee1275.h
18964 (grub_children_iterate): New prototype.
18965 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18967 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18968 Return -1 if args.size was -1.
18970 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18972 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18973 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18974 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18975 Open Firmware's memory for it; claim memory from _start to _end.
18976 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18977 (_end): New extern.
18978 (_start): Zero BSS from __bss_start to _end.
18979 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18981 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18983 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18985 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18986 -1 if args.base was -1.
18988 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18990 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18991 escape sequence instead of a literal ^L. Also call
18992 grub_ofconsole_gotoxy.
18994 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18996 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18997 void * arguments to grub_addr_t. All callers updated. Also make
18998 the `result' argument optional.
18999 (grub_ieee1275_release): change void * arguments to grub_addr_t.
19000 All callers updated.
19002 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
19004 * commands/ls.c (grub_ls_list_files): Use the string following the
19005 initial ')', if present, as the filesystem path.
19006 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
19008 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
19010 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
19012 Make the source code of the menu interface more readable.
19014 * normal/menu.c: Include grub/mm.h.
19015 (TERM_WIDTH): New macro.
19016 (TERM_HEIGHT): Likewise.
19017 (TERM_INFO_HEIGHT): Likewise.
19018 (TERM_MARGIN): Likewise.
19019 (TERM_SCROLL_WIDTH): Likewise.
19020 (TERM_TOP_BORDER_Y): Likewise.
19021 (TERM_LEFT_BORDER_X): Likewise.
19022 (TERM_BORDER_WIDTH): Likewise.
19023 (TERM_MESSAGE_HEIGHT): Likewise.
19024 (TERM_BORDER_HEIGHT): Likewise.
19025 (TERM_NUM_ENTRIES): Likewise.
19026 (TERM_FIRST_ENTRY_Y): Likewise.
19027 (TERM_ENTRY_WIDTH): Likewise.
19028 (TERM_CURSOR_X): Likewise.
19029 (draw_border): Use macros instead of magic numbers.
19030 (print_entry): Likewise.
19031 (print_entries): Likewise.
19032 (run_menu): Likewise. Also, handle the key 'e'.
19033 (run_menu_entry): Ignore empty command lines.
19034 (print_message): Added a new argument EDIT. If EDIT is true,
19035 print a different message.
19036 (init_page): Likewise.
19037 (edit_menu_entry): New function. Not implemented yet.
19039 2004-09-17 Marco Gerards <metgerards@student.han.nl>
19041 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
19042 can be loaded from normal mode.
19044 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
19046 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
19047 (multiboot_mod_CFLAGS): New variables.
19048 * loader/i386/pc/linux_normal.c: New file.
19049 * loader/i386/pc/multiboot_normal.c: Likewise.
19051 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19052 attribute `unused'.
19054 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19055 `fdiro' to read the mode information from instead of `diro'.
19057 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19058 looking up a symlink.
19060 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19062 * normal/command.c (grub_command_execute): Don't parse the
19063 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19064 flags of the command.
19066 * normal/menu.c (grub_menu_run): Fix typo.
19068 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19070 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19072 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19073 `y + 1' instead of `y - 1'.
19075 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19077 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19079 From Hollis Blanchard <hollis@penguinppc.org>:
19080 * kern/misc.c (memmove): New alias for grub_memmove.
19081 (memcmp): New alias for grub_memcmp.
19082 (memset): New alias for grub_memset.
19083 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19084 Change "int handle" to "grub_ieee1275_phandle_t handle".
19085 * include/grub/powerpc/ieee1275/ieee1275.h
19086 (grub_ieee1275_get_property): Likewise.
19088 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19090 Added normal mode command `chainloader' as module chain.mod, which
19091 depends on normal.mod and _chain.mod.
19093 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19094 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19095 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19097 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19098 but arguments parsing moved to ...
19099 (grub_chainloader_cmd): ... here. New function.
19100 * include/grub/i386/pc/chainloader.h: New file.
19101 * loader/i386/pc/chainloader_normal.c: Likewise.
19103 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19105 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19106 (grub_mkimage_LDFLAGS): Likewise.
19107 (grub_emu_SOURCES): Likewise.
19108 (kernel_img_HEADERS): Added fshelp.h.
19109 * fs/ext2.c: Include <grub/fshelp.h>.
19110 (FILETYPE_REG): New macro.
19111 (FILETYPE_INO_REG): Likewise.
19112 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19114 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19116 (grub_fshelp_node): New struct.
19117 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19119 (grub_ext2_get_file_block): Removed function.
19120 (grub_ext2_read_block): New function.
19121 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19122 This function was written.
19123 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19124 (grub_ext2_find_file): Removed function.
19125 (grub_ext2_read_symlink): New function.
19126 (grub_ext2_iterate_dir): Likewise.
19127 (grub_ext2_open): Rewritten.
19128 (grub_ext2_dir): Rewritten.
19129 * include/grub/fshelp.h: New file.
19130 * fs/fshelp.c: Likewise.
19132 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19134 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19135 (print_message): Add a missing newline.
19136 (run_menu): Added timeout support.
19137 (run_menu_entry): New local function.
19138 (grub_menu_run): Added support for booting.
19140 * kern/loader.c (grub_loader_is_loaded): New function.
19142 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19143 (grub_get_rtc): Exported.
19145 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19146 (grub_get_rtc): Exported.
19148 * include/grub/normal.h (struct grub_command_list): Remove
19149 constant from the member `command'.
19151 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19153 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19155 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19157 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19159 Add support for the JFS filesystem.
19161 * fs/jfs.c: New file.
19162 * include/grub/fs.h (grub_jfs_init): New prototype.
19163 (grub_jfs_fini): New prototype.
19164 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19165 (grub_emu_SOURCES): Likewise.
19166 (pkgdata_MODULES): Add jfs.mod.
19167 (jfs_mod_SOURCES): New variable.
19168 (jfs_mod_CFLAGS): Likewise.
19169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19170 (grubof_SOURCES): Likewise.
19171 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19173 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19174 endian to the host endian.
19175 (grub_fat_utf16_to_utf8): Move function from there...
19176 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19177 the endianness of the source string anymore.
19178 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19180 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19182 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19183 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19184 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19185 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19187 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19188 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19189 for `node_found' and `it_dir'.
19190 (grub_hfs_dir): Add prototype for `dir_hook'.
19192 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19193 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19194 and `indir32' to silence a gcc warning.
19196 * include/grub/fs.h (grub_hfs_init): New prototype.
19197 (grub_hfs_fini): Likewise.
19200 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19202 Each disk device has its own id now. This is useful to make use
19203 of multiple disk devices.
19205 * include/grub/disk.h (grub_disk_dev_id): New enum.
19206 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19207 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19209 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19210 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19212 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19213 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19215 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19216 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19218 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19219 "id" which is used by the cache manager.
19221 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19224 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19226 * fs/hfs.c: New file.
19227 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19228 (grub_emu_SOURCES): Likewise.
19229 (pkgdata_MODULES): Add hfs.mod.
19230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19231 (grubof_SOURCES): Likewise.
19232 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19234 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19235 * kern/misc.c (grub_strncasecmp): Add function.
19237 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19239 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19242 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19243 (grub_ext2_dir): In case the directory entry type is unknown, read
19246 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19248 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19249 grub_load_linux instead of grub_rescue_cmd_linux as second
19250 argument of grub_rescue_register_command.
19252 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19254 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19256 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19258 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19259 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19260 `loader/powerpc/ieee1275/linux.c',
19261 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19262 * include/grub/powerpc/ieee1275/ieee1275.h
19263 (grub_ieee1275_release): New prototype.
19264 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19265 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19266 normal, boot, linux and linux_normal.
19267 * loader/powerpc/ieee1275/linux.c: New file.
19268 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19270 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19272 * normal/arg.c (grub_arg_parse): Correct error handling after
19273 reallocating the argumentlist (check if `argl' is not null instead
19274 of checking if `args' is not null).
19275 * kern/mm.c (grub_realloc): Return the same pointer when using the
19276 same region, instead of returning the header address.
19278 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19280 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19281 one block instead of two when looking for the initial partition.
19282 (grub_partition_probe): Initialize the local variable `p' with 0.
19283 Use base 10 for the grub_strtoul call.
19284 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19285 need for one local variable.
19286 (grub_strtoul): Don't add the new value to `num', instead of that
19289 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19291 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19292 (pxeboot_img_SOURCES): New variable.
19293 (pxeboot_img_ASFLAGS): Likewise.
19294 (pxeboot_img_LDFLAGS): Likewise.
19295 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19296 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19297 <lode_leroy@hotmail.com>.
19299 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19301 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19302 there was no input.
19304 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19306 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19307 the history buffer logic.
19309 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19311 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19312 (FILETYPE_INO_SYMLINK): New macros.
19313 (grub_ext2_find_file): Check if the node is a directory using the
19314 inode stat information instead of using the filetype in the
19315 dirent. Exclude the first character of an absolute symlink.
19316 (grub_ext2_dir): Mask out the filetype part of the mode member of
19319 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19321 Add support for UFS version 1 and 2. Add support for the minix
19322 filesystem version 1 and 2, both the variants with 14 and 30 long
19325 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19327 (grub_emu_SOURCES): Likewise.
19328 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19329 (ufs_mod_SOURCES): New variable.
19330 (ufs_mod_CFLAGS): Likewise.
19331 (minix_mod_SOURCES): Likewise.
19332 (minix_mod_CFLAGS): Likewise.
19333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19335 (grubof_SOURCES): Likewise.
19336 * fs/ufs.c: New file.
19337 * fs/minix.c: New file.
19338 * include/grub/fs.h (grub_ufs_init): New prototype.
19339 (grub_ufs_fini): Likewise.
19340 (grub_minix_init): Likewise.
19341 (grub_minix_fini): Likewise.
19342 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19345 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19347 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19348 commands/ls.c, commands/terminal.c, commands/boot.c,
19349 commands/cmp.c and commands/cat.c.
19350 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19352 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19355 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19357 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19358 and grub_, respectively. Because the conversion is trivial and
19359 mechanical, I omit the details here. Please refer to the CVS
19360 if you need more information.
19362 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19364 * include/pupa: Renamed to ...
19365 * include/grub: ... this.
19366 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19367 * util/i386/pc/grub-mkimage.c: ... this.
19368 * util/i386/pc/pupa-setup.c: Renamed to ...
19369 * util/i386/pc/grub-setup.c: ... this.
19370 * util/pupa-emu.c: Renamed to ...
19371 * util/grub-emu.c: ... this.
19373 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19375 Add support for the newworld apple macintosh (PPC). This has been
19376 tested on the powerbook 2000 only. It only adds support for
19377 generic ieee1275 functions, console and disk support. This should
19378 be easy to port to other architectures with support for Open
19381 * configure.ac: Accept the powerpc as host_cpu. In the case of
19382 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19383 specific tests are only executed while building for the i386.
19384 Inverse test for crosscompile.
19385 * genmk.rb (Utility): Allow assembler files.
19386 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19387 * conf/powerpc-ieee1275.rmk: New file.
19388 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19389 * disk/powerpc/ieee1275/partition.c: Likewise.
19390 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19391 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19392 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19393 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19394 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19395 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19396 * include/pupa/powerpc/ieee1275/loader.h
19397 * include/pupa/powerpc/setjmp.h: Likewise.
19398 * include/pupa/powerpc/types.h: Likewise.
19399 * kern/powerpc/ieee1275/init.c: Likewise.
19400 * kern/powerpc/ieee1275/openfw.c: Likewise.
19401 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19403 These files were written by Johan Rydberg
19404 (jrydberg@night.trouble.net) and I only modified them slightly.
19406 * boot/powerpc/ieee1275/cmain.c: New file.
19407 * boot/powerpc/ieee1275/crt0.S: Likewise.
19408 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19409 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19411 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19413 * Makefile.in: Update copyright.
19414 * genmodsrc.sh: Likewise.
19415 * gensymlist.sh: Likewise.
19416 * term/i386/pc/vga.c: Indent correctly.
19418 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19419 bugreporting address.
19420 * util/i386/pc/pupa-setup.c (usage): Likewise,
19421 (main): Call pupa_ext2_init and pupa_ext2_fini.
19423 * fs/fat.c (log2): Renamed to ...
19424 (fat_log2): ... this.
19425 All callers changed.
19426 * kern/misc.c (memcpy): Alias to pupa_memmove.
19427 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19429 * util/console.c (pupa_ncurses_fini): Return 0.
19431 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19432 Move fail label here.
19433 [__GNU__]: Don't warn when using stat.
19434 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19435 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19436 long int. Use strtol instead of strtoul.
19438 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19440 * commands/boot.c: New file.
19441 * commands/cat.c: Likewise.
19442 * commands/cmp.c: Likewise.
19443 * commands/ls.c: Likewise.
19444 * commands/terminal.c: Likewise.
19445 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19446 (pupa_register_command): Changed interface to match the new
19448 (pupa_command_execute): Changed (almost rewritten) so it uses
19449 pupa_split_command. Added support for setting variables using the
19451 (rescue_command): Changed to work with the new argument parser.
19452 (terminal_command): Moved from here to commands/terminal.c.
19453 (set_command): New function.
19454 (unset_command): New function.
19455 (insmod_command): New function.
19456 (rmmod_command): New function.
19457 (lsmod_command): New function.
19458 (pupa_command_init): Don't initialize the command terminal
19459 anymore. Initialize the commands set, unset, insmod, rmmod and
19461 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19462 (kernel_img_HEADERS): Add arg.h and env.h.
19463 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19464 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19465 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19467 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19469 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19470 (boot_mod_SOURCES): New variable.
19471 (terminal_mod_SOURCES): Likewise.
19472 (ls_mod_SOURCES): Likewise.
19473 (cmp_mod_SOURCES): Likewise.
19474 (cat_mod_SOURCES): Likewise.
19476 * normal/arg.c: New file.
19477 * kern/env.c: Likewise.
19478 * include/pupa/arg.h: Likewise.
19479 * include/pupa/env.h: Likewise.
19480 * font/manager.c (font_command): Changed to match argument parsing
19482 (PUPA_MOD_INIT): Likewise.
19483 * hello/hello.c (pupa_cmd_hello): Likewise.
19484 (PUPA_MOD_INIT): Likewise.
19485 * include/pupa/disk.h: Include <pupa/device.h>.
19486 (pupa_print_partinfo): New prototype.
19487 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19488 (pupa_dl_get_prefix): Likewise.
19489 * include/pupa/misc.h: Include <pupa/err.h>.
19490 (pupa_isgraph): New prototype.
19491 (pupa_isdigit): Likewise.
19492 (pupa_split_cmdline): Likewise.
19493 * include/pupa/normal.h: Include <pupa/arg.h>.
19494 (pupa_command): Changed the prototype of the member `func' to
19495 match the argument parsing interface. Added member `options'.
19496 (pupa_register_command): Updated to match function.
19497 (pupa_arg_parse): New prototype.
19498 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19499 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19500 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19501 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19502 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19503 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19504 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19505 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19506 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19507 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19508 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19509 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19510 * kern/disk.c: Include <pupa/file.h>.
19511 (pupa_print_partinfo): New function.
19512 * kern/dl.c: Include <pupa/env.h>.
19513 (pupa_dl_dir): Variable removed.
19514 (pupa_dl_load): Use the environment variable `prefix' instead of
19515 the variable pupa_dl_dir.
19516 (pupa_dl_set_prefix): Function removed.
19517 (pupa_dl_get_prefix): Likewise.
19518 * kern/i386/pc/init.c: Include <pupa/env.h>.
19519 (pupa_machine_init): Use the environment variable `prefix' instead of
19520 using pupa_dl_set_prefix to set the prefix.
19521 * kern/main.c: Include <pupa/env.h>.
19522 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19523 using pupa_dl_get_prefix to get the prefix.
19524 * kern/misc.c: Include <pupa/env.h>.
19525 (pupa_isdigit): New function.
19526 (pupa_isgraph): Likewise.
19527 (pupa_ftoa): Likewise.
19528 (pupa_vsprintf): Added support for printing values of the type
19529 `double'. Make it possible to format variable output when using
19530 formatting like `%1.2%f'.
19531 (pupa_split_cmdline): New function.
19532 * kern/rescue.c: Include <pupa/env.h>.
19533 (next_word): Removed function.
19534 (pupa_rescue_cmd_prefix): Likewise.
19535 (pupa_rescue_cmd_set): New function.
19536 (pupa_rescue_cmd_unset): New function.
19537 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19538 split the command line instead of splitting it here. Added
19539 support for setting variables using the syntax `foo=bar'. Don't
19540 initialize the prefix command anymore. Initialized the set and
19542 * normal/cmdline.c: Include <pupa/env.h>.
19543 (pupa_tab_complete): Added prototypes for print_simple_completion,
19544 print_partition_completion, add_completion, iterate_commands,
19545 iterate_dev, iterate_part and iterate_dir. Moved code to print
19546 partition information from here to kern/disk.c.
19547 (pupa_cmdline_run): Don't check if the function exists anymore.
19548 * normal/main.c: Include <pupa/env.h>.
19549 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19550 instead of using pupa_dl_get_prefix to get the prefix.
19551 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19552 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19554 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19555 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19556 ((unused))' to silence a gcc warning.
19557 (pupa_vga_setcolor): Likewise.
19558 (debug_command): Changed to match argument parsing
19560 * util/pupa-emu.c: Include <pupa/env.h>.
19561 (options): Added 0's for unused fields to silence a gcc warning.
19563 (main): Use the environment variable `prefix' instead of using
19564 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19565 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19568 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19569 * util/misc.c: Include <malloc.h>.
19570 (pupa_malloc): Rewritten so errors are correctly reported.
19571 (pupa_realloc): Likewise.
19572 (pupa_memalign): Likewise.
19573 (pupa_mm_init_region): Declare unused variables with
19574 `__attribute__ ((unused))' to silence a gcc warning.
19575 * normal/i386/setjmp.S: Remove tab at the end of the file to
19576 silence a gcc warning.
19577 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19578 variables with `__attribute__ ((unused))' to silence a gcc
19580 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19581 local variable i unsigned to silence a gcc warning.
19583 * kern/term.c: Include <pupa/misc.h>.
19584 (pupa_more_lines): New variable.
19585 (pupa_more): Likewise.
19586 (pupa_putcode): When the pager is active pause at the end of every
19588 (pupa_set_more): New function.
19589 * include/pupa/term.h (pupa_set_more): New prototype.
19592 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19594 Now this project is GRUB 2 rather than PUPA. The location of
19595 the CVS repository was moved to GRUB's.
19597 * configure.ac: Use bug-grub as the reporting address.
19598 Use GRUB instead of PUPA.
19599 Change the version number to 1.90.
19601 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19603 * genkernsyms.sh: Updated copyright information.
19604 * genmk.rb: Likewise.
19605 * genmodsrc.sh: Likewise.
19606 * gensymlist.sh: Likewise.
19607 * boot/i386/pc/boot.S: Likewise.
19608 * boot/i386/pc/diskboot.S: Likewise.
19609 * disk/i386/pc/biosdisk.c: Likewise.
19610 * disk/i386/pc/partition.c: Likewise.
19611 * font/manager.c: Likewise.
19612 * fs/ext2.c: Likewise.
19613 * fs/fat.c: Likewise.
19614 * include/pupa/boot.h: Likewise.
19615 * include/pupa/device.h: Likewise.
19616 * include/pupa/disk.h: Likewise.
19617 * include/pupa/dl.h: Likewise.
19618 * include/pupa/elf.h: Likewise.
19619 * include/pupa/err.h: Likewise.
19620 * include/pupa/file.h: Likewise.
19621 * include/pupa/font.h: Likewise.
19622 * include/pupa/fs.h: Likewise.
19623 * include/pupa/kernel.h: Likewise.
19624 * include/pupa/loader.h: Likewise.
19625 * include/pupa/misc.h: Likewise.
19626 * include/pupa/mm.h: Likewise.
19627 * include/pupa/net.h: Likewise.
19628 * include/pupa/normal.h: Likewise.
19629 * include/pupa/rescue.h: Likewise.
19630 * include/pupa/setjmp.h: Likewise.
19631 * include/pupa/symbol.h: Likewise.
19632 * include/pupa/term.h: Likewise.
19633 * include/pupa/types.h: Likewise.
19634 * include/pupa/i386/setjmp.h: Likewise.
19635 * include/pupa/i386/types.h: Likewise.
19636 * include/pupa/i386/pc/biosdisk.h: Likewise.
19637 * include/pupa/i386/pc/boot.h: Likewise.
19638 * include/pupa/i386/pc/console.h: Likewise.
19639 * include/pupa/i386/pc/init.h: Likewise.
19640 * include/pupa/i386/pc/kernel.h: Likewise.
19641 * include/pupa/i386/pc/linux.h: Likewise.
19642 * include/pupa/i386/pc/loader.h: Likewise.
19643 * include/pupa/i386/pc/memory.h: Likewise.
19644 * include/pupa/i386/pc/multiboot.h: Likewise.
19645 * include/pupa/i386/pc/partition.h: Likewise.
19646 * include/pupa/i386/pc/time.h: Likewise.
19647 * include/pupa/i386/pc/vga.h: Likewise.
19648 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19649 * include/pupa/util/getroot.h: Likewise.
19650 * include/pupa/util/misc.h: Likewise.
19651 * include/pupa/util/resolve.h: Likewise.
19652 * kern/device.c: Likewise.
19653 * kern/disk.c: Likewise.
19654 * kern/dl.c: Likewise.
19655 * kern/err.c: Likewise.
19656 * kern/file.c: Likewise.
19657 * kern/fs.c: Likewise.
19658 * kern/loader.c: Likewise.
19659 * kern/main.c: Likewise.
19660 * kern/misc.c: Likewise.
19661 * kern/mm.c: Likewise.
19662 * kern/rescue.c: Likewise.
19663 * kern/term.c: Likewise.
19664 * kern/i386/dl.c: Likewise.
19665 * kern/i386/pc/init.c: Likewise.
19666 * kern/i386/pc/lzo1x.S: Likewise.
19667 * kern/i386/pc/startup.S: Likewise.
19668 * loader/i386/pc/chainloader.c: Likewise.
19669 * loader/i386/pc/linux.c: Likewise.
19670 * loader/i386/pc/multiboot.c: Likewise.
19671 * normal/cmdline.c: Likewise.
19672 * normal/command.c: Likewise.
19673 * normal/main.c: Likewise.
19674 * normal/menu.c: Likewise.
19675 * normal/i386/setjmp.S: Likewise.
19676 * term/i386/pc/console.c: Likewise.
19677 * term/i386/pc/vga.c: Likewise.
19678 * util/console.c: Likewise.
19679 * util/genmoddep.c: Likewise.
19680 * util/misc.c: Likewise.
19681 * util/pupa-emu.c: Likewise.
19682 * util/resolve.c: Likewise.
19683 * util/unifont2pff.rb: Likewise.
19684 * util/i386/pc/biosdisk.c: Likewise.
19685 * util/i386/pc/getroot.c: Likewise.
19686 * util/i386/pc/pupa-mkimage.c: Likewise.
19687 * util/i386/pc/pupa-setup.c: Likewise.
19689 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19691 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19692 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19693 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19694 reading and reset it after reading.
19695 (pupa_ext2_close): Return PUPA_ERR_NONE.
19697 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19699 (struct linux_kernel_header): Add kernel_version and
19701 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19702 pupa_file_read succeeds.
19703 (pupa_rescue_cmd_initrd): Implement.
19705 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19707 * fs/ext2.c (pupa_ext2_label): New function.
19708 (pupa_ext2_fs): Added label.
19709 * fs/fat.c (pupa_fat_label): New function.
19710 (pupa_fat_fs): Added label.
19711 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19713 * kern/misc.c (pupa_strndup): New function.
19714 * include/pupa/misc.h (pupa_strndup): New prototype.
19716 * include/pupa/normal.h: Include <pupa/err.h>.
19717 (pupa_set_history): New prototype.
19718 (pupa_iterate_commands): New prototype.
19719 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19720 <pupa/disk.h>, <pupa/file.h>.
19721 (hist_size): New variable.
19722 (hist_lines): Likewise.
19723 (hist_end): Likewise.
19724 (hist_used): Likewise.
19725 (pupa_set_history): New function.
19726 (pupa_history_get): Likewise.
19727 (pupa_history_add): Likewise.
19728 (pupa_history_replace): Likewise.
19729 (pupa_tab_complete): Likewise.
19730 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19731 completion shows partitionnames while completing partitions, this
19732 feature was suggested by Jeff Bailey.
19733 * normal/command.c (pupa_iterate_commands): New function.
19734 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19735 (pupa_normal_init): Initialize history buffer.
19736 (PUPA_MOD_INIT): Likewise.
19737 (pupa_normal_fini): Free the history buffer.
19738 (PUPA_MOD_FINI): Likewise.
19740 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19743 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19744 * configure.ac [i386]: Check for regparam bug.
19745 (NESTED_FUNC_ATTR) [! i386]: Defined.
19747 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19749 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19750 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19751 (pupa_emu_SOURCES): New variable.
19752 (pupa_emu_LDFLAGS): Likewise.
19753 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19754 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19755 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19756 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19757 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19758 (pupa_jmp_buf): New typedef.
19759 (pupa_setjmp) [PUPA_UTIL]: New macro.
19760 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19761 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19762 (pupa_refresh): New prototype.
19763 * include/pupa/util/getroot.h: New file.
19764 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19766 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19767 (pupa_rescue_cmd_cat): Likewise.
19768 (pupa_rescue_cmd_ls): Likewise.
19769 (pupa_rescue_cmd_testload): Likewise.
19770 (pupa_rescue_cmd_lsmod): Likewise.
19771 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19772 * normal/menu.c (run_menu): Likewise.
19773 * kern/term.c (pupa_cls): Likewise.
19774 (pupa_refresh): New function.
19775 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19776 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19777 * util/console.c: New file.
19779 * util/i386/pc/getroot.c: New file.
19780 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19781 (pupa_putchar): New function.
19782 (pupa_refresh): Likewise.
19783 (xgetcwd): Function moved to ...
19784 (strip_extra_slashes): Likewise.
19785 (get_prefix): Likewise.
19786 * util/i386/pc/getroot.c: ... here.
19787 (find_root_device): Function moved and renamed to...
19788 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19789 Changed all callers.
19790 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19792 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19793 Changed all callers.
19794 * util/misc.c (pupa_memalign): New function.
19795 (pupa_mm_init_region): Likewise.
19796 (pupa_register_exported_symbols): Likewise.
19797 (pupa_putchar): Function removed.
19798 * util/pupa-emu.c: New file.
19800 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19802 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19803 (_multiboot_mod_SOURCES): New variable.
19804 (_multiboot_mod_CFLAGS): Likewise.
19805 * loader/i386/pc/multiboot.c: New file.
19806 * include/pupa/i386/pc/multiboot.h: Likewise.
19807 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19808 (pupa_multiboot_real_boot): New function.
19809 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19810 (pupa_multiboot_real_boot): New prototype.
19811 (pupa_rescue_cmd_multiboot): Likewise
19812 (pupa_rescue_cmd_module): Likewise.
19814 * kern/loader.c (pupa_loader_set): Continue when
19815 pupa_loader_unload_func() fails.
19816 (pupa_loader_unset): New function.
19817 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19819 * kern/misc.c (pupa_stpcpy): New function.
19820 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19822 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19824 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19825 for available extensions.
19827 * include/pupa/i386/pc/time.h: New file.
19828 * kern/disk.c: Include <pupa/machine/time.h>.
19829 (PUPA_CACHE_TIMEOUT): New macro.
19830 (pupa_last_time): New variable.
19831 (pupa_disk_open): Flush the cache when there was a timeout.
19832 (pupa_disk_close): Reset the timer.
19833 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19835 * util/misc.c: Include <sys/times.h>
19836 (pupa_get_rtc): New function.
19838 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19840 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19842 (pupa_ext2_get_file_block): Use blocks member.
19844 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19845 first block. Return -1 instead of pupa_errno on error.
19847 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19849 * README: In the pupa-mkimage example use _chain instead of chain
19850 and ext2 instead of fat.
19851 * TODO: Replace ext2fs with jfs as an example. Add an item for
19852 adding journal playback for ext2fs.
19853 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19854 (pkgdata_MODULES): Added ext2.mod.
19855 (ext2_mod_SOURCES): New variable.
19856 (ext2_mod_CFLAGS): Likewise.
19857 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19858 * include/pupa/misc.h (pupa_strncpy): New prototype.
19859 (pupa_strcat): Likewise.
19860 (pupa_strncmp): Likewise.
19861 * kern/misc.c (pupa_strcat): Enable function.
19862 (pupa_strncpy): New function.
19863 (pupa_strncmp): Likewise.
19864 * fs/ext2.c: New file.
19866 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19867 when the read failed before retrying.
19868 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19869 (_FILE_OFFSET_BITS): Likewise.
19870 * configure.ac: Added AC_SYS_LARGEFILE.
19872 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19874 * genmk.rb (PModule#rule): Make sure to get only symbol names
19875 from the output of nm.
19876 Reported by Robert Millan <zeratul2@wanadoo.es>.
19878 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19880 I forgot to check in these changes for a long time. This adds
19881 incomplete support for VGA console, and this is still very
19882 buggy. Also, a lot of consideration is required for I18N,
19883 UNICODE, and VGA font issues. Therefore, assume that this is
19884 such that "better than nothing".
19886 * font/manager.c: New file.
19887 * include/pupa/font.h: Likewise.
19888 * include/pupa/i386/pc/vga.h: Likewise.
19889 * term/i386/pc/vga.c: Likewise.
19890 * util/unifont2pff.rb: Likewise.
19892 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19893 (pkgdata_MODULES): Added vga.mod and font.mod.
19894 (vga_mod_SOURCES): New variables.
19895 (vga_mod_CFLAGS): Likewise.
19896 (font_mod_SOURCES): Likewise.
19897 (font_mod_CFLAGS): Likewise.
19899 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19901 * include/pupa/term.h: Include pupa/err.h.
19902 (struct pupa_term): Added init and fini.
19903 Changed the argument of putchar to pupa_uint32_t.
19905 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19906 (pupa_console_real_putchar): New prototype.
19907 (pupa_console_putchar): Removed.
19908 (pupa_console_checkkey): Exported.
19909 (pupa_console_getkey): Likewise.
19911 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19914 * kern/term.c (pupa_term_set_current): Rewritten.
19915 (pupa_putchar): Likewise.
19916 (pupa_putcode): New function.
19918 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19919 (pupa_console_real_putchar): ... this.
19920 (pupa_vga_set_mode): New function.
19921 (pupa_vga_get_font): Likewise.
19923 * normal/command.c: Include pupa/term.h.
19924 (terminal_command): New function.
19925 (pupa_command_init): Register the command "terminal".
19927 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19928 (DISP_UP): Likewise.
19929 (DISP_RIGHT): Likewise.
19930 (DISP_DOWN): Likewise.
19931 (DISP_HLINE): Likewise.
19932 (DISP_VLINE): Likewise.
19933 (DISP_UL): Likewise.
19934 (DISP_UR): Likewise.
19935 (DISP_LL): Likewise.
19936 (DISP_LR): Likewise.
19938 * term/i386/pc/console.c (pupa_console_putchar): New function.
19940 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19942 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19943 FIX. Reverse the path_list.
19945 * include/pupa/normal.h: Export pupa_register_command and
19946 pupa_unregister_command.
19948 * hello/hello.c (pupa_cmd_hello): New module.
19949 * conf/i386-pc.rmk: Added hello.mod.
19951 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19953 * kern/i386/pc/lzo1x.S: New file.
19955 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19956 (compress_kernel): New variable.
19957 (generate_image): Heavily modified to support compressing a
19958 large part of the core image.
19960 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19962 (pupa_util_load_image): New function.
19964 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19965 (pupa_compressed_size): New variable.
19966 (codestart): Enable Gate A20 here.
19967 Decompress the compressed part of the core image.
19968 Rearrange the code to put functions and variables which are
19969 required for initialization in the non-compressed part.
19972 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19975 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19977 * include/pupa/i386/pc/kernel.h
19978 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19979 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19980 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19981 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19982 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19984 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19986 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19987 (Utility#rule): Likewise.
19989 * configure.ac: Check if LZO is available.
19991 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19993 * include/pupa/normal.h: New file.
19994 * include/pupa/setjmp.h: Likewise.
19995 * include/pupa/i386/setjmp.h: Likewise.
19996 * normal/cmdline.c: Likewise.
19997 * normal/command.c: Likewise.
19998 * normal/main.c: Likewise.
19999 * normal/menu.c: Likewise.
20000 * normal/i386/setjmp.S: Likewise.
20002 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
20003 (pupa_rescue_cmd_initrd): Likewise.
20005 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
20008 * kern/i386/pc/startup.S (translation_table): New variable.
20009 (translate_keycode): New function.
20010 (pupa_console_getkey): Call translate_keycode.
20012 * kern/rescue.c (attempt_normal_mode): New function.
20013 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
20014 it failed, print a message.
20016 * kern/mm.c (pupa_real_malloc): Print more information when a
20017 free magic is broken.
20018 (pupa_free): If the first free header is not free actually, set
20021 * kern/main.c (pupa_load_normal_mode): Just load the module
20023 (pupa_main): Don't print the message
20024 "Entering into rescue mode..." here.
20026 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
20028 (pupa_rescue_cmd_initrd): Likewise.
20029 (pupa_rescue_cmd_initrd): Likewise.
20031 * include/pupa/symbol.h (FUNCTION): Specify the type.
20032 (VARIABLE): Likewise.
20034 * include/pupa/err.h (pupa_err_t): Added
20035 PUPA_ERR_UNKNOWN_COMMAND.
20037 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
20038 (pupa_dl_get_prefix): Likewise.
20040 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
20041 Added _chain.mod and _linux.mod instead of chain.mod and
20043 (chain_mod_SOURCES): Renamed to ...
20044 (_chain_mod_SOURCES): ... this.
20045 (chain_mod_CFLAGS): Renamed to ...
20046 (_chain_mod_CFLAGS): ... this.
20047 (linux_mod_SOURCES): Renamed to ...
20048 (_linux_mod_SOURCES): ... this.
20049 (linux_mod_CFLAGS): Renamed to ...
20050 (_linux_mod_CFLAGS): ... this.
20051 (normal_mod_SOURCES): New variable.
20052 (normal_mod_CFLAGS): Likewise.
20053 (normal_mod_ASFLAGS): Likewise.
20055 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20057 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20060 * kern/dl.c (pupa_dl_ref): Refer depending modules
20062 (pupa_dl_unref): Unrefer depending modules recursively.
20063 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20064 a module is unloaded before one depending on that module is
20066 (pupa_dl_unload): Unload depending modules explicitly,
20069 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20071 * include/pupa/i386/pc/linux.h: New file.
20072 * loader/i386/pc/linux.c: Likewise.
20074 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20076 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20077 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20078 of PUPA_CHAINLOADER_BOOT_SECTOR.
20080 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20081 (pupa_linux_prot_size): New variable.
20082 (pupa_linux_tmp_addr): Likewise.
20083 (pupa_linux_real_addr): Likewise.
20084 (pupa_linux_boot_zimage): New function.
20085 (pupa_linux_boot_bzimage): Likewise.
20087 * kern/i386/pc/init.c (struct mem_region): New structure.
20088 (MAX_REGIONS): New macro.
20089 (mem_regions): New variable.
20090 (num_regions): Likewise.
20091 (pupa_os_area_addr): Likewise.
20092 (pupa_os_area_size): Likewise.
20093 (pupa_lower_mem): Likewise.
20094 (pupa_upper_mem): Likewise.
20095 (add_mem_region): New function.
20096 (compact_mem_regions): Likewise.
20097 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20098 the size of the conventional memory and that of so-called upper
20099 memory (before the first memory hole).
20100 Instead of adding each found region to free memory, use
20101 add_mem_region and add them after removing overlaps.
20102 Also, add only 1/4 of the upper memory to free memory. The rest
20103 is used for loading OS images. Maybe this is ad hoc, but this
20104 makes it much easier to relocate OS images when booting.
20106 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20107 (pupa_enter_rescue_mode): Don't register initrd and module.
20109 * kern/mm.c: Include pupa/dl.h.
20111 * kern/main.c: Include pupa/file.h and pupa/device.h.
20113 * kern/loader.c (pupa_loader_load_module_func): Removed.
20114 (pupa_loader_load_module): Likewise.
20116 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20119 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20120 (pupa_linux_tmp_addr): Likewise.
20121 (pupa_linux_real_addr): Likewise.
20122 (pupa_linux_boot_zimage): Likewise.
20123 (pupa_linux_boot_bzimage): Likewise.
20125 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20126 (pupa_upper_mem): Likewise.
20127 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20128 module is too dangerous.
20130 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20131 (pupa_os_area_size): Likewise.
20132 (pupa_loader_set): Remove the first argument. Loader doesn't
20133 manage modules or initrd any longer.
20134 (pupa_loader_load_module): Removed.
20136 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20137 (linux_mod_SOURCES): New variable.
20138 (linux_mod_CFLAGS): Likewise.
20140 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20142 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20143 the length of a blocklist correctly.
20145 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20146 Use ioctl only if the OS file is a block device.
20147 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20148 not very useful for normal files.
20150 * kern/main.c (pupa_set_root_dev): New function.
20151 (pupa_load_normal_mode): Likewise.
20152 (pupa_main): Call those above.
20154 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20157 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20159 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20161 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20162 (setup): Configure the installed partition information and the
20165 * loader/i386/pc/chainloader.c (my_mod): New variable.
20166 (pupa_chainloader_unload): New function.
20167 (pupa_rescue_cmd_chainloader): Refer itself.
20168 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20170 * kern/i386/pc/startup.S (install_partition): Removed.
20171 (version_string): Likewise.
20172 (config_file): Likewise.
20173 (pupa_install_dos_part): New variable.
20174 (pupa_install_bsd_part): Likewise.
20175 (pupa_prefix): Likewise.
20176 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20178 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20180 (make_install_device): New function.
20181 (pupa_machine_init): Set the dl prefix.
20183 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20184 (buf): Renamed to ...
20185 (linebuf): ... this.
20186 (pupa_rescue_cmd_prefix): New function.
20187 (pupa_rescue_cmd_insmod): Likewise.
20188 (pupa_rescue_cmd_rmmod): Likewise.
20189 (pupa_rescue_cmd_lsmod): Likewise.
20190 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20193 * kern/mm.c (pupa_memalign): If failed even after invalidating
20194 disk caches, unload unneeded modules and retry.
20196 * kern/misc.c (pupa_memmove): New function.
20197 (pupa_memcpy): Removed.
20198 (pupa_strcpy): New function.
20199 (pupa_itoa): Made static.
20201 * kern/dl.c (pupa_dl_iterate): New function.
20202 (pupa_dl_ref): Likewise.
20203 (pupa_dl_unref): Likewise.
20204 (pupa_dl_unload): Return if succeeded or not.
20205 (pupa_dl_unload_unneeded): New function.
20206 (pupa_dl_unload_all): Likewise.
20207 (pupa_dl_init): Renamed to ...
20208 (pupa_dl_set_prefix): ... this.
20209 (pupa_dl_get_prefix): New function.
20211 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20212 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20213 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20214 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20215 (pupa_install_dos_part): Declared.
20216 (pupa_install_bsd_part): Likewise.
20217 (pupa_prefix): Likewise.
20218 (pupa_boot_drive): Likewise.
20220 * include/pupa/types.h: Fix a typo.
20222 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20224 (pupa_memmove): Declared.
20225 (pupa_strcpy): Likewise.
20227 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20228 pupa_mod_init takes one argument, its own module.
20229 (pupa_dl_unload_unneeded): Declared.
20230 (pupa_dl_unload_all): Likewise.
20231 (pupa_dl_ref): Likewise.
20232 (pupa_dl_unref): Likewise.
20233 (pupa_dl_iterate): Likewise.
20234 (pupa_dl_init): Renamed to ...
20235 (pupa_dl_set_prefix): ... this.
20236 (pupa_dl_get_prefix): Declared.
20238 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20239 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20241 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20242 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20244 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20245 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20247 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20249 * util/i386/pc/pupa-setup.c (setup): Define the internal
20250 function find_first_partition_start at the top level, because GCC
20251 3.0.x cannot compile internal functions in deeper scopes
20253 (find_root_device): Use lstat instead of stat.
20254 Don't follow symbolic links.
20255 Fix the path-constructing code.
20257 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20258 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20259 by a BLKGETSIZE ioctl first, because block devices don't fill
20260 the member st_mode of the structure stat on Linux.
20261 [__linux__] (linux_find_partition): Use a temporary buffer
20262 REAL_DEV for the working space. Copy it to DEV before returning.
20263 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20264 buffer cache consistent.
20265 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20266 strncmp. The previous value was merely wrong.
20267 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20269 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20270 FAT size is 12. The previous value was merely wrong.
20272 * kern/main.c (pupa_main): Don't split the starting message from
20275 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20276 LF, because BIOS goes crazy about character attributes in this
20279 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20281 * include/i386/pc/util/biosdisk.h: New file.
20282 * util/i386/pc/biosdisk.c: Likewise.
20283 * util/i386/pc/pupa-setup.c: Likewise.
20285 * Makefile.in (INCLUDE_DISTFILES): Added
20286 include/pupa/i386/pc/util/biosdisk.h.
20287 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20288 directory util/i386/pc.
20289 (install-local): Added a rule for sbin_UTILITIES.
20290 (uninstall): Likewise.
20292 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20294 * util/misc.c (xrealloc): New function.
20295 (pupa_malloc): Likewise.
20296 (pupa_free): Likewise.
20297 (pupa_realloc): Likewise.
20298 (pupa_stop): Likewise.
20299 (pupa_putchar): Likewise.
20301 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20303 * include/pupa/util/misc.h (xrealloc): Declared.
20305 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20307 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20308 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20310 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20311 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20313 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20314 way should be implemented.
20315 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20317 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20318 the size of NAME for safety.
20319 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20322 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20323 (pupa_setup_SOURCES): Likewise.
20325 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20327 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20329 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20330 bunch of pushl's from pusha, because this destroys the return
20333 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20335 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20336 This means that any missing prototypes could be fatal. Also, you
20337 must take care when writing assembly code. See the comments at
20338 the beginning of startup.S, for more details.
20340 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20341 compilation mechanism.
20342 (pupa_chainloader_real_boot): Likewise.
20343 (pupa_biosdisk_rw_int13_extensions): Likewise.
20344 (pupa_biosdisk_rw_standard): Likewise.
20345 (pupa_biosdisk_check_int13_extensions): Likewise.
20346 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20347 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20348 (pupa_get_memsize): Likewise.
20349 (pupa_get_mmap_entry): Likewise.
20350 (pupa_console_putchar): Likewise.
20351 (pupa_console_setcursor): Likewise.
20352 (pupa_getrtsecs): Use pushl instead of push.
20354 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20355 memory instead of the stack for a mmap entry, because some
20356 BIOSes may ignore the maximum size and overflow.
20358 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20360 * genmk.rb (PModule#rule): Compile automatically generated
20361 sources with module-specific CFLAGS as well as other sources.
20363 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20365 * configure.ac: Check ld.
20366 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20367 respectively, before checking endianness and sizes.
20369 * Makefile.in (LD): New variable.
20371 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20373 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20375 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20377 * Changelog: New file.